:root {
    --primary-blue: #0b3d91;
    --secondary-gold: #d4af37;
    --light-blue: #e8f0fe;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-gray: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 80px 5%;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.10);
    /* Zooms the video by 10% */
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 70%);
    /* Blue overlay to ensure readability */
    z-index: 1;
}

.hero-content,
.enquiry-form {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

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

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary-gold);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: #ffe373;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Special Apply Now Button */
.btn-apply-special {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.btn-apply-special:hover {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Sticky Apply Now Sidebar Button */
.sticky-apply-btn {
    position: fixed;
    top: 50%;
    right: -60px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    background-color: #b73232;
    /* matching the dark red */
    color: var(--white);
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-transform: uppercase;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, right 0.4s ease, opacity 0.4s ease, background-color 0.3s ease;
    letter-spacing: -5px;
}

.sticky-apply-btn.visible {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

.sticky-apply-btn.visible:hover {
    background-color: #9c2727;
    transform: translateY(-50%) translateX(-3px);
}

/* Basic Details Bar */
.info-bar {
    background: #082d6b;
    color: var(--white);
    padding: 20px 5%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 15px;
}

.info-bar-logo {
    max-width: clamp(200px, 20vw, 400px);
    /* Dynamically zoom down to 200px minimum */
    width: 100%;
    /* Ensure it resizes down if necessary */
    height: auto;
    margin-right: 15px;
    flex-shrink: 1;
}

.info-items-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: space-evenly;
    align-items: center;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Slightly tighter gap between icon and text */
    font-size: clamp(0.7rem, 1vw, 0.95rem);
    /* Allows text to smoothly shrink on zoom/small screens */
    font-weight: 500;
    flex-shrink: 1;
    /* Allow items to compress rather than overflow */
    white-space: nowrap;
}

.info-item i {
    color: var(--secondary-gold);
    font-size: 1.2rem;
}

/* Sections General */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-gold);
    border-radius: 2px;
}

/* Cards Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Placement & Lists */
.list-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.list-card:hover {
    transform: translateY(-5px);
}

.list-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 15px;
}

.list-card ul {
    list-style: none;
}

.list-card ul li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    font-size: 1.05rem;
}

.list-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
    font-size: 1.2rem;
}

/* Two columns layout */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .two-cols {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}

/* Gallery */
.gallery-section {
    overflow: hidden;
}

.gallery-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Gallery Scroll Container */
.gallery-grid {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    width: max-content;
    /* Move 8 items smoothly, holding at each for a moment */
    animation: scrollAnimation 24s ease-in-out infinite;
}

.gallery-grid:hover {
    animation-play-state: paused;
}

@keyframes scrollAnimation {

    0%,
    10% {
        transform: translateX(0);
    }

    12.5%,
    22.5% {
        transform: translateX(calc(-6.25% - 1.25px));
    }

    25%,
    35% {
        transform: translateX(calc(-12.5% - 2.5px));
    }

    37.5%,
    47.5% {
        transform: translateX(calc(-18.75% - 3.75px));
    }

    50%,
    60% {
        transform: translateX(calc(-25% - 5px));
    }

    62.5%,
    72.5% {
        transform: translateX(calc(-31.25% - 6.25px));
    }

    75%,
    85% {
        transform: translateX(calc(-37.5% - 7.5px));
    }

    87.5%,
    97.5% {
        transform: translateX(calc(-43.75% - 8.75px));
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stars of SKPC Section */
.stars-section {
    position: relative;
    background-image: url('image/skpc-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 5%;
}

.stars-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(3 18 44 / 85%);
    /* Dark primary blue overlay */
    z-index: 1;
}

.stars-section .section-title,
.stars-section .grid-container {
    position: relative;
    z-index: 2;
}

.stars-section .section-title {
    color: var(--white);
}

.stars-section .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stars-section .card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stars-section .card h3 {
    color: var(--secondary-gold);
}

.stars-section .card p {
    color: #e0e0e0;
}


/* Custom Scrollbar for Gallery */
.gallery-grid::-webkit-scrollbar {
    height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

.gallery-item {
    flex: 0 0 320px;
    /* Fixed width for each item */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials Swiper - equal height slides */
.testimonial-swiper .swiper-wrapper {
    align-items: stretch;
}

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

/* Single animated progress bar (WhatsApp story style) */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px auto 0;
    width: 90%;
}

.testimonial-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.testimonial-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--secondary-gold);
    border-radius: 2px;
    animation: testimonialProgress 4s linear forwards;
}

@keyframes testimonialProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.testimonial-play-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--secondary-gold);
    background: transparent;
    color: var(--secondary-gold);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.testimonial-play-btn:hover {
    background: var(--secondary-gold);
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--light-blue);
    position: absolute;
    top: 20px;
    left: 30px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.student-name {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Form Section */
.enquiry-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--secondary-gold);
    color: var(--text-dark);
    text-align: left;
    width: 100%;
    max-width: 550px;
    justify-self: center;
}

.enquiry-form .form-title {
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--bg-gray);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
    background-color: var(--white);
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    justify-content: center;
    margin-top: 10px;
    padding: 16px;
    font-size: 1.2rem;
}

.btn-submit:hover {
    background: #082d6b;
}

/* Footer */
footer {
    background: #051b40;
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--primary-blue), #1a56bc);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--secondary-gold);
    margin-bottom: 20px;
}

.achievement-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Programmes Background Image */
#programmes {
    position: relative;
    background-image: url('image/College-Photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 5%;
}

#programmes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(3 18 44 / 85%);
    z-index: 1;
}

#programmes .section-title,
#programmes .grid-container {
    position: relative;
    z-index: 2;
}

#programmes .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Top Recruiters Section */
.recruiters-section {
    padding: 60px 0;
    background-color: var(--bg-gray);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background-color: var(--white);
    border-top: 2px solid var(--secondary-gold);
    border-bottom: 2px solid var(--secondary-gold);
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 80px;
    width: max-content;
    animation: scrollMarquee 45s linear infinite;
    padding: 0 40px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.recruiter-logo {
    width: 140px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recruiter-logo:hover {
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translate left by exactly half the container width (representing one set of logos) */
        transform: translateX(calc(-50% - 40px));
    }
}

.marquee-content.reverse {
    animation: scrollMarqueeReverse 45s linear infinite;
}

@keyframes scrollMarqueeReverse {
    0% {
        /* Start shifted left */
        transform: translateX(calc(-50% - 40px));
    }

    100% {
        /* Animate to the right */
        transform: translateX(0);
    }
}

/* Alumnae Swiper */
.alumnae-swiper {
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Equal height slides */
.alumnae-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.alumnae-swiper .swiper-wrapper {
    align-items: stretch;
}

.alumnae-swiper .swiper-button-prev,
.alumnae-swiper .swiper-button-next {
    color: var(--secondary-gold);
    background: rgba(11, 61, 145, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    top: 45%;
}

.alumnae-swiper .swiper-button-prev::after,
.alumnae-swiper .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 900;
}

.alumnae-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.alumnae-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-gold);
}


.alumnae-profile-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid transparent;
    transform: translate3d(0, 0, 0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alumnae-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(11, 61, 145, 0.15);
}

.alumnae-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
}

.alumnae-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    z-index: 1;
}

.alumnae-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.alumnae-profile-card:hover .alumnae-img-wrapper img {
    transform: scale(1.1);
}

.alumnae-info {
    padding: 0 20px 30px;
    position: relative;
    z-index: 2;
    margin-top: -30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alumnae-info h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.alumnae-role {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.alumnae-batch {
    display: inline-block;
    background: var(--secondary-gold);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}