/*
Theme Name: CMDA Theme
Theme URI: https://cmda-algerie.org
Author: CMDA
Author URI: https://cmda-algerie.org
Description: Thème WordPress personnalisé pour le Conseil Mondial de la Diaspora Algérienne
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: cmda-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-color: #006847;
    --secondary-color: #841714;
    --accent-color: #fbeed6;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7, 107, 78, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(221, 51, 51, 0.3);
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(7,107,78,0.1);
    transform: translateY(0);
    animation: headerSlideDown 0.4s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0.9;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header.scrolled .header-container {
    padding: 0.75rem 0;
    max-height: 70px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90px;
    overflow: hidden;
    will-change: padding, max-height;
}

.site-header.scrolled .cmda-logo {
    height: 45px !important;
    width: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cmda-logo {
    height: 60px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(7,107,78,0.2));
}

.cmda-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(7,107,78,0.3));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.main-navigation li {
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.scrolled .main-navigation a {
    font-size: 0.85rem;
    padding: 8px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .site-header.scrolled .cmda-logo {
        height: 40px !important;
    }
    
    .cmda-logo {
        height: 50px;
    }
    
    .site-header.scrolled .header-container {
        padding: 0.5rem 0;
        max-height: 60px;
    }
    
    .header-container {
        padding: 1rem 0;
        max-height: 80px;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        padding: 2rem;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0a8f66);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.1" d="M0,0 C300,80 600,40 900,60 C1050,70 1150,100 1200,120 L1200,0 Z"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Mission & Vision Modern Hover Effects */
.mission-card-modern:hover,
.vision-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12) !important;
}

.mission-point:hover,
.highlight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.mission-vision-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

/* Modern Flip Card Styles */
.flip-card-modern {
    background-color: transparent;
    perspective: 1000px;
    width: 100%;
    max-width: 320px;
    height: 420px;
    margin: 0 auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.flip-card-modern.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Mission & Vision Flip Card Specific Styles */
.mission-details-modern,
.vision-details-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.details-header {
    margin-bottom: 2rem;
}

.details-content-modern {
    flex: 1;
    overflow-y: auto;
}

.flip-indicator {
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flip-indicator i {
    color: var(--primary-color);
}

.back-indicator {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.back-indicator i {
    color: var(--primary-color);
}

.back-indicator:hover {
    color: var(--primary-color);
}

/* Front Card Styling */
.team-card-modern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(251,238,214,0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(7,107,78,0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.team-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(7,107,78,0.15);
    border-color: rgba(7,107,78,0.2);
}

.team-avatar-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.team-photo-modern {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(7,107,78,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
}

.avatar-placeholder span {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(7,107,78,0.1), rgba(221,51,51,0.1));
    opacity: 0;
    transition: all 0.4s ease;
}

.team-card-modern:hover .avatar-glow {
    opacity: 1;
}

.team-card-modern:hover .team-photo-modern {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-info-modern h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.team-position {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(7,107,78,0.08);
    border-radius: 20px;
    display: inline-block;
}

.flip-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.flip-indicator i {
    font-size: 1rem;
}

.team-card-modern:hover .flip-indicator {
    opacity: 1;
    transform: translateY(-2px);
}

.card-accent-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    opacity: 0.6;
}

/* Back Card Styling */
.team-details-modern {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7,107,78,0.95), rgba(7,107,78,0.9));
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.team-details-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.details-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
}

.back-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.back-indicator:hover {
    opacity: 1;
    transform: translateX(-2px);
}

.details-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.details-content-modern p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.details-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.meta-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
    width: 16px;
}

.meta-item span {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links-modern {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-link i {
    font-size: 1.1rem;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Responsive Flip Cards */
@media (max-width: 768px) {
    .flip-card-modern {
        max-width: 280px;
        height: 380px;
    }

    .team-card-modern {
        padding: 1.5rem;
    }

    .team-photo-modern,
    .avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .team-info-modern h3 {
        font-size: 1.2rem;
    }

    .team-details-modern {
        padding: 1.5rem;
    }

    .details-header h4 {
        font-size: 1.1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .flip-card-modern {
        max-width: 100%;
        height: 360px;
    }

    .team-card-modern {
        padding: 1.25rem;
    }

    .team-photo-modern,
    .avatar-placeholder {
        width: 70px;
        height: 70px;
    }

    .team-info-modern h3 {
        font-size: 1.1rem;
    }

    .flip-indicator span {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* Mission & Vision Modern - Mobile Styles */
    .mission-vision-modern .mission-vision-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mission-card-modern,
    .vision-card-modern {
        padding: 2rem !important;
    }

    .mission-vision-header h2 {
        font-size: 2.2rem !important;
    }

    .mission-title h3,
    .vision-title h3 {
        font-size: 1.8rem !important;
    }

    .vision-quote {
        font-size: 1.1rem !important;
        padding-left: 1.5rem !important;
    }

    .vision-quote span {
        font-size: 2rem !important;
    }
}

/* Enhanced Mission & Vision Cards Modern Design */
.mission-card-modern:hover,
.vision-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 100px rgba(0,0,0,0.15);
}

.mission-point:hover,
.vision-quote:hover,
.highlight-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.point-icon:hover,
.highlight-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(7,107,78,0.3);
}

.card-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(7,107,78,0.4);
}

/* Enhanced Responsive Mission & Vision Cards */
@media (max-width: 1200px) {
    .mission-vision-modern .mission-vision-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
    }

    .modern-value-card {
        min-height: 420px !important;
    }
}

@media (max-width: 1024px) {
    .mission-vision-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .modern-value-card {
        min-height: auto !important;
        padding: 2.5rem !important;
    }

    .mission-card-modern,
    .vision-card-modern {
        padding: 2.5rem !important;
    }

    .card-header-section {
        margin-bottom: 2rem !important;
    }

    .card-icon-wrapper {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .card-icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .mission-card-modern,
    .vision-card-modern {
        padding: 2rem !important;
        border-radius: 20px !important;
    }

    .mission-point,
    .highlight-item {
        padding: 1.25rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .point-icon,
    .highlight-icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .vision-quote {
        padding: 1.5rem !important;
        text-align: center !important;
    }

    .vision-quote span {
        display: none !important;
    }

    .card-intro {
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* ========================================
   MODERN ANIMATED RESPONSIVE NAVBAR 2025
   ======================================== */

.site-header.modern-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(7,107,78,0.1);
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
}

.site-header.modern-navbar.navbar-scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-radius: 0 0 20px 20px;
    animation: headerSlideDown 0.5s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 100px;
    overflow: hidden;
    will-change: padding, max-height;
    border-radius: 0 0 25px 25px;
    position: relative;
    z-index: 2;
}

.site-header.modern-navbar.navbar-scrolled .header-container {
    padding: 1rem 3rem;
    max-height: 75px;
}

/* Logo Styling */
.cmda-logo {
    height: 75px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 16px rgba(7,107,78,0.25));
    border-radius: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.8);
}

.site-header.modern-navbar.navbar-scrolled .cmda-logo {
    height: 55px;
    filter: drop-shadow(0 3px 12px rgba(7,107,78,0.2));
}

.cmda-logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 6px 20px rgba(7,107,78,0.35));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Modern Hamburger Menu */
.modern-hamburger {
    display: none;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(7,107,78,0.3);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.modern-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(7,107,78,0.4);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 0 auto 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.hamburger-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
}

/* Modern Navigation Menu */
.modern-nav {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.modern-nav-menu li {
    display: flex;
    align-items: center;
    position: relative;
}

.modern-nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    text-decoration: none;
}

.modern-nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(7,107,78,0.05);
    padding: 12px 16px;
}

.modern-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform: translateX(-50%);
}

.modern-nav-menu a:hover::after,
.modern-nav-menu a.current::after {
    width: 100%;
}

.site-header.modern-navbar.navbar-scrolled .modern-nav-menu a {
    font-size: 0.9rem;
    padding: 10px 0;
}

/* Background Elements */
.navbar-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 0 0 25px 25px;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.bg-shape.shape-1 {
    top: -20px;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(7,107,78,0.05), rgba(221,51,51,0.05));
}

.bg-shape.shape-2 {
    top: 20px;
    right: 25%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(221,51,51,0.05), rgba(7,107,78,0.05));
    animation-delay: 2s;
}

.bg-shape.shape-3 {
    bottom: 10px;
    left: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(7,107,78,0.03), rgba(221,51,51,0.03));
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

@media (max-width: 1024px) {
    .modern-nav-menu {
        gap: 2rem;
    }

    .modern-nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .modern-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .modern-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(251,238,214,0.1));
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        padding-top: 120px;
    }

    .modern-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .modern-nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        align-items: stretch;
    }

    .modern-nav-menu li {
        width: 100%;
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 0.5rem;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .modern-nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
        text-align: center;
        border-radius: 15px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    .modern-nav-menu a:hover {
        background: linear-gradient(135deg, rgba(7,107,78,0.1), rgba(221,51,51,0.05));
        transform: translateY(0);
        color: var(--primary-color);
        box-shadow: 0 8px 25px rgba(7,107,78,0.15);
    }

    .modern-nav-menu a::after {
        display: none;
    }

    .modern-nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(7,107,78,0.1), transparent);
        transition: left 0.5s ease;
    }

    .modern-nav-menu a:hover::before {
        left: 100%;
    }

    .header-container {
        padding: 1.5rem 2rem;
    }

    .site-header.modern-navbar.navbar-scrolled .header-container {
        padding: 1rem 2rem;
    }

    .cmda-logo {
        height: 65px;
    }

    .site-header.modern-navbar.navbar-scrolled .cmda-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1.25rem 1.5rem;
    }

    .site-header.modern-navbar.navbar-scrolled .header-container {
        padding: 0.75rem 1.5rem;
    }

    .modern-hamburger {
        width: 50px;
        height: 50px;
    }

    .cmda-logo {
        height: 55px;
        padding: 6px;
    }

    .site-header.modern-navbar.navbar-scrolled .cmda-logo {
        height: 45px;
    }

    .modern-nav-menu a {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modern Calendar Responsive */
@media (max-width: 1024px) {
    .calendar-grid {
        padding: 1.5rem !important;
    }
    
    .calendar-day {
        padding: 0.75rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 768px) {
    .calendar-section {
        padding: 2rem 0 !important;
    }
    
    .calendar-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.25rem !important;
        padding: 1rem !important;
        border-radius: 15px !important;
    }
    
    .calendar-header {
        grid-column: 1 / -1 !important;
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 1.2rem !important;
    }
    
    .calendar-day-header {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.2rem !important;
    }
    
    .calendar-day {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
    }
    
    .calendar-day.has-event::after {
        width: 4px !important;
        height: 4px !important;
        bottom: 3px !important;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        padding: 0.75rem !important;
        gap: 0.15rem !important;
    }
    
    .calendar-day-header {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.1rem !important;
    }
    
    .calendar-day {
        padding: 0.4rem 0.15rem !important;
        font-size: 0.75rem !important;
        min-height: 35px !important;
    }
    
    .calendar-header {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
}

/* Event Cards Modern Responsive */
@media (max-width: 1024px) {
    .event-card-modern {
        margin-bottom: 1.5rem !important;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .event-card-modern {
        margin-bottom: 1rem !important;
    }
    
    .event-card-modern .event-thumbnail {
        height: 180px !important;
    }
    
    .event-card-modern h3 {
        font-size: 1.2rem !important;
    }
    
    .event-card-modern p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .event-card-modern .event-thumbnail {
        height: 160px !important;
    }
    
    .event-card-modern h3 {
        font-size: 1.1rem !important;
    }
    
    .event-card-modern div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }
}

/* About Page Enhanced Responsive */
@media (max-width: 1024px) {
    .about-hero {
        height: 400px !important;
    }
    
    .about-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 350px !important;
        padding: 2rem 1rem !important;
    }
    
    .about-hero h1 {
        font-size: 2rem !important;
    }
    
    .about-hero p {
        font-size: 1rem !important;
    }
    
    .about-text h2 {
        font-size: 1.75rem !important;
    }
    
    .about-text p {
        font-size: 0.95rem !important;
    }
    
    .stats-box {
        padding: 1.5rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .value-card {
        padding: 1.75rem !important;
    }
    
    .value-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
    
    .about-cta h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 300px !important;
    }
    
    .about-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .stats-box {
        padding: 1rem !important;
    }
    
    .stat-item {
        padding: 0.75rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.5rem !important;
    }
    
    .value-card {
        padding: 1.5rem !important;
    }
}

/* Header Fixed Position Responsive */
@media (max-width: 1024px) {
    header {
        padding: 1rem 0 !important;
    }
    
    .logo img {
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0 !important;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    .main-nav ul {
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--primary-color) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }
    
    .main-nav ul.active {
        max-height: 500px !important;
        padding: 1rem 0 !important;
    }
    
    .main-nav li {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .main-nav a {
        display: block !important;
        padding: 1rem !important;
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .mobile-toggle {
        display: block !important;
        background: none !important;
        border: 2px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
        font-size: 1.5rem !important;
        padding: 0.5rem 1rem !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-toggle:hover {
        background: var(--primary-color) !important;
        color: white !important;
    }
}

/* Hero Section Responsive */
@media (max-width: 1024px) {
    .hero {
        height: 500px !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 450px !important;
    }
    
    .hero-content {
        padding: 2rem 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin: 1rem 0 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }
}

/* Section Spacing Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0 !important;
    }
    
    .section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .container {
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0 !important;
    }
    
    .section h2 {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
}

/* Buttons Responsive */
@media (max-width: 768px) {
    .btn-modern {
        padding: 10px 24px !important;
        font-size: 0.95rem !important;
    }
    
    .btn {
        padding: 10px 24px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .btn-modern {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .btn {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* General Grid Utilities */
@media (max-width: 768px) {
    .cards-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header,
    .hero,
    .mobile-toggle,
    .btn,
    footer {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid !important;
    }
    
    a {
        text-decoration: underline !important;
    }
}

