/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --primary-dark: #5A2E0C;
    --secondary: #D4A373;
    --accent: #C77A3F;
    --dark: #2C2418;
    --light: #FEF9E6;
    --gray: #5C5B52;
    --white: #FFFFFF;
    --blue-dark: #0B2B4A;
    --blue-deep: #0A1C3A;
    --blue-gradient: linear-gradient(135deg, #0B2B4A 0%, #0A1C3A 100%);
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Typography */
h1, h2, h3, h4, .logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 4px;
}

/* ========== LAYER 1: TOP BAR ========== */
.top-bar {
    background: var(--white);
    color: var(--dark);
    padding: 0.7rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.5rem;
    border-radius: 30px;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}

.lang-divider {
    color: var(--gray);
}

.top-contact-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-icon {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.top-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========== LAYER 2: MIDDLE HEADER ========== */
.middle-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eef2ff;
}

.middle-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 160px;
}

.left-logo i {
    font-size: 2.2rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.center-text {
    text-align: center;
    flex: 1;
}

.middle-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.middle-subheading {
    font-size: 0.85rem;
    color: var(--gray);
}

.right-logo {
    min-width: 100px;
    text-align: right;
}

.custom-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

/* ========== LAYER 3: NAVIGATION BAR (BLUE BACKGROUND) ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blue-gradient);
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    position: absolute;
    left: 0;
}

/* ========== SLIDER / CAROUSEL SECTION ========== */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--blue-dark);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 30%;
    left: 10%;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    z-index: 3;
}

.slide-caption h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slide-caption p {
    font-size: 1rem;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots indicator */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.dot:hover {
    background: var(--secondary);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    background: url('https://placehold.co/1920x800/2C2418/fef9e6?text=Heritage+Background') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    background: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
    padding-left: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========== HISTORY CARDS ========== */
.history {
    background: var(--white);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.history-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.history-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== CULTURE SECTION ========== */
.culture {
    background: var(--light);
    padding: 5rem 0;
}

.culture-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.culture-text {
    flex: 1;
}

.culture-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.culture-list {
    list-style: none;
    margin: 1.5rem 0;
}

.culture-list li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.culture-list i {
    color: var(--primary);
}

.culture-image {
    flex: 1;
}

.image-card img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

/* ========== GALLERY ========== */
.gallery {
    padding: 5rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 0.8rem;
    transform: translateY(100%);
    transition: 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ========== EVENTS ========== */
.events {
    background: var(--light);
    padding: 5rem 0;
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.event-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.event-date {
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    border-radius: 1rem;
    min-width: 80px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
}

/* ========== CONTACT ========== */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-flex {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}

.contact-info li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    background: var(--light);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    margin-right: 0.6rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: var(--light);
    font-family: inherit;
}

/* ========== FOOTER (BLUE BACKGROUND) ========== */
.footer {
    background: var(--blue-gradient);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary);
}

.footer-links ul {
    list-style: none;
    margin-top: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    line-height: 2;
}

.footer-links a:hover {
    color: var(--secondary);
}

.newsletter-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-group input {
    padding: 0.7rem;
    border-radius: 40px;
    border: none;
    flex: 1;
}

.newsletter-group button {
    background: var(--primary);
    border: none;
    padding: 0 1.2rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-group button:hover {
    background: var(--primary-dark);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 850px) {
    .middle-header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .left-logo, .right-logo {
        min-width: auto;
    }
    
    .right-logo {
        text-align: center;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--blue-dark);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        text-align: center;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        justify-content: flex-end;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-caption {
        bottom: 20%;
        left: 5%;
        padding: 0.8rem 1.5rem;
    }
    
    .slide-caption h3 {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 1.2rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .top-bar-container {
        flex-direction: column;
        text-align: center;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 540px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .slider-container {
        height: 280px;
    }
    
    .slide-caption {
        display: none;
    }
}
/* ========== MISSION & VISION SECTION ========== */
.mission-vision {
    padding: 5rem 0;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

.mission-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Sehemu ya Kushoto - Picha */
.mission-image {
    flex: 1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.mission-image:hover img {
    transform: scale(1.02);
}

.image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
}

.image-overlay-text i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Sehemu ya Kulia - Mission & Vision */
.mission-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-box, .vision-box {
    display: flex;
    gap: 1.5rem;
    background: var(--light);
    padding: 1.8rem;
    border-radius: 1.5rem;
    transition: var(--transition);
    border-left: 5px solid var(--primary);
}

.mission-box:hover, .vision-box:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    background: white;
}

.mission-icon, .vision-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.mission-icon i {
    color: var(--primary);
    background: rgba(139, 69, 19, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.vision-icon i {
    color: var(--primary-dark);
    background: rgba(139, 69, 19, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.mission-content h3, .vision-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.mission-content p, .vision-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Responsive for Mission & Vision */
@media (max-width: 850px) {
    .mission-container {
        flex-direction: column;
    }
    
    .mission-image {
        min-height: 300px;
    }
    
    .mission-box, .vision-box {
        flex-direction: column;
        text-align: center;
    }
    
    .mission-icon, .vision-icon {
        text-align: center;
    }
    
    .mission-content h3, .vision-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 540px) {
    .mission-vision {
        padding: 3rem 0;
    }
    
    .mission-box, .vision-box {
        padding: 1.2rem;
    }
    
    .image-overlay-text {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* ========== MISSION SECTION (PLAIN / NYEUPE) ========== */
.mission-plain {
    padding: 4rem 0;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.mission-plain-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-plain-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-plain-icon i {
    background: rgba(139, 69, 19, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.mission-plain h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.mission-plain p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========== OBJECTIVES SECTION (5 Objectives - Inline) ========== */
.objectives-section {
    padding: 5rem 0;
    background: var(--light);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.objective-card {
    background: var(--white);
    padding: 1.8rem 1.2rem;
    border-radius: 1.2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.objective-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(139, 69, 19, 0.1);
    font-family: 'Playfair Display', serif;
}

.objective-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.objective-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.objective-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ========== ACTIVITIES SECTION (6 Activities - Inline) ========== */
.activities-section {
    padding: 5rem 0;
    background: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.activity-card {
    background: var(--light);
    padding: 1.8rem;
    border-radius: 1.2rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.activity-card:hover {
    transform: translateY(-6px);
    border-bottom-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
}

.activity-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.activity-icon i {
    background: rgba(139, 69, 19, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
}

.activity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--primary-dark);
}

.activity-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 850px) {
    .objectives-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .objective-card {
        padding: 1.2rem;
    }
    
    .objective-card i {
        font-size: 2rem;
    }
    
    .objective-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 540px) {
    .mission-plain {
        padding: 2.5rem 0;
    }
    
    .mission-plain h2 {
        font-size: 1.6rem;
    }
    
    .mission-plain p {
        font-size: 0.95rem;
    }
    
    .objectives-section, .activities-section {
        padding: 3rem 0;
    }
    
    .objective-card .objective-number {
        font-size: 1.5rem;
    }
}
/* ========== PROJECTS SECTION ========== */
.projects-section {
    padding: 5rem 0;
    background: var(--light);
}

.projects-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--gray);
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
}

/* Project Content */
.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.project-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* Responsive - projects grid */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .projects-intro {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

@media (max-width: 540px) {
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.85rem;
    }
}

/* ========== PARTNERS SECTION (PLAIN WHITE BACKGROUND) ========== */
.partners-section {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

.partners-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--gray);
    font-size: 1rem;
}

/* Partners Slider Container */
.partners-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

.partners-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.partner-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

/* Partner Logos Grid - 4 logos per slide */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    text-align: center;
    transition: var(--transition);
    padding: 1rem;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
}

.partner-logo-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    transition: var(--transition);
}

.partner-logo-item:hover img {
    transform: scale(1.05);
}

.partner-name {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    text-align: center;
}

/* Dots indicator */
.partners-dots {
    text-align: center;
    margin-top: 2rem;
}

.partner-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 6px;
    cursor: pointer;
    transition: var(--transition);
}

.partner-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

.partner-dot:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 850px) {
    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .partner-logo-item img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 540px) {
    .partners-section {
        padding: 3rem 0;
    }
    
    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-logo-item img {
        width: 60px;
        height: 60px;
    }
    
    .partner-name {
        font-size: 0.7rem;
    }
}

/* ========== UPDATES & NEWS ========== */
.updates-section {
    padding: 5rem 0;
    background: var(--light);
}

.updates-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--gray);
    font-size: 1rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary);
}

.section-title-wrapper i {
    font-size: 1.8rem;
    color: var(--primary);
}

.section-title-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.upcoming-events-section,
.latest-news-section {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.latest-news-section {
    margin-bottom: 0;
}

.updates-table {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Each Row - Picha kubwa zaidi */
.update-row {
    display: grid;
    grid-template-columns: 140px 1fr 130px;
    gap: 1.5rem;
    align-items: center;
    background: var(--white);
    padding: 1.2rem;
    border-radius: 1rem;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.update-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
    background: #fefaf5;
}

/* Column 1: Image - Kubwa zaidi */
.update-col-image {
    width: 140px;
    height: 140px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.update-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.update-row:hover .update-col-image img {
    transform: scale(1.08);
}

/* Column 2: Content */
.update-col-content {
    flex: 1;
}

.update-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    background: rgba(139, 69, 19, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

.update-date i {
    font-size: 0.8rem;
}

.update-col-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.update-col-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Column 3: Button */
.update-col-button {
    flex-shrink: 0;
    text-align: center;
}

.update-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.3rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.update-btn:hover {
    background: var(--primary-dark);
    gap: 12px;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE FOR UPDATES & NEWS ========== */

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .update-row {
        grid-template-columns: 120px 1fr 110px;
        gap: 1.2rem;
        padding: 1rem;
    }
    
    .update-col-image {
        width: 120px;
        height: 120px;
    }
    
    .update-col-content h4 {
        font-size: 1rem;
    }
    
    .update-col-content p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .update-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }
}

/* Mobile Large (540px - 768px) */
@media (max-width: 768px) {
    .upcoming-events-section,
    .latest-news-section {
        padding: 1rem;
    }
    
    .section-title-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .section-title-wrapper i {
        font-size: 1.4rem;
    }
    
    .update-row {
        grid-template-columns: 100px 1fr 100px;
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .update-col-image {
        width: 100px;
        height: 100px;
    }
    
    .update-date {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    .update-col-content h4 {
        font-size: 0.9rem;
    }
    
    .update-col-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .update-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .update-btn i {
        font-size: 0.7rem;
    }
}

/* Mobile Small (below 540px) - Stacked layout */
@media (max-width: 540px) {
    .updates-section {
        padding: 3rem 0;
    }
    
    .update-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem;
    }
    
    .update-col-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .update-date {
        justify-content: center;
        display: inline-flex;
        margin: 0 auto 0.8rem auto;
    }
    
    .update-col-button {
        text-align: center;
    }
    
    .update-btn {
        display: inline-flex;
        white-space: nowrap;
    }
    
    .update-col-content p {
        -webkit-line-clamp: 3;
    }
}