/* 
    Assignment And Paper - Premium Education Service
    Design System & Styles 
*/

/* Google Fonts moved to <link> in header.php for non-blocking load */

:root {
    --primary-color: #0A3D91;
    --primary-light: #1E5BBF;
    --secondary-color: #00A86B;
    --accent-color: #F4B400;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #475569;
    --white: #ffffff;
    --accent-light: #FFD700;

    /* Glass Tokens */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(10, 61, 145, 0.05);
    --glass-blur: blur(10px);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px rgba(10, 61, 145, 0.08);
    --shadow-hover: 0 20px 40px rgba(10, 61, 145, 0.12);
    --teal-dark: #00667C;
    --orange-accent: #FF6B00;

    /* Header layout */
    --topbar-height: 34px;
    --navbar-height: 66px;
    --header-total-height: calc(var(--topbar-height) + var(--navbar-height));
    --header-navy: #051c42;
    --header-navy-deep: #031228;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

p {
    color: var(--text-muted);
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #051c42;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-content {
    text-align: center;
    width: 160px;
}

.loader-logo {
    margin-bottom: 20px;
    animation: pulseLogo 1.5s ease-in-out infinite;
}

.loader-logo img {
    display: block;
    margin: 0 auto;
}

.loader-bar {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 40%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
    position: absolute;
    left: -40%;
    animation: slideProgress 1.2s ease-in-out infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideProgress {
    0% {
        left: -40%;
        width: 30%;
    }

    50% {
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}

/* ─── Site Header ─── */
.site-header {
    position: relative;
    z-index: 1060;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1061;
    height: var(--topbar-height);
    background: var(--header-navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--topbar-height);
}

.topbar__contacts,
.topbar__aside {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar__item i {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.topbar__item:hover {
    color: var(--white);
}

.topbar__item:hover i {
    color: rgba(255, 255, 255, 0.85);
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: 2px;
}

.topbar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.topbar__social a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.topbar__faq {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 400;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease;
}

.topbar__faq:hover {
    color: var(--white);
}

/* Navbar */
#mainNavbar.navbar.fixed-top {
    top: var(--topbar-height);
}

.navbar {
    padding: 0;
    min-height: var(--navbar-height);
    background: var(--header-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Desktop: logo | centered links | CTA */
.nav-shell {
    display: flex;
    align-items: center;
    min-height: var(--navbar-height);
    gap: 12px;
    position: relative;
}

@media (min-width: 992px) {
    .nav-shell {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 24px;
    }

    .navbar-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        align-items: center;
    }

    .nav-shell > .nav-cta {
        grid-column: 3;
        grid-row: 1;
    }

    .nav-shell__links {
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    margin: 0;
    flex-shrink: 0;
}

/* ─── Navbar Logo Image ─── */
.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* White/gold logo for dark navbar (default) */
.navbar-logo--white {
    display: block;
}

/* Original coloured logo for scrolled white navbar */
.navbar-logo--original {
    display: none;
}

.navbar.scrolled .navbar-logo--white {
    display: none;
}

.navbar.scrolled .navbar-logo--original {
    display: block;
}

.navbar.scrolled .navbar-logo {
    height: 42px;
}

.navbar-toggler {
    border: none;
    padding: 6px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.navbar.scrolled .navbar-toggler {
    color: var(--primary-color);
}

.nav-shell__links {
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 14px !important;
    margin: 0;
    border-radius: 4px;
    line-height: 1.3;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.07);
}

#mainNavbar:not(.scrolled) .nav-link.active {
    color: var(--white) !important;
    font-weight: 600;
    background: transparent;
}

#mainNavbar:not(.scrolled) .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.navbar.scrolled .nav-link {
    color: var(--text-muted) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(10, 61, 145, 0.05);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: rgba(10, 61, 145, 0.08);
}

.navbar.scrolled .nav-link.active::after {
    display: none;
}

/* Contact CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    background: var(--secondary-color);
    border: none;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: #008f5a;
    color: var(--white);
}

.nav-cta i {
    font-size: 1rem;
}

.btn-chat {
    background: var(--orange-accent);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    border: none;
    transition: var(--transition-smooth);
}

.btn-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 107, 0, 0.4);
    background: #e66000;
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    font-weight: 600;
    border: none;
    transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--white);
}

/* Header — tablet */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 54px;
    }

    .topbar__item span {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar__social-extra {
        display: none;
    }

    .navbar:not(.scrolled) {
        background: var(--header-navy) !important;
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: var(--header-navy);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 16px;
        margin-top: 8px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    }

    .navbar.scrolled .navbar-collapse {
        background: var(--white);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .nav-shell__links {
        width: 100%;
        margin-bottom: 0 !important;
    }

    .nav-link {
        text-align: center;
        padding: 10px 12px !important;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .nav-link + .nav-link,
    .nav-item + .nav-item .nav-link {
        margin-top: 2px;
    }

    #mainNavbar:not(.scrolled) .nav-link.active::after {
        display: none;
    }

    #mainNavbar:not(.scrolled) .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-color) !important;
    }

    .navbar.scrolled .nav-link {
        color: var(--text-dark) !important;
    }

    .navbar.scrolled .nav-link.active {
        background: rgba(10, 61, 145, 0.08);
        color: var(--primary-color) !important;
    }

    .nav-cta.d-lg-none {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        justify-content: center;
    }
}

/* Header — mobile */
@media (max-width: 575.98px) {
    :root {
        --topbar-height: 32px;
        --navbar-height: 52px;
    }

    .topbar__item--email {
        display: none;
    }

    .topbar__contacts {
        gap: 0;
    }

    .topbar__item span {
        max-width: 110px;
    }

    .topbar__social a:nth-child(n+4) {
        display: none;
    }

    .topbar__aside {
        gap: 8px;
    }
}

/* Hero Section */
.hero {
    padding: calc(var(--header-total-height) + 20px) 0 80px;
    /* Account for fixed topbar + navbar */
    background: linear-gradient(rgba(5, 28, 66, 0.7), rgba(5, 28, 66, 0.6)), url('hero_student_learning.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .hero {
        padding: 60px 0 60px;
        min-height: auto;
    }
}

/* Inner Page Hero */
.inner-hero {
    padding: calc(var(--header-total-height) + 50px) 0 80px;
    /* Adjusted for topbar + navbar */
    background: linear-gradient(rgba(5, 28, 66, 0.8), rgba(5, 28, 66, 0.7)), url('hero_student_learning.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    text-align: center;
    color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.7rem;
    }
}

.feature-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.breadcrumb-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: inline-flex;
    padding: 10px 25px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.hero-content {
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .hero-content {
        padding: 40px 20px;
        border-radius: 25px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
        border-radius: 25px;
    }
}

.hero-content h1 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        line-height: 1.3;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.05rem;
    /* Reduced from 1.15rem */
    margin-bottom: 2rem;
    /* Reduced from 2.5rem */
    color: #ffffff;
    font-weight: 400;
    max-width: 700px;
    /* Reduced from 750px */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Stats — Instant load animation (independent of scroll/AOS) */
@keyframes heroStatsIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats-instant {
    animation: heroStatsIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Hero Stats Strip */
.hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    flex: 1;
    min-width: 140px;
    font-size: 13px;
    justify-content: center;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .hero-stat-divider {
        display: none;
    }
}

.hero-stat-icon {
    width: 42px;
    /* Reduced from 52px */
    height: 42px;
    /* Reduced from 52px */
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00c97f 100%);
    border-radius: 10px;
    /* Reduced from 14px */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    /* Reduced from 1.3rem */
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 168, 107, 0.35);
    transition: var(--transition-smooth);
}

.hero-stat-item:hover .hero-stat-icon {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 10px 26px rgba(0, 168, 107, 0.5);
}

.hero-stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hero-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    /* Reduced from 1.9rem */
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.5px;
    /* Reduced from -1px */
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-stats-strip {
        gap: 16px;
        padding: 22px 18px;
    }

    .hero-stat-item {
        padding: 0 10px;
        min-width: 120px;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat-number {
        font-size: 1.55rem;
    }
}

@media (max-width: 576px) {
    .hero-stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px 15px;
        border-radius: 25px;
    }

    .hero-stat-item {
        padding: 15px 10px;
        flex-direction: column;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border-radius: 15px;
        min-width: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stat-info {
        align-items: center;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

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

/* Decorative Shapes */
.shape {
    position: absolute;
    z-index: 0;
    opacity: 0.4;
    filter: blur(40px);
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(10, 61, 145, 0.1);
    border-radius: 50%;
}

.shape-2 {
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(0, 168, 107, 0.08);
    border-radius: 50%;
}


.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn-primary-custom {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 28px;
    /* Reduced padding */
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.btn-primary-custom:hover {
    background: #008f5a;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 168, 107, 0.4);
    color: var(--white);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.btn-secondary-custom:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--white);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .badge {
    background: rgba(10, 61, 145, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: calc(1.8rem + 1vw);
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.7rem;
    }
}

/* Cards & Components */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    /* Reduced from 40px */
    border-radius: 20px;
    /* Reduced from 24px */
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--glass-shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px rgba(10, 61, 145, 0.1);
    border-color: rgba(10, 61, 145, 0.1);
}

.service-icon {
    width: 60px;
    /* Reduced from 75px */
    height: 60px;
    /* Reduced from 75px */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 15px;
    /* Reduced from 20px */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    /* Reduced from 25px */
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    color: var(--white);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(10, 61, 145, 0.2);
}

.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #041735 0%, var(--primary-color) 55%, #0d4a9e 100%);
    padding: 16px 0;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.stats-strip__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.stats-strip__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stats-strip__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.stats-strip__item:hover .stats-strip__icon {
    background: rgba(244, 180, 0, 0.12);
    border-color: rgba(244, 180, 0, 0.2);
}

.stats-strip__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
}

.stats-strip__number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stats-strip__label {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.stats-strip__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .stats-section {
        padding: 14px 0;
    }

    .stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }

    .stats-strip__divider {
        display: none;
    }

    .stats-strip__item {
        justify-content: flex-start;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stats-strip__number {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .stats-section {
        padding: 12px 0;
    }

    .stats-strip {
        gap: 8px;
    }

    .stats-strip__icon {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .stats-strip__number {
        font-size: 1.05rem;
    }

    .stats-strip__label {
        font-size: 0.62rem;
    }
}

/* How It Works */
.step-card {
    position: relative;
    padding: 40px 30px;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition-smooth);
    border-top: 4px solid var(--primary-color);
}

.step-number-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(10, 61, 145, 0.2);
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: #00a65a;
    /* AdminLTE Success Green */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 3;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 166, 90, 0.2);
}

.step-card:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 61, 145, 0.3);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 90px;
    left: 60%;
    width: 80%;
    height: 2px;
    border-top: 2px dashed #00a65a;
    opacity: 0.3;
    z-index: 1;
}

.col-md-4:last-child .step-card::after {
    display: none;
}

@media (max-width: 768px) {
    .step-card::after {
        display: none;
    }
}

/* Pricing */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    /* Reduced from 30px */
    padding: 40px 25px;
    /* Reduced from 50px 30px */
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--glass-shadow);
}

.pricing-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(10, 61, 145, 0.15);
}

.pricing-card.popular {
    background: var(--white);
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-15px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h4 {
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    /* Reduced from 3rem */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    /* Reduced from 30px */
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.pricing-features li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Contact Section */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-premium);
}

.form-control {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(10, 61, 145, 0.1);
    border-color: var(--primary-color);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ─── Footer Logo ─── */
.footer-brand {
    display: inline-block;
}

.footer-logo {
    height: 54px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.85;
}

/* Site Footer */
.site-footer {
    background: #051c42;
    color: var(--white);
    padding: 60px 0 25px;
    /* Reduced from 80px 0 30px */
}

.site-footer h5 {
    color: var(--white);
    margin-bottom: 25px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    word-break: break-word;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links a i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.social-icons a {
    width: 35px;
    /* Reduced from 40px */
    height: 35px;
    /* Reduced from 40px */
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    margin-right: 8px;
    /* Reduced from 10px */
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--secondary-color);
}

.disclaimer-box {
    transition: var(--transition-smooth);
}

.disclaimer-box:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    /* Reduced from 50px */
    padding-top: 25px;
    /* Reduced from 30px */
    text-align: center;
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        transform: translateY(10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin: 30px 0;
    }

    .pricing-card.popular:hover {
        transform: translateY(-15px);
    }

    .step-card::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(5, 28, 66, 0.85), rgba(5, 28, 66, 0.75)), url('hero_student_learning.webp');
        background-size: cover;
        padding: calc(var(--header-total-height) + 30px) 0 60px;
        background-attachment: scroll;
        min-height: auto;
    }

    .inner-hero {
        padding: calc(var(--header-total-height) + 30px) 0 60px;
        background-attachment: scroll;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .footer-bottom {
        text-align: center;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
        line-height: 1.2;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .inner-hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-strip {
        padding: 12px;
        gap: 10px;
    }

    .pricing-card {
        padding: 25px 15px;
    }

    .step-card {
        padding: 25px 15px;
    }

    .hero-stats-strip .stat-box {
        padding: 10px;
    }

    .hero-stats-strip .stat-box h4 {
        font-size: 1.1rem;
    }
}

/* Google Reviews Section */
.reviews-section {
    background: #f8f9fa;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.reviews-section__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.reviews-google-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 20px;
    margin-bottom: 12px;
}

.reviews-google-chip__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: 0.01em;
}

.reviews-section__title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 500;
    color: #202124;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.reviews-section__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reviews-section__score {
    font-size: 1.5rem;
    font-weight: 500;
    color: #202124;
    line-height: 1;
}

.reviews-section__count {
    font-size: 0.875rem;
    color: #5f6368;
}

.reviews-section__nav {
    display: flex;
    gap: 8px;
}

/* Google logo sizes */
.g-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.g-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.g-logo--sm {
    width: 20px;
    height: 20px;
}

.g-logo--nano {
    width: 14px;
    height: 14px;
}

/* Google star rating */
.g-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #fbbc04;
    line-height: 1;
}

.g-stars i {
    font-size: 0.9rem;
}

.g-stars--sm i {
    font-size: 0.72rem;
}

/* Verified badge */
.g-verified-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.g-verified-badge svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Google review card */
.g-review-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.g-review-card:hover {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.1);
    border-color: #bdc1c6;
}

.g-review-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.g-review-card__profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.g-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.g-review-card__identity {
    min-width: 0;
}

.g-review-card__name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.g-review-card__name {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #202124 !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g-review-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.g-review-card__date {
    font-size: 0.75rem;
    color: #5f6368;
}

.g-review-card__text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #3c4043;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g-review-card__footer {
    margin-top: auto;
    padding-top: 8px;
    background: transparent;
    color: inherit;
}

.g-google-nano {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.g-google-nano__text {
    font-size: 0.6875rem;
    color: #9aa0a6;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Carousel nav — Google style */
.g-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.g-nav-btn:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    color: #202124;
}

.g-nav-btn:active {
    background: #f1f3f4;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

@media (max-width: 767.98px) {
    .reviews-section__top {
        margin-bottom: 20px;
    }

    .reviews-section__nav {
        width: 100%;
        justify-content: flex-end;
    }

    .g-review-card__text {
        -webkit-line-clamp: 6;
    }
}

/* Legacy review classes (kept for compatibility) */
.review-card {
    background: var(--white);
    padding: 30px;
    /* Reduced from 40px */
    border-radius: 25px;
    /* Reduced from 30px */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 61, 145, 0.08);
}

.review-text {
    font-size: 0.95rem;
    /* Reduced from 1rem */
    line-height: 1.6;
    /* Reduced from 1.7 */
    color: var(--text-muted);
    margin-bottom: 12px;
    /* Reduced from 15px */
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.reviewer-avatar {
    width: 42px;
    /* Reduced from 50px */
    height: 42px;
    /* Reduced from 50px */
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
}

.btn-nav {
    width: 42px;
    /* Reduced from 50px */
    height: 42px;
    /* Reduced from 50px */
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

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

.review-footer i.fa-google {
    font-size: 1.2rem;
    opacity: 0.8;
}


/* Professional Background Pattern */

/* Professional Background Pattern */
.services-pattern {
    background-color: #f8fafc !important;
    background-image: linear-gradient(rgba(248, 250, 252, 0.1), rgba(248, 250, 252, 0.8)), url('pattern.webp') !important;
    background-repeat: repeat !important;
    background-size: 250px !important;
    /* Smaller size makes pattern more dense and visible */
    background-position: center !important;
    background-attachment: scroll !important;
    border-top: 1px solid rgba(10, 61, 145, 0.05);
    border-bottom: 1px solid rgba(10, 61, 145, 0.05);
}

/* Card Color Variants (AdminLTE 2 Style) */
.card-primary {
    border-top-color: var(--primary-color) !important;
}

.card-secondary {
    border-top-color: var(--secondary-color) !important;
}

.card-success {
    border-top-color: var(--secondary-color) !important;
}

.card-warning {
    border-top-color: var(--accent-color) !important;
}

.card-info {
    border-top-color: var(--primary-light) !important;
}

.card-danger {
    border-top-color: #e74c3c !important;
}

.card-purple {
    border-top-color: #9333ea !important;
}

.card-dark {
    border-top-color: var(--text-dark) !important;
}

/* Payment Section */
.payment-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .payment-panel {
        padding: 2rem 2.5rem;
    }
}

.payment-panel:hover {
    box-shadow: 0 20px 40px rgba(10, 61, 145, 0.08);
    border-color: rgba(10, 61, 145, 0.1);
}

.payment-item {
    background: var(--white) !important;
    border-color: rgba(10, 61, 145, 0.08) !important;
    transition: var(--transition-smooth);
}

.payment-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(10, 61, 145, 0.06) !important;
}

.payment-card {
    background: var(--white);
    transition: var(--transition-smooth);
    cursor: default;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 30px rgba(10, 61, 145, 0.08) !important;
}

.payment-card i {
    transition: var(--transition-smooth);
}

.payment-card:hover i {
    transform: scale(1.1);
}

.transition-hover {
    transition: var(--transition-smooth);
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 61, 145, 0.05) !important;
    border-color: var(--primary-color) !important;
}

/* Inner Pages Hero */
.inner-hero {
    background: linear-gradient(rgba(10, 61, 145, 0.92), rgba(10, 61, 145, 0.88)), url('hero_student_learning.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 140px 0 100px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-hero h1 span {
    color: var(--accent-color);
}

.breadcrumb-container .breadcrumb {
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--white);
}

/* Utility Backgrounds */
.bg-primary-soft {
    background-color: rgba(10, 61, 145, 0.05) !important;
}

.bg-success-soft {
    background-color: rgba(0, 168, 107, 0.05) !important;
}

.bg-warning-soft {
    background-color: rgba(244, 180, 0, 0.05) !important;
}

.bg-info-soft {
    background-color: rgba(30, 91, 191, 0.05) !important;
}



.subject-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 24px;
    border: 1px solid rgba(10, 61, 145, 0.05);
    border-top: 4px solid transparent;
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.subject-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 61, 145, 0.1);
}

.subject-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition-smooth);
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(-5deg);
}

.subject-card h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.subject-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.subject-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.subject-card:hover .subject-list li {
    color: var(--text-dark);
}

.subject-list li i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.bg-purple-subtle {
    background-color: #f3e8ff !important;
}

.text-purple {
    color: #9333ea !important;
}

.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

@media (max-width: 768px) {
    .subjects-filter-section {
        margin-top: 0;
    }

    .search-box-wrapper {
        border-radius: 20px;
        padding: 20px;
    }

    .search-box-wrapper .input-group {
        flex-direction: column;
        gap: 15px;
    }

    .search-box-wrapper .input-group-text {
        display: none;
    }

    .search-box-wrapper .form-control {
        border: 1px solid #eee !important;
        border-radius: 10px !important;
        text-align: center;
    }

    .search-box-wrapper .btn {
        border-radius: 10px !important;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERHAUL
   ═══════════════════════════════════════════════════ */

/* ─── Global overflow guard ─── */
html {
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* ─── Fluid container padding boost on small screens ─── */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ═══════════════════════════════════════════════════
   NAVBAR & FOOTER LOGO — responsive image sizing
   ═══════════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
    .navbar-logo {
        height: 44px;
    }

    .navbar.scrolled .navbar-logo {
        height: 38px;
    }
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 38px;
    }

    .navbar.scrolled .navbar-logo {
        height: 34px;
    }

    .footer-logo {
        height: 48px;
    }
}

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 34px;
    }

    .navbar.scrolled .navbar-logo {
        height: 30px;
    }

    .footer-logo {
        height: 44px;
    }
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 30px;
    }

    .navbar.scrolled .navbar-logo {
        height: 26px;
    }

    .footer-logo {
        height: 40px;
    }
}

@media (max-width: 399.98px) {
    .navbar-logo {
        height: 26px;
    }

    .navbar.scrolled .navbar-logo {
        height: 22px;
    }

    .footer-logo {
        height: 34px;
    }
}

/* ─── Topbar long email fix ─── */
@media (max-width: 767.98px) {
    .topbar__item--email span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }
}

@media (max-width: 630px) {
    .topbar__item--email {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        background-attachment: scroll;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: calc(var(--header-total-height) + 10px) 0 40px;
    }

    .hero-content {
        padding: 20px 12px;
        border-radius: 18px;
    }

    .hero-content h1 {
        font-size: clamp(1.15rem, 5.5vw, 1.4rem);
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 1.2rem;
    }

    .hero-content .btn-primary-custom,
    .hero-content .btn-secondary-custom {
        padding: 10px 20px;
        font-size: 0.82rem;
    }
}

@media (max-width: 399.98px) {
    .hero-content h1 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.82rem;
    }
}

/* ─── Hero Stats Strip deep mobile ─── */
@media (max-width: 399.98px) {
    .hero-stats-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 10px;
    }

    .hero-stat-item {
        flex-direction: row;
        text-align: left;
        padding: 10px;
    }

    .hero-stat-info {
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════════
   INNER HERO (all subpages)
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .inner-hero {
        padding: calc(var(--header-total-height) + 20px) 0 50px;
    }

    .inner-hero h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

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

    .breadcrumb-container {
        padding: 8px 18px;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .inner-hero {
        padding: calc(var(--header-total-height) + 12px) 0 35px;
    }

    .inner-hero h1 {
        font-size: 1.5rem;
    }

    .inner-hero .lead {
        font-size: 0.85rem;
    }
}

@media (max-width: 399.98px) {
    .inner-hero h1 {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-header .badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .section-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 399.98px) {
    .section-header h2 {
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .service-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .service-card h4,
    .service-card h5 {
        font-size: 1.05rem;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 12px;
        margin-bottom: 15px;
    }
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS / STEP CARDS
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .step-card {
        padding: 28px 20px;
    }

    .step-number-container {
        width: 80px;
        height: 80px;
    }

    .step-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .step-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .step-card h4 {
        font-size: 1.05rem;
        margin-top: 16px !important;
    }

    .step-card p {
        font-size: 0.88rem;
    }
}

/* ═══════════════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 767.98px) {
    .pricing-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .price {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .pricing-features li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 4px 16px;
    }
}

@media (max-width: 575.98px) {
    .pricing-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .price {
        font-size: 2rem;
    }

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

/* ═══════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════ */

@media (max-width: 399.98px) {
    .stats-strip {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stats-strip__item {
        padding: 8px 12px;
    }

    .stats-strip__number {
        font-size: 1rem;
    }

    .stats-strip__label {
        font-size: 0.6rem;
    }
}

/* ═══════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .about-page-img,
    [alt="About Us"] {
        max-width: 100%;
        border-radius: 20px;
    }

    .position-relative .me-n4 {
        margin-right: 0 !important;
        right: 10px;
    }
}

@media (max-width: 767.98px) {
    section.py-5 .display-5 {
        font-size: 1.8rem;
    }

    section.py-5 .container .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    section.py-5 .display-5 {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════
   PAYMENT SECTION
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .payment-panel {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .payment-panel h4 {
        font-size: 1.1rem;
    }

    .payment-panel .security-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .payment-panel h6 {
        font-size: 0.85rem;
    }

    .payment-panel .small {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .payment-item {
        padding: 12px 8px !important;
    }

    .payment-item .fa-2x {
        font-size: 1.5em !important;
    }

    .payment-item .small {
        font-size: 0.72rem !important;
    }

    .payment-panel hr {
        margin: 1.5rem 0 !important;
    }

    .payment-panel .row.g-4.justify-content-center .col-md-4 {
        text-align: left !important;
    }
}

/* ═══════════════════════════════════════════════════
   REVIEWS / TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .reviews-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .reviews-section__title {
        font-size: 1.3rem;
    }

    .reviews-section__score {
        font-size: 1.2rem;
    }

    .reviews-section__count {
        font-size: 0.78rem;
    }

    .g-review-card {
        padding: 12px;
    }

    .g-review-card__avatar {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }

    .g-review-card__name {
        font-size: 0.8rem;
    }

    .g-review-card__text {
        font-size: 0.82rem;
        -webkit-line-clamp: 4;
    }

    .g-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}

/* ═══════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .contact-form {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }

    .contact-method .service-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem;
    }

    .contact-method h5 {
        font-size: 1rem;
    }

    .contact-method p {
        font-size: 0.85rem;
        word-break: break-word;
    }
}

@media (max-width: 575.98px) {
    .contact-form {
        padding: 20px 16px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .form-label {
        font-size: 0.8rem !important;
    }
}

/* ═══════════════════════════════════════════════════
   TERMS & PRIVACY PAGES
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .terms-content-wrapper,
    .privacy-content-wrapper {
        padding-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .terms-content-wrapper h3,
    .privacy-content-wrapper h3 {
        font-size: 1.15rem;
    }

    .terms-content-wrapper .service-icon,
    .privacy-content-wrapper .service-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }

    .terms-content-wrapper .border-start.border-4,
    .privacy-content-wrapper .border-start.border-4 {
        padding: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .terms-content-wrapper .p-5,
    .privacy-content-wrapper .p-5 {
        padding: 1.5rem !important;
    }

    .terms-content-wrapper .p-5 h3,
    .privacy-content-wrapper .p-5 h3 {
        font-size: 1.1rem;
    }

    .terms-content-wrapper .d-flex.justify-content-center.gap-3,
    .privacy-content-wrapper .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }

    .terms-content-wrapper .d-flex.justify-content-center.gap-3 .btn,
    .privacy-content-wrapper .d-flex.justify-content-center.gap-3 .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    #general, #ordering, #payment, #security {
        scroll-margin-top: calc(var(--header-total-height) + 20px);
    }
}

@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 0.92rem;
        padding: 14px 16px;
    }

    .accordion-body {
        font-size: 0.88rem;
        padding: 12px 16px;
    }
}

@media (max-width: 575.98px) {
    .accordion-button {
        font-size: 0.85rem;
        padding: 12px 14px;
    }

    .accordion-body {
        font-size: 0.83rem;
    }

    .accordion-item {
        border-radius: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════
   SUBJECT CARDS
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .subject-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .subject-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

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

    .subject-list li {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    .subject-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .subject-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-radius: 16px;
        margin-bottom: 14px;
    }
}

/* ═══════════════════════════════════════════════════
   SERVICE DETAIL PAGES (essay, dissertation, etc.)
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .col-lg-10.mx-auto h2 {
        font-size: 1.5rem;
    }

    .col-lg-10.mx-auto h3 {
        font-size: 1.25rem;
    }

    .col-lg-10.mx-auto h4 {
        font-size: 1.1rem;
    }

    .col-lg-10.mx-auto .footer-links li {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .col-lg-10.mx-auto h2 {
        font-size: 1.3rem;
    }

    .col-lg-10.mx-auto h3 {
        font-size: 1.1rem;
    }

    .col-lg-10.mx-auto .p-4 {
        padding: 1rem !important;
    }

    .col-lg-10.mx-auto .border-start.border-4 h5 {
        font-size: 0.95rem;
    }

    .col-lg-10.mx-auto .border-start.border-4 p {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .site-footer {
        padding: 45px 0 20px;
    }

    .site-footer .row.g-4 > div {
        text-align: center;
    }

    .site-footer .pe-lg-4 {
        padding-right: 0 !important;
    }

    .social-icons {
        justify-content: center;
    }

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

@media (max-width: 767.98px) {
    .site-footer {
        padding: 35px 0 18px;
    }

    .site-footer .col-lg-3.col-md-4 {
        margin-top: 10px;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 16px !important;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

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

    .disclaimer-box {
        text-align: left;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 18px;
        font-size: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 30px 0 15px;
    }

    .site-footer .navbar-brand {
        margin-bottom: 12px !important;
    }

    .site-footer p {
        font-size: 0.85rem;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 0.73rem;
        line-height: 1.5;
    }

    .footer-bottom a {
        display: inline;
    }
}

/* ═══════════════════════════════════════════════════
   WHATSAPP FLOAT & BACK-TO-TOP — better mobile placement
   ═══════════════════════════════════════════════════ */

@media (max-width: 399.98px) {
    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 16px;
        left: 16px;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════
   BUTTONS — full-width on very small screens
   ═══════════════════════════════════════════════════ */

@media (max-width: 399.98px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        font-size: 0.82rem;
        padding: 10px 18px;
    }

    .d-flex.flex-wrap.gap-3 {
        gap: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════
   GENERAL SECTION PADDING — tighter on mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    section.py-5 .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    section.py-5 .container .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    section.py-5 .container.py-5,
    section.py-5 .container .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════
   LARGE DESKTOP (1400px+) — comfortable max-widths
   ═══════════════════════════════════════════════════ */

@media (min-width: 1400px) {
    .hero-content {
        max-width: 1100px;
    }

    .section-header h2 {
        font-size: 2.6rem;
    }
}

/* ═══════════════════════════════════════════════════
   TOUCH TARGETS — minimum 44px for interactive elements
   ═══════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-links a {
        display: inline-block;
        min-height: 36px;
        line-height: 36px;
    }

    .topbar__item {
        min-height: 34px;
    }

    .topbar__social a {
        min-width: 34px;
        min-height: 34px;
    }
}

/* ═══════════════════════════════════════════════════
   LANDSCAPE PHONE FIX — prevent hero from being too tall
   ═══════════════════════════════════════════════════ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-total-height) + 10px) 0 30px;
    }

    .hero-content {
        padding: 16px 20px;
    }

    .hero-stats-strip {
        margin-top: 16px;
        padding: 12px;
    }

    .inner-hero {
        padding: calc(var(--header-total-height) + 10px) 0 25px;
    }
}

/* ═══════════════════════════════════════════════════
   PRINT FRIENDLY
   ═══════════════════════════════════════════════════ */

@media print {
    .topbar,
    #mainNavbar,
    .whatsapp-float,
    .back-to-top,
    #preloader,
    .nav-cta {
        display: none !important;
    }

    .hero,
    .inner-hero {
        background: #0A3D91 !important;
        padding: 30px 0 !important;
        min-height: auto !important;
    }

    body {
        font-size: 12pt;
    }

    section {
        page-break-inside: avoid;
    }
}