:root {
    --primary: #00a06b;
    --secondary: #006a47;
    --light: #ecf0f1;
    --dark: #006a47;
    --success: #0bae4f;
    --text-light: #333;
    --text-dark: #f5f5f5;
    --bg-light: #f5f7fa;
    --bg-dark: #0e1621;
    --card-bg-light: #ffffff;
    --card-bg-dark: #314354;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    flex-grow: 1;
    max-width: 600px;
}

#search {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.specializations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.specialization-card {
    background: var(--card-bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

body.dark-mode .specialization-card {
    background: var(--card-bg-dark);
}

.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.specialization-header {
    background-color: var(--secondary);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.specialization-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.specialization-description {
    margin-bottom: 1rem;
    color: var(--text-light);
}

body.dark-mode .specialization-description {
    color: var(--text-dark);
}

.specialization-training {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 500;
    margin-bottom: 1rem;
}

.specialization-button {
    margin-top: auto;
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.specialization-button:hover {
    background-color: var(--secondary);
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
    color: #777;
}

footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.gov-folder-header {
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-folder-title {
    margin: 0;
    line-height: 1.2;
}

.gov-folder-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: transform 0.3s ease;
}

.gov-folder-link:hover {
    transform: translateY(-2px);
}

.gov-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.8);
    letter-spacing: 1px;
}

.folder-text {
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 204, 153, 0.7);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .specializations-container {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gov-text {
        font-size: 2rem;
    }

    .folder-text {
        font-size: 1.5rem;
    }

    .gov-folder-header {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gov-text {
        font-size: 1.6rem;
    }

    .folder-text {
        font-size: 1.2rem;
    }

    .gov-folder-link {
        gap: 5px;
    }
}