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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f59e0b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #f59e0b;
    color: #1e3a8a;
}

.nav-menu a.active {
    background-color: #f59e0b;
    color: #1e3a8a;
}

/* Hero / Header */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header {
    background-color: #1e3a8a;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    background-color: #f59e0b;
    color: #1e3a8a;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Info Banner */
.info-banner {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.info-banner p {
    margin: 0;
    color: #78350f;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.category-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-card p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories {
    padding: 3rem 0;
}

.categories h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features {
    background-color: white;
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    font-weight: bold;
}

.feature h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Category Content */
.category-content {
    padding: 3rem 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.template-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.template-card h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.template-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.features-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.features-list li {
    color: #666;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

.download-btn {
    background-color: #f59e0b;
    color: #1e3a8a;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    font-size: 1rem;
    margin-top: auto;
}

.download-btn:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-2px);
}

/* Info Section */
.info-section {
    padding: 3rem 0;
}

.info-section h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-box p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #1e3a8a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fbbf24;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .category-header h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .grid,
    .templates-grid,
    .info-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-btn,
    .cta-btn {
        width: 100%;
        min-height: 44px;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .features h2,
    .categories h2,
    .info-section h2 {
        font-size: 1.5rem;
    }

    .feature,
    .info-box {
        text-align: left;
    }

    .feature-icon {
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

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

    .container {
        padding: 0 15px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .nav-content {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .template-card,
    .category-card {
        padding: 1rem;
    }

    .features h2,
    .categories h2,
    .info-section h2 {
        font-size: 1.3rem;
    }
}

/* Touch targets */
button,
a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-menu a,
.footer-section a {
    display: inline;
    min-height: auto;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta-btn,
    .download-btn {
        display: none;
    }
}
