/* ═══════════════════════════════════════════════════════════════════════════
   dann.co.il  ·  Bootstrap 5 RTL  ·  Hebrew Green Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --green-900: #1B5E20;
    --green-800: #2E7D32;
    --green-700: #388E3C;
    --green-600: #43A047;
    --green-500: #4CAF50;
    --green-400: #66BB6A;
    --green-200: #A5D6A7;
    --green-100: #C8E6C9;
    --green-50:  #E8F5E9;

    --dark:      #1A1A2E;
    --dark-soft: #2D2D44;
    --gray-700:  #495057;
    --gray-500:  #6C757D;
    --gray-200:  #E9ECEF;
    --gray-100:  #F8F9FA;
    --white:     #FFFFFF;

    --primary:   var(--green-800);
    --primary-dk:var(--green-900);
    --primary-lt:var(--green-500);

    --font-main: 'Assistant', 'Segoe UI', Arial, sans-serif;
    --radius:    0.6rem;
    --radius-lg: 1.2rem;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
    --transition: all .25s ease;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
    direction: rtl;
    text-align: right;
}

a { color: var(--green-800); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-600); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

img { max-width: 100%; height: auto; }

/* ── Utility Classes ────────────────────────────────────────────────────── */
.text-primary-green { color: var(--primary) !important; }
.bg-primary-green   { background-color: var(--primary) !important; }
.bg-green-light     { background-color: var(--green-50) !important; }
.section-pad        { padding: 5rem 0; }
.section-pad-sm     { padding: 3rem 0; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.site-navbar {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
    padding: .75rem 0;
    box-shadow: var(--shadow-md);
    z-index: 1030;
}

.site-navbar .navbar-logo {
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}
.site-navbar .navbar-brand:hover .navbar-logo { transform: scale(1.05); }
.site-navbar .navbar-brand:hover { text-decoration: none; }

.navbar-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.3px;
}
.brand-accent { color: var(--green-400); margin: 0 .25rem; }

.site-navbar .nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 600;
    font-size: .95rem;
    padding: .4rem .75rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,.15);
}

.site-navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    min-width: 200px;
    animation: dropFade .2s ease;
    right: 0;
    left: auto;
}
@keyframes dropFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.site-navbar .dropdown-item {
    font-size: .9rem;
    color: var(--dark);
    padding: .5rem 1rem;
    transition: var(--transition);
}
.site-navbar .dropdown-item:hover {
    background: var(--green-50);
    color: var(--primary);
}

/* Search in nav */
.nav-search-form .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: var(--white);
    font-size: .85rem;
    width: 200px;
}
.nav-search-form .form-control::placeholder { color: rgba(255,255,255,.7); }
.nav-search-form .form-control:focus {
    background: rgba(255,255,255,.25);
    border-color: var(--green-400);
    box-shadow: none;
    color: var(--white);
}
.nav-search-form .btn { border-color: rgba(255,255,255,.4); color: var(--white); }
.nav-search-form .btn:hover { background: rgba(255,255,255,.2); }

/* ── HERO / HOMEPAGE BANNER ─────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-500) 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .5;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--white);
}
.hero-title span { color: var(--green-200); }
.hero-subtitle { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.hero-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img { max-height: 380px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); }

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: .75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.btn-hero-primary:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
    padding: .75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* Scroll arrow */
.hero-scroll-arrow {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── SERVICES SECTION ────────────────────────────────────────────────────── */
.services-section { background: var(--gray-100); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: .6rem 0 0;
}
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; }

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary);
}
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}
.service-card h5 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--dark); }
.service-card p  { font-size: .9rem; color: var(--gray-500); margin: 0; }

/* ── SPECIALIZATIONS SECTION ─────────────────────────────────────────────── */
.spec-section { background: var(--white); }
.spec-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.spec-box {
    flex: 1 1 calc(33% - .7rem);
    min-width: 140px;
    background: var(--green-50);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--green-100);
}
.spec-box:hover { background: var(--green-100); transform: translateY(-3px); }
.spec-box .spec-icon { font-size: 2rem; color: var(--primary); margin-bottom: .5rem; display: block; }
.spec-box h6 { font-size: .9rem; font-weight: 700; color: var(--dark); margin: 0; }
.spec-box a { color: inherit; text-decoration: none; }
.spec-box a:hover { color: var(--primary); }

/* ── REPORTING DEADLINES ─────────────────────────────────────────────────── */
.deadlines-section { background: var(--green-50); }
.deadline-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}
.deadline-card .deadline-date {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.deadline-card .deadline-label { font-size: .85rem; color: var(--gray-500); margin: .25rem 0 0; }

/* ── ARTICLES GRID ───────────────────────────────────────────────────────── */
.articles-section { background: var(--gray-100); }
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--green-200); }
.article-card .article-category {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary);
    background: var(--green-50);
    padding: .2rem .6rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: .75rem;
}
.article-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}
.article-card p { font-size: .875rem; color: var(--gray-500); flex: 1; margin-bottom: 1rem; }
.article-card .article-link {
    color: var(--primary);
    font-weight: 600;
    font-size: .875rem;
    align-self: flex-start;
}
.article-card .article-link:hover { color: var(--green-900); }
.article-card .article-link i { font-size: .75rem; }

/* ── PAGE BANNER (inner pages) ───────────────────────────────────────────── */
.page-banner {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-2.5c0-.16-.02-.3-.05-.44A4.49 4.49 0 0 0 20 28.5V20.5zm-10-.5v5H5v-5h5zm0 10v5H5v-5h5zM20 18H0v-2h20v2z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; color: var(--white); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.8); font-size: .9rem; }
.breadcrumb-item.active { color: var(--white); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── ARTICLE CONTENT PAGE ────────────────────────────────────────────────── */
.article-layout { padding: 3rem 0 5rem; }

/* Sidebar TOC */
.toc-box {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 80px;
}
.toc-toggle {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: .85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
}
.toc-toggle:hover { background: var(--green-700); }
.toc-chevron { font-size: .8rem; transition: transform .25s; }
.toc-toggle[aria-expanded="false"] .toc-chevron { transform: rotate(180deg); }
.toc-list {
    list-style: none;
    padding: .75rem 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
}
.toc-list::-webkit-scrollbar { width: 4px; }
.toc-list::-webkit-scrollbar-track { background: transparent; }
.toc-list::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 2px; }

.toc-h2, .toc-h3, .toc-h4 { line-height: 1.4; }
.toc-h2 a {
    display: block;
    padding: .4rem 1.2rem;
    color: var(--dark);
    font-size: .9rem;
    font-weight: 600;
    transition: var(--transition);
}
.toc-h3 a {
    display: block;
    padding: .3rem 1.2rem .3rem 2rem;
    color: var(--gray-700);
    font-size: .85rem;
    transition: var(--transition);
}
.toc-h4 a {
    display: block;
    padding: .25rem 1.2rem .25rem 3rem;
    color: var(--gray-500);
    font-size: .82rem;
    transition: var(--transition);
}
.toc-h2 a:hover, .toc-h3 a:hover, .toc-h4 a:hover {
    color: var(--primary);
    background: var(--green-100);
    text-decoration: none;
}
.toc-h2 a.toc-active { color: var(--primary); border-right: 3px solid var(--primary); }

/* Article body */
.article-body {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.article-body h1 { font-size: 1.8rem; color: var(--dark); border-bottom: 3px solid var(--primary); padding-bottom: .6rem; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.35rem; color: var(--green-900); margin-top: 2.5rem; margin-bottom: 1rem; padding-right: .75rem; border-right: 4px solid var(--primary); }
.article-body h3 { font-size: 1.15rem; color: var(--dark); margin-top: 2rem; margin-bottom: .75rem; padding-right: .5rem; border-right: 3px solid var(--green-400); }
.article-body h4 { font-size: 1rem; color: var(--gray-700); font-weight: 700; margin-top: 1.5rem; }

.article-body p  { margin-bottom: 1rem; color: #333; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-right: 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong, .article-body b { color: var(--dark); }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { color: var(--green-700); text-decoration: underline; }

.article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: .9rem;
}
.article-body th { background: var(--primary); color: var(--white); padding: .6rem .8rem; font-weight: 700; text-align: right; }
.article-body td { padding: .5rem .8rem; border: 1px solid var(--gray-200); }
.article-body tr:nth-child(even) td { background: var(--green-50); }

/* ── RELATED ARTICLES ────────────────────────────────────────────────────── */
.related-articles { margin-top: 2.5rem; }
.related-articles h4 { color: var(--dark); font-size: 1.1rem; margin-bottom: 1rem; }
.related-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    background: var(--green-50);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .5rem;
    transition: var(--transition);
}
.related-link:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }
.related-link i { font-size: .85rem; }

/* ── SEARCH PAGE ─────────────────────────────────────────────────────────── */
.search-hero {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    padding: 4rem 0 3rem;
    color: var(--white);
}
.search-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 1.5rem; }
.search-form-large .form-control {
    font-size: 1.1rem;
    padding: .85rem 1.25rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: none;
}
.search-form-large .btn {
    padding: .85rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}
.search-form-large .btn:hover { background: var(--green-900); border-color: var(--green-900); }

.search-result {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.search-result:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }
.search-result h5 { color: var(--dark); font-size: 1.05rem; }
.search-result .result-cat {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--green-50);
    padding: .15rem .5rem;
    border-radius: 50px;
}
.search-result .result-snippet { font-size: .875rem; color: var(--gray-500); margin: .5rem 0 0; }
.search-result a { color: var(--primary); font-weight: 600; }

/* Category browse */
.cat-browse-box {
    background: var(--green-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.cat-browse-box h6 { font-weight: 700; color: var(--dark); margin-bottom: 1rem; font-size: .95rem; }
.cat-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: 50px;
    padding: .3rem .75rem;
    font-size: .82rem;
    color: var(--dark);
    margin: .2rem;
    transition: var(--transition);
}
.cat-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); text-decoration: none; }

/* ── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-page { padding: 4rem 0; }
.contact-info-card {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    color: var(--white);
    height: 100%;
}
.contact-info-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-item-text p { margin: 0; font-size: .82rem; opacity: .8; }
.contact-item-text a,
.contact-item-text span { color: var(--white); font-weight: 600; font-size: 1rem; }
.contact-item-text a:hover { color: var(--green-200); text-decoration: none; }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--dark); }
.contact-form-card .form-label { font-weight: 600; font-size: .9rem; }
.contact-form-card .form-control, .contact-form-card .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .95rem;
    transition: var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}
.contact-form-card .btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: .75rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form-card .btn-submit:hover { background: var(--green-900); transform: translateY(-2px); }

/* ── ABOUT PAGE ──────────────────────────────────────────────────────────── */
.about-section { padding: 4rem 0; }
.about-highlight {
    background: var(--green-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border-right: 5px solid var(--primary);
}
.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ── CONTACT BAR ─────────────────────────────────────────────────────────── */
.contact-bar {
    background: var(--dark);
    padding: 2.5rem 0;
    color: var(--white);
}
.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
}
.contact-bar-icon {
    font-size: 1.5rem;
    color: var(--green-400);
    flex-shrink: 0;
}
.contact-bar-label { font-size: .78rem; opacity: .65; margin: 0; }
.contact-bar-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    text-decoration: none;
}
a.contact-bar-value:hover { color: var(--green-400); }

/* ── SITE FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark-soft);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 2rem;
}
.footer-brand-name { color: var(--white); font-weight: 700; font-size: .9rem; line-height: 1.4; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-heading { color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--green-400); text-decoration: none; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-policy-link { color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-policy-link:hover { color: var(--green-400); }
.whatsapp-btn { border-radius: 50px; font-weight: 700; }

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 0; background: transparent; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; }

/* ── CATEGORY BADGES ─────────────────────────────────────────────────────── */
.badge-category {
    background: var(--green-50);
    color: var(--primary);
    border: 1px solid var(--green-100);
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 50px;
    display: inline-block;
}

/* ── ARTICLES LIST (search/browse) ───────────────────────────────────────── */
.article-list-item {
    border-radius: var(--radius);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    margin-bottom: .5rem;
    transition: var(--transition);
}
.article-list-item:hover { background: var(--green-50); border-color: var(--green-200); }
.article-list-item i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.article-list-item a { color: var(--dark); font-weight: 600; font-size: .9rem; flex: 1; }
.article-list-item a:hover { color: var(--primary); text-decoration: none; }
.article-list-item .item-cat { font-size: .75rem; color: var(--gray-500); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .site-navbar .dropdown-menu { position: static !important; box-shadow: none; border: none; border-right: 3px solid var(--primary); margin-right: 1rem; padding-top: .5rem; }
    .nav-search-form { margin-top: .75rem; }
    .nav-search-form .form-control { width: 100%; }
    .hero-img-wrap { display: none; }
    .hero-section { padding: 4rem 0; }
    .spec-box { flex: 1 1 calc(50% - .5rem); }
}
@media (max-width: 767.98px) {
    .section-pad { padding: 3rem 0; }
    .page-banner  { padding: 2.5rem 0; }
    .article-body { padding: 1.5rem 1rem; }
    .spec-box     { flex: 1 1 100%; }
    .contact-bar-item { flex-direction: column; gap: .5rem; text-align: center; }
    .toc-box { position: static; }
    .footer-logo { width: 36px; }
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    transition: width .1s linear;
    width: 0%;
}

/* ── BACK-TO-TOP ─────────────────────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}
#backToTop.visible { opacity: 1; }
#backToTop:hover { background: var(--green-900); transform: translateY(-3px); }
