/* SASSA Website Styles */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background-color: #007A2E;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1,
.logo-title {
    font-size: 2rem;
    margin-bottom: 0;
    font-weight: bold;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 122, 46, 0.92), rgba(0, 90, 34, 0.92)), url('https://images.unsplash.com/photo-1484318571209-661cf29a69c3?w=1600&q=80') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 122, 46, 0.92), rgba(0, 90, 34, 0.92)), url('https://images.unsplash.com/photo-1484318571209-661cf29a69c3?w=1600&q=80') center/cover;
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.page-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Quick Access Buttons */
.quick-access {
    background-color: white;
    padding: 40px 0;
}

.quick-access h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #007A2E;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-btn {
    display: block;
    background-color: #007A2E;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quick-btn:hover {
    background-color: #005a22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Content Sections */
.content-section {
    padding: 50px 0;
    background-color: white;
}

.content-section.alt-bg {
    background-color: #f8f9fa;
}

.content-section h3 {
    color: #007A2E;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-section h4 {
    color: #005a22;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Lists */
.simple-list {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.simple-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.numbered-list {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.numbered-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    padding-left: 10px;
}

/* Grants Overview */
.grants-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.grant-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid #007A2E;
}

.grant-item h4 {
    color: #007A2E;
    margin-top: 0;
    margin-bottom: 10px;
}

.grant-item p {
    margin-bottom: 15px;
    color: #555;
}

.grant-item a {
    color: #007A2E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.grant-item a:hover {
    color: #005a22;
}

/* Info Boxes */
.info-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h4 {
    color: #856404;
    margin-top: 0;
}

.info-box p {
    color: #856404;
    margin-bottom: 10px;
}

.info-box ul {
    color: #856404;
    margin-left: 20px;
}

/* Contact Boxes */
.contact-box {
    background-color: #e8f5e9;
    border: 2px solid #007A2E;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    margin: 25px 0;
}

.contact-box .large-text {
    font-size: 2rem;
    color: #007A2E;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-highlight {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.contact-highlight p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Notes */
.note {
    background-color: #d1ecf1;
    border-left: 4px solid #0c5460;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #0c5460;
}

.note strong {
    color: #0c5460;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.05rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 15px;
}

.btn-primary {
    background-color: #007A2E;
    color: white;
}

.btn-primary:hover {
    background-color: #005a22;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #0066a1;
    color: white;
}

.btn-secondary:hover {
    background-color: #004d7a;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #455a64;
    color: #bdc3c7;
}

/* Blog Cards */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content .post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.blog-card-content h4 a {
    color: #007A2E;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-content h4 a:hover {
    color: #005a22;
}

.blog-card-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-content .btn {
    display: inline-block;
    background-color: #007A2E;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    align-self: flex-start;
}

.blog-card-content .btn:hover {
    background-color: #005a22;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .page-header h2 {
        font-size: 1.8rem;
    }

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

    .grants-overview {
        grid-template-columns: 1fr;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .content-section h4 {
        font-size: 1.2rem;
    }
}

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

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

    .hero {
        padding: 40px 0;
    }

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

    .content-section {
        padding: 30px 0;
    }
}

/* Utility Page Styles */
.utility-content {
    max-width: 900px;
    margin: 0 auto;
}

.utility-content h2 {
    color: #007A2E;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.utility-content h2:first-child {
    margin-top: 0;
}

.utility-content h3 {
    color: #005a22;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.utility-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.utility-content ul {
    margin: 15px 0 20px 30px;
    line-height: 1.8;
}

.utility-content ul li {
    margin-bottom: 12px;
    color: #444;
}

.utility-content strong {
    color: #007A2E;
    font-weight: 600;
}

.utility-content .last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-style: italic;
}

/* FAQ Specific Styles */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    color: #007A2E;
    font-size: 1.9rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007A2E;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #007A2E;
}

.faq-item h3 {
    color: #005a22;
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.faq-item p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Page Header for Utility Pages */
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}