/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #1976d2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --max-width: 1200px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.75rem;
    margin: 0;
    color: white;
}

.logo .tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    display: block;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

.page-content {
    max-width: 900px;
}

.page-content h1 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.page-content h2 {
    margin-top: 2rem;
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    text-decoration: none;
}

/* Features Section */
.features {
    padding: 40px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Popular Cards Section */
.popular-cards {
    padding: 40px 0;
}

.popular-cards h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-item {
    display: block;
    padding: 25px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.card-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.card-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-item p {
    color: var(--text-light);
    margin: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.category-card {
    display: block;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}

.template-card {
    display: block;
    padding: 15px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    text-decoration: none;
}

.template-card h3 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-color);
}

.template-list {
    column-count: 2;
    column-gap: 30px;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 40px;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Download Box */
.download-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.download-features {
    margin: 1rem 0;
}

.system-req {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Benefits Section */
.benefits-section {
    margin: 2rem 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.contact-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.faq-contact {
    font-size: 1.1rem;
    margin-top: 2rem;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    background: #263238;
    color: #eceff1;
    padding: 50px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col a {
    color: #b0bec5;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: none;
}

.footer-col p {
    color: #b0bec5;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #37474f;
    padding: 20px 0;
    text-align: center;
    color: #78909c;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 15px;
    }

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .template-list {
        column-count: 1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .feature-grid,
    .card-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

/* Bingo Card Article Styles */
.bingo-card-article {
    max-width: 1000px;
}

.bingo-card-article h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.bingo-card-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 2rem;
    align-items: start;
}

.bingo-preview {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.bingo-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bingo-info {
    padding: 10px 0;
}

.bingo-info .intro {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.download-buttons .btn {
    text-align: center;
}

.template-meta {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.template-meta p {
    margin-bottom: 0.5rem;
}

.template-meta p:last-child {
    margin-bottom: 0;
}

.bingo-card-article section {
    margin: 2.5rem 0;
}

.bingo-card-article section h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-template ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.about-template li {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Call List Styles */
.call-list-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
}

.call-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1rem;
}

.call-list-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.call-list-grid li {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.call-list-grid li:hover {
    background: var(--primary-light);
    color: white;
}

/* How to Use Section */
.how-to-use ol {
    counter-reset: steps;
    list-style: none;
    padding: 0;
}

.how-to-use li {
    counter-increment: steps;
    padding: 15px 15px 15px 60px;
    position: relative;
    background: var(--bg-light);
    margin-bottom: 10px;
    border-radius: 6px;
}

.how-to-use li::before {
    content: counter(steps);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Customize Section */
.customize-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
}

.customize-section h2 {
    color: white;
}

.customize-section ul {
    margin-bottom: 1.5rem;
}

.customize-section .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.customize-section .btn-primary:hover {
    background: var(--bg-light);
}

/* Related Templates */
.related-templates {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
}

.related-templates ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.related-templates li {
    margin: 0;
}

.related-templates a {
    display: block;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.2s;
}

.related-templates a:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Category Page Styles */
.category-page .template-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-page .template-card {
    padding: 20px;
}

.category-page .template-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.category-info {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin: 2rem 0;
}

.bingo-info {
    margin-bottom: 2rem;
}

/* Responsive Bingo Article */
@media (max-width: 768px) {
    .bingo-card-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .call-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-template ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .call-list-grid {
        grid-template-columns: 1fr;
    }

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

    .how-to-use li {
        padding-left: 50px;
    }
}

/* Print Styles */
@media print {
    header, footer, .breadcrumb, .btn {
        display: none;
    }

    main {
        padding: 0;
    }
}
