:root {
    --main: #002562;
    --accent: #bf2926;
    --accent-hover: #9a1f1d;
    --bg: #f8f9fa;
    --surface: #FFFFFF;
    --text: #1a1a1a;
    --text-light: #6c757d;
    --border: #dee2e6;
    --shadow: rgba(0, 37, 98, 0.08);
    --shadow-accent: rgba(191, 41, 38, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.header {
    background: var(--main);
    color: white;
    padding: 0;
    box-shadow: 0 2px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.5px;
}

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

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-accent);
}

.hero {
    background: linear-gradient(135deg, var(--main) 0%, #001a4d 100%);
    color: white;
    padding: 5rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-small {
    background: linear-gradient(135deg, var(--main) 0%, #001a4d 100%);
    color: white;
    padding: 3rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(191, 41, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(191, 41, 38, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
    font-family: 'Manrope', sans-serif;
}

.hero-small h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.2px;
    font-family: 'Manrope', sans-serif;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.92;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-small p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.category-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.search-box {
    background: white;
    border-radius: 14px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1.1rem 1.5rem;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.1rem 2.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.search-box button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--main);
    letter-spacing: -0.8px;
    font-family: 'Manrope', sans-serif;
}

.faq-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 5rem;
}

.faq-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    border-color: var(--main);
    box-shadow: 0 8px 28px var(--shadow);
    transform: translateX(6px);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item h3 {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.5;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.category-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--main));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow);
    border-color: var(--main);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--main));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.75rem;
    transition: transform 0.35s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--main);
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.3px;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.category-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
    font-size: 1rem;
}

.category-link:hover {
    gap: 0.85rem;
}

/* Article page styles */
.article-page {
    max-width: 900px;
}

.article-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.article-category {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main);
    margin-bottom: 1.5rem;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Manrope', sans-serif;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: var(--main);
    font-weight: 600;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.article-helpful {
    text-align: center;
}

.helpful-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-helpful {
    background: var(--surface);
    border: 2px solid var(--border);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-helpful:hover {
    background: var(--main);
    color: white;
    border-color: var(--main);
}

.related-articles {
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    border-color: var(--main);
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-4px);
}

.related-card h3 {
    color: var(--main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Search results and listings */
.search-results-list,
.articles-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-item,
.article-list-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.result-item:hover,
.article-list-item:hover {
    border-color: var(--main);
    box-shadow: 0 6px 24px var(--shadow);
    transform: translateX(4px);
}

.result-category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.65rem;
}

.result-item h3,
.article-list-item h3 {
    color: var(--main);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Manrope', sans-serif;
}

.result-excerpt,
.article-list-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-meta,
.article-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-list-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.badge-featured {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
}

.contact-section {
    background: linear-gradient(135deg, var(--main) 0%, #001a4d 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(191, 41, 38, 0.12) 0%, transparent 60%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, -5%) scale(1.05); }
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.5px;
}

.contact-section p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.contact-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: white;
    color: var(--main);
    padding: 1.1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results h2 {
    color: var(--main);
    margin-bottom: 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
}

.no-results p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer {
    background: var(--text);
    color: white;
    padding: 2.5rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-small h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .search-box {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

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

    .btn-primary {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}
