/* ==================== COLOR PALETTE ==================== */
:root {
    /* Primary Colors - Muted */
    --hmpc-primary: #023020;
    --hmpc-primary-light: #0a4d3a;
    --hmpc-primary-dark: #011810;
    --hmpc-primary-hover: #034530;

    /* Secondary Colors - Muted */
    --hmpc-secondary: #1a5f4a;
    --hmpc-accent: #2e8b6d;
    --hmpc-gold: #d4af37;

    /* Neutral Colors - Lighter Background */
    --hmpc-white: #ffffff;
    --hmpc-cream-50: #faf9f7;
    --hmpc-cream-100: #f5f3f0;
    --hmpc-gray-100: #f8f9fa;
    --hmpc-gray-200: #e9ecef;
    --hmpc-gray-300: #dee2e6;
    --hmpc-gray-400: #ced4da;
    --hmpc-gray-500: #adb5bd;
    --hmpc-gray-600: #6c757d;
    --hmpc-gray-700: #495057;
    --hmpc-gray-800: #343a40;
    --hmpc-gray-900: #212529;

    /* Status Colors */
    --hmpc-success: #198754;
    --hmpc-danger: #dc3545;
    --hmpc-warning: #ffc107;
    --hmpc-info: #0dcaf0;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri', serif;
    background: linear-gradient(135deg, var(--hmpc-cream-50) 0%, var(--hmpc-cream-100) 50%, var(--hmpc-gray-100) 100%);
    color: var(--hmpc-gray-800);
    line-height: 1.7;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(90deg, var(--hmpc-primary-dark) 0%, var(--hmpc-primary) 50%, var(--hmpc-primary-light) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hmpc-gold) !important;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.4));
    transition: all 0.3s ease;
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.6));
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--hmpc-gray-200) !important;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--hmpc-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hmpc-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--hmpc-gold);
    background: transparent;
    color: var(--hmpc-gold);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
}

.lang-btn:hover {
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    transform: translateY(-2px);
}

/* ==================== HERO SECTION WITH ANIMATION ==================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #023020 0%, #1a5f4a 50%, #023020 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
    animation: subtleZoom 30s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 139, 109, 0.08) 0%, transparent 50%);
    z-index: 1;
    animation: overlayFloat 20s ease-in-out infinite;
}

@keyframes overlayFloat {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212,175,55,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(46,139,109,0.15) 0%, transparent 50%);
    animation: floatingGradient 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingGradient {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Hero Date Display - Top Right */
.hero-date {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 10;
    text-align: right;
    animation: fadeInRight 1.5s ease-out;
}

.date-gregorian {
    font-size: 1.1rem;
    color: var(--hmpc-gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.date-hijri {
    font-size: 1.3rem;
    color: var(--hmpc-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.5px;
}

.date-hijri::before {
    content: '🌙';
    font-size: 1.5rem;
    animation: pulseMoon 3s ease-in-out infinite;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseMoon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 2.5rem;
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4)); /* Reduced glow intensity */
    position: relative;
    z-index: 1;
    opacity: 0.9; /* Slight transparency */
    transition: all 0.5s ease;
}

.hero-logo:hover .logo-img {
    opacity: 1;
    filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.6));
}

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

.hero-content h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--hmpc-gold) 0%, #f4e5c2 50%, var(--hmpc-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
    padding-top: 0.2em;
    animation: slideInDown 1s ease-out;
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hmpc-gold), transparent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    animation: slideInUp 1s ease-out 0.2s both;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Animated Text Carousel */
.animated-text-carousel {
    margin-bottom: 2rem;
    min-height: 100px;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 1px;
}

.carousel-text {
    position: absolute;
    opacity: 0;
    animation: textFade 10s infinite;
    left: 0;
    right: 0;
    text-align: center;
    text-shadow: none;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 229, 194, 0.95));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5;
    padding-top: 0.1em;
}

.carousel-text:nth-child(1) { animation-delay: 0s; }
.carousel-text:nth-child(2) { animation-delay: 3.3s; }
.carousel-text:nth-child(3) { animation-delay: 6.6s; }

@keyframes textFade {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    33% { opacity: 1; transform: translateY(0); }
    43% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    padding: 1.2rem 3.5rem;
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    border: 2px solid var(--hmpc-gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s ease;
    cursor: pointer;
    animation: slideInUp 1s ease-out 0.4s both;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    background: #faf9f7;
    color: #0a4d3a;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    border-color: var(--hmpc-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ==================== SECTION STYLES ==================== */
.section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,243,240,0.9) 100%);
}

.section-alt {
    background: linear-gradient(135deg, rgba(250,249,247,0.9) 0%, rgba(240,238,235,0.9) 100%);
}

.section-title {
    color: var(--hmpc-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hmpc-gold), transparent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

section[id] {
    scroll-margin-top: 80px;
}

/* ==================== CARDS ==================== */
.sufi-card {
    background: #0a4d3a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sufi-card:hover {
    border-color: var(--hmpc-gold);
    background: #0d5f47;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-width: 3px;
}

.sufi-icon {
    font-size: 3rem;
    color: var(--hmpc-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.sufi-card h4 {
    color: var(--hmpc-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.sufi-card:hover h4 {
    color: #f4e5c2;
    transform: translateX(5px);
}

.sufi-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--hmpc-accent);
    font-weight: 600;
    font-style: italic;
}

.highlight-gold {
    color: var(--hmpc-gold);
    font-weight: 700;
}

/* ==================== ABOUT STATS ==================== */
.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--hmpc-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item h4 {
    color: var(--hmpc-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== APPLICATIONS SECTION ==================== */
.app-card {
    background: #0a4d3a;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hmpc-primary), var(--hmpc-gold), var(--hmpc-accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    border-color: var(--hmpc-gold);
    background: #0d5f47;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
    border-width: 4px;
}

.app-icon {
    font-size: 4rem;
    color: var(--hmpc-gold);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--hmpc-accent);
}

.app-card h4 {
    color: var(--hmpc-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.app-card:hover h4 {
    color: #f4e5c2;
    transform: scale(1.05);
}

.app-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.btn-app {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--hmpc-gold);
}

.btn-app:hover {
    background: #faf9f7;
    color: #0a4d3a;
    transform: translateX(5px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    border-color: var(--hmpc-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.btn-app i {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-app:hover i {
    transform: translateX(5px);
}

/* ==================== IMAGE SECTION ==================== */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: var(--hmpc-primary-dark); /* Dark background for the image to blend into */
}

.img-container:hover {
    border-color: var(--hmpc-gold);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
}

.img-container img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
    display: block;
    opacity: 0.75; /* Reduced opacity to make it less flashy */
    filter: brightness(0.8) contrast(0.9); /* Subtles the colors */
}

.img-container:hover img {
    transform: scale(1.05);
    opacity: 0.9; /* Becomes clearer on hover */
    filter: brightness(1) contrast(1);
}

/* ==================== STAGE ITEMS ==================== */
.stages-container {
    background: rgba(255, 255, 255, 0.6);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stage-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    transition: all 0.4s ease;
    padding: 2rem;
    border-radius: 15px;
    background: #0a4d3a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stage-item:hover {
    background: #0d5f47;
    transform: translateX(10px);
    border-color: var(--hmpc-gold);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    border-width: 3px;
}

.stage-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--hmpc-gold), var(--hmpc-accent));
    color: var(--hmpc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.stage-item:hover .stage-number {
    transform: scale(1.1) rotate(360deg);
}

.stage-content h4 {
    color: var(--hmpc-gold);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.stage-item:hover .stage-content h4 {
    color: #f4e5c2;
    transform: translateX(5px);
}

.stage-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
}

/* ==================== MAP SNIPPET ==================== */
.map-snippet {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--hmpc-gold);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-snippet:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--hmpc-white);
}

.map-snippet iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
    pointer-events: none; /* Disable interaction with iframe so click goes to parent link */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 77, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.map-snippet:hover .map-overlay {
    opacity: 1;
    background: rgba(10, 77, 58, 0.4);
}

.map-overlay-btn {
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.map-snippet:hover .map-overlay-btn {
    transform: translateY(0);
}

/* ==================== EVENTS CALENDAR SECTION ==================== */
.calendar-year {
    text-align: center;
    color: var(--hmpc-accent);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-shadow: 0 2px 10px rgba(46, 139, 109, 0.2);
}

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

.month-card {
    background: linear-gradient(135deg, rgba(2, 48, 32, 0.85), rgba(26, 95, 74, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    min-height: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.month-card:hover {
    border-color: var(--hmpc-gold);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(2, 48, 32, 0.95), rgba(26, 95, 74, 1));
}

.month-header {
    color: var(--hmpc-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--hmpc-gold);
    text-align: center;
    background: #faf9f7;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-item {
    background: #faf9f7;
    border-left: 4px solid var(--hmpc-gold);
    padding: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-item:hover {
    background: #f5f3f0;
    border-left-color: var(--hmpc-gold);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.event-date {
    color: var(--hmpc-gold);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-name {
    color: #023020;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.event-location {
    color: #5a6c60;
    font-size: 0.95rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-location::before {
    content: '📍';
    font-style: normal;
}

.no-events {
    color: #8a9a8f;
    font-style: italic;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.1rem;
}

/* ==================== STORY CARD ==================== */
.saint-heading {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #0a4d3a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.saint-heading:hover {
    background: #0d5f47;
    border-color: var(--hmpc-gold);
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    border-width: 3px;
}

.saint-heading:hover span {
    color: var(--hmpc-gold);
}

.saint-heading i.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.saint-heading[aria-expanded="true"] i.toggle-icon {
    transform: rotate(180deg);
}

.saint-section {
    margin-bottom: 2rem;
}

.saint-stories {
    padding-top: 2rem;
}

.saint-icon {
    width: 35px;
    height: 35px;
}

.story-card {
    background: #0a4d3a;
    border-left: 5px solid var(--hmpc-gold);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.story-card::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--hmpc-gold);
    transition: all 0.4s ease;
}

.story-card:hover::before {
    transform: rotate(90deg) scale(1.2);
    color: #f4e5c2;
}

.story-card:hover {
    background: #0d5f47;
    transform: translateX(15px);
    border-left-width: 8px;
    border-color: var(--hmpc-gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.story-title {
    color: var(--hmpc-gold);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.story-card:hover .story-title {
    color: #f4e5c2;
}

.story-title i {
    color: var(--hmpc-gold);
    margin-right: 0.5rem;
}

.story-saint {
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.story-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.story-lesson {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid var(--hmpc-gold);
    padding: 1.2rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-top: 1.5rem;
}

.story-lesson strong {
    color: var(--hmpc-gold);
}

.btn-more {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--hmpc-gold);
}

.btn-more:hover {
    background: #faf9f7;
    color: #0a4d3a;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    border-color: var(--hmpc-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ==================== QUOTES GRID ==================== */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background: #0a4d3a;
    border-left: 5px solid var(--hmpc-gold);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: rgba(212, 175, 55, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s ease;
}

.quote-card:hover::before {
    color: rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
}

.quote-card:hover {
    background: #0d5f47;
    transform: translateY(-10px) scale(1.02);
    border-left-width: 8px;
    border-color: var(--hmpc-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.quote-text {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.quote-author {
    color: var(--hmpc-gold);
    font-weight: 700;
    text-align: right;
    font-size: 1rem;
    border-top: 2px solid rgba(212, 175, 55, 0.5);
    padding-top: 1rem;
    transition: all 0.3s ease;
}

.quote-card:hover .quote-author {
    color: #f4e5c2;
}

/* ==================== FORM STYLES ==================== */
.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--hmpc-gray-800);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--hmpc-gold);
    color: var(--hmpc-gray-800);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

.form-label {
    color: var(--hmpc-primary);
    font-weight: 600;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
}

.btn-submit {
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    border: 2px solid var(--hmpc-gold);
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    width: 100%;
}

.btn-submit:hover {
    background: #faf9f7;
    color: #0a4d3a;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    border-color: var(--hmpc-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(90deg, var(--hmpc-primary-dark) 0%, var(--hmpc-primary) 50%, var(--hmpc-primary-light) 100%);
    color: var(--hmpc-gray-200);
    padding: 4rem 0 2rem;
    border-top: 3px solid rgba(212, 175, 55, 0.4);
}

footer h5 {
    color: var(--hmpc-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

footer p, footer a {
    color: var(--hmpc-gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

footer ul {
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-links li {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.footer-links li:not(:last-child)::after {
    content: '•';
    color: var(--hmpc-gold);
    margin: 0 0.5rem;
    font-weight: 700;
}

.footer-links li a {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--hmpc-gray-300);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.footer-links li a:hover {
    color: var(--hmpc-gold);
    transform: translateY(-2px);
}

/* ==================== UTILITY CLASSES ==================== */
.text-gold {
    color: var(--hmpc-gold);
}

.text-accent {
    color: var(--hmpc-accent);
}

.hidden-lang {
    display: none !important;
}

/* RTL Support for Urdu */
.ur-text {
    direction: rtl;
    text-align: right;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .hero-date {
        top: 80px;
        right: 15px;
    }

    .date-gregorian {
        font-size: 0.85rem;
    }

    .date-hijri {
        font-size: 1rem;
    }

    .date-hijri::before {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .lang-switcher {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .stage-item {
        flex-direction: column;
        gap: 1rem;
    }

    .story-card {
        padding: 1.5rem;
    }

    .story-card:hover {
        transform: translateX(5px);
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .animated-text-carousel {
        font-size: 1.3rem;
        min-height: 50px;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .calendar-year {
        font-size: 1.5rem;
    }

    .app-card {
        padding: 2rem 1.5rem;
    }

    .app-icon {
        font-size: 3rem;
    }

    .logo-img {
        max-width: 100px;
    }

    .hero-logo {
        margin-bottom: 4rem; /* Added space to prevent overlapping with date on mobile */
    }

    .section {
        padding: 60px 0;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        min-width: 100%;
    }

    .footer-links li:not(:last-child)::after {
        margin: 0 0.6rem;
        font-size: 0.9rem;
    }

    .footer-links li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .animated-text-carousel {
        font-size: 1.1rem;
    }

    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .footer-links {
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .footer-links li:not(:last-child)::after {
        margin: 0 0.4rem;
        font-size: 0.8rem;
    }

    .footer-links li a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Smooth fade-in for sections */
.section {
    animation: fadeIn 0.8s ease-in;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==================== PAGE HEADER (Stories Page) ==================== */
.page-header {
    background: linear-gradient(135deg, var(--hmpc-accent), var(--hmpc-primary));
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.page-title {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title i {
    color: var(--hmpc-gold);
    margin-right: 1rem;
}

.page-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--hmpc-gold);
    color: var(--hmpc-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--hmpc-gold);
}

.btn-back:hover {
    transform: translateX(-5px);
    background: #faf9f7;
    color: #0a4d3a;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    border-color: var(--hmpc-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
