* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --primary-green: #4CAF50;
    --dark-green: #2d5a2d;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23567d46" width="1200" height="400"/><path fill="%234a6b3a" d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    border-bottom: 8px solid var(--primary-blue);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 10px;
}

nav {
    background-color: white;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

nav li {
    flex: 1;
    min-width: 100px;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    background-color: var(--light-gray);
    border-bottom-color: var(--primary-blue);
    color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    min-height: auto;
}

.welcome-section {
    background: linear-gradient(135deg, var(--primary-blue), #0052a3);
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.1em;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-hero {
    background: linear-gradient(135deg, var(--primary-blue), #1f6da8);
    color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.search-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.search-hero p {
    margin-bottom: 20px;
    max-width: 720px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.search-input-wrap {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 1em;
    color: var(--text-dark);
    background: transparent;
    outline: none;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}

.search-btn {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 0 20px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.search-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.search-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.95em;
}

.search-tags a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.search-results-area {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.results-header {
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 1.4em;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.results-header p {
    color: var(--text-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.result-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 20px;
}

.result-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-card h4 {
    font-size: 1.15em;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.result-card p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.text-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border-gray);
    border-radius: 10px;
    background: var(--light-gray);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-header {
    background: var(--primary-blue);
    color: white;
    padding: 35px 30px;
    text-align: center;
}

.login-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    font-size: 1em;
    opacity: 0.95;
}

.login-body {
    padding: 35px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95em;
}

footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-blue);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    background-color: #333;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        min-width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.3em;
    }

    .welcome-section {
        padding: 25px;
    }

    .login-panel {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }

    .container {
        padding: 15px 10px;
        grid-template-columns: 1fr;
    }

    nav a {
        padding: 12px 10px;
        font-size: 0.9em;
    }

    .card-body {
        padding: 15px;
    }

    .welcome-section {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .login-header,
    .login-body {
        padding: 25px 20px;
    }

    .btn {
        width: 100%;
    }
}
