/* ============================================
   المسيرة الخضراء - الذكرى الخمسون
   GREEN MARCH 50TH ANNIVERSARY - PREMIUM THEME
   Enhanced Moroccan Design with Authentic Patterns
   ============================================ */

   :root {
    /* Moroccan Royal Colors */
    --gm-green-royal: #006233;
    --gm-green-primary: #1B5E3F;
    --gm-green-light: #2A7A52;
    --gm-red-royal: #C1272D;
    --gm-red-dark: #8B1A1F;
    --gm-gold: #D4AF37;
    --gm-gold-light: #F4E5B0;
    --gm-gold-dark: #B8941E;
    --gm-white: #FFFFFF;
    --gm-cream: #FFF8E7;
    
    /* Authentic Moroccan Gradients */
    --gm-gradient-royal: linear-gradient(165deg, var(--gm-red-royal) 0%, var(--gm-green-royal) 100%);
    --gm-gradient-gold: radial-gradient(circle, var(--gm-gold-light) 0%, var(--gm-gold) 50%, var(--gm-gold-dark) 100%);
    --gm-gradient-star: conic-gradient(from 0deg, var(--gm-gold) 0deg, var(--gm-gold-light) 72deg, var(--gm-gold) 144deg, var(--gm-gold-light) 216deg, var(--gm-gold) 288deg, var(--gm-gold-light) 360deg);
}

/* ============================================
   MOROCCAN GEOMETRIC PATTERN BACKGROUND
   ============================================ */

body.green-march-theme {
    position: relative;
    background: linear-gradient(to bottom, #FAFAFA 0%, #F5F5F5 100%);
}

body.green-march-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(193, 39, 45, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(27, 94, 63, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Moroccan Zellige Pattern Overlay */
body.green-march-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="zellige" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M30,0 L45,15 L30,30 L15,15 Z" fill="rgba(212,175,55,0.03)" stroke="rgba(27,94,63,0.05)" stroke-width="0.5"/><path d="M0,30 L15,45 L0,60 L-15,45 Z" fill="rgba(27,94,63,0.02)" stroke="rgba(193,39,45,0.05)" stroke-width="0.5"/><path d="M60,30 L75,45 L60,60 L45,45 Z" fill="rgba(27,94,63,0.02)" stroke="rgba(193,39,45,0.05)" stroke-width="0.5"/></pattern></defs><rect width="60" height="60" fill="url(%23zellige)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   ROYAL ANNIVERSARY BADGE - Moroccan Style
   ============================================ */

.anniversary-badge {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 140px;
    height: 140px;
    background: var(--gm-gradient-royal);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(193, 39, 45, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 0 12px rgba(212, 175, 55, 0.6),
        0 0 0 14px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: royalPulse 4s ease-in-out infinite, badgeFloat 8s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.anniversary-badge:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 
        0 15px 50px rgba(193, 39, 45, 0.6),
        0 0 0 8px rgba(255, 255, 255, 1),
        0 0 0 16px rgba(212, 175, 55, 0.8),
        0 0 0 18px rgba(255, 255, 255, 0.6);
}

.anniversary-badge .number {
    font-size: 56px;
    font-weight: 900;
    background: var(--gm-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    font-family: 'Arial Black', 'Arial', sans-serif;
    animation: goldShimmer 3s linear infinite;
}

.anniversary-badge .text {
    font-size: 11px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
}

.anniversary-badge::before {
    content: '★';
    position: absolute;
    top: -10px;
    color: var(--gm-gold);
    font-size: 24px;
    animation: starTwinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

@keyframes royalPulse {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(193, 39, 45, 0.4),
            0 0 0 6px rgba(255, 255, 255, 0.9),
            0 0 0 12px rgba(212, 175, 55, 0.6),
            0 0 0 14px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 15px 60px rgba(193, 39, 45, 0.6),
            0 0 0 8px rgba(255, 255, 255, 1),
            0 0 0 16px rgba(212, 175, 55, 0.9),
            0 0 0 20px rgba(255, 255, 255, 0.7);
    }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes goldShimmer {
    0% { filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)) brightness(1); }
    50% { filter: drop-shadow(2px 2px 8px rgba(212, 175, 55, 0.8)) brightness(1.2); }
    100% { filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)) brightness(1); }
}

/* ============================================
   MOROCCAN ROYAL BANNER
   ============================================ */

.gm-anniversary-banner {
    background: var(--gm-gradient-royal);
    color: white;
    padding: 18px 0;
    text-align: center;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 20px rgba(193, 39, 45, 0.4),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    animation: bannerSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    direction: rtl;
}

.gm-anniversary-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gm-gold) 0%, 
        var(--gm-gold-light) 25%, 
        var(--gm-gold) 50%, 
        var(--gm-gold-light) 75%, 
        var(--gm-gold) 100%);
    animation: goldStripe 3s linear infinite;
}

.gm-anniversary-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gm-gold) 0%, 
        var(--gm-gold-light) 25%, 
        var(--gm-gold) 50%, 
        var(--gm-gold-light) 75%, 
        var(--gm-gold) 100%);
    animation: goldStripe 3s linear infinite reverse;
}

.gm-anniversary-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 15px;
}

.gm-anniversary-banner .star-icon {
    color: var(--gm-gold);
    font-size: 24px;
    animation: starRotate 8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

@keyframes goldStripe {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes starRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   CAROUSEL ENHANCEMENTS - Royal Style
   ============================================ */

.green-march-theme #header-carousel {
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.green-march-theme #header-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gm-gradient-royal);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(193, 39, 45, 0.4);
}

/* Moroccan Star Decoration */
.green-march-theme #header-carousel::after {
    content: '★';
    position: absolute;
    font-size: 120px;
    background: var(--gm-gradient-star);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: starPulse 6s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.08;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
        opacity: 0.12;
    }
}

/* Royal Carousel Controls */
.green-march-theme .carousel-control-prev,
.green-march-theme .carousel-control-next {
    width: 70px;
    height: 70px;
    background: var(--gm-gradient-royal);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.95;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 24px rgba(193, 39, 45, 0.4),
        0 0 0 4px rgba(212, 175, 55, 0.3);
}

.green-march-theme .carousel-control-prev:hover,
.green-march-theme .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 12px 32px rgba(193, 39, 45, 0.6),
        0 0 0 6px rgba(212, 175, 55, 0.6);
}

.green-march-theme .carousel-control-prev-icon,
.green-march-theme .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Royal Indicators */
.green-march-theme .carousel-indicators [data-bs-target] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid var(--gm-gold);
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 6px;
}

.green-march-theme .carousel-indicators .active {
    width: 50px;
    border-radius: 10px;
    opacity: 1;
    background: var(--gm-gradient-gold);
    border-color: var(--gm-red-royal);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.6);
}

/* ============================================
   SECTION TITLES - Moroccan Royal Style
   ============================================ */

.green-march-theme x-section-title,
.green-march-theme .section-title {
    position: relative;
    padding: 20px 0 20px 30px;
    margin-bottom: 3rem;
    font-family: 'Arial', sans-serif;
    direction: rtl;
}

.green-march-theme x-section-title::before,
.green-march-theme .section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: var(--gm-gradient-royal);
    border-radius: 4px;
    box-shadow: 
        0 4px 16px rgba(193, 39, 45, 0.3),
        inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.green-march-theme x-section-title::after,
.green-march-theme .section-title::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: var(--gm-gradient-star);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: starFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.6));
}

/* Moroccan Decorative Corner */
.green-march-theme x-section-title h2,
.green-march-theme .section-title h2,
.green-march-theme x-section-title h1,
.green-march-theme .section-title h1 {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.green-march-theme x-section-title h2::before,
.green-march-theme .section-title h2::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 40px;
    height: 4px;
    background: var(--gm-gradient-gold);
    border-radius: 2px;
}

.green-march-theme x-section-title h2::after,
.green-march-theme .section-title h2::after {
    content: '';
    position: absolute;
    right: -15px;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: var(--gm-gradient-gold);
    border-radius: 2px;
}

@keyframes starFloat {
    0%, 100% { 
        transform: translateY(-50%) rotate(0deg);
    }
    50% { 
        transform: translateY(-55%) rotate(180deg);
    }
}

/* ============================================
   MOROCCAN DECORATIVE DIVIDERS
   ============================================ */

.moroccan-divider {
    width: 100%;
    height: 60px;
    margin: 4rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moroccan-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--gm-gold) 20%,
        var(--gm-red-royal) 40%,
        var(--gm-green-royal) 60%,
        var(--gm-gold) 80%,
        transparent 100%);
    opacity: 0.4;
}

.moroccan-divider::after {
    content: '✦';
    position: absolute;
    font-size: 32px;
    background: var(--gm-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.6));
    animation: dividerPulse 3s ease-in-out infinite;
    z-index: 1;
    background-color: white;
    padding: 0 20px;
}

@keyframes dividerPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        transform: scale(1.2) rotate(90deg);
    }
}

/* ============================================
   CARDS - Royal Moroccan Style
   ============================================ */

.green-march-theme .card[dir="auto"],
.green-march-theme .team-item {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.green-march-theme .card[dir="auto"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gm-gradient-royal);
    z-index: 1;
}

.green-march-theme .card[dir="auto"] {
    background: var(--gm-gradient-royal) !important;
}

.green-march-theme .card[dir="auto"]:hover,
.green-march-theme .team-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(193, 39, 45, 0.2),
        0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* Quote Styling */
.green-march-theme .card .fas.fa-quote-left,
.green-march-theme .card .fas.fa-quote-right {
    color: var(--gm-gold);
    font-size: 28px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================
   BUTTONS - Royal Gold Style
   ============================================ */

.green-march-theme .btn-warning,
.green-march-theme .btn-primary {
    background: var(--gm-gradient-gold);
    border: 3px solid var(--gm-green-royal);
    color: var(--gm-green-royal);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
}

.green-march-theme .btn-warning::before,
.green-march-theme .btn-primary::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.6s, height 0.6s;
}

.green-march-theme .btn-warning:hover::before,
.green-march-theme .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.green-march-theme .btn-warning:hover,
.green-march-theme .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
    border-color: var(--gm-red-royal);
}

.green-march-theme .btn-outline-dark {
    border: 2px solid var(--gm-green-royal);
    color: var(--gm-green-royal);
    background: white;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
}

.green-march-theme .btn-outline-dark:hover {
    background: var(--gm-gradient-royal);
    color: white;
    border-color: var(--gm-gold);
    transform: scale(1.1);
}

/* ============================================
   BADGES - Royal Style
   ============================================ */

.green-march-theme .badge {
    background: var(--gm-gradient-royal) !important;
    color: white;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(193, 39, 45, 0.3);
    font-family: 'Arial', sans-serif;
}

/* ============================================
   SCROLL PROGRESS - Royal Colors
   ============================================ */

.gm-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: var(--gm-gradient-royal);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 3px 12px rgba(193, 39, 45, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .anniversary-badge {
        width: 100px;
        height: 100px;
        top: 80px;
        right: 10px;
    }
    
    .anniversary-badge .number {
        font-size: 38px;
    }
    
    .anniversary-badge .text {
        font-size: 9px;
    }
    
    .gm-anniversary-banner .banner-content {
        font-size: 11px;
        gap: 10px;
    }
    
    .moroccan-divider {
        height: 40px;
        margin: 2rem auto;
    }
}

/* ============================================
   ARABIC TYPOGRAPHY ENHANCEMENTS
   ============================================ */

.green-march-theme [dir="rtl"] {
    font-family: 'Arial', 'Traditional Arabic', sans-serif;
    text-align: right;
}

.green-march-theme [lang="ar"] {
    letter-spacing: 0;
    line-height: 1.8;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

@keyframes bannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.3);
    }
}