:root {
    --primary: #F97316;
    --primary-dark: #ea580c;
    --primary-soft: #fff4ec;
    --primary-light: #fed7aa;
    --primary-glow: rgba(249, 115, 22, .35);
    --dark: #0F172A;
    --text: #334155;
    --light-bg: #F8FAFC;
    --bg: #EAF0F2;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

}

html {
    scroll-behavior: smooth;
}

body {
    animation: pageFade 0.8s ease forwards;
    opacity: 0;
    overflow-x: hidden;
}

@keyframes pageFade {
    to {
        opacity: 1;
    }
}


body {

    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    color: var(--dark);
}


/* NavBar Hover Enhancement */
.nav-link:hover {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.4);
}

.btn-light {
    font-weight: 600;
    border-radius: 50px !important;
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background-color: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-outline-dark:hover {
    background-color: var(--dark);
    color: #fff;
}

/* Gradient text — same palette as AI search border */
.ai-gradient-text {
    background: linear-gradient(90deg, #ff7a18, #ffb347, #8f5eff, #00c6ff, #ff7a18);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: borderMove 8s linear infinite;
}

/* AI Search Section */

.ai-search-section {
    margin-bottom: 1rem;
}

/* wrapper for centering */
.ai-search-wrapper {
    max-width: 900px;
    margin: auto;
}

/* The gradient border magic */
.ai-search {
    position: relative;
    padding: 2px;
    border-radius: 60px;
    background: linear-gradient(90deg,
            #ff7a18,
            #ffb347,
            #8f5eff,
            #00c6ff,
            #ff7a18);
    background-size: 300% 300%;
    animation: borderMove 8s linear infinite;
}

/* inner container (actual input area) */
.ai-search::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 60px;
    z-index: 0;
    margin: 2px;
}

/* input field */
.ai-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 20px 70px 20px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    position: relative;
    z-index: 2;
}

/* placeholder styling */
.ai-input::placeholder {
    color: #6b7280;
}

/* search button */
.ai-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: .25s;
}

.ai-btn:hover {
    background: #dbe3ff;
}

/* glow when typing */
.ai-search:focus-within {
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, .15),
        0 0 35px rgba(99, 102, 241, .35);
}

/* gradient animation */
@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width:768px) {

    .ai-input {
        padding: 16px 60px 16px 20px;
        font-size: 14px;
    }

    .ai-search-wrapper {
        max-width: 100%;
    }

}

/* Feature Box */
.feature-box {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    transition: .3s;
    border: 1px solid #eef1f6;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(249, 115, 22, .18);
    border-color: #ffe2cf;
}

/* Icon circle */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    background: linear-gradient(135deg, #fff4ec, #ffe9db);
    transition: .3s;
}

.feature-box:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

/* Title */
.feature-box h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Text */
.feature-box p {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}


/* Section header */
.courses-section {
    padding: 4rem 0;
    background-color: var(--bg);
    background-image: url('../images/courses-bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-label {
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--primary);
}

.section-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 600;
    margin-top: 6px;
}

/* Card */
.course-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: .35s;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(249, 115, 22, .18);
}

/* Image */
.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: .5s;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

/* overlay gradient */
.course-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
}

/* badge */
.course-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
}

.course-badge.hybrid {
    background: #0ea5e9;
}

.course-badge.classroom {
    background: #22c55e;
}

/* Body */
.course-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-body p {
    font-size: 14px;
    color: #64748b;
}

/* Meta chips */
.course-meta {
    margin: 16px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Actions */
.course-actions {
    margin-top: auto;
}

.details-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.details-link:hover {
    text-decoration: underline;
}



/* WHY SECTION */
.why-section {
    background: #fffaf6;
    position: relative;
    background-image: url('../images/why-photon-bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 4rem 0;
}

/* image wrapper */
.why-image-wrapper {
    position: relative;
}



/* right text */
.why-title {
    font-size: 40px;
    font-weight: 600;
    margin: 10px 0 18px;
}

.why-desc {
    color: #64748b;
    margin-bottom: 28px;
}

/* CTA */
.why-btn {
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
}

/* UPCOMING SECTION */
.upcoming-section {
    background: #fdf7f3;
    padding: 4rem 0;
}

/* Card */
.upcoming-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1e5dd;
    transition: .35s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.upcoming-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(249, 115, 22, .18);
    border-color: #ffd9bf;
}

/* Image */
.upcoming-img {
    position: relative;
}

.upcoming-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Admissions badge */
.admission-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
}

/* Body */
.upcoming-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.upcoming-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.upcoming-body p {
    font-size: 14px;
    color: #64748b;
}

/* Actions */
.upcoming-actions {
    margin-top: auto;
}

.upcoming-actions .btn {
    width: 100%;
    margin-bottom: 12px;
}

/* PARALLAX CTA */
.parallax-cta {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 4rem 0;

    /* parallax image */
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* THIS creates the parallax */
    background-attachment: fixed;
}

/* overlay */
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, .75),
            rgba(15, 23, 42, .65));
}

/* content */
.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: auto;
}

.parallax-content h2 {
    font-size: 42px;
    font-weight: 600;
    color: white;
    margin-bottom: 18px;
}

.parallax-content p {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 30px;
}

/* CTA button */
.cta-btn {
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(249, 115, 22, .45);
    transition: .35s;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 25px 55px rgba(249, 115, 22, .6);
}

.cta-sub {
    margin-top: 18px;
    font-size: 14px;
    color: #cbd5e1;
}

@media(max-width:768px) {

    .parallax-cta {
        background-attachment: scroll;
        padding: 90px 20px;
        min-height: 380px;
    }

    .parallax-content h2 {
        font-size: 28px;
    }

    .parallax-content p {
        font-size: 16px;
    }

}

/* FOOTER */
.site-footer {
    background: #071525;
    color: #cbd5e1;
    padding-top: 70px;
}

/* Titles */
.footer-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-left: 14px;
}

.footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* text */
.footer-text {
    line-height: 1.8;
    margin-bottom: 25px;
}

/* contact */
.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 3px;
}

/* social media icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

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

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

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: .25s;
}

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

/* instagram grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.insta-grid img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    transition: .3s;
}

/* instagram item */
.insta-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.insta-item img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    transition: .4s ease;
}

/* overlay */
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .35s;
}

/* instagram icon */
.insta-overlay i {
    color: #fff;
    font-size: 26px;
    transform: scale(.7);
    transition: .35s;
}

/* hover effects */
.insta-item:hover img {
    transform: scale(1.12);
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover .insta-overlay i {
    transform: scale(1);
}

/* bottom bar */
.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
    font-size: 14px;
}

.brand {
    color: var(--primary);
    font-weight: 600;
}

.footer-policy a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-policy a:hover {
    color: var(--primary);
}

@media(max-width:768px) {

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

    .footer-contact p {
        justify-content: center;
    }

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

}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: zoomIn .35s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* =========================================
   RESPONSIVE ENHANCEMENTS
========================================= */

/* ---------- Large Tablets (≤ 1200px) ---------- */
@media (max-width: 1200px) {

    .section-title {
        font-size: 32px;
    }

    .why-title {
        font-size: 32px;
    }

    .parallax-content h2 {
        font-size: 34px;
    }


}


/* ---------- Tablets (≤ 992px) ---------- */
@media (max-width: 992px) {

    /* Courses */
    .course-image img {
        height: 190px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 40px 25px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    /* Why Section */
    .why-section {
        text-align: center;
    }

    .why-image-wrapper {
        margin-bottom: 30px;
    }

    /* Footer */
    .footer-title {
        margin-top: 30px;
    }
}


/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {

    /* General section spacing */
    .courses-section,
    .testimonials-section,
    .why-section,
    .upcoming-section {
        padding: 3rem 0;
    }


    /* Section titles */
    .section-title {
        font-size: 26px;
    }

    .why-title {
        font-size: 26px;
    }

    /* Cards */
    .course-card,
    .upcoming-card {
        margin-bottom: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 35px 20px;
    }

    .testimonial-avatar {
        width: 70px;
        height: 70px;
        top: -35px;
    }

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

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center !important;
    }

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

    .footer-bottom .container {
        justify-content: center !important;
    }

    /* Parallax CTA */
    .parallax-content h2 {
        font-size: 24px;
    }

    .parallax-content p {
        font-size: 15px;
    }

    .cta-btn {
        font-size: 16px;
        padding: 14px 26px;
    }

    /* Instagram grid */
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------- Small Mobile (≤ 576px) ---------- */
@media (max-width: 576px) {

    body {
        font-size: 14px;
    }


    .section-title {
        font-size: 22px;
    }

    .footer-bottom {
        font-size: 13px;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* SECTION */
.testimonial-referral-section {
    background: #fdf7f3;
    padding: 80px 0;
}

.testimonial-heading {
    font-size: 34px;
    font-weight: 700;
}

/* SWIPER */
.testimonialSwiper {
    padding: 120px 0;
}

/* CARD */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 60px 30px 30px;
    text-align: center;
    transition: .4s ease;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

/* AVATAR */
.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* TEXT */
.role {
    font-size: 13px;
    color: #64748b;
}

.testimonial-text {
    font-size: 14px;
    color: #475569;
    margin-top: 10px;
}

.stars {
    margin-top: 15px;
    color: #F97316;
    font-size: 16px;
}

/* VIDEO testimonial card */
.testimonial-card-video {
    padding: 20px 20px 25px;
    text-align: center;
}

.t-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.t-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
}

/* SIDE SLIDES — testimonial only */
.testimonialSwiper .swiper-slide {
    transform: scale(0.88);
    transition: transform .4s ease;
}

/* Active center slide */
.testimonialSwiper .swiper-slide-active {
    transform: scale(1.25) !important;
}

/* Make center slightly lifted */
.testimonialSwiper .swiper-slide-active .testimonial-card {
    box-shadow: 0 30px 80px rgba(249, 115, 22, .35);
}

/* Slightly push side slides down */
.testimonialSwiper .swiper-slide-prev,
.testimonialSwiper .swiper-slide-next {
    transform: scale(0.75) translateY(15px) !important;
}

/* Hero swiper — no scale transforms */
.heroSwiper .swiper-slide {
    transform: none !important;
    border-radius: 30px;
    overflow: hidden;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ===============================
   MODERN HERO 
================================= */

.hero-modern {
    background: #fff7f2;
    padding: 20px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* subtle underline accent */
.hero-subtitle::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 16px;
    color: #475569;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: .3s;
}

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

.hero-btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    background: transparent;
    transition: .3s;
}

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

/* Hero Video Embed */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    margin: 0 auto;
}

.hero-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: block;
    border: none;
}

/* RIGHT IMAGE SECTION */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    overflow: hidden;
}

/* ORANGE GRADIENT CIRCLE */
.hero-circle {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 40px 100px var(--primary-glow);
}

.hero-image {
    position: relative;
    z-index: 2;
    max-height: 480px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .hero-modern {
        text-align: center;
        padding: 20px 0 0;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-description {
        margin: auto auto 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-circle {
        width: 280px;
        height: 280px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .hero-image-wrapper {
        margin-top: 40px;
        display: inline-block;
        position: relative;
        border-radius: 30px;
        overflow: hidden;
    }

    .hero-image {
        max-height: 350px;
        width: 100%;
        object-fit: cover;
        display: block;
        border-radius: 30px;
    }

    .testimonialSwiper .swiper-slide-active {
        transform: scale(0.85) !important;
    }

    .testimonialSwiper {
        padding: 60px 0;
    }

}

/* =========================
   MODERN HEADER
========================= */

.modern-header {
    padding: 20px 0;
    background: #fff7f2;
    transition: background-color 0.4s ease;
    position: relative;
    z-index: 100;
}

.header-wrapper {
    background: #fff;
    border-radius: 60px;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--primary-light);
    box-shadow: 0 10px 35px rgba(249, 115, 22, .08);
    overflow: visible;
}

/* Logo */
.header-logo img {
    height: 50px;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    align-self: stretch;
}

.header-nav a {
    text-decoration: none;
    color: var(--dark);
    position: relative;
    transition: .3s;
}

.header-nav a:hover {
    color: var(--primary);
}

.header-nav a.active {
    color: var(--primary);
}

/* Orange underline animation */
.header-nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

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

/* Buttons */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    color: var(--dark);
    transition: .3s;
}

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

.btn-signup {
    padding: 8px 22px;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: .3s;
}

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

/* Mobile */
.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ── Mobile Offcanvas Nav ─────────────────────────────────────── */
.mob-nav-link {
    text-decoration: none;
    color: #1a1209;
    background: none;
    border: none;
    padding: 0;
    transition: color .2s;
}
.mob-nav-link:hover,
.mob-nav-link.mob-nav-active {
    color: var(--primary);
}
.mob-nav-group .mob-nav-link[aria-expanded="true"] .mob-sub-chevron {
    transform: rotate(180deg);
}
.mob-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px 16px;
    border-left: 2px solid var(--primary-light);
    margin-top: 4px;
}
.mob-sub-link {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    color: #4a4035;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.mob-sub-link:hover,
.mob-sub-link.mob-nav-active {
    background: #fff7f0;
    color: var(--primary);
}
.mob-chevron-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    color: #4a4035;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 992px) {

    .header-nav,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-wrapper {
        border-radius: 20px;
    }
}

/* Fixed Bottom Bar Marquee */
body.has-bottom-bar {
    padding-bottom: 45px;
    /* Adjust based on bar height to prevent overlapping with footer content */
}

.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: #fff;
    padding: 10px 0;
    z-index: 1040;
    /* Above most elements, but below offcanvas (1045) */
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    font-family: var(--font-body);
    height: 45px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marqueeScroll 35s linear infinite;
    width: max-content;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.marquee-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marquee-item a:hover {
    color: var(--primary);
}

.marquee-icon-img {
    height: 18px;
    width: auto;
    margin: 0 25px;
}

/* Adding the scrolling animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Using 50% since we duplicate the content in two items */
    }
}

/* =================================
   STICKY SOCIAL BAR 
================================== */
.sticky-social-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: end;
}

.sticky-social-bar .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #ffffff;
    color: var(--dark);
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s ease;
    border-radius: 8px 0 0 8px;
    border: 1px solid #e2e8f0;
    border-right: none;
    /* Flat on the right side */
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-social-bar .social-icon:hover {
    width: 45px;
}

/* Brand Colors */
.sticky-social-bar .facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.sticky-social-bar .instagram:hover {
    background: #E4405F;
    color: white;
    border-color: #E4405F;
}

.sticky-social-bar .twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.sticky-social-bar .youtube:hover {
    background: #CD201F;
    color: white;
    border-color: #CD201F;
}

.sticky-social-bar .whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

@media (max-width: 768px) {
    .sticky-social-bar .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .sticky-social-bar .social-icon:hover {
        width: 40px;
    }
}

/* =================================
   PAGES SPECIFIC STYLES
================================== */

/* Pages Header Shared */
.hero-page-header {
    padding: 100px 0;
    background: #fff7f2;
    position: relative;
    overflow: hidden;
}

.hero-page-header .hero-subtitle {
    display: inline-block;
    margin-bottom: 15px;
}

.hero-page-header .hero-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-page-header .hero-description {
    max-width: 600px;
    margin: 0 auto;
}

/* Faculty Home Section */
/* ── Brands Carousel ──────────────────────────────────────── */
.brands-carousel-section {
    padding: 2.5rem 0;
    background: #f8f9fa;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.brands-track-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: brandsScroll 28s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes brandsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.brand-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.brand-item img {
    height: 48px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter .3s;
}

.brand-item:hover img {
    filter: grayscale(0) opacity(1);
}

.brand-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color .3s;
    white-space: nowrap;
}

.brand-item:hover .brand-name {
    color: #555;
}

.faculty-hp-section {
    padding: 4rem 0;
    background: #fff;
}

/* Faculty Page */
.faculty-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.faculty-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #f0f4f8;
}

.faculty-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.faculty-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Contact Page */
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fff7f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon-wrapper {
    background: var(--primary);
}

.contact-info-card:hover .contact-icon {
    color: #fff;
}

.contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 50px;
    }
}

.contact-form .form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Our Core Values / Story Cards */
.core-value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    border-bottom: 3px solid transparent;
}

.core-value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.core-value-icon {
    width: 80px;
    height: 80px;
    background: #fff7f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.core-value-card:hover .core-value-icon {
    background: var(--primary);
    color: #fff;
}

.core-value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.core-value-desc {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Course Details Page */
.course-features-list {
    list-style: none;
    padding-left: 0;
}

.course-features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.course-features-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 2px;
}

.course-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    /* top: 120px; */
    border-top: 5px solid var(--primary);
}

.course-sidebar .sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.course-meta-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

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

.course-meta-list .meta-icon {
    width: 40px;
    height: 40px;
    background: #fff7f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.course-meta-list .meta-content {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.course-meta-list .meta-content strong {
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-meta-list .meta-content span {
    color: var(--text);
    font-weight: 500;
}

.course-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.about-cta-section {
    background: #fdf7f3;
}

/* =================================
   BLOG STYLES
================================= */

/* -- Filter Toolbar ----------------------------------------- */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1.5px solid #f0f0f0;
}

/* Search input wrap */
.blog-search-wrap {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e8edf2;
    border-radius: 50px;
    padding: 0 10px 0 16px;
    transition: border-color .2s, box-shadow .2s;
}
.blog-search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
    background: #fff;
}
.blog-search-icon {
    color: #aab;
    font-size: .92rem;
    flex-shrink: 0;
    margin-right: 8px;
}
.blog-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .92rem;
    color: #333;
    padding: 10px 0;
}
.blog-search-input::placeholder { color: #aab; }
.blog-search-clear {
    color: #bbb;
    font-size: .78rem;
    padding: 4px 6px;
    text-decoration: none;
    transition: color .2s;
    flex-shrink: 0;
}
.blog-search-clear:hover { color: #e00; }

/* ── Header Nav Dropdown ─────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: stretch;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}
.nav-chevron {
    font-size: .7rem;
    transition: transform .25s ease;
    margin-top: 1px;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    background: #fff;
    border: 1.5px solid var(--primary-light);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(249,115,22,.12);
    padding: 8px 0;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
/* invisible bridge covering the gap so mouse can travel to menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #fff7f0;
    color: var(--primary);
}
.nav-dropdown-menu a::after { display: none; }

/* Custom category dropdown trigger */
.blog-custom-select {
    position: relative;
    flex-shrink: 0;
    min-width: 200px;
}
.blog-custom-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e8edf2;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.blog-custom-select-btn:hover,
.blog-custom-select.open .blog-custom-select-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
    background: #fff;
}
.blog-custom-select-btn.has-value {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5ee;
    font-weight: 600;
}
.blog-select-icon {
    color: var(--primary);
    font-size: .85rem;
    flex-shrink: 0;
}
.blog-select-label { flex: 1; text-align: left; }
.blog-select-chevron {
    font-size: .72rem;
    color: #aaa;
    transition: transform .2s;
    flex-shrink: 0;
}
.blog-custom-select.open .blog-select-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.blog-custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1.5px solid #e8edf2;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    padding: 6px;
}
.blog-custom-select-menu.open { display: block; }

.blog-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .88rem;
    color: #444;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.blog-select-option:hover { background: #fff5ee; color: var(--primary); }
.blog-select-option.selected { background: #fff5ee; color: var(--primary); font-weight: 600; }
.blog-select-option span:first-child { flex: 1; }
.blog-select-count {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: .75rem;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}
.blog-select-option.selected .blog-select-count,
.blog-select-option:hover .blog-select-count { background: rgba(249,115,22,.15); color: var(--primary); }
.blog-select-option .bi-check2 { color: var(--primary); font-size: .9rem; flex-shrink: 0; }

/* Search button */
.blog-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, box-shadow .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-search-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(249,115,22,.30); }

/* -- Blog Card ---------------------------------------------- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: box-shadow .3s, transform .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-4px); }

.blog-image { position: relative; overflow: hidden; }
.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.blog-badge:hover { background: var(--primary-dark); color: #fff; }

.blog-body {
    padding: 1.4rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .78rem;
    color: #999;
    margin-bottom: .85rem;
}
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-meta i { font-size: .82rem; color: var(--primary); }

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.45;
    margin-bottom: .7rem;
}
.blog-title a { color: #1a1a2e; text-decoration: none; transition: color .2s; }
.blog-title a:hover { color: var(--primary); }

.blog-excerpt { font-size: .88rem; color: #666; line-height: 1.65; margin-bottom: 1rem; flex: 1; }

.blog-read-more {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s, color .2s;
    margin-top: auto;
}
.blog-read-more:hover { gap: 10px; color: var(--primary-dark); }

/* -- Pagination brand colours ------------------------------- */
.pagination .page-link { color: var(--primary); border-radius: 8px !important; }
.pagination .page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); }

/* -- Responsive --------------------------------------------- */
@media (max-width: 640px) {
    .blog-search-wrap,
    .blog-custom-select { min-width: 100%; }
    .blog-search-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resource-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }

/* Thumbnail area */
.resource-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #f5f5f5;
}
.resource-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resource-icon-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.resource-icon-placeholder i {
    font-size: 5rem;
    line-height: 1;
    transition: transform .3s ease;
}
.resource-card:hover .resource-icon-placeholder i {
    transform: scale(1.08);
}

.resource-icon-pdf   { background: linear-gradient(145deg, #fff0f0 0%, #fcd6d6 100%); color: #e53935; }
.resource-icon-doc   { background: linear-gradient(145deg, #eef3ff 0%, #d5e4ff 100%); color: #1565c0; }
.resource-icon-image { background: linear-gradient(145deg, #efffef 0%, #d4f5d6 100%); color: #2e7d32; }
.resource-icon-other { background: linear-gradient(145deg, #f7f3ff 0%, #e8deff 100%); color: #6a1b9a; }

/* Badges floating over thumb */
.resource-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(0,0,0,.55);
    color: #fff;
}
.resource-free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    background: #e8f5e9;
    color: #2e7d32;
}

/* Card body */
.resource-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.resource-category {
    font-size: .73rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}
.resource-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: .4rem;
    line-height: 1.35;
}
.resource-desc {
    font-size: .85rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: .5rem;
}
.resource-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding: .85rem 1.1rem;
    margin-top: auto;
}
.btn-resource-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    width: 100%;
}
.btn-resource-download:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms / Disclaimer)
   ============================================================ */
.legal-content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 2.5rem 3rem;
}
.legal-prose h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}
.legal-prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: .6rem;
}
.legal-prose p {
    font-size: .95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-prose ul, .legal-prose ol {
    font-size: .95rem;
    color: #555;
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-prose a { color: var(--primary); text-decoration: underline; }
.legal-prose strong { color: #333; }
@media (max-width: 576px) {
    .legal-content-card { padding: 1.5rem 1.25rem; }
}

/* -- Blog Pagination ------------------------------- */
.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.blog-page-btn:hover:not(.disabled):not(.active) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.blog-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}
.blog-page-btn.disabled {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}
