/* 
  Premium Higher Education Design System
  Theme: Deep Navy & Academic Gold
*/

:root {
    --primary-color: #001f3f;
    /* Deep Navy */
    --accent-color: #d4af37;
    /* Academic Gold */
    --secondary-color: #003366;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar Styling */
.navbar {
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Parallax Effect */
.parallax-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 31, 63, 0.4) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

/* Hero Section */
.hero-section {
    background-image: url('hero-bg.png');
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.btn-premium {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    border: 2px solid var(--accent-color);
}

.btn-premium:hover {
    background: transparent;
    color: var(--accent-color) !important;
    transform: translateY(-5px);
}

/* Course Cards - Premium Redesign */
.course-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    background: #fff;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 25px 60px rgba(0, 31, 63, 0.15);
    border-color: var(--accent-color);
}

.course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.course-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 31, 63, 0.4) 0%, rgba(0, 31, 63, 0) 50%);
    opacity: 0.8;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.course-body {
    padding: 2rem;
}

.course-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #b8860b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.course-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.course-card:hover h3 {
    color: var(--accent-color);
}

.course-card .text-muted {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-duration {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f1f1;
}

.course-duration i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Redesigning the Enquire Now Button for Card */
.btn-card-enquire {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.course-card:hover .btn-card-enquire {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color);
    background: rgba(0, 31, 63, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

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

/* CTA Parallax */
.cta-parallax {
    background-image: url('cta-bg.png');
    height: 60vh;
    min-height: 400px;
}

/* Features Section */
.feature-box {
    padding: 3rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #eee;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-box:hover .feature-icon {
    color: var(--white);
    transform: rotateY(360deg);
}

/* Enquiry Form Styling */
.form-floating>label {
    color: #999;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}

/* Footer */
.footer {
    background: #001226;
    color: #8a99a8;
    padding: 5rem 0 2rem;
}

.footer-heading {
    color: var(--white);
    margin-bottom: 2rem;
}

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

.footer-list li {
    margin-bottom: 1rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* floating-ctas */
.floating-ctas {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-cta {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 60px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    display: block;
    text-decoration: none;
    position: relative;
}

.floating-call {
    background-color: var(--primary-color);
}

.floating-whatsapp {
    background-color: #25d366;
}

.floating-cta:hover {
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.floating-call:hover {
    background-color: var(--secondary-color);
}

.floating-whatsapp:hover {
    background-color: #128c7e;
}

.cta-tooltip {
    position: absolute;
    left: 75px;
    bottom: 15px;
    background: #1a1a1a;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.floating-cta:hover .cta-tooltip {
    opacity: 1;
    visibility: visible;
}

/* scroll-to-top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 2px solid var(--accent-color);
    text-align: center;
    font-size: 20px;
    line-height: 46px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* --- About Us / Why Choose Us Beautification --- */

.about-image-stack {
    position: relative;
    padding: 2rem;
}

.about-img-main {
    width: 85%;
    border-radius: 10px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.about-img-secondary {
    width: 65%;
    position: absolute;
    bottom: -10px;
    right: 0;
    border-radius: 10px;
    border: 8px solid var(--white);
    box-shadow: 10px 10px 40px rgba(0,0,0,0.15);
    z-index: 3;
    transition: var(--transition-smooth);
}

.about-image-stack:hover .about-img-main {
    transform: scale(0.98);
}

.about-image-stack:hover .about-img-secondary {
    transform: scale(1.05) translateY(-10px);
}

.about-accent-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 90%;
    background: var(--primary-color);
    border-radius: 10px;
    opacity: 0.05;
    z-index: 1;
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--accent-color);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
}

/* Feature Item Polish */
.feature-item-lux {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
    border-left: 0px solid var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item-lux:hover {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--accent-color);
}

.feature-icon-lux {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Responsive Media Queries --- */

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {

    /* 1. Typography Scaling */
    .hero-title {
        font-size: 2.2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.7rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* 2. Hero Section Adjustments */
    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-section .lead {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* 3. Parallax Mobile Optimization */
    .parallax-section {
        background-attachment: scroll !important;
        background-position: center center;
    }

    /* 4. Floating CTAs - Reposition to Right side to avoid button overlap */
    .floating-ctas {
        left: auto !important;
        right: 25px !important;
        bottom: 95px !important;
        /* Stacked above Scroll to Top */
        gap: 12px !important;
    }

    .floating-cta {
        width: 48px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 20px !important;
    }

    .cta-tooltip {
        display: none !important;
    }

    .scroll-to-top {
        right: 25px !important;
        bottom: 25px !important;
        width: 48px !important;
        height: 48px !important;
        line-height: 46px !important;
    }

    /* 5. Swiper Slider Mobile UI Refresh */
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
        background: rgba(0, 31, 63, 0.95) !important;
        top: auto !important;
        bottom: 10px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.8rem !important;
    }

    .swiper-button-next {
        right: 20% !important;
    }

    .swiper-button-prev {
        left: 20% !important;
    }

    .swiper-pagination {
        bottom: 15px !important;
    }

    /* 6. General Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .feature-box {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .course-body {
        padding: 1.5rem;
    }
}

.navbar-expand-lg .navbar-nav {
    display: flex !important;
    align-items: center !important;
}