/* ==================================
   ISLAMIC THEMED DESIGN SYSTEM
   Modern Card-Based Layout with Geometric Patterns
   ================================== */

:root {
    --islamic-primary: #0a5c36;
    --islamic-secondary: #d4af37;
    --islamic-accent: #8b4513;
    --islamic-light: #f8f9fa;
    --islamic-dark: #1a1a1a;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Islamic Geometric Pattern Background */
.islamic-pattern-bg {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(10, 92, 54, 0.03) 10px, rgba(10, 92, 54, 0.03) 20px);
}

.islamic-pattern-overlay {
    position: relative;
}

.islamic-pattern-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30 30 0zm0 6.928L6.928 30 30 53.072 53.072 30 30 6.928z' fill='%23d4af37' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--islamic-secondary);
}

.modern-card-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--islamic-secondary);
    background: linear-gradient(135deg, var(--islamic-primary) 0%, #0d7045 100%);
    color: white;
}

.modern-card-body {
    padding: 2rem;
}

.modern-card-footer {
    padding: 1.5rem;
    background: var(--islamic-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Prayer Times Card Enhancement */
.prayer-times-card {
    background: linear-gradient(135deg, var(--islamic-primary) 0%, #0d7045 100%);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.prayer-times-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.prayer-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 4px solid var(--islamic-secondary);
}

.prayer-time-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.prayer-time-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prayer-time-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--islamic-secondary);
}

/* Hero Section with Islamic Elements */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a5c36 0%, #0d7045 50%, #0a5c36 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L75 25L50 50L25 25L50 0Z M50 50L75 75L50 100L25 75L50 50Z M0 50L25 25L50 50L25 75L0 50Z M50 50L75 25L100 50L75 75L50 50Z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    animation: subtleMove 30s linear infinite;
}

@keyframes subtleMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-verse {
    font-size: 1.8rem;
    font-style: italic;
    margin: 2rem 0;
    line-height: 1.8;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border-left: 4px solid #d4af37;
    backdrop-filter: blur(10px);
    color: white;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-verse p {
    color: white;
}

/* CTA Buttons Enhancement */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--islamic-secondary) 0%, #c49d2e 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: white;
    text-decoration: none;
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--islamic-secondary);
    color: var(--islamic-secondary);
}

.cta-button-secondary:hover {
    background: var(--islamic-secondary);
    color: white;
}

/* Event Cards */
.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.event-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.08);
}

.event-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--islamic-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.event-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--islamic-primary);
    margin-bottom: 0.75rem;
}

.event-card-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.event-card-meta i {
    color: var(--islamic-secondary);
    margin-right: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--islamic-primary);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Youth Portal Highlight Card */
.youth-portal-card {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 212, 191, 0.3);
}

.youth-portal-card::before {
    content: '🌟';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.1;
}

.youth-portal-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Quick Info Cards */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.info-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--islamic-primary) 0%, #0d7045 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(10, 92, 54, 0.3);
}

.info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--islamic-primary);
    margin-bottom: 0.75rem;
}

/* Islamic Decorative Elements */
.islamic-decoration {
    font-size: 2rem;
    color: var(--islamic-secondary);
    display: block;
    text-align: center;
    margin: 1rem 0;
}

.islamic-star {
    display: inline-block;
    color: var(--islamic-secondary);
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-verse {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .prayer-times-card {
        padding: 1.5rem;
    }
    
    .info-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }

/* Spacing Utilities */
.section-padding {
    padding: 5rem 0;
}

.section-padding-small {
    padding: 3rem 0;
}

.mb-section {
    margin-bottom: 3rem;
}
