:root {
    --primary-color: #0d1b2a;
    --accent-teal: #0d9488;
    --accent-blue: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: relative;
    /* Height matches the logo image height */
    height: 90px;
    width: 280px;
    /* Adjust based on logo/text width */
    display: flex;
    align-items: center;
    overflow: visible;
    /* text might be wider */
}

.logo img,
.logo-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: alternateLogo 8s infinite;
}

.logo img {
    height: 85px;
    /* Increased */
    display: block;
    /* Starts visible */
    animation-delay: 0s;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Increased */
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: -0.02em;
    /* Delayed start */
    animation-delay: 4s;
}

@keyframes alternateLogo {

    0%,
    45% {
        opacity: 1;
        visibility: visible;
    }

    50%,
    95% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--accent-teal);
}

.dropdown {
    position: relative;
    /* Ensure hover works nicely */
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Make sure there's a bridge so mouse doesn't leave hover area */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-teal);
}

.icon-link {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f3f4f6);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Carousel Section */
.carousel-section {
    padding: 2rem 0 5rem;
    background: transparent;
    margin-top: -2rem;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.bg-gradient-1 {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #0d9488, #22d3ee);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #ea580c, #facc15);
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.card-icon {
    margin-bottom: auto;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card small {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.1;
}

.stat {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.sub-stat {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.btn-text {
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-circular {
    position: absolute;
    right: 0;
    bottom: 3rem;
    width: 48px;
    height: 48px;
    background: white;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.btn-circular:hover {
    transform: scale(1.1);
}

/* Tabs Section */
.tabs-section {
    padding: 4rem 0;
    background: #fff;
}

.tabs-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-col {
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-col h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tabs-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.area-card {
    height: 180px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    cursor: pointer;
}

.area-card:hover .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    transition: background 0.3s;
    z-index: 1;
}

.area-card span {
    position: relative;
    z-index: 2;
    font-weight: 600;
    line-height: 1.2;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid #0d9488;
    padding-left: 2rem;
}

.cert-item {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Content Sections (Finishing School, etc) */
.content-section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--bg-light);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-number {
    font-size: 5rem;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 0.5;
    display: block;
    margin-bottom: 2rem;
}

.text-col h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

blockquote {
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-teal);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.25rem;
}

.list-col h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.list-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-col li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
}

.list-col li::before {
    content: "•";
    color: var(--accent-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #fff;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-header small {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-teal);
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 0.5rem;
    color: #9ca3af;
    transition: all 0.2s;
    pointer-events: none;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--accent-teal);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 0.75rem;
    color: var(--accent-teal);
}

#courseDropdownContainer {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #000;
}

.contact-footer-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background: #111;
    color: #e5e7eb;
    padding: 5rem 0 2rem;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-col img {
    max-width: 200px;
    height: auto;
}

.footer-col ul {
    color: #9ca3af;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: #fff;
}

.promo-box {
    background: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.promo-box small {
    display: block;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 1px solid #4b5563;
    padding: 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.footer-logo {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    text-align: right;
}

@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .carousel-track {
        grid-template-columns: 1fr;
    }

    .tabs-content,
    .tabs-header {
        grid-template-columns: 1fr;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

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

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: space-between;
    }

    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* "Category" Header Style */
    .dropdown>.nav-link {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        padding: 1rem 1.5rem 0.5rem;
        pointer-events: none;
        background: transparent;
        display: block;
        width: 100%;
        border: none;
        text-transform: none;
        letter-spacing: normal;
        text-align: left;
    }

    .dropdown>.nav-link i,
    .dropdown>.nav-link svg {
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        transform: none;
        padding: 0;
    }

    /* Sub-items with Dash */
    .dropdown-menu a {
        padding: 0.5rem 2rem;
        border: none;
        color: var(--text-dark);
        font-weight: 400;
        display: block;
        padding-left: 2.5rem;
        /* Space for the dash */
        position: relative;
    }

    .dropdown-menu a::before {
        content: "-";
        position: absolute;
        left: 1.5rem;
        color: var(--text-dark);
    }

    .dropdown-menu a:hover {
        background: var(--bg-light);
        color: var(--accent-teal);
    }

    /* "About" Link Style */
    .main-nav>.nav-link {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        padding: 1rem 1.5rem;
        margin-top: 0;
        justify-content: flex-start;
        border-top: none;
        text-transform: none;
        letter-spacing: normal;
    }

    .dropdown::after {
        display: none;
    }

    .logo {
        height: 60px;
        width: 200px;
    }

    .logo img {
        height: 55px;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-col img {
        max-width: 120px;
    }
}