
/* ==========================================
   CAMPUS INDIA WEBSITE
   BRAND: NAVY BLUE + GREEN + WHITE
========================================== */

:root {
    --blue: #102F70;
    --dark-blue: #09245C;
    --green: #159B45;
    --light-green: #EAF7EE;
    --white: #FFFFFF;
    --light-bg: #F3F8FF;
    --text: #38465C;
    --grey: #68758A;
    --border: #E4EAF2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


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

.main-header {
    width: 100%;
    min-height: 100px;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    position: relative;
    z-index: 100;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.logo img {
    width: 260px;
    max-height: 85px;
    object-fit: contain;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar a {
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--green);
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--blue);
    font-size: 28px;
    cursor: pointer;
}


/* ==========================================
   HERO SECTION
========================================== */


/* ==========================================
   CAMPUS INDIA - FULL BLENDED HERO BANNER
========================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    padding: 65px 5%;
    overflow: hidden;
    isolation: isolate;

    background: linear-gradient(
        110deg,
        #f4f8ff 0%,
        #f4f8ff 35%,
        #eaf4ff 100%
    );
}

/* STUDENT IMAGE - FULL RIGHT BACKGROUND */

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 72%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;

    border-radius: 0;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.10) 10%,
        rgba(0,0,0,0.45) 24%,
        rgba(0,0,0,0.85) 40%,
        black 55%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.10) 10%,
        rgba(0,0,0,0.45) 24%,
        rgba(0,0,0,0.85) 40%,
        black 55%
    );
}

/* LEFT CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
    width: 52%;
    max-width: 650px;
}

/* TAGLINE */

.hero-content .tagline {
    color: #159b48;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

/* MAIN HEADING */

.hero-content h2 {
    color: #123273;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
}

.hero-content h2 span {
    display: block;
    color: #159b48;
}

/* DESCRIPTION */

.hero-description {
    color: #24395e;
    font-size: 17px;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 28px;
}

/* BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border-radius: 40px;
    background: #123273;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.hero-buttons .btn-outline {
    background: rgba(255,255,255,0.85);
    color: #123273;
    border: 2px solid #123273;
}

/* FEATURES */

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #123273;
    font-size: 14px;
    font-weight: 700;
}

/* REMOVE OLD IMAGE DECORATION */

.hero-image::after {
    display: none;
}

/* TABLET */

@media (max-width: 900px) {

    .hero {
        min-height: 500px;
    }

    .hero-image {
        width: 75%;
    }

    .hero-content {
        width: 60%;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 45px 6%;
        gap: 25px;
        background: #f4f8ff;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        z-index: 0;
        border-radius: 20px;
    }

    .hero-image img {
        border-radius: 20px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-features {
        gap: 12px;
    }

}


/* ==========================================
   HERO BUTTONS
========================================== */

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

.primary-btn,
.secondary-btn {
    min-height: 55px;
    padding: 15px 25px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s;
}

.primary-btn {
    color: white;
    background: var(--blue);
    border: 2px solid var(--blue);
}

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

.secondary-btn {
    color: var(--blue);
    background: white;
    border: 2px solid var(--blue);
}

.secondary-btn:hover {
    color: white;
    background: var(--blue);
    transform: translateY(-3px);
}


/* ==========================================
   HERO BENEFITS
========================================== */

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 38px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    border-right: 1px solid #B9C6D9;
}

.benefit:last-child {
    border-right: none;
}

.benefit span {
    color: var(--blue);
    font-size: 26px;
}

.benefit p {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}


/* ==========================================
   HERO IMAGE
========================================== */

.hero-image {
    flex: 1;
    height: 440px;
    min-width: 0;
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    border-bottom: 8px solid var(--green);
    box-shadow: 0 15px 40px rgba(16,47,112,0.12);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ==========================================
   HERO BOTTOM CURVE
========================================== */

.hero-bottom-shape {
    position: absolute;
    bottom: -78px;
    left: -5%;
    width: 110%;
    height: 110px;
    background: var(--blue);
    border-top: 12px solid var(--green);
    border-radius: 50% 50% 0 0;
    z-index: 3;
}


/* ==========================================
   COMMON SECTION HEADINGS
========================================== */

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 45px;
}

.section-tagline {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-heading h2 {
    color: var(--blue);
    font-size: 35px;
    margin-bottom: 15px;
}

.section-heading > p:last-child {
    color: var(--grey);
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================
   PROJECT DOMAINS
========================================== */

.domains {
    padding: 85px 6%;
    background: white;
    scroll-margin-top: 30px;
}

.domain-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1250px;
    margin: auto;
}

.domain-card {
    padding: 30px 20px;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(16,47,112,0.05);
    transition: 0.3s;
}

.domain-card:hover {
    transform: translateY(-8px);
    border-color: var(--green);
    box-shadow: 0 12px 30px rgba(16,47,112,0.10);
}

.domain-icon {
    font-size: 38px;
    margin-bottom: 18px;
}

.domain-card h3 {
    color: var(--blue);
    font-size: 17px;
    margin-bottom: 12px;
}

.domain-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================
   UG AND PG ACADEMIC SECTION
========================================== */

.academic-section {
    padding: 85px 6%;
    background: var(--light-bg);
}

.academic-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.academic-card {
    padding: 35px 28px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(16,47,112,0.05);
    transition: 0.3s;
}

.academic-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(16,47,112,0.12);
}

.academic-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.academic-label {
    display: inline-block;
    color: var(--green);
    background: var(--light-green);
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.academic-card h3 {
    color: var(--blue);
    font-size: 23px;
    margin-bottom: 15px;
}

.academic-card > p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.8;
}

.academic-card ul {
    list-style: none;
    margin: 23px 0;
}

.academic-card li {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 13px;
}

.academic-card li::before {
    content: "✓";
    color: var(--green);
    font-weight: bold;
    margin-right: 10px;
}

.featured-card {
    border-top: 5px solid var(--green);
}

.card-btn {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 30px;
    color: white;
    background: var(--blue);
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.card-btn:hover {
    background: var(--green);
}


/* ==========================================
   WHY CHOOSE CAMPUS INDIA
========================================== */

.why-campus {
    padding: 85px 6%;
    background: white;
}

.why-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-bg);
    border-radius: 18px;
    transition: 0.3s;
}

.why-card:hover {
    transform: translateY(-6px);
    background: var(--light-green);
}

.why-card span {
    font-size: 40px;
    display: block;
    margin-bottom: 18px;
}

.why-card h3 {
    color: var(--blue);
    font-size: 17px;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================
   CALL TO ACTION
========================================== */

.project-cta {
    padding: 75px 6%;
    text-align: center;
    background: linear-gradient(
        120deg,
        var(--blue),
        #164A94
    );
}

.cta-content {
    max-width: 800px;
    margin: auto;
}

.cta-content > p:first-child {
    color: #8BE5A8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.cta-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 18px;
}

.cta-content > p:not(:first-child) {
    color: #E0E9FA;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 30px;
    color: var(--blue);
    background: white;
    border-radius: 35px;
    font-size: 15px;
    font-weight: 800;
    transition: 0.3s;
}

.cta-btn:hover {
    background: var(--green);
    color: white;
    transform: translateY(-3px);
}


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

.main-footer {
    background: #071E4D;
    color: white;
    padding: 65px 6% 0;
}

.footer-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 45px;
}

.footer-about img {
    width: 220px;
    max-width: 100%;
    margin-bottom: 20px;
    background: white;
    padding: 7px;
    border-radius: 5px;
}

.footer-about h3,
.footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-about p {
    color: #CFD9EA;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    color: #CFD9EA;
    font-size: 14px;
    margin-bottom: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #66D98B;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #C7D2E6;
    font-size: 13px;
}


/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 1050px) {

    .navbar {
        gap: 14px;
    }

    .navbar a {
        font-size: 13px;
    }

    .logo img {
        width: 210px;
    }

    .campus-hero {
        gap: 22px;
    }

    .hero-content {
        flex-basis: 46%;
    }

    .hero-image {
        height: 380px;
    }

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

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

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

}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .main-header {
        min-height: 80px;
        padding: 10px 5%;
    }

    .logo img {
        width: 185px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 22px 6%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 15px;
    }


    /* HERO */

    .campus-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 45px 6% 100px;
        gap: 35px;
    }

    .hero-content {
        flex: auto;
        width: 100%;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        flex: auto;
    }

    .hero-benefits {
        gap: 12px;
    }

    .benefit {
        padding-right: 10px;
    }


    /* SECTIONS */

    .domains,
    .academic-section,
    .why-campus {
        padding: 65px 6%;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .domain-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .domain-card {
        padding: 23px 13px;
    }

    .domain-card h3 {
        font-size: 15px;
    }

    .domain-card p {
        font-size: 12px;
    }

    .academic-container {
        grid-template-columns: 1fr;
    }

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

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

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 450px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-image {
        height: 250px;
    }

    .hero-benefits {
        flex-direction: column;
    }

    .benefit {
        border-right: none;
    }

    .domain-container,
    .why-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}


/* =========================================
   CAMPUS INDIA - BLENDED HERO DESIGN
========================================= */

.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    padding: 70px 5%;
    background: linear-gradient(
        110deg,
        #f3f8ff 0%,
        #f5f9ff 45%,
        #eaf4ff 100%
    );
}

/* LEFT CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

/* RIGHT IMAGE */

.hero-image {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    border-radius: 0 35px 35px 0;
}

/* IMAGE BLENDING */

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 8%,
        rgba(0, 0, 0, 0.75) 22%,
        black 38%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 8%,
        rgba(0, 0, 0, 0.75) 22%,
        black 38%
    );
}

/* GREEN BOTTOM ACCENT */

.hero-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 75%;
    height: 8px;
    background: #159b48;
    border-radius: 20px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 45px 6%;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        height: 300px;
        border-radius: 20px;
    }

    .hero-image img {
        -webkit-mask-image: none;
        mask-image: none;
    }

}
 


/* =========================================
   CAMPUS INDIA - HERO SECTION FINAL FIX
========================================= */

.hero {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100%;
    min-height: 570px !important;
    padding: 65px 5% !important;

    overflow: hidden !important;
    isolation: isolate;

    background: linear-gradient(
        110deg,
        #f4f8ff 0%,
        #f4f8ff 42%,
        #eaf4ff 100%
    ) !important;
}

/* REMOVE OLD CURVED DECORATIONS */

.hero::before,
.hero::after,
.hero-image::before,
.hero-image::after {
    content: none !important;
    display: none !important;
}

/* LEFT CONTENT */

.hero-content {
    position: relative !important;
    z-index: 3 !important;

    width: 49% !important;
    max-width: 600px !important;
    flex: 0 0 49% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* TAGLINE */

.hero-content .tagline {
    white-space: nowrap;
    color: #159b48;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

/* HEADING */

.hero-content h2 {
    color: #123273 !important;
    font-size: clamp(38px, 3.8vw, 52px) !important;
    font-weight: 800;
    line-height: 1.13 !important;
    margin-bottom: 22px;
}

.hero-content h2 span {
    display: block;
    color: #159b48 !important;
}

/* DESCRIPTION */

.hero-description {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.8;
    color: #24395e;
    margin-bottom: 28px;
}

/* BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 32px;
}

.hero-buttons .btn {
    padding: 16px 25px;
    border-radius: 40px;
    background: #123273;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.hero-buttons .btn-outline {
    background: white;
    color: #123273;
    border: 2px solid #123273;
}

/* FEATURES */

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #123273;
    font-size: 14px;
    font-weight: 700;
}

/* RIGHT SIDE IMAGE */

.hero-image {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;

    width: 67% !important;
    height: 100% !important;

    z-index: 1 !important;
    overflow: hidden;
    border-radius: 0 !important;
}

.hero-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center;

    border-radius: 0 !important;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.12) 13%,
        rgba(0,0,0,0.55) 30%,
        black 48%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.12) 13%,
        rgba(0,0,0,0.55) 30%,
        black 48%
    );
}

/* TABLET */

@media (max-width: 900px) {
    .hero {
        min-height: 520px !important;
        padding: 45px 4% !important;
    }

    .hero-content {
        width: 52% !important;
        flex-basis: 52% !important;
    }

    .hero-content h2 {
        font-size: 40px !important;
    }

    .hero-image {
        width: 65% !important;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        min-height: auto !important;
        padding: 40px 6% !important;
        gap: 25px;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
    }

    .hero-content h2 {
        font-size: 37px !important;
    }

    .hero-image {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        border-radius: 20px !important;
    }

    .hero-image img {
        border-radius: 20px !important;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-features {
        gap: 12px;
    }
}


/* =====================================
   HERO IMAGE - ANIMATION EFFECTS
===================================== */

.hero-image {
    overflow: hidden !important;
}

/* IMAGE MOTION */

.hero-image img {
    animation: campusImageMotion 12s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
}

/* SLOW ZOOM AND MOVEMENT */

@keyframes campusImageMotion {
    0% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.045) translateX(-8px);
    }

    100% {
        transform: scale(1.08) translateX(-15px);
    }
}

/* IMAGE ENTRANCE */

.hero-image {
    animation: campusImageAppear 1.5s ease-out both;
}

@keyframes campusImageAppear {
    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* TEXT ENTRANCE */

.hero-content {
    animation: campusTextAppear 1.2s ease-out both;
}

@keyframes campusTextAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-image img,
    .hero-content {
        animation: none !important;
    }
}



/* ==========================================
   CAMPUS INDIA - HERO IMAGE MOTION EFFECT
========================================== */

.hero-image {
    overflow: hidden;
}

/* Smooth moving image */

.hero-image img {
    animation: campusImageMotion 12s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}

/* Slow zoom and movement */

@keyframes campusImageMotion {

    0% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.06) translateX(-1%);
    }

    100% {
        transform: scale(1.10) translateX(-2%);
    }

}

/* Pause movement when mouse is over image */

.hero-image:hover img {
    animation-play-state: paused;
}

/* Accessibility: reduce movement if requested */

@media (prefers-reduced-motion: reduce) {
    .hero-image img {
        animation: none;
        transform: none;
    }
}


/* ==========================================
   CAMPUS INDIA - UG PROJECTS PAGE
========================================== */

.ug-hero {
    padding: 85px 5%;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
    background: linear-gradient(120deg, #eff6ff, #ffffff, #eef8ff);
    overflow: hidden;
}

.ug-hero-content {
    animation: aboutSlideLeft 1s ease;
}

.ug-tag {
    color: #159c4b;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 14px;
}

.ug-hero h1 {
    color: #153575;
    font-size: clamp(36px, 4vw, 53px);
    line-height: 1.15;
    margin: 22px 0;
}

.ug-hero h1 span {
    color: #159c4b;
    display: block;
}

.ug-hero-content > p {
    color: #53627b;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 28px;
}

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

.ug-btn,
.ug-btn-outline {
    display: inline-block;
    padding: 15px 27px;
    border-radius: 35px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.ug-btn {
    color: white;
    background: #153575;
    border: 2px solid #153575;
}

.ug-btn:hover {
    background: #159c4b;
    border-color: #159c4b;
    transform: translateY(-4px);
}

.ug-btn-outline {
    color: #153575;
    border: 2px solid #153575;
    background: white;
}

.ug-btn-outline:hover {
    color: white;
    background: #153575;
}

.ug-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: #153575;
    font-size: 13px;
    font-weight: 600;
}

.ug-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    animation: aboutSlideRight 1s ease;
}

.ug-visual-main {
    width: 100%;
    max-width: 440px;
    padding: 55px 35px;
    text-align: center;
    background: white;
    border-radius: 25px;
    border-bottom: 6px solid #159c4b;
    box-shadow: 0 20px 55px rgba(21, 53, 117, 0.12);
    transition: 0.4s;
}

.ug-visual-main:hover {
    transform: translateY(-10px);
}

.ug-visual-icon {
    font-size: 75px;
    margin-bottom: 20px;
}

.ug-visual-main h3 {
    font-size: 27px;
    color: #153575;
}

.ug-visual-main p {
    color: #68748a;
    line-height: 1.8;
    margin: 15px 0;
}

.ug-visual-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.ug-visual-tags span {
    background: #edf7f0;
    color: #159c4b;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ug-floating-card {
    position: absolute;
    bottom: 0;
    left: -5px;
    padding: 15px 22px;
    background: #153575;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    animation: ugFloat 3s ease-in-out infinite;
}

@keyframes ugFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}


/* SECTION HEADINGS */

.ug-section-heading {
    text-align: center;
    margin: 0 auto 45px;
}

.ug-section-heading > span {
    color: #159c4b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ug-section-heading h2 {
    color: #153575;
    font-size: 34px;
    margin: 15px 0;
}

.ug-section-heading p {
    color: #68748a;
    line-height: 1.8;
}


/* DEPARTMENTS */

.ug-departments {
    padding: 85px 5%;
    background: white;
}

.ug-department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ug-department-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e1e9f5;
    border-radius: 18px;
    background: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(21, 53, 117, 0.04);
    transition: 0.4s ease;
}

.ug-department-card:hover {
    transform: translateY(-12px);
    border-color: #159c4b;
    box-shadow: 0 18px 35px rgba(21, 53, 117, 0.12);
}

.ug-department-card > div {
    font-size: 42px;
    margin-bottom: 18px;
}

.ug-department-card h3 {
    color: #153575;
    font-size: 17px;
    margin-bottom: 12px;
}

.ug-department-card p {
    color: #68748a;
    font-size: 14px;
    line-height: 1.7;
    min-height: 48px;
}

.ug-department-card > span {
    display: inline-block;
    margin-top: 16px;
    color: #159c4b;
    font-size: 13px;
    font-weight: 700;
}


/* PROJECT SECTIONS */

.ug-project-section {
    padding: 80px 5%;
    background: white;
    scroll-margin-top: 90px;
}

.ug-project-section.alternate {
    background: #f3f7fd;
}

.ug-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ug-project-card {
    position: relative;
    padding: 32px 27px;
    background: white;
    border: 1px solid #e1e9f5;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(21, 53, 117, 0.05);
    transition: 0.4s ease;
    overflow: hidden;
}

.ug-project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #159c4b;
    transition: 0.4s;
}

.ug-project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(21, 53, 117, 0.12);
    border-color: #159c4b;
}

.ug-project-card:hover::before {
    width: 100%;
}

.ug-project-icon {
    display: block;
    font-size: 42px;
    margin-bottom: 20px;
}

.ug-project-label {
    display: inline-block;
    padding: 7px 12px;
    background: #eaf7ef;
    color: #159c4b;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 15px;
}

.ug-project-card h3 {
    color: #153575;
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.ug-project-card p {
    color: #68748a;
    font-size: 14px;
    line-height: 1.8;
    min-height: 75px;
}

.ug-project-card a {
    display: inline-block;
    color: #159c4b;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    transition: 0.3s;
}

.ug-project-card a:hover {
    color: #153575;
    transform: translateX(5px);
}


/* PROJECT SUPPORT */

.ug-support {
    padding: 85px 5%;
    background: #f3f7fd;
}

.ug-support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ug-support-card {
    background: white;
    padding: 30px 23px;
    border-radius: 16px;
    border-bottom: 4px solid #159c4b;
    transition: 0.4s;
}

.ug-support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(21, 53, 117, 0.10);
}

.ug-support-card > span {
    font-size: 28px;
    color: #159c4b;
    font-weight: 800;
}

.ug-support-card h3 {
    color: #153575;
    margin: 15px 0;
    font-size: 18px;
}

.ug-support-card p {
    color: #68748a;
    line-height: 1.7;
    font-size: 14px;
}


/* FINAL CTA */

.ug-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(120deg, #153575, #0d285e);
    color: white;
}

.ug-cta h2 {
    font-size: 34px;
    margin-bottom: 18px;
}

.ug-cta p {
    color: #e1eaff;
    line-height: 1.8;
    margin-bottom: 28px;
}

.ug-cta .ug-btn {
    background: #159c4b;
    border-color: #159c4b;
}

.ug-cta .ug-btn:hover {
    background: white;
    color: #153575;
    border-color: white;
}


/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {

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

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

}

@media (max-width: 750px) {

    .ug-hero {
        grid-template-columns: 1fr;
        padding: 60px 6%;
    }

    .ug-hero-visual {
        min-height: 330px;
    }

    .ug-project-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .ug-department-grid,
    .ug-support-grid {
        grid-template-columns: 1fr;
    }

    .ug-hero h1 {
        font-size: 35px;
    }

    .ug-section-heading h2 {
        font-size: 26px;
    }

    .ug-highlights {
        flex-direction: column;
        gap: 12px;
    }

    .ug-floating-card {
        left: 0;
        bottom: -10px;
    }

    .ug-cta h2 {
        font-size: 26px;
    }

}



/* =========================================================
   CAMPUS INDIA - UG & PG PROJECTS PAGE
   THEME: NAVY BLUE + GREEN + WHITE
========================================================= */

/* ROOT VARIABLES */
:root {
    --project-navy: #153575;
    --project-dark: #0b2454;
    --project-green: #159c4b;
    --project-light-green: #eaf8ef;
    --project-white: #ffffff;
    --project-text: #343b4a;
    --project-muted: #687386;
    --project-border: #e4eaf1;
    --project-light: #f5f8fc;
}

/* COMMON */
.ug-hero *,
.ug-departments *,
.ug-project-section *,
.ug-support *,
.ug-cta * {
    box-sizing: border-box;
}

.ug-hero,
.ug-departments,
.ug-project-section,
.ug-support,
.ug-cta {
    font-family: inherit;
}

/* =========================================================
   HERO SECTION
========================================================= */

.ug-hero {
    width: 100%;
    min-height: 570px;
    padding: 85px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(120deg, #f5f8ff, #ffffff);
    overflow: hidden;
}

.ug-hero-content {
    flex: 1;
    max-width: 650px;
    animation: ugFadeUp 0.9s ease;
}

.ug-tag {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 30px;
    background: #e4f5eb;
    color: var(--project-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

.ug-hero h1 {
    color: var(--project-navy);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 24px;
}

.ug-hero h1 span {
    display: block;
    color: var(--project-green);
}

.ug-hero-content > p {
    color: var(--project-muted);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.ug-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.ug-btn,
.ug-btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 25px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.ug-btn {
    background: var(--project-green);
    color: var(--project-white);
    border: 2px solid var(--project-green);
}

.ug-btn:hover {
    background: var(--project-navy);
    border-color: var(--project-navy);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(21, 53, 117, 0.18);
}

.ug-btn-outline {
    color: var(--project-navy);
    border: 2px solid var(--project-navy);
    background: transparent;
}

.ug-btn-outline:hover {
    background: var(--project-navy);
    color: var(--project-white);
    transform: translateY(-4px);
}

.ug-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ug-highlights span {
    color: var(--project-navy);
    font-size: 13px;
    font-weight: 600;
}

/* HERO VISUAL */

.ug-hero-visual {
    flex: 0 0 390px;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: ugFadeIn 1.2s ease;
}

.ug-visual-main {
    width: 100%;
    max-width: 340px;
    min-height: 285px;
    padding: 40px 30px;
    background: var(--project-white);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(21, 53, 117, 0.12);
    border: 1px solid var(--project-border);
    position: relative;
    z-index: 1;
}

.ug-visual-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--project-light-green);
    font-size: 36px;
}

.ug-visual-main h3 {
    color: var(--project-navy);
    font-size: 23px;
    margin-bottom: 12px;
}

.ug-visual-main p {
    color: var(--project-muted);
    line-height: 1.7;
    font-size: 14px;
}

.ug-visual-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.ug-visual-tags span {
    background: #eef3fb;
    color: var(--project-navy);
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.ug-floating-card {
    position: absolute;
    bottom: 5px;
    right: -10px;
    z-index: 2;
    padding: 15px 20px;
    background: var(--project-green);
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(21, 156, 75, 0.2);
    animation: ugFloat 3s ease-in-out infinite;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.ug-section-heading {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.ug-section-heading > span {
    display: inline-block;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.ug-section-heading h2 {
    color: var(--project-navy);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 15px;
}

.ug-section-heading p {
    color: var(--project-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   DEPARTMENTS SECTION
========================================================= */

.ug-departments {
    padding: 85px 8%;
    background: var(--project-white);
}

.ug-department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ug-department-card {
    padding: 30px 22px;
    background: var(--project-white);
    border: 1px solid var(--project-border);
    border-radius: 14px;
    text-decoration: none;
    display: block;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.ug-department-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--project-green);
    transition: height 0.35s ease;
}

.ug-department-card:hover::before {
    height: 100%;
}

.ug-department-card:hover {
    transform: translateY(-8px);
    border-color: var(--project-green);
    box-shadow: 0 15px 35px rgba(21, 53, 117, 0.10);
}

.ug-department-card > div {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--project-light-green);
    border-radius: 12px;
    font-size: 28px;
    margin-bottom: 20px;
}

.ug-department-card h3 {
    color: var(--project-navy);
    font-size: 17px;
    margin-bottom: 12px;
}

.ug-department-card p {
    color: var(--project-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.ug-department-card > span {
    color: var(--project-green);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   PROJECT SECTIONS
========================================================= */

.ug-project-section {
    padding: 85px 8%;
    background: var(--project-light);
    scroll-margin-top: 90px;
}

.ug-project-section.alternate {
    background: var(--project-white);
}

.ug-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ug-project-card {
    padding: 32px 27px;
    background: var(--project-white);
    border: 1px solid var(--project-border);
    border-radius: 15px;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.alternate .ug-project-card {
    background: #fbfcff;
}

.ug-project-card:hover {
    transform: translateY(-9px);
    border-color: var(--project-green);
    box-shadow: 0 18px 40px rgba(21, 53, 117, 0.10);
}

.ug-project-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--project-light-green);
    border-radius: 13px;
    font-size: 28px;
    margin-bottom: 20px;
}

.ug-project-label {
    display: inline-block;
    background: #edf2fb;
    color: var(--project-navy);
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.ug-project-card h3 {
    color: var(--project-navy);
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 13px;
}

.ug-project-card p {
    color: var(--project-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
    flex-grow: 1;
}

.ug-project-card a {
    color: var(--project-green);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ug-project-card a:hover {
    color: var(--project-navy);
    transform: translateX(5px);
}

/* =========================================================
   PROJECT SUPPORT SECTION
========================================================= */

.ug-support {
    padding: 85px 8%;
    background: #f0f6ff;
}

.ug-support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ug-support-card {
    background: var(--project-white);
    padding: 30px 22px;
    border-radius: 13px;
    border: 1px solid var(--project-border);
    text-align: center;
    transition: all 0.3s ease;
}

.ug-support-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(21, 53, 117, 0.09);
}

.ug-support-card > span {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--project-green);
    color: var(--project-white);
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.ug-support-card h3 {
    color: var(--project-navy);
    font-size: 17px;
    margin-bottom: 12px;
}

.ug-support-card p {
    color: var(--project-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   FINAL CTA
========================================================= */

.ug-cta {
    padding: 75px 8%;
    background: linear-gradient(120deg, #153575, #0b2454);
    text-align: center;
}

.ug-cta h2 {
    color: var(--project-white);
    font-size: clamp(27px, 4vw, 38px);
    margin-bottom: 18px;
}

.ug-cta p {
    color: #dce6f5;
    font-size: 15px;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 28px;
}

.ug-cta .ug-btn {
    background: var(--project-green);
    border-color: var(--project-green);
    color: white;
}

.ug-cta .ug-btn:hover {
    background: white;
    color: var(--project-navy);
    border-color: white;
}

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

@keyframes ugFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ugFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ugFloat {
    0%, 100% {
        transform: translateY(0);
    }

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

/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

    .ug-hero {
        padding: 70px 5%;
        gap: 30px;
    }

    .ug-hero-visual {
        flex-basis: 320px;
    }

    .ug-departments,
    .ug-project-section,
    .ug-support {
        padding: 70px 5%;
    }

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

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

}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .ug-hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 6%;
    }

    .ug-hero-content {
        max-width: 100%;
    }

    .ug-hero h1 {
        font-size: 36px;
    }

    .ug-hero-content > p {
        font-size: 14px;
    }

    .ug-hero-buttons {
        justify-content: center;
    }

    .ug-highlights {
        justify-content: center;
        gap: 12px;
    }

    .ug-hero-visual {
        width: 100%;
        flex-basis: auto;
        min-height: 320px;
        margin-top: 20px;
    }

    .ug-visual-main {
        max-width: 310px;
    }

    .ug-floating-card {
        right: 0;
    }

    .ug-section-heading {
        margin-bottom: 35px;
    }

    .ug-departments,
    .ug-project-section,
    .ug-support {
        padding: 60px 6%;
    }

    .ug-department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ug-project-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ug-project-card {
        padding: 27px 22px;
    }

    .ug-support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ug-cta {
        padding: 60px 6%;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ug-hero h1 {
        font-size: 30px;
    }

    .ug-tag {
        font-size: 10px;
    }

    .ug-hero-buttons {
        flex-direction: column;
    }

    .ug-btn,
    .ug-btn-outline {
        width: 100%;
    }

    .ug-highlights {
        flex-direction: column;
        align-items: center;
    }

    .ug-department-grid {
        grid-template-columns: 1fr;
    }

    .ug-support-grid {
        grid-template-columns: 1fr;
    }

    .ug-section-heading h2 {
        font-size: 26px;
    }

    .ug-project-card h3 {
        font-size: 17px;
    }

    .ug-floating-card {
        right: 0;
        font-size: 11px;
    }

}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ug-hero-content,
    .ug-hero-visual,
    .ug-floating-card {
        animation: none;
    }

    .ug-department-card,
    .ug-project-card,
    .ug-support-card,
    .ug-btn,
    .ug-btn-outline {
        transition: none;
    }

}



/* ==========================================
   CAMPUS INDIA - 3D GRADUATION CAP
   SMOOTH FLOATING HEADER ANIMATION
========================================== */

.header-animation {
    flex: 1;
    min-width: 120px;
    max-width: 270px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 700px;
    overflow: visible;
    z-index: 2;
}

.cap-scene {
    width: 130px;
    height: 85px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: capFloating 4s ease-in-out infinite;
}

/* MAIN CAP */

.graduation-cap {
    width: 110px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-12deg) rotateY(-15deg);
    transition: transform 0.3s ease;
}

/* CAP TOP - DIAMOND SHAPE */

.cap-top {
    position: absolute;
    width: 72px;
    height: 72px;
    left: 19px;
    top: 2px;

    background: linear-gradient(
        145deg,
        #244B98,
        #102F70 55%,
        #071D4B
    );

    transform: rotateX(58deg) rotateZ(45deg);
    border-radius: 5px;

    box-shadow:
        4px 6px 12px rgba(0, 0, 0, 0.18),
        inset 2px 2px 5px rgba(255,255,255,0.25);
}

/* CAP BASE */

.cap-base {
    position: absolute;
    width: 42px;
    height: 29px;
    left: 34px;
    top: 32px;

    background: linear-gradient(
        135deg,
        #173D83,
        #09245C
    );

    border-radius: 5px 5px 15px 15px;

    transform: translateZ(10px);

    box-shadow: 0 6px 10px rgba(0,0,0,0.18);
}

/* GREEN BUTTON */

.cap-button {
    position: absolute;
    width: 9px;
    height: 9px;
    left: 51px;
    top: 20px;

    background: #159B45;
    border: 2px solid #EAF7EE;
    border-radius: 50%;

    transform: translateZ(25px);

    box-shadow: 0 0 10px rgba(21,155,69,0.5);
}

/* TASSEL STRING */

.cap-tassel {
    position: absolute;
    width: 25px;
    height: 45px;
    left: 52px;
    top: 21px;

    transform-origin: 2px 0;
    transform: translateZ(25px);
    animation: tasselSwing 2.5s ease-in-out infinite;
}

.tassel-string {
    position: absolute;
    width: 2px;
    height: 31px;
    left: 2px;
    top: 0;

    background: #159B45;
    border-radius: 5px;
}

/* TASSEL END */

.tassel-end {
    position: absolute;
    width: 7px;
    height: 13px;
    left: -1px;
    top: 27px;

    background: linear-gradient(
        to bottom,
        #159B45,
        #08732E
    );

    border-radius: 2px 2px 5px 5px;
}

/* FLOATING PARTICLES */

.cap-particle {
    position: absolute;
    color: #159B45;
    font-size: 19px;
    font-weight: bold;
}

.particle-one {
    top: 5px;
    right: 5px;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle-two {
    bottom: 8px;
    left: 5px;
    font-size: 23px;
    animation: particleFloat 4s ease-in-out infinite reverse;
}

.particle-three {
    top: 18px;
    left: 0;
    font-size: 25px;
    animation: particleFloat 3.5s ease-in-out infinite;
}

/* MAIN FLOATING MOVEMENT */

@keyframes capFloating {

    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-11px) rotate(2deg);
    }

}

/* TASSEL SWING */

@keyframes tasselSwing {

    0%, 100% {
        transform: translateZ(25px) rotate(-9deg);
    }

    50% {
        transform: translateZ(25px) rotate(12deg);
    }

}

/* PARTICLE MOVEMENT */

@keyframes particleFloat {

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

    50% {
        transform: translateY(-9px);
        opacity: 1;
    }

}

/* TABLET */

@media (max-width: 1000px) {

    .header-animation {
        max-width: 180px;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .header-animation {
        max-width: 95px;
        min-width: 75px;
        height: 65px;
    }

    .cap-scene {
        transform: scale(0.72);
    }

}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .header-animation {
        display: none;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .cap-scene,
    .cap-tassel,
    .cap-particle {
        animation: none !important;
    }

}


/* =========================================================
   CAMPUS INDIA - MODERN SITE-WIDE MOTION ENHANCEMENTS
   Uses the existing navy, green and white design palette.
========================================================= */

html {
    scroll-behavior: smooth;
}

.main-header,
.main-header .logo,
.main-header .navbar a,
button,
.btn,
a.card-btn,
.contact-btn,
.ug-hero-buttons a {
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.main-header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-header .navbar a {
    position: relative;
}

.main-header .navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: #159B45;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-header .navbar a:hover::after,
.main-header .navbar a:focus-visible::after {
    transform: scaleX(1);
}

.domain-card,
.academic-card,
.why-card,
.ug-department-card,
.ug-project-card,
.ug-support-card,
.contact-info,
.contact-form,
.contact-item {
    transition:
        transform 0.3s cubic-bezier(.2,.7,.2,1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    will-change: transform;
}

.domain-card:hover,
.academic-card:hover,
.why-card:hover,
.ug-department-card:hover,
.ug-project-card:hover,
.ug-support-card:hover,
.contact-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 34px rgba(16, 47, 112, 0.13);
}

button:hover,
.btn:hover,
a.card-btn:hover,
.contact-btn:hover,
.ug-hero-buttons a:hover {
    transform: translateY(-2px);
}

.domain-icon,
.ug-project-icon,
.ug-floating-card {
    transition: transform 0.35s ease;
}

.domain-card:hover .domain-icon,
.ug-project-card:hover .ug-project-icon {
    transform: scale(1.08) rotate(-4deg);
}

img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(21, 155, 69, 0.45);
    outline-offset: 3px;
}

/* Elements only become hidden when JavaScript has enabled motion. */
.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--motion-delay, 0ms);
}

.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.motion-ready .motion-reveal.motion-from-left {
    transform: translate3d(-24px, 0, 0);
}

.motion-ready .motion-reveal.motion-from-right {
    transform: translate3d(24px, 0, 0);
}

.motion-ready .motion-reveal.motion-from-left.is-visible,
.motion-ready .motion-reveal.motion-from-right.is-visible {
    transform: translate3d(0, 0, 0);
}

.hero-content,
.contact-hero > *,
.ug-hero-content,
.ug-hero-visual {
    animation: campusHeroEnter 0.85s cubic-bezier(.2,.7,.2,1) both;
}

.hero-image,
.ug-floating-card {
    animation: campusHeroFloat 5s ease-in-out 1s infinite;
}

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

@keyframes campusHeroFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .motion-ready .motion-reveal,
    .motion-ready .motion-reveal.motion-from-left,
    .motion-ready .motion-reveal.motion-from-right {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   CAMPUS INDIA - PREMIUM UI POLISH (ADDITIVE)
   Keeps the existing layout, content and brand colours.
========================================================= */

/* Sticky, elevated header */
.main-header {
    position: sticky;
    top: 0;
    transition: box-shadow 0.28s ease, min-height 0.28s ease,
                padding 0.28s ease, background-color 0.28s ease;
}

.main-header.header-scrolled {
    box-shadow: 0 8px 28px rgba(9, 36, 92, 0.12);
}

/* Page-wide reading progress */
#ci-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 1001;
    background: linear-gradient(90deg, var(--green), #65c987);
    box-shadow: 0 0 10px rgba(21, 155, 69, 0.25);
    pointer-events: none;
}

/* Helpful floating actions */
.ci-floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.ci-float-btn {
    width: 49px;
    height: 49px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(9, 36, 92, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease,
                opacity 0.22s ease, visibility 0.22s ease;
}

.ci-float-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 11px 25px rgba(9, 36, 92, 0.25);
}

.ci-whatsapp-btn {
    background: var(--green);
}

.ci-top-btn {
    background: var(--blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.ci-top-btn.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ci-float-btn:focus-visible {
    outline: 3px solid rgba(21, 155, 69, 0.35);
    outline-offset: 4px;
}

/* Consistent, refined keyboard and touch feedback */
.navbar a:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(21, 155, 69, 0.4);
    outline-offset: 4px;
}

/* Smoother image presentation without changing image dimensions */
.hero-image img,
.ug-hero-visual img,
.contact-hero img {
    backface-visibility: hidden;
}

/* Small screens: keep floating controls clear of page edges */
@media (max-width: 600px) {
    .ci-floating-actions {
        right: 14px;
        bottom: 14px;
        gap: 9px;
    }

    .ci-float-btn {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ci-float-btn,
    .main-header {
        transition: none !important;
    }
}


/* ==========================================================
   JITTER-INSPIRED MINIMAL MOTION LAYER
   Added without replacing the existing CAMPUS INDIA design.
========================================================== */
:root {
    --ci-motion-ease: cubic-bezier(.22, 1, .36, 1);
    --ci-motion-fast: 260ms;
    --ci-motion-base: 650ms;
}

html { scroll-behavior: smooth; }

/* Subtle page entrance */
body {
    animation: ciPageEnter 720ms var(--ci-motion-ease) both;
}
@keyframes ciPageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Refined motion for existing navigation and calls to action */
.main-header,
.navbar a,
.btn,
button,
.domain-card,
.academic-card,
.why-card,
.ug-department-card,
.ug-project-card,
.ug-support-card,
.contact-info,
.contact-form,
.contact-item,
.project-cta {
    transition-timing-function: var(--ci-motion-ease);
}

.navbar a { position: relative; }
.navbar a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--green, #159b45);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 320ms var(--ci-motion-ease);
}
.navbar a:not(.btn):hover::after,
.navbar a:not(.btn).active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.domain-card,
.academic-card,
.why-card,
.ug-department-card,
.ug-project-card,
.ug-support-card,
.contact-info,
.contact-form,
.contact-item {
    will-change: transform;
    transition: transform 420ms var(--ci-motion-ease),
                box-shadow 420ms var(--ci-motion-ease),
                border-color 320ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .domain-card:hover,
    .academic-card:hover,
    .why-card:hover,
    .ug-department-card:hover,
    .ug-project-card:hover,
    .ug-support-card:hover,
    .contact-item:hover {
        transform: translateY(-7px);
    }
    .hero-image img,
    .ug-hero-visual img,
    .contact-hero img {
        transition: transform 900ms var(--ci-motion-ease);
    }
    .hero-image:hover img,
    .ug-hero-visual:hover img,
    .contact-hero:hover img {
        transform: scale(1.035);
    }
}

.btn,
button {
    transition: transform 280ms var(--ci-motion-ease),
                box-shadow 280ms var(--ci-motion-ease),
                background-color 280ms ease,
                color 280ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .btn:hover,
    button:hover { transform: translateY(-2px); }
}

/* Soft reveal for page headings, in addition to the existing card reveals */
.hero-content > *,
.contact-hero > *,
.ug-hero-content > * {
    animation: ciContentReveal 760ms var(--ci-motion-ease) both;
}
.hero-content > *:nth-child(2),
.contact-hero > *:nth-child(2),
.ug-hero-content > *:nth-child(2) { animation-delay: 90ms; }
.hero-content > *:nth-child(3),
.contact-hero > *:nth-child(3),
.ug-hero-content > *:nth-child(3) { animation-delay: 170ms; }
@keyframes ciContentReveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessible keyboard focus */
.navbar a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(21, 155, 69, .45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body, .hero-content > *, .contact-hero > *, .ug-hero-content > * {
        animation: none !important;
    }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


.ci-page-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    background: var(--blue, #102f70);
    transform: translateY(100%);
    transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
}
.ci-page-transition.is-active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .ci-page-transition { display: none !important; }
}

/* CAMPUS INDIA | minimal geometric icon system */
.ci-geometric-icon { display:inline-block; width:1em; height:1em; vertical-align:-0.125em; flex:none; color:inherit; }
.domain-icon,.academic-icon,.ug-visual-icon,.ug-project-icon { display:flex; align-items:center; justify-content:center; }
.domain-icon .ci-geometric-icon,.academic-icon .ci-geometric-icon,.ug-visual-icon .ci-geometric-icon,.ug-project-icon .ci-geometric-icon { width:1em; height:1em; }
.contact-details .ci-geometric-icon { width:18px; height:18px; vertical-align:middle; margin-right:9px; color:var(--green, #149a57); }
@media (prefers-reduced-motion: reduce) { .ci-geometric-icon { transition:none !important; } }

/* CAMPUS INDIA — minimalist geometric icon system */
.geo-icon { width:1em; height:1em; display:inline-block; vertical-align:-0.15em; stroke:currentColor; flex-shrink:0; }
.domain-icon,.academic-icon,.ug-visual-icon,.ug-project-icon { color:var(--blue,#102f70); line-height:1; }
.domain-icon .geo-icon,.academic-icon .geo-icon,.ug-visual-icon .geo-icon,.ug-project-icon .geo-icon { width:1em; height:1em; }
.domain-card:hover .domain-icon,.academic-card:hover .academic-icon,.ug-project-card:hover .ug-project-icon { color:var(--green,#169b53); }
.hero-features .geo-icon { font-size:1.15em; margin-right:0.4em; color:var(--green,#169b53); }


/* HIGH-CONTRAST FOOTER CONTACT DETAILS */
.main-footer .contact-details p,
.main-footer .contact-details a,
.main-footer .footer-contact p,
.main-footer .footer-contact a {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.9;
}
.main-footer .contact-details .ci-geometric-icon,
.main-footer .footer-contact .ci-geometric-icon {
    color: #55D6FF !important;
}
.main-footer .contact-details a:hover,
.main-footer .footer-contact a:hover {
    color: #70E6A2 !important;
    text-decoration: underline;
}

/* Consistent phone-number block across the website */
.main-footer .contact-details h3 { color:#159B45; font-size:18px; font-weight:700; margin:0 0 12px; }
.main-footer .phone-number-list { display:block; line-height:1.9; margin:0 0 12px; }
.main-footer .phone-number-list a { display:inline-block; color:#FFFFFF; font-size:14px; font-weight:600; text-decoration:none; }
.main-footer .phone-number-list a:hover { color:#70E6A2; }
.contact-info .phone-number-list { line-height:1.9; margin:0; }
.contact-info .phone-number-list a { display:inline-block; color:#38465C; font-size:16px; font-weight:500; text-decoration:none; }
.contact-info .phone-number-list a:hover { color:#159B45; }
