/* ============================================
   ENHANCED COMPONENTS - Hybrid Approach Integration
   Extracted from enhanced Hirak archive design
   ============================================ */

/* ========== ENHANCED COLOR PALETTE ========== */
:root {
    /* Enhanced primary colors (brighter greens) */
    --primary-enhanced: #1a5f23;
    --primary-dark-enhanced: #0d3d15;
    --primary-light-enhanced: #2e7d32;
    
    /* Enhanced accent (warmer gold) */
    --accent-warm-gold: #ffd54f;
    
    /* Additional utility colors */
    --bg-enhanced: #f8f9fa;
    --text-dark-enhanced: #2c2c2c;
    --text-medium-enhanced: #555;
    --shadow-enhanced: 0 4px 16px rgba(0,0,0,0.1);
}

/* ========== ENHANCED TYPOGRAPHY ========== */
/* Add Cairo font with more weights */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

.lead {
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 400;
    color: var(--text-medium-enhanced);
    margin-bottom: 1.5rem;
}

/* ========== EVENT CARD COMPONENT ========== */
.event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-enhanced);
    border-color: var(--accent-gold);
}

.event-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.event-date {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(13, 94, 58, 0.2);
    font-size: 0.95rem;
}

.event-title {
    font-family: var(--font-arabic-elegant);
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f0f0f0;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.95rem;
}

.event-meta-item i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.event-card p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-gray);
}

.academic-note {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-right: 3px solid var(--accent-warm-gold);
    padding: 10px 15px;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    font-style: italic;
    color: #856404;
    border-radius: 6px;
}

/* ========== TESTIMONIAL CARD COMPONENT ========== */
.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--accent-gold);
}

/* Decorative quote mark */
.testimonial-card::before {
    content: '\201D';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-title {
    font-family: var(--font-arabic-elegant);
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 700;
}

.testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(13, 94, 58, 0.03);
    border-radius: 6px;
}

.testimonial-meta div {
    font-size: 0.95rem;
    color: #666;
}

.testimonial-meta strong {
    color: var(--primary-green);
    font-weight: 600;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: justify;
    font-style: italic;
}

.testimonial-content p:first-child {
    font-weight: 500;
}

/* ========== INFO BOX COMPONENT ========== */
.info-box {
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.info-box h3 {
    font-family: var(--font-arabic-body);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.info-box h3 i {
    font-size: 1.2rem;
}

.info-box p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Info box variants */
.info-box-methodology {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-right: 4px solid #2196F3;
}

.info-box-methodology h3 {
    color: #1565c0;
}

.info-box-methodology h3 i {
    color: #2196F3;
}

.info-box-methodology p {
    color: #1565c0;
}

.info-box-important {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-right: 4px solid #ffc107;
}

.info-box-important h3 {
    color: #f57c00;
}

.info-box-important h3 i {
    color: #ffc107;
}

.info-box-important p {
    color: #e65100;
}

.info-box-warning {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-right: 4px solid #f44336;
}

.info-box-warning h3 {
    color: #c62828;
}

.info-box-warning h3 i {
    color: #f44336;
}

.info-box-warning p {
    color: #b71c1c;
}

.info-box-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-right: 4px solid #4caf50;
}

.info-box-success h3 {
    color: #2e7d32;
}

.info-box-success h3 i {
    color: #4caf50;
}

.info-box-success p {
    color: #1b5e20;
}

/* ========== BADGE SYSTEM ========== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.badge-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #f57c00 100%);
    color: #000;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(117, 117, 117, 0.3);
}

/* ========== ENHANCED CARD WITH BADGES ========== */
.card.research-card {
    padding: var(--spacing-lg);
}

.card.research-card h3 {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.card.research-card .academic-note {
    background: none;
    border: none;
    padding: 0;
    margin: var(--spacing-sm) 0;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--spacing-sm) 0;
}

.tag {
    background: rgba(13, 94, 58, 0.08);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(13, 94, 58, 0.15);
}

/* ========== ENHANCED HEADER TOP BAR ========== */
.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    font-size: 0.9rem;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info i {
    color: var(--accent-warm-gold);
}

/* ========== LOGO SECTION ENHANCEMENT ========== */
.logo-section {
    text-align: center;
    padding: 25px 0 20px;
}

.logo-accent {
    color: var(--accent-warm-gold);
    font-size: 2.2rem;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.95;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* ========== ENHANCED NAV STYLING ========== */
nav.nav-enhanced {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 15px;
}

nav.nav-enhanced ul {
    gap: 8px;
}

nav.nav-enhanced a {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.nav-enhanced a i {
    font-size: 0.9rem;
}

nav.nav-enhanced a:hover,
nav.nav-enhanced a.active-page {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== ENHANCED DISCLAIMER ========== */
.disclaimer-enhanced {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-bottom: 4px solid var(--accent-warm-gold);
    padding: 18px 0;
    box-shadow: var(--shadow-enhanced);
    text-align: center;
    font-weight: 600;
    color: #e65100;
}

.disclaimer-enhanced i {
    margin-left: 10px;
    color: #f57c00;
}

/* ========== FORM ENHANCEMENTS ========== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: #f44336;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-arabic-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(13, 94, 58, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-md);
    display: none;
    font-weight: 600;
}

.form-message.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.form-message.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 2px solid #f44336;
}

/* ========== CARD ICON ENHANCEMENT ========== */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(13, 94, 58, 0.3);
}

.card-icon i {
    color: white;
}

/* ========== FOOTER ENHANCEMENT ========== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

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

.footer-section h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-arabic-elegant);
    font-weight: 700;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0e0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
}

.footer-section ul li i {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
    .event-card {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .event-header {
        gap: 10px;
    }
    
    .event-title {
        font-size: 1.3rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 10px;
        right: 10px;
    }
    
    .testimonial-title {
        font-size: 1.2rem;
    }
    
    .testimonial-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-box {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .info-box h3 {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li a {
        justify-content: center;
    }
    
    .header-top {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    .header-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .logo-section {
        padding: 20px 0 15px;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .event-date {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .testimonial-title {
        font-size: 1.1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .header-top {
        font-size: 0.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.85rem;
    }
}
