/* --- Google Font: Poppins --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*
--- 🎨 LOGO-BASED COLOR PALETTE ---
Colors sampled directly from your logo file.
*/

:root {
    /* Logo Colors */
    --alpine-green: #009A4E;  /* The vibrant green from "ALPINE" */
    --alpine-red: #EC1C24;    /* The strong red from "INSTITUTE" */
    --alpine-yellow: #FDB813; /* The sun-yellow from the icon */
    --alpine-star: #FFD200;   /* The star/background yellow */

    /* Light Theme */
    --primary-color: var(--alpine-green);
    --secondary-color: var(--alpine-red); /* Using red as the secondary color */
    --bg-color: #FFFFFF;
    --bg-light-alt: #F8F9FA;
    --text-color: #333;
    --text-muted: #6c757d;
    --card-bg: #FFFFFF;
    --border-color: #EAEAEA;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.07);

    --font-family: 'Poppins', sans-serif;
}

/* --- 🌙 DARK THEME --- */
html.dark {
    --primary-color: var(--alpine-green);
    --secondary-color: var(--alpine-red);
    --bg-color: #121212;
    --bg-light-alt: #1E1E1E;
    --text-color: #F1F1F1;
    --text-muted: #999;
    --card-bg: #1E1E1E;
    --border-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- ⚙️ GENERAL & ANIMATIONS --- */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-color);
}

p {
    color: var(--text-muted);
    font-weight: 400;
}
.lead {
    font-weight: 400;
    color: var(--text-color);
}

.section-title {
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* --- 🌟 CUSTOM BUTTONS (Updated) --- */
.btn {
    border-radius: 50px; /* Modern rounded buttons */
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Green Button (Primary) */
.btn-primary-alpine {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-primary-alpine:hover {
    background-color: #007c3f; /* A slightly darker green */
    border-color: #007c3f;
    color: #fff;
}

/* Red Button (Secondary) */
.btn-secondary-alpine {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary-alpine:hover {
    background-color: #c0121c; /* A slightly darker red */
    border-color: #c0121c;
    color: #fff;
}

/* Yellow Button (Accent) */
.btn-warning-alpine {
    background-color: var(--alpine-yellow);
    border-color: var(--alpine-yellow);
    color: #212529;
}
.btn-warning-alpine:hover {
    background-color: #e09e00;
    border-color: #e09e00;
    color: #212529;
}

.btn-outline-primary-alpine {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary-alpine:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* --- 🖥️ HEADER & NAVIGATION --- */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}
.navbar .navbar-brand { font-weight: 700; font-size: 1.5rem; color: var(--text-color); }
.navbar .nav-link { 
    font-weight: 600; 
    color: var(--text-muted);
    margin: 0 0.5rem;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary-color);
}
.navbar .btn {
    padding: 8px 24px;
}

.notification-bar {
    background: var(--alpine-yellow); /* Use logo yellow */
    color: #000;
    padding: 8px 0;
    font-weight: 500;
}
.notification-bar a { color: #000; text-decoration: none; }
.notification-bar a:hover { text-decoration: underline; }

/* --- 🦸 HERO CAROUSEL --- */
.hero-slider .carousel-item {
    /* Desktop default */
    height: 60vh;
    /* min-height: 600px; */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease-in-out; /* Smooth slide transition */
}

/* Dark overlay to make text pop */
.hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker gradient on mobile for better readability */
    /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%); */
}

.hero-slider .carousel-caption {
    bottom: 50%;
    left: 10%;
    transform: translateY(50%); /* Vertically center */
    text-align: left;
    width: 60%; /* Widen slightly */
    z-index: 10;
    padding-bottom: 0; /* Bootstrap override */
}

.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-slider .carousel-caption p {
    font-size: 1.35rem;
    color: #f8f9fa;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

/* --- 📱 MOBILE RESPONSIVENESS (Add this below the carousel styles) --- */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 70vh; /* Shorter height on mobile */
        min-height: 400px; /* Reduced min-height */
        background-position: center top; /* Focus on faces/top of images */
    }

    .hero-slider .carousel-item::after {
        /* Full dark overlay on mobile so text is readable on any image */
        background: rgba(0, 0, 0, 0.5); 
    }

    .hero-slider .carousel-caption {
        width: 90%; /* Use full width */
        left: 5%;   /* Center it */
        right: 5%;
        bottom: 40%; /* Adjust vertical position */
        transform: translateY(40%);
        text-align: center; /* Center text on mobile */
    }

    .hero-slider .carousel-caption h1 {
        font-size: 2rem; /* Smaller font for mobile */
    }

    .hero-slider .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-slider .btn {
        padding: 10px 24px; /* Slightly smaller button */
        font-size: 0.9rem;
    }
}

/* --- 🎓 COURSE CARD (Modernized) --- */
.course-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px; /* Softer edges */
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.course-card .card-img-top {
    border-radius: 15px 15px 0 0;
}
.course-card .card-body {
    padding: 1.5rem;
}
.course-card .card-title {
    font-weight: 700;
    color: var(--primary-color);
}
.course-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* --- 💡 "WHY CHOOSE US" SECTION --- */
.feature-icon-box {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}
.feature-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
}
.feature-icon-box h5 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* --- 👨‍🏫 FACULTY & TESTIMONIAL SLIDERS --- */
.swiper-slide {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.faculty-card, .testimonial-card {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
}
.faculty-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}
.testimonial-card .student-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 1.5rem;
}
.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

/* --- 📞 CTA SECTION (Special Offer) --- */
.cta-section {
    background: linear-gradient(135deg, var(--alpine-green), #007c3f); /* Green gradient */
    border-radius: 20px;
    padding: 4rem;
    color: #fff;
}
.cta-section h2 { color: #fff; font-weight: 800; }
.cta-section p { color: #f1f1f1; }
/* Use the red button for contrast on the green background */
.cta-section .btn-warning-alpine {
    background-color: var(--alpine-yellow);
    border-color: var(--alpine-yellow);
    color: #212529;
}
.cta-section .btn-warning-alpine:hover {
    background-color: #e09e00;
    border-color: #e09e00;
}


/* ---  FOOTER --- */
footer {
    background-color: #222; /* A dark grey, works well with the logo */
    color: #ccc;
    padding-top: 4rem;
}
html.dark footer {
    background-color: #000;
}
footer h5 { color: var(--alpine-yellow); font-weight: 700; }
footer a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #fff; text-decoration: underline; }
.social-icons-footer .bi {
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons-footer a:hover .bi {
    color: var(--alpine-yellow);
    transform: scale(1.2);
}

/* --- 🌗 THEME TOGGLE BUTTON --- */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* --- 📄 GENERIC PAGE HEADERS --- */
.page-header {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header .breadcrumb {
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}
.page-header .breadcrumb-item a { color: var(--alpine-yellow); text-decoration: none; }
.page-header .breadcrumb-item.active { color: #fff; }