:root {
    --primary-blue: #007bff;
    --deep-navy: #1a2a40;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

/* TOP UTILITY BAR */
.top-utility-bar {
    background: var(--deep-navy);
    padding: 10px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flex-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contact Info Side */
.contact-info-top {
    display: flex;
    gap: 25px;
}

.contact-info-top a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-top a i {
    color: var(--primary-blue); /* Icons pop in blue */
}

.contact-info-top a:hover {
    color: white;
}

/* Social Side */
.social-links-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links-top span {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links-top a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-links-top a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ADJUST NAV BAR POSITION */
/* Since we added a top bar, we need to push the Glass Dock down slightly */
.glass-dock {
    top: 60px; /* Adjusted from 30px to clear the top bar */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-links-top {
        display: none; /* Hide socials on mobile to save space */
    }
    .contact-info-top {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    .glass-dock {
        top: 80px;
    }
}

/* 1. TOP SECTION: GLASS DOCK NAVIGATION */
.glass-dock {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-radius: 100px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.logo-capsule {
    /* background: white;  */
    padding: 8px 20px;
    border-radius: 50px;
    /* box-shadow: inset 0 0 5px rgba(0,0,0,0.05); */
}

.logo-capsule img { height: 60px; display: block; }

.nav-links a {
    text-decoration: none;
    color: var(--deep-navy);
    font-weight: 700;
    margin: 0 20px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary-blue); }

.btn-glow {
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* 2. HERO AREA: CINEMATIC DESIGN */
.hero-cinematic {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 42, 64, 0.7), rgba(26, 42, 64, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88;
    animation: pulse 1.5s infinite;
}

h1 { font-size: 4.5rem; line-height: 1; font-weight: 800; margin-bottom: 25px; }
.text-gradient {
    background: linear-gradient(90deg, #00d4ff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

/* 3. FLOATING DATA CARDS */
.hero-visual-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-data-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.top-right { top: 20%; right: 5%; transform: rotate(5deg); }
.bottom-left { bottom: 15%; left: 5%; transform: rotate(-5deg); }

.card-icon { font-size: 1.5rem; background: var(--primary-blue); padding: 10px; border-radius: 12px; }
.card-text strong { display: block; font-size: 1.1rem; }
.card-text span { font-size: 0.8rem; opacity: 0.8; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* about */

.about-section {
    padding: 120px 10%;
    background: #ffffff;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Visual Side Styling */
.about-visual {
    position: relative;
}

.image-stack {
    position: relative;
    z-index: 1;
}

.img-main {
    width: 85%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(26, 42, 64, 0.15);
}

.img-sub {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 45%;
    border-radius: 20px;
    border: 8px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    top: -30px;
    left: -30px;
    background: var(--primary-blue);
    color: white;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.exp-num { font-size: 3rem; font-weight: 800; line-height: 1; }
.exp-text { font-size: 0.8rem; font-weight: 600; text-align: center; text-transform: uppercase; margin-top: 5px; }

/* Text Side Styling */
.section-tag {
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--deep-navy);
    line-height: 1.2;
    margin: 15px 0 25px;
}

.text-blue { color: var(--primary-blue); }

.lead {
    font-size: 1.2rem;
    color: #556070;
    margin-bottom: 35px;
}

.legacy-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--deep-navy);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.btn-outline-dark {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--deep-navy);
    color: var(--deep-navy);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: var(--deep-navy);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { margin-bottom: 60px; }
    .img-main { width: 100%; }
}

/* courses */

.courses-section {
    padding: 100px 10%;
    background: #f8fafe; /* Light medical blue tint */
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.badge-alt {
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--deep-navy);
    margin: 10px 0;
}

/* Course Card Design */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 42, 64, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.05);
    transition: 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.15);
}

.course-img {
    position: relative;
    height: 220px;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-img .tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-info {
    padding: 30px;
}

.course-info h3 {
    font-size: 1.4rem;
    color: var(--deep-navy);
    margin-bottom: 12px;
}

.course-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.course-meta span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.btn-text {
    color: var(--deep-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-text:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* See All Button */
.center-btn {
    text-align: center;
}

.btn-see-all {
    display: inline-block;
    padding: 18px 45px;
    background: var(--deep-navy);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(26, 42, 64, 0.2);
}

.btn-see-all:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

/* gallery */

.gallery-section {
    padding: 100px 0; /* Vertical padding only, horizontal handled by .container */
    background: #ffffff;
}

/* Container restricts width, overflow:hidden keeps it tidy */
.gallery-carousel {
    padding-bottom: 50px !important;
    position: relative;
    overflow: hidden !important; 
}

.carousel-card-small {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px; /* Smaller height for compact look */
    background: #f0f0f0;
    transition: transform 0.3s ease;
}

.carousel-card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Elegant Label style */
.card-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--deep-navy);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hover effect */
.carousel-card-small:hover {
    transform: translateY(-5px);
}

.gallery-btn-top {
    margin-top: 30px;
}

/* Adjusting Swiper dots for smaller cards */
.swiper-pagination {
    bottom: 0 !important;
}

/* 5. CONTACT SECTION */
.contact-section {
    padding: 100px 0;
    background: #f8fafe;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

/* Info Card - Dark Theme */
.contact-info-card {
    background: var(--deep-navy);
    padding: 60px;
    border-radius: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card h2 {
    color: white;
    font-size: 2.8rem;
    margin: 20px 0;
}

.contact-info-card p {
    opacity: 0.8;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Form Styling */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.dims-form .form-group {
    margin-bottom: 25px;
}

.dims-form label {
    display: block;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.dims-form input, 
.dims-form select, 
.dims-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.dims-form input:focus {
    border-color: var(--primary-blue);
    outline: none;
    background: #f8fbff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.w-100 { width: 100%; }

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-card {
        padding: 40px;
    }
}

/* PARALLAX CONTACT SECTION */
.parallax-contact {
    position: relative;
    padding: 120px 0;
    /* Replace URL with your preferred medical/campus background */
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=1920');
    background-attachment: fixed; /* Core Parallax Logic */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 42, 64, 0.85); /* Deep navy overlay to make form pop */
    z-index: 1;
}

.parallax-contact .container {
    position: relative;
    z-index: 2;
}

/* Centering Logic */
.contact-form-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 50%; /* Desktop Width */
    max-width: 800px;
}

.center-text {
    text-align: center;
    margin-bottom: 35px;
}

.form-title {
    font-size: 2.5rem;
    margin-top: 10px;
    color: var(--deep-navy);
}

/* Ensure form rows stay side-by-side on desktop */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        width: 80%; /* Wider on tablets */
    }
}

@media (max-width: 768px) {
    .parallax-contact {
        background-attachment: scroll; /* Parallax often breaks on mobile, scroll is safer */
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        width: 95%; /* Almost full width on mobile */
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

/* 6. UPDATED FOOTER SECTION */
.main-footer {
    background: #0f172a;
    color: white;
    padding: 80px 10% 40px;
    font-size: 0.95rem;
}

/* Container ensures the 10% padding on both sides */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Equal columns */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 25px;
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

/* Subtle accent line under headers */
.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
    color: #94a3b8;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
}

.footer-contact-list li {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer Bottom Area */
.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.legal-links a:hover {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular buttons */
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    border-color: var(--primary-blue);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #004687; /* Replace with DIMS primary brand color */
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none; /* Hidden by default */
    z-index: 100;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #002e5a;
    transform: translateY(-5px);
}