@import url('https://fonts.googleapis.com/css2?family=Estedad:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-fa: 'Estedad', 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colors */
    --primary-blue: #0d3b66;
    --primary-gold: #d4af37;
    --accent-red: #c92a2a;
    --bg-cream: #f4e9d8;
    --bg-light: #faf6f0;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0d3b66 0%, #1a5490 100%);
    --gradient-warm: linear-gradient(135deg, #f4e9d8 0%, #e8d5c4 50%, #c8b5d8 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(13, 59, 102, 0.7), rgba(13, 59, 102, 0.3));

    /* Theme Overrides */
    --header-bg: var(--gradient-primary);
    --menu-bg: transparent;
    --footer-bg: var(--gradient-primary);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: var(--font-latin);
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

html[lang^="fa"] body,
html[lang^="fa-"] body {
    font-family: var(--font-fa);
}

body.page-no-hero .page-header,
body.page-no-hero .page-subtitle {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.main-header {
    background: var(--header-bg);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    position: relative;
    min-width: 220px;
    margin-inline-start: auto;
}

.main-nav .header-search,
.main-nav .lang-switcher,
.main-nav .social-links {
    display: none;
}

.header-search .search-input {
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.header-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search .search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    width: 100%;
    background: rgba(13, 59, 102, 0.95);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
}

.header-search .search-results a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-search .search-results a:last-child {
    border-bottom: none;
}

.header-search .search-results a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header-search .search-empty {
    padding: 10px 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.header-bottom {
    width: 100%;
}

.main-nav {
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .login-btn {
    order: 2;
}

.login-btn {
    padding: 1px 4px;
    font-size: 0.6rem;
    min-height: 20px;
    line-height: 1;
    border-radius: 999px;
}

.login-btn svg {
    width: 10px;
    height: 10px;
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: #0d3b66;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.8);
}

.header-user-avatar.has-image {
    color: transparent;
}

.header-user {
    position: relative;
}

.header-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 160px;
    background: rgba(13, 59, 102, 0.95);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    padding: 4px;
    display: none;
    z-index: 10;
}

.header-user-menu.open {
    display: block;
}

.header-user-menu button {
    width: 100%;
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    text-align: right;
    font-family: inherit;
    font-size: 0.75rem;
}

.header-user-menu button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-circle {
    width: 62px;
    height: 62px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo-svg {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.main-nav {
    flex: 1;
    background: var(--menu-bg);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-toggle .burger {
    width: 26px;
    height: 3px;
    background: #fff;
    position: relative;
    display: block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 26px;
    height: 3px;
    background: #fff;
}

.nav-toggle .burger::before {
    top: -7px;
}

.nav-toggle .burger::after {
    top: 7px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-item.has-submenu > .nav-link::after {
    content: '▾';
    margin-inline-start: 6px;
    font-size: 0.75rem;
    opacity: 0.8;
}

.submenu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 150px;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    background: rgba(13, 59, 102, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1001;
}

.submenu .nav-link {
    color: #fff;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-item:hover > .submenu {
    display: block;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-switch {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(13, 59, 102, 0.65);
    color: #fff;
    font-size: 14px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(13, 59, 102, 0.65);
    border: none;
}

.lang-switcher::before {
    content: '🌐';
    font-size: 16px;
    line-height: 1;
    color: var(--primary-gold);
}

.lang-switcher .lang-switch {
    min-width: 34px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.social-icon:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--primary-gold);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.login-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(-3px);
}

/* ========================================
   HERO SLIDER
======================================== */

.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: var(--text-dark);
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.main-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 2;
    text-align: right;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-text {
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.9;
    background: rgba(13, 59, 102, 0.8);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-right: 4px solid var(--primary-gold);
    max-height: 8.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Thumbnail Navigation */
.thumbnail-nav {
    width: 140px;
    background: rgba(13, 59, 102, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    justify-content: space-between;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.thumbnail-nav::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 59, 102, 0.5);
    transition: all 0.3s ease;
}

.thumbnail.active::after,
.thumbnail:hover::after {
    background: rgba(212, 175, 55, 0.3);
}

.thumbnail.active {
    border-color: var(--primary-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   SECTION STYLES
======================================== */

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.section-underline {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* ========================================
   ARTICLES SECTION
======================================== */

.articles-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.books-eight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.books-eight-grid .article-card {
    min-height: 360px;
}

.books-eight-grid .book-card {
    min-height: 0;
}

.book-placeholder-card {
    border: 2px dashed rgba(13, 59, 102, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: none;
    cursor: default;
}

.book-placeholder-card:hover {
    transform: none;
    box-shadow: none;
}

.book-placeholder-card .article-image {
    background: repeating-linear-gradient(
        45deg,
        rgba(13, 59, 102, 0.06),
        rgba(13, 59, 102, 0.06) 14px,
        rgba(212, 175, 55, 0.08) 14px,
        rgba(212, 175, 55, 0.08) 28px
    );
}

.book-placeholder-card .article-title {
    font-size: 1.2rem;
}

.book-placeholder-card .article-text {
    color: #6b7280;
}

.articles-featured-grid {
    display: block;
}

.articles-featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.articles-featured-main {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-featured {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-featured__image {
    height: 360px;
    overflow: hidden;
    position: relative;
}

.article-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-featured__content {
    padding: 1.5rem 2rem 2rem;
}

.articles-featured-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-list-item {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-list-item__thumb {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.article-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-item .article-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.article-list-item .article-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.post-list-stats {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.articles-grid.is-list,
.books-grid.is-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card.list-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.2rem;
    align-items: stretch;
    cursor: default;
}

.article-card.list-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.article-card.list-item .article-image {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.article-card.list-item .article-content {
    padding: 1.2rem 1.6rem 1.4rem;
    background: transparent;
}

.article-card.list-item .article-title {
    font-size: 1.3rem;
}

.article-card.list-item .article-desc {
    margin-bottom: 0.4rem;
}

.article-card.list-item .article-actions {
    margin-top: 0.75rem;
}

.article-card.list-item .read-more-btn {
    display: inline-block;
}

.book-card.list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.2rem;
    align-items: stretch;
    cursor: default;
    padding: 1.2rem 1.6rem;
}

.book-card.list-item:hover {
    transform: none;
}

.book-card.list-item .book-image {
    height: 160px;
}

.book-card.list-item .book-content {
    padding: 0;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(13, 59, 102, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.15);
}

.article-content {
    padding: 2rem;
    background: linear-gradient(to bottom, var(--white), var(--bg-cream));
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.article-desc {
    font-size: 1.1rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.article-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.read-more-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.read-more-btn:hover {
    background: #134a80;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.book-download-btn {
    background: #0f766e;
}

.book-download-btn:hover {
    background: #0d9488;
}

.post-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.post-modal.is-open {
    display: flex;
}

.post-modal__content {
    background: #fff;
    width: min(900px, 100%);
    max-height: 85vh;
    overflow: auto;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    position: relative;
}

.post-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
}

.post-modal__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.post-modal__body {
    color: var(--text-dark);
    line-height: 1.9;
}

/* ========================================
   POST DETAIL
======================================== */

.post-detail {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background: var(--bg-light);
}

.post-detail__card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.post-detail__title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

.post-detail__image {
    width: 100%;
    border-radius: 12px;
    max-height: 420px;
    object-fit: cover;
    margin: 1rem 0;
}

.post-detail__content {
    color: var(--text-dark);
    line-height: 1.9;
}

.post-detail__actions {
    margin-top: 1.6rem;
    display: flex;
    justify-content: flex-start;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    border: none;
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

.share-btn--copy { background: #0f172a; }
.share-btn--fb { background: #1877f2; }
.share-btn--tw { background: #1da1f2; }
.share-btn--wa { background: #25d366; color: #0b3d1c; }
.share-btn--tg { background: #229ed9; }
.share-btn--print { background: #6b7280; }

.post-comments__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-top: 2rem;
}

.comment-form {
    margin-top: 1rem;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 140px;
    max-height: 240px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    color: #0f172a;
}

.comment-form input#comment-name {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    color: #0f172a;
    margin-bottom: 10px;
}

.comment-form input#comment-name:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.comment-form textarea:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.comment-form button {
    margin-top: 10px;
    align-self: flex-start;
}

#comment-submit {
    background: linear-gradient(135deg, #0d3b66 0%, #1a5490 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1rem 0;
}

.comment-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}

.comment-item__meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.comment-item__body {
    color: #0f172a;
    line-height: 1.7;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 6px;
}

.comment-reply-form {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.comment-reply-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    max-height: 200px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #0f172a;
    margin-top: 8px;
}

.comment-reply-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #0f172a;
}

.comment-reply-submit {
    margin-top: 8px;
}

.comment-form textarea {
    min-height: 120px;
    margin-bottom: 10px;
}

/* ========================================
   BOOKS SECTION
======================================== */

.books-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-warm);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.books-grid.books-grid-eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.books-grid.books-grid-eight .book-card {
    padding: 0.9rem;
    border-radius: 14px;
}

.books-grid.books-grid-eight .book-image {
    height: 155px;
    margin-bottom: 0.6rem;
}

.books-grid.books-grid-eight .book-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.books-grid.books-grid-eight .book-desc {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.books-grid.books-grid-eight .book-text {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.books-grid.books-grid-eight .article-actions {
    margin-top: 0.35rem;
}

.books-grid.books-grid-eight .read-more-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.book-placeholder-card {
    border: 2px dashed rgba(13, 59, 102, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: none;
    cursor: default;
}

.book-placeholder-card:hover {
    transform: none;
    box-shadow: none;
}

.book-placeholder-card .book-image {
    background: repeating-linear-gradient(
        45deg,
        rgba(13, 59, 102, 0.06),
        rgba(13, 59, 102, 0.06) 14px,
        rgba(212, 175, 55, 0.08) 14px,
        rgba(212, 175, 55, 0.08) 28px
    );
}

.book-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: block;
    text-decoration: none;
    color: inherit;
}

.book-card:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.book-image {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1) rotate(-2deg);
}

.book-content {
    text-align: center;
}

.book-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.book-desc {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.book-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   VIDEOS SECTION
======================================== */

.videos-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #e8d5c4 0%, #d4c5e8 50%, #c8b5d8 100%);
}

.video-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.video-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
}

.video-slide {
    min-width: calc(25% - 1.5rem);
    transition: all 0.5s ease;
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.post-stats-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(13, 59, 102, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 59, 102, 0.9);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-nav-btn:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    right: 0;
}

.next-btn {
    left: 0;
}

.video-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 59, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* ========================================
   GEOGRAPHY SECTION
======================================== */

.geography-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #6d5a4d 0%, #8b7355 100%);
}

.geography-section .section-title {
    color: var(--white);
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-media {
    width: 100%;
}

.historical-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-media video,
.map-media img {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(13, 59, 102, 0.9);
    padding: 1rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.map-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* ========================================
   FOOTER
======================================== */

.main-footer {
    background: var(--footer-bg);
    color: var(--white);
}

.footer-top {
    padding: var(--spacing-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-circle {
    width: 60px;
    height: 60px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

.footer-about {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-gold);
    transform: translateX(-5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--primary-gold);
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-text {
        font-size: 1.2rem;
    }
    
    .video-slide {
        min-width: calc(33.333% - 1.5rem);
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-top {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        direction: ltr;
        width: 100%;
    }

    .header-top .nav-toggle {
        margin-left: 0;
        margin-right: auto;
    }

    .logo {
        order: 1;
        margin-left: 250px;

       
    }

    .nav-toggle {
        order: 2;
        margin-left: 0;
        margin-right: 0;
        align-self: center;
    }

    .header-actions {
        width: 100%;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        order: 3;
    }

    .header-actions .lang-switcher {
        display: none;
    }

    .main-nav .lang-switcher {
        display: inline-flex;
        margin: 6px 0 4px;
    }

    .header-search {
        width: 100%;
        min-width: 0;
        margin-inline-start: 0;
        padding: 0.2rem 0.4rem;
    }

    .header-actions .header-search {
        display: none;
    }

    .main-nav .header-search {
        display: flex;
        margin: 8px 0 4px;
    }

    .main-nav .social-links {
        display: flex;
        gap: 0.4rem;
        justify-content: center;
        padding: 6px 0 10px;
    }

    .main-nav .social-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-search .search-input {
        font-size: 0.78rem;
    }

    .lang-switcher {
        order: 1;
    }

    .header-search {
        order: 2;
    }

    .login-btn,
    .header-user {
        order: 3;
    }

    .nav-toggle {
        order: 1;
        align-self: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
    }

    .main-nav.open {
        max-height: 400px;
        transform: scaleY(1);
        opacity: 1;
        transition: max-height 0.35s ease, transform 0.35s ease, opacity 0.2s ease;
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem 0.75rem;
    }

    .main-nav .nav-item {
        width: 100%;
    }

    .main-nav .nav-link {
        width: 100%;
        padding: 0.6rem 0.9rem;
    }

    .main-nav .login-btn {
        display: inline-flex;
        width: auto;
        margin: 0.5rem 0.75rem 0.75rem auto;
        order: 999;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slider-container {
        flex-direction: column-reverse;
    }
    
    .thumbnail-nav {
        width: 100%;
        flex-direction: row;
        padding: 1rem;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .thumbnail {
        min-width: 80px;
    }
    
    .slide-content {
        right: 5%;
        left: 5%;
        max-width: 90%;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-text {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .articles-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }

    .articles-featured-layout {
        grid-template-columns: 1fr;
    }

    .article-featured__image {
        height: 240px;
    }

    .article-list-item {
        grid-template-columns: 1fr;
    }

    .article-list-item__thumb {
        width: 100%;
        height: 180px;
    }

    .article-card.list-item,
    .book-card.list-item {
        grid-template-columns: 1fr;
    }

    .article-card.list-item .article-image,
    .book-card.list-item .book-image {
        height: 200px;
    }
    
    .video-slide {
        min-width: calc(50% - 1rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }

    .header-user-avatar {
        width: 32px;
        height: 32px;
    }

    .login-btn {
        padding: 2px 6px;
        font-size: 0.62rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .video-slide {
        min-width: 100%;
    }
    
    .video-slider-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 1200px) {
    .books-eight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .books-eight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .books-grid.books-grid-eight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .books-grid.books-grid-eight {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.book-card {
    animation: fadeIn 0.8s ease-out both;
}

.article-card:nth-child(1),
.book-card:nth-child(1) {
    animation-delay: 0.1s;
}

.article-card:nth-child(2),
.book-card:nth-child(2) {
    animation-delay: 0.2s;
}

.article-card:nth-child(3),
.book-card:nth-child(3) {
    animation-delay: 0.3s;
}

.article-card:nth-child(4),
.book-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-gold);
    color: var(--white);
}

/* ========================================
   PAGE HEADER (for internal pages)
======================================== */

.page-header {
    padding: var(--spacing-lg) 0;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--white);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CONTENT SECTION (for internal pages)
======================================== */

.content-section {
    padding: var(--spacing-xl) 0;
    min-height: 400px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.content-wrapper p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-light);
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.page-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.page-card__title {
    font-weight: 700;
    color: var(--primary-blue);
}

.page-card__meta {
    font-size: 12px;
    color: #64748b;
}

.page-card__desc {
    font-size: 13px;
    color: #7c8db0;
    min-height: 18px;
}

.page-card__cta {
    margin-top: auto;
    font-size: 12px;
    color: #2563eb;
}

.page-design-b .content-wrapper {
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.page-design-b .content-wrapper h2 {
    color: #f8fafc;
}

.page-design-b .content-wrapper p {
    color: #cbd5f5;
}

.page-design-b .articles-section {
    background: #f1f5f9;
}

/* ========================================
   LOGIN PAGE
======================================== */

.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warm);
    padding: 3rem 0;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), #1a5490);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(13, 59, 102, 0.3);
}

.login-logo .logo-svg {
    width: 60px;
    height: 60px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-label svg {
    color: var(--primary-gold);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.forgot-link {
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-gold);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 59, 102, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(-3px);
}

.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.login-footer p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   RESPONSIVE - LOGIN & PAGES
======================================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        padding: 2rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}


/* ================================
   MAP CONTROLS + STATS (Dynamic)
================================ */
.map-controls{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:16px;
  margin-bottom:12px;
}
.map-control{
  flex:1;
  min-width:220px;
}
.map-control label{
  display:block;
  font-size:14px;
  color:#ffffffcc;
  margin-bottom:6px;
}
.map-control select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.06);
  color:#fff;
  outline:none;
}
.map-control select option{
  background:#0d3b66;
  color:#fff;
}
.map-control select option:disabled{
  color:#d1d5db;
}
.map-control select:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

.map-stats-box{
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(0,0,0,0.22);
}
.map-stats-title{
  font-weight:700;
  margin-bottom:10px;
  color:#fff;
}
.map-stats-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.map-stat{
  flex:1;
  min-width:180px;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
}
.map-stat-label{
  font-size:12px;
  opacity:0.8;
  margin-bottom:6px;
  color:#fff;
}
.map-stat-value{
  font-size:22px;
  font-weight:800;
  color:#fff;
}
.map-stats-note{
  font-size:14px;
  opacity:0.9;
  line-height:1.7;
  color:#fff;
}
    .header-top .social-links {
        display: none;
    }
