/*
 * Research Access E-Journals - Main Stylesheet
 * Modern, Clean & Professional Design
 */

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

/* ============ CSS Variables ============ */
:root {
    /* Professional Academic Colors - Clean Blue Theme */
    --primary-color: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #3385D6;
    --secondary-color: #003C71;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============ Banner Carousel - All Screens ============ */
#bannerCarousel {
    width: 100%;
    overflow: hidden;
}

#bannerCarousel .carousel-inner {
    width: 100%;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #0066CC 0%, #003C71 100%);
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .banner-img {
        max-height: 500px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .banner-img {
        max-height: 450px;
    }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .banner-img {
        max-height: 400px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .banner-img {
        max-height: 350px;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .banner-img {
        max-height: 250px;
        object-fit: cover;
        object-position: center;
    }
}

/* Small Mobile (below 576px) */
@media (max-width: 575px) {
    .banner-img {
        max-height: 200px;
    }
}

/* ============ Utility Classes ============ */
.bg-primary-soft {
    background-color: rgba(79, 70, 229, 0.1) !important;
}
.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
}
.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1) !important;
}
.bg-info-soft {
    background-color: rgba(6, 182, 212, 0.1) !important;
}
.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* ============ Header Styles ============ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* ============ Navigation ============ */
.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%) !important;
}

.navbar-dark .nav-link {
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 2px;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

/* ============ Hero Section ============ */
.hero-section {
    color: white;
    position: relative;
    overflow: hidden;
}

/* Hero title typing animation - word by word */
.hero-section .hero-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
}

.hero-section .typing-word {
    opacity: 0;
    animation: typeWord 0.6s ease-out forwards;
    display: inline-block;
}

@keyframes typeWord {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Hero subtitle and buttons animation */
.hero-section .hero-subtitle {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.hero-section .hero-buttons {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
}

.hero-section .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
}

/* Hero Section Responsive */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .hero-section .hero-left {
        flex: 1 1 auto !important;
        padding: 2rem !important;
    }
    .hero-section .hero-right {
        min-height: 250px !important;
        flex: 0 0 250px !important;
    }
    .hero-section .hero-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section .hero-left {
        padding: 1.5rem !important;
    }
    .hero-section .hero-right {
        min-height: 200px !important;
        flex: 0 0 200px !important;
    }
    .hero-section .hero-title {
        font-size: 1.5rem !important;
    }
    .hero-section .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ============ Stats Cards ============ */
.stats-section {
    margin-top: 2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .icon {
    width: 45px;
    height: 45px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.stat-card .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-card .label {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Smaller stat cards */
.stat-card-sm {
    padding: 1.25rem 0.75rem;
}

.stat-card-sm .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.stat-card-sm .number {
    font-size: 1.25rem;
}

.stat-card-sm .label {
    font-size: 0.7rem;
}

.stat-card-sm:hover {
    transform: translateY(-2px);
}

/* ============ Cards - General ============ */
.hover-card {
    transition: var(--transition);
}

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

/* ============ Simple Package Cards ============ */
.package-card-simple {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2rem 1.25rem;
    text-align: center;
    position: relative;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

.package-card-simple:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    transform: translateY(-8px);
    border-color: #0066CC;
}

.package-card-simple.subscribed {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.package-card-simple.subscribed:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-color: #059669;
}

.package-badge-simple {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.package-badge-simple.locked {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.package-icon-simple {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #0066CC;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.package-card-simple:hover .package-icon-simple {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.2);
}

.package-title-simple {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-count-simple {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.package-label-simple {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.package-card-simple .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.package-card-simple .btn-dark {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.package-card-simple .btn-dark:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* ============ Subject Cards ============ */
.subject-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.subject-card .icon,
.subject-icon-lg {
    width: 70px;
    height: 70px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #6b7280;
}

.subject-card .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* ============ Simple Subject Cards ============ */
.subject-card-simple {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    height: 100%;
}

.subject-card-simple:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
    transform: translateY(-5px);
    border-color: #0066CC;
}

.subject-card-simple.subscribed {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.subject-card-simple.subscribed:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    border-color: #059669;
}

.subject-badge-simple {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.subject-badge-simple.locked {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
}

.subject-icon-simple {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #0066CC;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.subject-card-simple:hover .subject-icon-simple {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.subject-name-simple {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-count-simple {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Journal Cards ============ */
.journal-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.journal-card .card-img-top {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.journal-card .card-body {
    padding: 1.25rem;
}

.journal-card .journal-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.journal-card .journal-title a {
    color: inherit;
}

.journal-card .journal-title a:hover {
    color: var(--primary-color);
}

.journal-card .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 6px;
}

/* ============ Article Cards ============ */
.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    border-left: 4px solid #9ca3af;
}

.article-card:hover {
    box-shadow: var(--box-shadow-lg);
    border-left-color: #6b7280;
}

.article-card .article-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card .article-title a {
    color: inherit;
}

.article-card .article-title a:hover {
    color: var(--primary-color);
}

.article-card .article-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ============ Sidebar Filters ============ */
.filter-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.filter-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-list a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-list a:hover {
    color: var(--primary-color);
}

.filter-list .count {
    background: var(--light-bg);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ============ Pagination ============ */
.pagination {
    justify-content: center;
    margin-top: 2rem;
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 8px;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    font-weight: 500;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

/* ============ Badges ============ */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

/* ============ Buttons ============ */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============ Footer ============ */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.footer h5, .footer h6 {
    font-weight: 700;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.footer-links a i {
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

/* Company Info in Footer */
.company-info li {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.company-info li i {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
}

.company-info a {
    transition: var(--transition);
}

.company-info a:hover {
    color: white !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============ Publisher/Country/Language Icons ============ */
.publisher-icon,
.country-flag,
.language-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 12px;
}

/* ============ Form Controls ============ */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============ Responsive ============ */

/* Large devices (desktops, 992px and below) */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    /* Header adjustments */
    .main-header .row {
        flex-direction: column;
        text-align: center;
    }

    .main-header .col-md-4,
    .main-header .col-md-8 {
        width: 100%;
        max-width: 100%;
    }

    .main-header .col-md-4 {
        margin-bottom: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Navigation adjustments */
    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-dark .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .btn {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Medium devices (tablets, 768px and below) */
@media (max-width: 768px) {
    /* Top bar adjustments */
    .top-bar .row {
        flex-direction: column;
        text-align: center !important;
    }

    .top-bar .col-md-6 {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .top-bar .col-md-6.text-end {
        text-align: center !important;
    }

    .top-bar small {
        font-size: 0.8rem;
    }

    .top-bar a {
        font-size: 0.85rem;
        margin: 0 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: inline-block;
    }

    .stat-card .number {
        font-size: 1.8rem;
    }

    .stats-section {
        margin-top: 0;
        padding-top: 2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .stat-card .icon {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }

    /* Search form adjustments */
    .search-form .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .search-form .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Subject cards */
    .subject-card {
        padding: 1rem;
    }

    .subject-card .icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .subject-card h6 {
        font-size: 0.8rem;
    }

    .subject-card .count {
        font-size: 1.2rem;
    }

    /* Package cards */
    .package-card .card-body {
        padding: 2rem 1.5rem;
    }

    .package-card .display-6 {
        font-size: 1.75rem;
    }

    /* Article cards */
    .article-card {
        padding: 1rem;
    }

    .article-card .article-title {
        font-size: 1rem;
    }

    /* Footer adjustments */
    .footer {
        text-align: center;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-md-6 {
        text-align: center;
    }

    .footer-links {
        display: inline-block;
        text-align: left;
    }

    .footer .social-links {
        justify-content: center;
        display: flex;
    }

    .footer .row.align-items-center .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    /* Journal cards */
    .journal-card .card-img-top {
        height: 120px;
    }

    .journal-card .journal-title {
        font-size: 0.85rem;
        min-height: 2.4em;
    }

    /* Filter cards (sidebar) */
    .filter-card {
        margin-bottom: 1rem;
    }

    /* CTA Section */
    section.bg-primary .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    section.bg-primary .btn.me-2 {
        margin-right: 0 !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Small devices (phones, 576px and below) */
@media (max-width: 576px) {
    /* Top bar - compact */
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-bar .col-md-6:first-child {
        display: none;
    }

    .top-bar a {
        font-size: 0.8rem;
    }

    /* Header */
    .main-header .py-3 {
        padding: 0.75rem 0 !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.1rem;
    }

    /* Search form */
    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .form-control {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .search-form .btn {
        border-radius: 8px !important;
        width: 100%;
    }

    /* Hero section */
    .hero-section-light {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-section-light h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-section-light .lead {
        font-size: 0.95rem;
    }

    .hero-section-light .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-section-light .btn.me-2 {
        margin-right: 0 !important;
    }

    .hero-banner-img {
        max-height: 180px !important;
    }

    /* Stats section - 2 columns on mobile */
    .stats-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .stat-card .number {
        font-size: 1.5rem;
    }

    .stat-card .label {
        font-size: 0.8rem;
    }

    /* Section headings */
    section h3 {
        font-size: 1.25rem;
    }

    section .lead {
        font-size: 0.9rem;
    }

    /* Subject cards - 2 columns minimum */
    .col-lg-2.col-md-3.col-sm-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .subject-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .subject-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .subject-card h6 {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .subject-card .count {
        font-size: 1rem;
    }

    /* Package cards */
    .package-card .card-body {
        padding: 1.5rem 1rem;
    }

    .package-card .rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .package-card .fa-2x {
        font-size: 1.25rem !important;
    }

    .package-card h4 {
        font-size: 1.1rem;
    }

    .package-card .display-6 {
        font-size: 1.5rem;
    }

    /* Navigation */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }

    .navbar-collapse {
        padding: 0.5rem 0;
    }

    .navbar-dark .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Why Choose Us section */
    section.py-5 .col-md-4 {
        margin-bottom: 2rem;
    }

    section.py-5 .col-md-4:last-child {
        margin-bottom: 0;
    }

    /* Filter sidebar */
    .filter-card h5 {
        font-size: 0.9rem;
    }

    .filter-list a {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer h5, .footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

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

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer .row.align-items-center p {
        font-size: 0.8rem;
    }

    /* Pagination */
    .pagination .page-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Journal cards */
    .journal-card .card-body {
        padding: 1rem;
    }

    /* Article cards */
    .article-card .article-meta {
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-title {
        font-size: 1rem;
    }

    .modal-body .form-label {
        font-size: 0.9rem;
    }

    .modal-footer .btn {
        font-size: 0.85rem;
    }
}

/* Extra small devices (very small phones, 400px and below) */
@media (max-width: 400px) {
    .logo {
        font-size: 1rem;
    }

    .hero-section-light h1 {
        font-size: 1.25rem;
    }

    .stat-card .number {
        font-size: 1.25rem;
    }

    .stat-card .label {
        font-size: 0.7rem;
    }

    .subject-card h6 {
        font-size: 0.65rem;
    }

    .package-card h4 {
        font-size: 1rem;
    }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============ Hero Section Light ============ */
.hero-section-light {
    min-height: 450px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-light::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section-light::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section-light h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section-light .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #64748b;
}

.hero-section-light .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hero-section-light .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.hero-section-light .btn-outline-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    border-width: 2px;
}

.hero-banner-img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-banner-img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .hero-section-light {
        padding: 3rem 0;
    }
    .hero-section-light h1 {
        font-size: 2rem;
    }
    .hero-banner-img {
        max-height: 300px !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-light {
        text-align: center;
    }
    .hero-section-light .col-lg-6:first-child {
        order: 2;
    }
    .hero-section-light .col-lg-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero-banner-img {
        max-height: 250px !important;
    }
}

@media (max-width: 576px) {
    .hero-section-light h1 {
        font-size: 1.5rem;
    }
    .hero-banner-img {
        max-height: 180px !important;
    }
}

/* ============ Hero Image Slider ============ */
.hero-slider {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slider .hero-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slider .hero-slide.active {
    position: relative;
    opacity: 1;
}

/* ============ Additional Responsive Utilities ============ */

/* Mobile-first text utilities */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }

    .d-block-mobile {
        display: block !important;
    }

    .w-100-mobile {
        width: 100% !important;
    }

    .mb-3-mobile {
        margin-bottom: 1rem !important;
    }

    /* Hide on mobile */
    .d-none-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .text-center-xs {
        text-align: center !important;
    }

    .d-block-xs {
        display: block !important;
    }

    .w-100-xs {
        width: 100% !important;
    }

    /* Hide on extra small */
    .d-none-xs {
        display: none !important;
    }
}

/* Overflow handling */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .form-control, .form-select {
        min-height: 44px;
    }
}

/* Safe area padding for notched devices */
@supports (padding: max(0px)) {
    .main-content {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

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

/* Better tap highlighting */
@media (max-width: 768px) {
    a, button, .btn {
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.2);
    }
}

/* Print styles */
@media print {
    .top-bar,
    .main-header,
    .navbar,
    .footer,
    .btn-container {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ============ Journals Page Responsive ============ */

/* Sidebar on mobile */
@media (max-width: 992px) {
    .col-lg-3 .filter-card:first-child {
        margin-bottom: 1rem;
    }

    /* Collapsible sidebar filters on tablet/mobile */
    .col-lg-3 .filter-card:not(:first-child) {
        margin-bottom: 0.75rem;
    }

    .col-lg-3 .filter-card h5 {
        cursor: pointer;
        margin-bottom: 0.75rem;
    }

    /* Journal cards on tablet - full width */
    .col-lg-6.col-lg-9 .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Results header */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Filter cards compact on mobile */
    .filter-card {
        padding: 1rem;
    }

    .filter-card h5 {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

    .filter-list li {
        padding: 0.5rem 0;
    }

    .filter-list a {
        font-size: 0.85rem;
    }

    .filter-list .count {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Indexing filter buttons */
    .d-flex.flex-wrap.gap-2 .btn-sm {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .d-flex.flex-wrap.gap-2 .badge {
        font-size: 0.65rem;
    }

    /* Journal card on mobile */
    .card .card-body.p-4 {
        padding: 1rem !important;
    }

    .card .card-title {
        font-size: 0.9rem;
    }

    .card .table-sm td {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }

    .card .table-sm .text-muted {
        width: 80px !important;
    }

    /* Access info alert */
    .alert.alert-info {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* Pagination mobile */
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Stack sidebar above content */
    .container.py-5 .row > .col-lg-3 {
        margin-bottom: 1.5rem;
    }

    /* Journal grid - 1 column */
    .row.g-4 > .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Smaller badges */
    .badge.bg-primary,
    .badge.bg-success {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }
}

/* ============ Tables Responsive ============ */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }

    .table th, .table td {
        padding: 0.5rem;
    }
}

/* ============ Cards Responsive Grid Fix ============ */
@media (max-width: 576px) {
    /* 2 columns for package cards on mobile */
    .row.g-4 > .col-lg-4.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============ Article/Search Pages Responsive ============ */
@media (max-width: 768px) {
    .article-card {
        border-left-width: 3px;
    }

    .article-card .article-title {
        font-size: 0.95rem;
    }

    .article-card .article-meta {
        font-size: 0.75rem;
    }

    .article-card .badge {
        font-size: 0.65rem;
    }
}

/* ============ Pricing Page Responsive ============ */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-card .display-4 {
        font-size: 2rem;
    }
}

/* ============ Contact/Forms Responsive ============ */
@media (max-width: 576px) {
    .form-control, .form-select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* ============ My Account Page Responsive ============ */
@media (max-width: 768px) {
    .card-header h5 {
        font-size: 1rem;
    }

    .list-group-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .list-group-item .badge {
        font-size: 0.7rem;
    }
}

/* ============ Hero Section Slide Animations ============ */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section - animations defined above in main hero section */

/* Animation classes for manual use */
.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Delay classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================================================
   ELSEVIER-INSPIRED PROFESSIONAL THEME OVERRIDES
   ============================================================ */

/* Top Bar - Blue Gradient with White Text */
.top-bar,
div.top-bar {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%) !important;
    border-bottom: none !important;
    padding: 12px 0 !important;
}

.top-bar a,
.top-bar .nav-link,
.top-bar span,
.top-bar p {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.top-bar a:hover {
    color: #ffffff !important;
    opacity: 0.85;
}

.top-bar i,
.top-bar .fas,
.top-bar .far {
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* Navbar - Blue Gradient Professional */
.navbar-dark,
nav.navbar-dark,
.navbar {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%) !important;
}

.navbar .nav-link,
.navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.navbar .nav-link:hover,
.navbar-nav .nav-link:hover {
    color: #0066CC !important;
}

/* Primary Buttons - Blue */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background: #0066CC !important;
    background-color: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: #004C99 !important;
    background-color: #004C99 !important;
    border-color: #004C99 !important;
}

/* Outline Buttons */
.btn-outline-light,
.btn-outline-primary {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
    background: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
}

/* Stats Numbers - Blue */
.stat-number,
h2.stat-number,
.stats-section h2 {
    color: #0066CC !important;
    font-weight: 700 !important;
}

/* Links - Blue */
a {
    color: #0066CC !important;
}

a:hover {
    color: #003C71 !important;
}

/* Cards */
.card-header {
    background: #F8F9FA !important;
    border-bottom: 2px solid #0066CC !important;
    color: #003C71 !important;
}

/* Footer - Deep Blue */
footer,
footer.footer {
    background: #003C71 !important;
    color: #FFFFFF !important;
}

footer a {
    color: #FFFFFF !important;
}

footer a:hover {
    color: #0066CC !important;
}

footer h5 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* Headings - Deep Blue & Bold */
h1, h2, h3, h4, h5, h6 {
    color: #003C71 !important;
    font-weight: 700 !important;
}

.hero-section h1,
.hero-section p {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* Site Title */
.navbar-brand,
h1.site-title,
.site-title {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 24px !important;
}

/* Form Focus - Blue */
.form-control:focus {
    border-color: #0066CC !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25) !important;
}

/* ============================================================
   CHANGE ALL DARK BUTTONS AND BACKGROUNDS TO THEME COLORS
   ============================================================ */

/* Dark Buttons - Change to Blue Primary */
.btn-dark,
button.btn-dark,
a.btn-dark {
    background: #0066CC !important;
    background-color: #0066CC !important;
    border-color: #0066CC !important;
    color: #FFFFFF !important;
}

.btn-dark:hover,
button.btn-dark:hover,
a.btn-dark:hover {
    background: #004C99 !important;
    background-color: #004C99 !important;
    border-color: #004C99 !important;
    color: #FFFFFF !important;
}

.btn-dark:active,
.btn-dark:focus {
    background: #003D7A !important;
    background-color: #003D7A !important;
    border-color: #003D7A !important;
}

/* Outline Dark Buttons */
.btn-outline-dark {
    color: #0066CC !important;
    border-color: #0066CC !important;
    background: transparent !important;
}

.btn-outline-dark:hover {
    color: #FFFFFF !important;
    background: #0066CC !important;
    border-color: #0066CC !important;
}

/* Dark Badges - Change to Deep Blue */
.badge.bg-dark,
span.badge.bg-dark {
    background: #003C71 !important;
    background-color: #003C71 !important;
    color: #FFFFFF !important;
}

/* Modal Headers - Deep Blue */
.modal-header.bg-dark {
    background: #003C71 !important;
    background-color: #003C71 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #0066CC !important;
}

/* Search Button - Blue */
button[type="submit"].btn,
.btn.btn-dark.w-100 {
    background: #0066CC !important;
    background-color: #0066CC !important;
    border-color: #0066CC !important;
}

/* Active State for Filter Buttons */
.btn-dark.active,
.btn-dark:not(:disabled):not(.disabled).active {
    background: #003C71 !important;
    background-color: #003C71 !important;
    border-color: #003C71 !important;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE DESIGN - ALL PAGES & SECTIONS
   ============================================================ */

/* Homepage About Us Section Responsive */
@media (max-width: 991px) {
    section.py-5 .row.align-items-center.g-5 {
        flex-direction: column-reverse !important;
    }
    section.py-5 .row.align-items-center .col-lg-5,
    section.py-5 .row.align-items-center .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    section.py-5 .row.align-items-center .col-lg-5 img {
        max-height: 280px !important;
        margin-bottom: 2rem !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 h3 {
        font-size: 1.3rem !important;
        text-align: center;
    }
    section.py-5 .row.align-items-center .col-lg-7 p {
        font-size: 0.95rem !important;
        text-align: center;
    }
    section.py-5 .row.align-items-center .col-lg-7 .row.g-3 {
        justify-content: center;
    }
    section.py-5 .row.align-items-center .col-lg-7 .mt-4 {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    section.py-5 .row.align-items-center .col-lg-5 img {
        max-height: 220px !important;
        height: auto !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 h3 {
        font-size: 1.2rem !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 .d-flex span {
        font-size: 0.8rem !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 div[style*="width: 40px"] {
        width: 35px !important;
        height: 35px !important;
        margin-right: 10px !important;
    }
    section.py-5 h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575px) {
    section.py-5 {
        padding: 2rem 0 !important;
    }
    section.py-5 .row.align-items-center .col-lg-5 {
        padding: 0 1rem;
    }
    section.py-5 .row.align-items-center .col-lg-5 img {
        max-height: 180px !important;
        border-radius: 15px !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 h3 {
        font-size: 1.1rem !important;
    }
    section.py-5 .row.align-items-center .col-lg-7 .btn {
        width: 100% !important;
        display: block !important;
    }
}

/* Homepage Subjects Section Responsive */
@media (max-width: 767px) {
    .subject-card-simple {
        padding: 1rem 0.75rem !important;
    }
    .subject-icon-simple {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0.75rem !important;
    }
    .subject-icon-simple i {
        font-size: 1rem !important;
    }
    .subject-name-simple {
        font-size: 0.75rem !important;
        min-height: 2rem !important;
    }
    .subject-count-simple {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575px) {
    .col-lg-2.col-md-3.col-sm-4.col-6 .subject-card-simple {
        padding: 0.8rem 0.5rem !important;
    }
    .subject-icon-simple {
        width: 35px !important;
        height: 35px !important;
    }
    .subject-name-simple {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
    .subject-count-simple {
        font-size: 1rem !important;
    }
    .subject-badge-simple {
        width: 20px !important;
        height: 20px !important;
        font-size: 8px !important;
    }
}

/* Homepage Package Cards Responsive */
@media (max-width: 991px) {
    .package-card-simple {
        padding: 1.5rem 1rem !important;
    }
    .package-icon-simple {
        width: 55px !important;
        height: 55px !important;
    }
    .package-title-simple {
        font-size: 0.9rem !important;
    }
    .package-count-simple {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 767px) {
    .package-card-simple {
        padding: 1.25rem 0.75rem !important;
    }
    .package-icon-simple {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 1rem !important;
    }
    .package-icon-simple i {
        font-size: 1.2rem !important;
    }
    .package-title-simple {
        font-size: 0.85rem !important;
        min-height: 2.2rem !important;
    }
    .package-count-simple {
        font-size: 1.5rem !important;
    }
    .package-label-simple {
        font-size: 0.7rem !important;
    }
    .package-card-simple .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
    }
}

@media (max-width: 575px) {
    .row.g-4 > [class*="col-lg-4"].col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .package-card-simple {
        padding: 1rem 0.5rem !important;
    }
    .package-icon-simple {
        width: 45px !important;
        height: 45px !important;
    }
    .package-title-simple {
        font-size: 0.75rem !important;
    }
    .package-count-simple {
        font-size: 1.25rem !important;
    }
}

/* Countries/Languages Page Cards Responsive */
@media (max-width: 767px) {
    .col-lg-4.col-md-6 .card .card-body.d-flex {
        padding: 0.75rem !important;
    }
    .col-lg-4.col-md-6 .card .card-body .me-3 {
        width: 35px !important;
        height: 35px !important;
    }
    .col-lg-4.col-md-6 .card .card-body h6 {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 575px) {
    .row.g-3 > .col-lg-4.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Indexing Page Cards Responsive */
@media (max-width: 767px) {
    .col-lg-4.col-md-6 .card.text-center .card-body.py-4 {
        padding: 1.5rem 1rem !important;
    }
    .col-lg-4.col-md-6 .card.text-center div[style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
    .col-lg-4.col-md-6 .card.text-center h5 {
        font-size: 1rem !important;
    }
    .col-lg-4.col-md-6 .card.text-center .h5 {
        font-size: 1rem !important;
    }
}

/* Articles Page Responsive */
@media (max-width: 991px) {
    .container.py-5 > .row > .col-lg-3 {
        order: 2;
        margin-top: 2rem;
    }
    .container.py-5 > .row > .col-lg-9 {
        order: 1;
    }
}

@media (max-width: 767px) {
    .col-lg-6 .card.h-100 .card-body.p-4 {
        padding: 1rem !important;
    }
    .col-lg-6 .card.h-100 .table-sm td {
        font-size: 0.8rem !important;
        padding: 0.2rem 0 !important;
    }
    .col-lg-6 .card.h-100 h6 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 575px) {
    .row.g-4 > .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Footer Responsive */
@media (max-width: 991px) {
    footer .container .row > [class*="col-lg"] {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    footer .company-info {
        display: inline-block;
        text-align: left;
    }
    footer ul.footer-links {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 2rem 0 1rem !important;
    }
    footer h5 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    footer .company-info li,
    footer ul.footer-links li {
        font-size: 0.85rem !important;
    }
    footer .social-links a {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 575px) {
    footer .container .row > [class*="col"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Global Container Responsive */
@media (max-width: 767px) {
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .g-4 {
        --bs-gutter-x: 0.75rem !important;
        --bs-gutter-y: 0.75rem !important;
    }
    .g-5 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
}

/* Text Responsive */
@media (max-width: 767px) {
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    h4 {
        font-size: 1.1rem !important;
    }
    h5 {
        font-size: 1rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 575px) {
    h2 {
        font-size: 1.3rem !important;
    }
    h3 {
        font-size: 1.1rem !important;
    }
    h4 {
        font-size: 1rem !important;
    }
}

/* Button Responsive */
@media (max-width: 767px) {
    .btn-lg {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .btn-sm {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

/* Cards Hover Effect - Disable on Touch */
@media (hover: none) and (pointer: coarse) {
    .hover-card:hover,
    .subject-card-simple:hover,
    .package-card-simple:hover,
    .stat-card:hover {
        transform: none !important;
    }
}

/* Fix for iOS Safari - 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Landscape Mode Phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
}

/* Prevent Horizontal Scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Force all images to be responsive */
img {
    max-width: 100%;
    height: auto;
}
