/*
Theme Name: Kitwek Association
Theme URI: https://kitwekassociation.org
Author: Libran Consult
Author URI: https://libranconsult.com
Description: A WordPress theme for the Kitwek Association - Uniting the Kalenjin Community in Western Australia. Features a modern, responsive design with cultural heritage elements. All media files and assets are included in the theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitwek
Tags: custom-menu, featured-images, threaded-comments, translation-ready, community, association, responsive, mobile-friendly
*/

/* Kitwek Association Website Styles */

/* ========================================
   CSS Variables - Color Palette
   ======================================== */
:root {
    --deep-gold: #C7A14A;
    --black: #000000;
    --kenyan-red: #C03A2B;
    --emerald-green: #2E7D32;
    --royal-blue: #1C4CA3;
    --white: #FFFFFF;
    --beige: #F3E5AB;
    --light-grey: #F4F4F4;
    --dark-grey: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--deep-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

a {
    text-decoration: none;
    color: var(--emerald-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-gold);
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    color: var(--deep-gold);
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--deep-gold);
    background-color: rgba(199, 161, 74, 0.1);
}

.membership-link {
    background-color: var(--kenyan-red);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.membership-link:hover {
    background-color: var(--deep-gold);
    color: var(--black) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--black) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--deep-gold);
    color: var(--black);
}

.btn-secondary {
    background-color: var(--royal-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--emerald-green);
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 4rem 2rem;
}

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

.section-alt {
    background-color: var(--beige);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--dark-grey);
    font-size: 1.1rem;
}

/* ========================================
   Cards & Panels
   ======================================== */
.card {
    background-color: var(--beige);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    color: var(--deep-gold);
    margin-bottom: 1rem;
}

/* ========================================
   Leaders Section
   ======================================== */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.leader-card {
    text-align: center;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leader-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--deep-gold);
}

.leader-card h4 {
    color: var(--deep-gold);
    margin-bottom: 0.5rem;
}

.leader-card p {
    color: var(--dark-grey);
    font-size: 0.9rem;
}

/* ========================================
   Partners Section - Carousel
   ======================================== */
.partners-carousel-container {
    position: relative;
    max-width: 950px;
    margin: 3rem auto;
    padding: 0 70px;
}

.partners-carousel {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(199, 161, 74, 0.05) 0%, rgba(28, 76, 163, 0.05) 100%);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
}

.partners-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--deep-gold), var(--royal-blue), var(--emerald-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
}

.partners-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.partner-card {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.partner-info {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 3rem;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 520px;
    border: 1px solid rgba(199, 161, 74, 0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.partner-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-gold), var(--kenyan-red), var(--emerald-green));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-info:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(199, 161, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(199, 161, 74, 0.3);
}

.partner-info:hover::before {
    opacity: 1;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(199, 161, 74, 0.08) 0%, rgba(244, 244, 244, 0.8) 100%);
    border-radius: 12px;
    min-height: 130px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.partner-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 161, 74, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-info:hover .partner-logo {
    background: linear-gradient(135deg, rgba(199, 161, 74, 0.15) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(199, 161, 74, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 161, 74, 0.15);
}

.partner-info:hover .partner-logo::after {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.partner-info:hover .partner-logo img {
    filter: grayscale(0%) contrast(1.2) brightness(1.05);
    transform: scale(1.08);
}

.partner-name {
    color: var(--deep-gold);
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--kenyan-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.partner-info:hover .partner-name {
    transform: scale(1.02);
}

.partner-description {
    color: var(--dark-grey);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: visible;
}

.partner-contact {
    margin-top: auto;
    padding-top: 1.75rem;
    border-top: 2px solid transparent;
    background: linear-gradient(to right, var(--light-grey), transparent) no-repeat;
    background-size: 100% 2px;
    background-position: top left;
    transition: all 0.3s ease;
}

.partner-info:hover .partner-contact {
    background-image: linear-gradient(to right, var(--deep-gold), transparent);
    background-size: 100% 2px;
}

.partner-website,
.partner-email,
.partner-phone {
    margin-bottom: 0.75rem;
    color: var(--dark-grey);
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.partner-website:last-child,
.partner-email:last-child,
.partner-phone:last-child {
    margin-bottom: 0;
}

.partner-website strong,
.partner-email strong,
.partner-phone strong {
    color: var(--deep-gold);
    margin-right: 0.5rem;
}

.partner-website a,
.partner-email a,
.partner-phone a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.partner-website a::after,
.partner-email a::after,
.partner-phone a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--deep-gold), var(--kenyan-red));
    transition: width 0.3s ease;
}

.partner-website a:hover,
.partner-email a:hover,
.partner-phone a:hover {
    color: var(--deep-gold);
    transform: translateX(3px);
}

.partner-website a:hover::after,
.partner-email a:hover::after,
.partner-phone a:hover::after {
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--kenyan-red) 100%);
    color: var(--white);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow:
        0 6px 20px rgba(199, 161, 74, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--kenyan-red) 0%, var(--deep-gold) 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow:
        0 10px 30px rgba(199, 161, 74, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn:hover::before {
    width: 100%;
    height: 100%;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
    box-shadow:
        0 4px 15px rgba(199, 161, 74, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--light-grey);
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-grey) 0%, #e0e0e0 100%);
    border: 2px solid var(--deep-gold);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 161, 74, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.carousel-dot:hover {
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--kenyan-red) 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 8px rgba(199, 161, 74, 0.4);
    border-color: var(--kenyan-red);
}

.carousel-dot:hover::before {
    width: 200%;
    height: 200%;
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--deep-gold) 0%, var(--kenyan-red) 100%);
    width: 32px;
    height: 12px;
    border-radius: 6px;
    border-color: var(--kenyan-red);
    box-shadow:
        0 4px 12px rgba(199, 161, 74, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--deep-gold);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.testimonial-author {
    font-weight: 600;
    color: var(--deep-gold);
}

/* ========================================
   Blog Section
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h4 {
    color: var(--deep-gold);
    margin-bottom: 0.5rem;
}

.blog-card-date {
    color: var(--dark-grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ========================================
   Departments Page
   ======================================== */
.department-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.department-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--deep-gold);
}

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

.department-member {
    text-align: center;
    background-color: var(--beige);
    padding: 1.5rem;
    border-radius: 8px;
}

.department-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--deep-gold);
}

.department-member h4 {
    color: var(--deep-gold);
    margin-bottom: 0.5rem;
}

.department-message {
    background-color: var(--beige);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--emerald-green);
}

.contact-info {
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--royal-blue);
}

/* ========================================
   Gallery Page
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: var(--beige);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-grey);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-section {
    background-color: var(--beige);
    padding: 2rem;
    border-radius: 8px;
}

.contact-info-section h3 {
    color: var(--deep-gold);
    margin-bottom: 1.5rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-grey);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail h4 {
    color: var(--deep-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-detail p {
    margin-bottom: 0.25rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

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

.footer-section h3 {
    color: var(--deep-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--deep-gold);
}

.footer-section p {
    color: var(--white);
    opacity: 0.9;
}

.footer-section p a {
    color: var(--white);
    opacity: 1;
}

.footer-section p a:hover {
    color: var(--deep-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--royal-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--deep-gold);
    color: var(--black);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(199, 161, 74, 0.3);
    color: var(--white);
}

.footer-bottom p {
    color: var(--white);
    opacity: 1;
}

.footer-bottom p a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--deep-gold);
}

/* ========================================
   Values & Goals Lists
   ======================================== */
.values-list,
.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item,
.goal-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--emerald-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-item h4,
.goal-item h4 {
    color: var(--emerald-green);
    margin-bottom: 0.5rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {

    /* Header and Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
    }

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

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

    .hero-content {
        padding: 0 1rem;
    }

    .hero .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.5rem;
    }

    .hero .btn-secondary {
        margin-left: 0;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 100%;
    }

    /* President's Message Section - Mobile Specific */
    #presidents-message .card>div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }

    #presidents-message .card img {
        width: 200px !important;
        max-width: 200px !important;
        height: auto !important;
        margin: 0 auto !important;
        order: -1 !important;
    }

    #presidents-message .card>div>div {
        width: 100% !important;
        text-align: left !important;
    }

    #presidents-message h3 {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Mission and Vision Sections */
    .mission-grid,
    .vision-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mission-grid>div:first-child,
    .vision-grid>div:first-child {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .mission-grid img,
    .vision-grid img {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Values and Goals */
    .values-list,
    .goals-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Leaders Section */
    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leader-card {
        padding: 1.25rem;
    }

    .leader-card img {
        width: 150px;
        height: 150px;
    }

    /* Partners Carousel */
    .partners-carousel-container {
        padding: 0 50px;
        margin: 2rem auto;
    }

    .partners-carousel {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }

    .partner-card {
        padding: 0 1rem;
    }

    .partner-info {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .partner-logo {
        min-height: 100px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .partner-logo img {
        max-height: 80px;
    }

    .partner-name {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .partner-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .partner-contact {
        padding-top: 1.5rem;
    }

    .carousel-dots {
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .carousel-dot.active {
        width: 28px;
    }

    /* Testimonials */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card img {
        height: 300px !important;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    /* Contact Page */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form,
    .contact-info-section {
        padding: 1.5rem;
    }

    /* Department Pages */
    .department-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .department-message-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .department-message-grid>div:first-child {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .department-message-grid img {
        max-width: 100% !important;
    }

    /* Donation section responsive */
    #donate .section-container>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #donate img {
        max-width: 100%;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item img {
        height: 250px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Lists */
    ul {
        margin-left: 1.5rem;
    }

    /* Utility improvements */
    .section-alt {
        padding: 3rem 1rem;
    }

    /* Photo decorations */
    .photo-side-decoration {
        display: none;
    }

    .photo-grid-decorative {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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

    .section-title h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    #presidents-message .card img {
        width: 180px !important;
        max-width: 180px !important;
    }

    .partner-info {
        padding: 1.5rem 1rem;
    }

    .partners-carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* ========================================
   Decorative Community Images
   ======================================== */
.community-photo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.community-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-circle {
    border-radius: 50%;
    aspect-ratio: 1;
}

.photo-rounded {
    border-radius: 20px;
}

.photo-hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.photo-tilted {
    transform: rotate(-3deg);
    border-radius: 15px;
}

.photo-tilted:hover {
    transform: rotate(0deg) translateY(-5px);
}

.photo-overlay {
    position: relative;
}

.photo-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 161, 74, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.photo-grid-decorative {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-floating {
    position: relative;
    margin: 2rem auto;
    max-width: 300px;
}

.photo-side-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.7;
    z-index: 0;
}

.photo-side-decoration.left {
    left: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
}

.photo-side-decoration.right {
    right: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
}

.section-with-photos {
    position: relative;
    overflow: hidden;
}

.decorative-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20% 50%, var(--deep-gold) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--emerald-green) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--royal-blue) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Photo decorations mobile styles - handled in main media query */