/* ============================================
   Root Variables
   ============================================ */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #374151;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #111827;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.35rem;
    margin-bottom: 0.625rem;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.6;
    color: var(--gray-600);
}

a {
    transition: all 0.3s ease;
}

/* ============================================
   Main Navigation Styles
   ============================================ */
.top-navbar {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
    .top-navbar.scrolled {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1030;
        animation: slideDown 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .top-navbar .navbar-brand {
        padding: 0;
        --bs-navbar-brand-font-size: 1rem;
    }

    .top-navbar .nav-link {
        color: #4a5568;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .top-navbar .nav-link:hover {
            color: #667eea;
        }
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    max-height: 450px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
    cursor: pointer;
}

    .notification-item:hover {
        background: #f7fafc;
    }

    .notification-item.unread {
        background: #ebf4ff;
    }

        .notification-item.unread:hover {
            background: #e0f0ff;
        }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .notification-icon.submission {
        background: #dbeafe;
        color: #3b82f6;
    }

    .notification-icon.review {
        background: #dcfce7;
        color: #10b981;
    }

    .notification-icon.decision {
        background: #fef3c7;
        color: #f59e0b;
    }

    .notification-icon.reminder {
        background: #fee2e2;
        color: #ef4444;
    }

    .notification-icon.certificate {
        background: #e9d5ff;
        color: #8b5cf6;
    }

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.7rem;
    color: #9ca3af;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
}

.notification-icon.discussion {
    background: #e0f2fe;
    color: #0284c7;
}

.notification-icon.system {
    background: #f3e8ff;
    color: #9333ea;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}


.user-menu {
    min-width: 220px;
    padding: 0.5rem 0;
}

    .user-menu .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

        .user-menu .dropdown-item:hover {
            background: #f7fafc;
            transform: translateX(3px);
        }

        .user-menu .dropdown-item i {
            width: 20px;
            text-align: center;
        }


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.main-navbar {
    background: linear-gradient(135deg, #2f3e5e 0%, #253657 100%);
    padding: 0;
    transition: all 0.3s ease;
}

    .main-navbar.scrolled {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1020;
        animation: slideDown 0.3s ease;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .main-navbar .navbar-nav .nav-link {
        color: #e2e8f0;
        font-weight: 500;
        padding: 1rem 1.25rem;
        transition: all 0.3s ease;
    }

        .main-navbar .navbar-nav .nav-link:hover {
            color: white;
            background: rgba(255,255,255,0.1);
        }

    .main-navbar .submit {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 1rem 1.25rem;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-left: auto;
        white-space: nowrap;
    }

        .main-navbar .submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(16,185,129,0.4);
        }

    .main-navbar .mega-menu {
        top: 100%;
        margin-top: 0;
    }

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2f3e5e;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1rem;
    color: #2f3e5e;
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation Links */
.main-navbar .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 1rem 1rem;
    transition: all 0.3s ease;
}

    .main-navbar .navbar-nav .nav-link:hover {
        color: #667eea;
        background: #f7fafc;
    }

/* Dropdown Arrow */
.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}
.dropdown-toggle::after {
    border:none;
}
/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    padding: 1.5rem;
    border: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

    .mega-menu.show {
        display: block;
        opacity: 1;
        animation: fadeInDown 0.3s ease;
    }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu .dropdown-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: #4a5568;
    transition: all 0.3s ease;
    border-radius: 8px;
}

    .mega-menu .dropdown-item:hover {
        background: #f7fafc;
        color: #667eea;
        transform: translateX(5px);
    }

.view-all-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .view-all-btn:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: transparent;
    }

.main-navbar .navbar-nav .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
    position: relative;
}

    .main-navbar .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: white;
    }


.main-navbar .dropdown-toggle.active{
    color: white;
    background: rgba(255,255,255,0.15);
}


@media (max-width: 992px) {
    .main-navbar .navbar-nav .nav-link.active::after {
        display: none;
    }
}
/* Search Box */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .search-input-group:focus-within {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
    }

.search-icon {
    padding: 0 0.75rem;
    color: #94a3b8;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    color: white;
    margin: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .search-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 8px rgba(102,126,234,0.3);
    }
/* Login/Register Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-link {
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .login-link:hover {
        color: #667eea;
        background: #f7fafc;
    }

.register-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 0.4rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .register-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102,126,234,0.4);
        color: white;
    }

/* Submit Manuscript Button */
.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 25px;
    padding: 0.4rem 1.2rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(16,185,129,0.4);
        color: white;
    }

/* Navbar Right Section */
.navbar-right {
    display: flex;
    align-items: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.15;
    }

/* ============================================
   Article Card Styles
   ============================================ */
.article-card-enhanced {
    transition: all 0.3s ease;
}

    .article-card-enhanced:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

.abstract-toggle {
    cursor: pointer;
    color: var(--primary);
    display: inline-block;
}

    .abstract-toggle:hover {
        text-decoration: underline;
    }

.figures-carousel .carousel-control-prev-icon,
.figures-carousel .carousel-control-next-icon {
    background-size: 50%;
}

.figure-count {
    font-size: 0.8rem;
    color: #6c757d;
}

.article-metrics span {
    display: inline-block;
}

.special-issue-info a {
    color: var(--primary);
}

/* ============================================
   Stats Section
   ============================================ */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        /*transform: translateY(-5px);*/
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* ============================================
   Journal Cards
   ============================================ */
.journal-card, .article-card {
    transition: all 0.3s ease;
}

    .journal-card:hover, .article-card:hover {
        /*transform: translateY(-5px);*/
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border-color: transparent;
        transform: translateY(-2px);
    }

/* ============================================
   Cards
   ============================================ */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

    .card:hover {
        /*transform: translateY(-5px);*/
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        /*transform: translateY(-8px);*/
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

/* ============================================
   Subject Navigation
   ============================================ */
.subject-nav .list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

    .subject-nav .list-group-item:hover {
        transform: translateX(5px);
        background-color: var(--primary);
        color: white;
    }

    .subject-nav .list-group-item.active {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border: none;
    }

/* ============================================
   Editorial Board Section
   ============================================ */
.editorial-slider-container {
    position: relative;
}

.editorial-slider .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

    .editorial-slider .row::-webkit-scrollbar {
        height: 6px;
    }

    .editorial-slider .row::-webkit-scrollbar-track {
        background: #e2e8f0;
        border-radius: 10px;
    }

    .editorial-slider .row::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 10px;
    }

.editorial-slider .col-md-4,
.editorial-slider .col-lg-3 {
    flex: 0 0 auto;
    width: 280px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .slider-nav.prev {
        left: -15px;
    }

    .slider-nav.next {
        right: -15px;
    }

    .slider-nav:hover {
        background: #667eea;
        color: white;
        border-color: transparent;
    }

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   Special Issues Section
   ============================================ */
.special-issue-card {
    transition: all 0.3s ease;
}

    .special-issue-card:hover {
        transform: translateY(-5px);
    }

.published-issue-card {
    transition: all 0.3s ease;
}

    .published-issue-card:hover {
        transform: translateY(-3px);
    }

/* ============================================
   Books Section
   ============================================ */
.book-card {
    transition: all 0.3s ease;
}

    .book-card:hover {
        transform: translateY(-3px);
    }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
}

    .footer h5, .footer h6 {
        color: #ffffff;
    }

    .footer p, .footer .text-muted {
        color: #9ca3af;
    }

    .footer a {
        color: #d1d5db;
        transition: all 0.3s ease;
    }

        .footer a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

    .footer .list-unstyled li a {
        color: #9ca3af;
    }

        .footer .list-unstyled li a:hover {
            color: var(--primary);
        }

    .footer hr {
        background-color: #374151;
    }

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        transform: translateY(-3px);
        color: var(--primary) !important;
    }

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   Scroll Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

/* ============================================
   Autocomplete Styles
   ============================================ */
.ui-autocomplete.search-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    z-index: 2000;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .search-result-item:hover {
        background: #f7fafc;
    }

.search-result-title {
    font-weight: 500;
    color: #2d3748;
}

/* ============================================
   Animations
   ============================================ */
.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: all 0.3s ease;
}

    .shadow-hover:hover {
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        transform: translateY(-5px);
    }

.object-fit-cover {
    object-fit: cover;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .search-input {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .top-navbar .container {
        flex-wrap: wrap;
    }

    .search-wrapper {
        order: 3;
        margin-top: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .auth-buttons {
        margin-left: auto;
    }

    .navbar-toggler {
        order: 2;
    }
    .main-navbar .navbar-nav {
        padding: 1rem 0;
    }

    .main-navbar .nav-link {
        padding: 0.5rem 0;
    }

    .main-navbar .btn-submit {
        display: inline-block;
        margin: 0.5rem 0;
        text-align: center;
    }

    .top-navbar .ms-auto {
        margin-top: 1rem;
    }
    .navbar-right {
        flex-wrap: wrap;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .search-wrapper {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-input {
        width: 100%;
    }

    .mega-menu {
        position: absolute;
        width: 90%;
        left: 5%;
        right: 5%;
    }

    .slider-nav {
        display: none;
    }

    .secondary-navbar .navbar-nav {
        padding: 1rem 0;
    }

    .secondary-navbar .nav-link {
        padding: 0.5rem 0;
    }

        .secondary-navbar .nav-link::after {
            display: none;
        }

    .btn-submit {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .stats-row h2 {
        font-size: 1.2rem;
    }

    .stats-row small {
        font-size: 0.7rem;
    }

    .article-card-enhanced .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .article-card-enhanced .text-end {
        text-align: left !important;
        margin-top: 8px;
    }
    .search-wrapper {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 0.75rem;
    }

    .search-input-group {
        width: 100%;
    }

    .search-btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .search-bar {
        display: none !important;
    }

    .navbar .d-flex {
        margin-top: 1rem;
    }
}
.lg-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.95);
    font-family: 'Montserrat', sans-serif;
}

.lg-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.lg-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.lg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.lg-counter {
    color: #fff;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

.lg-toolbar {
    display: flex;
    gap: 8px;
}

.lg-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .lg-icon:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
.lg-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lg-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#currentDisplayImage {
    max-width: 85vw;
    max-height: 65vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

    #currentDisplayImage:active {
        cursor: grabbing;
    }

.lg-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
}

    .lg-nav:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.lg-prev {
    left: 20px;
}

.lg-next {
    right: 20px;
}

.lg-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .lg-loader .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #f9a828;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lg-footer {
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
    transition: all 0.3s ease;
}

.lg-sub-html {
    margin: 12px 20% 20px;
    padding: 10px;
    text-align: center;
    background-color:#242323;
    opacity:0.9;
}

    .lg-sub-html h4 {
        color: #FFFFFF;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        line-height: 1.2;
    }

    .lg-sub-html p {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.825rem;
        line-height: 1rem;
        color: rgba(255, 255, 255, 0.7);
    }
.lg-thumb-control {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.9);
    min-height: 56px;
}

.lg-toggle-thumb {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-right: 15px;
}

    .lg-toggle-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .lg-toggle-thumb.active {
        background: #f9a828;
        color: #000;
    }

.lg-thumb-outer {
    flex: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 100px;
}

    .lg-thumb-outer.collapsed {
        max-height: 0;
    }
.lg-thumb {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

    .lg-thumb::-webkit-scrollbar {
        height: 4px;
    }

    .lg-thumb::-webkit-scrollbar-track {
        background: #333;
    }

    .lg-thumb::-webkit-scrollbar-thumb {
        background: #f9a828;
        border-radius: 4px;
    }

.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s;
    overflow: hidden;
    background: #2a2a2a;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumb-item:hover {
        transform: scale(1.05);
        border-color: #f9a828;
    }

    .thumb-item.active {
        border-color: #f9a828;
        box-shadow: 0 0 8px rgba(249, 168, 40, 0.5);
    }

#autoPlayBtn.playing {
    background: #f9a828;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@media only screen and (max-width: 1024px) {
    .lg-sub-html {
        padding: 12px 15% 15px;
    }

        .lg-sub-html h4 {
            font-size: 1.6rem;
        }

        .lg-sub-html p {
            font-size: 1.2rem;
            line-height: 2rem;
        }
}

@media only screen and (max-width: 768px) {
    .lg-sub-html {
        padding: 12px 40px 15px;
    }

        .lg-sub-html h4 {
            font-size: 1.4rem;
        }

        .lg-sub-html p {
            font-size: 1.1rem;
            line-height: 1.8rem;
        }

    .thumb-item {
        width: 60px;
        height: 60px;
    }

    .lg-nav {
        width: 40px;
        height: 60px;
        font-size: 18px;
    }

    .lg-nav {
        left: 10px;
        right: 10px;
    }
    .lg-toggle-thumb {
        width: 36px;
        height: 36px;
    }
}
/* ============================================
   Print Styles
   ============================================ */
@media print {
    .top-bar, .navbar, .search-bar, .footer, .scroll-top, .cookie-consent,
    .share-buttons, .btn, .social-links, .newsletter {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
