:root {
    /* Colors */
    --primary: #0284c7;
    /* Light Blue/Teal corporate */
    --primary-hover: #0369a1;
    --secondary: #0f172a;
    /* Slate 900 */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hero: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white !important;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    background-color: var(--secondary);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    bottom: -50px;
    right: 20%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: #38bdf8;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Search Box */
.search-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-hero);
    color: var(--text-main);
}

.search-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Form grid layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

.custom-select-wrapper {
    position: relative;
}

.large-select,
.large-input {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--secondary);
    transition: var(--transition);
    appearance: none;
}

.large-input {
    padding-left: 3.5rem;
}

.large-select:focus,
.large-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
    background-color: white;
}

.select-icon,
.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.select-icon {
    right: 1.25rem;
}

.input-icon {
    left: 1.25rem;
}

/* Switches row */
.switches-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.switch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.switch-card:has(input:checked) {
    border-color: var(--primary);
    background-color: rgba(2, 132, 199, 0.04);
}

.switch-label {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #cbd5e1;
    border-radius: 34px;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 4px;
    top: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.toggle-switch input:checked ~ .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked ~ .toggle-slider::before {
    transform: translateX(22px);
}

/* Directory Preview */
.directory-preview {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.instructor-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.instructor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(2, 132, 199, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--border-color);
    border-left-color: var(--primary);
}

.card-header {
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.instructor-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.instructor-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.instructor-status.busy {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.card-body {
    padding: 1.5rem 2rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.instructor-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.instructor-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.instructor-email:hover {
    color: var(--primary);
}

.card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.view-more-container {
    text-align: center;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col p {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: #94a3b8;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    background: #0b1120;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .stats-row {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-card {
        padding: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}