:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #d97706;
    /* Amber 600 */
    --text-color: #334155;
    /* Slate 700 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --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);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #b45309;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

nav a {
    margin-left: 1.5rem;
    color: var(--text-color);
}

nav a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background-color: #b45309;
    /* Amber 700 */
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Cards & Forms */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3.2rem 0;
    margin-bottom: 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
}

.hero-form .form-group {
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Dashboard Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: #f1f5f9;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

tr:last-child td {
    border-bottom: none;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-form {
        text-align: left;
        margin-top: 2rem;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    /* Make registration grid single column on mobile */
    .register-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0.5rem 0;
        margin-left: 0;
        display: block;
        padding: 0.5rem 1rem;
    }

    .mobile-toggle {
        display: block;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }

    nav {
        display: flex;
        align-items: center;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    display: inline-block;
    position: relative;
    /* margin-left handled by child 'a', or we move it here */
}

/* Ensure the wrapper behaves in the nav flow */
nav .dropdown {
    margin-left: 1.5rem;
}

/* Reset the trigger link margin since the wrapper handles it, 
   to align the absolute dropdown content correctly */
nav .dropdown>a {
    margin-left: 0;
    display: inline-block;
    /* Ensure decent hit area */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    z-index: 100;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    border: 1px solid #e2e8f0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    margin-left: 0 !important;
    /* Override generic nav a margin */
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    nav .dropdown {
        margin-left: 0;
        display: block;
        width: 100%;
    }

    nav .dropdown>a {
        margin: 0.5rem 0;
        /* Match other mobile links */
        padding: 0.5rem 1rem;
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding: 0;
        width: 100%;
        display: none;
        /* Hidden by default */
    }

    /* Show on hover or active state for mobile */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding-left: 2rem;
        /* Indent sub-items */
        font-size: 0.95rem;
    }

    .dropdown-content a {
        padding-left: 2rem;
        /* Indent sub-items */
        font-size: 0.95rem;
    }
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    /* Changed to inline-flex to center content */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 50%;
    /* Make them circular */
    transition: all 0.2s;
    text-decoration: none;
    /* Ensure no underline */
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- UI Enhancements --- */

/* How It Works - Vertical Process Line */
.process-wrapper {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 1.5rem;
    /* Align with the circles */
}

.process-step {
    position: relative;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    position: absolute;
    left: -3.6rem;
    /* Adjust to center on the border line */
    top: 0;
    width: 3.2rem;
    height: 3.2rem;
    background: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--white);
    /* White ring to mask line */
}

/* Feature Cards Enhanced */
.feature-item {
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #e2e8f0;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
    transition: background 0.3s;
}

.feature-item:hover .feature-icon-wrapper {
    background: var(--accent-color);
    color: white;
}

/* FAQ Accordion Enhanced */
details.faq-card {
    background: white;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s;
}

details.faq-card:hover {
    box-shadow: var(--shadow-md);
}

details.faq-card summary {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    padding-right: 3rem;
}

details.faq-card summary::-webkit-details-marker {
    display: none;
}

/* Custom Accordion Icon (+) */
details.faq-card summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.3s, color 0.3s;
}

details.faq-card[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--accent-color);
}

details.faq-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

details.faq-card[open] p {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}