* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #222;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.brand h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff;
}

.brand span {
    color: #007bff;
}

.brand p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.nav-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #007bff;
    color: #fff;
    padding-left: 20px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #777;
}

.content {
    margin-left: 280px;
    flex: 1;
    background-color: #fff;
}

.hero-section {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.info-section, .text-block, .page-header, .community-join {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #222;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 20px 10px;
    color: #007bff;
}

.card p {
    padding: 0 20px 20px;
    color: #666;
}

.district-list {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.district-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.district-item.reverse {
    flex-direction: row-reverse;
}

.district-item img {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.district-info {
    width: 50%;
}

.district-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #222;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-card cite {
    font-weight: bold;
    color: #007bff;
}

.contact-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.legal-text {
    padding: 0 40px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .content {
        margin-left: 0;
    }
    .district-item {
        flex-direction: column;
    }
    .district-item.reverse {
        flex-direction: column;
    }
    .district-item img, .district-info {
        width: 100%;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}