﻿/* REFAH CULTURAL FOUNDATION - ULTIMATE EMERALD EDITION (2025)
   Standard: Premium Institutional UI | Accessibility Optimized 
*/

:root {
    /* Emerald Palette - VIP */
    --refah-primary: #064e3b; 
    --refah-primary-dark: #022c22; 
    --refah-accent: #10b981; 
    --refah-silver: #94a3b8; 
    --refah-bg: #f1f5f9; 
    --refah-text: #0f172a; 
    --glass: rgba(255, 255, 255, 0.85);
    /* Consistency & Motion */
    --bento-radius: 40px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(6, 78, 59, 0.12);
}

@font-face {
    font-family: RefahFont;
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/rffont.eot');
}

@font-face {
    font-family: "RefahFont";
    font-style: normal;
    font-weight: normal;
    src: local('Refah'), url('/fonts/rffont.ttf');
}


/*body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--refah-bg);
    color: var(--refah-text);
    direction: rtl;
    line-height: 1.8;
}

@font-face {
    font-family: 'Vazirmatn';
    font-display: swap;
}*/

body {
    font-family: 'RefahFont', Tahoma, sans-serif;
    background-color: var(--refah-bg);
    color: var(--refah-text);
    direction: rtl;
    line-height: 1.8;
}

@font-face {
    font-family: 'RefahFont';
    font-display: swap;
}

/* --- MODERN HEADER --- */
.glass-header {
    background: var(--glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 0;
    transition: var(--transition);
    z-index: 1050;
}

    .glass-header.scrolled {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

.nav-link-modern {
    color: var(--refah-text) !important;
    font-weight: 600;
    text-decoration: none !important;
    position: relative;
    padding: 8px 15px;
    transition: var(--transition);
}

    .nav-link-modern::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        right: 50%;
        background-color: var(--refah-accent);
        transition: var(--transition);
        transform: translateX(50%);
    }

    .nav-link-modern:hover {
        color: var(--refah-accent) !important;
    }

        .nav-link-modern:hover::after {
            width: 60%;
        }

/* --- BENTO COMPONENTS --- */
.bento-hero-card, .bento-card-dark, .bento-card {
    border-radius: var(--bento-radius) !important;
    overflow: hidden;
    transition: var(--transition);
}

.bento-hero-card {
    position: relative;
    height: 550px;
    background: var(--refah-primary);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.bento-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .bento-bg-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4;
        transition: transform 1.2s ease;
    }

.bento-hero-card:hover .bento-bg-wrapper img {
    transform: scale(1.08);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 60px;
}

.hero-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.gold-text {
    background: linear-gradient(135deg, var(--refah-accent) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card-dark {
    background: var(--refah-primary) !important;
    padding: 50px;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- ADVANCED FOOTER & READABILITY --- */
.modern-footer {
    background: linear-gradient(180deg, var(--refah-primary) 0%, var(--refah-primary-dark) 100%);
    position: relative;
    padding-bottom: 40px;
    color: #ffffff;
}

.footer-cta {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.cta-inner {
    background: var(--refah-accent);
    padding: 40px 60px;
    border-radius: var(--bento-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.newsletter-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
}

.footer-heading-v2 {
    color: var(--refah-accent);
    font-weight: 800;
    margin-bottom: 25px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

    .footer-menu a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: var(--transition);
        display: inline-block;
    }

        .footer-menu a:hover {
            color: white;
            transform: translateX(-8px);
        }


.footer-brand p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    line-height: 2;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #ffffff !important;
}

    .contact-item i {
        color: var(--refah-accent) !important;
        font-size: 1.2rem;
        filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
    }

/* --- UI ELEMENTS --- */
.btn-premium {
    background: linear-gradient(135deg, var(--refah-primary) 0%, var(--refah-accent) 100%);
    color: white !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

    .btn-premium:hover {
        background: #ffffff !important;
        background-image: none !important;
        color: var(--refah-primary) !important;
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(6, 78, 59, 0.25);
    }

.modern-news-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: var(--transition);
}

    .modern-news-card:hover {
        border-color: var(--refah-accent);
        box-shadow: var(--shadow-premium);
    }

.date-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--refah-primary);
    min-width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--refah-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.glass-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(6, 78, 59, 0.75);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 25px;
    color: white;
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 768px) {
    :root {
        --bento-radius: 24px;
    }

    .bento-hero-card {
        height: auto;
        min-height: 400px;
    }

    .bento-content {
        padding: 30px;
    }

    .cta-inner {
        padding: 30px;
        text-align: center;
    }

    .footer-cta {
        margin-top: -30px;
    }

    .newsletter-input {
        min-width: 100%;
        margin-bottom: 10px;
    }
}

/* --- ABOUT US STYLES --- */
.about-hero {
    background: linear-gradient(135deg, var(--refah-primary) 0%, var(--refah-primary-dark) 100%);
    border-radius: var(--bento-radius);
    padding: 80px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-grid-card {
    background: white;
    border-radius: var(--bento-radius);
    padding: 40px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

    .about-grid-card:hover {
        transform: translateY(-5px);
        border-color: var(--refah-accent);
    }

.founder-pill {
    background: rgba(16, 185, 129, 0.1);
    color: var(--refah-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin: 5px;
    font-size: 0.9rem;
}

.vision-icon {
    font-size: 2.5rem;
    color: var(--refah-accent);
    margin-bottom: 20px;
}

.spam-protection {
    unicode-bidi: bidi-override;
    direction: ltr;
    text-align: right; 
}

.contact-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-accent {
    color: var(--refah-accent) !important;
}

.x-small {
    font-size: 0.75rem;
}

.border-white-10 {
    border-color: rgba(255,255,255,0.1) !important;
}

.lms-icon {
    background: rgba(6, 78, 59, 0.1); 
    color: var(--refah-primary);
}


.x-small {
    font-size: 0.75rem;
}

.dropdown-menu {
    text-align: right !important;
    direction: rtl !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

    .dropdown-item i {
        margin-left: 10px !important; 
        margin-right: 0 !important;
    }

/* تنظیمات هدر شیشه‌ای */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* استایل لینک‌های منو */
.nav-link-modern {
    position: relative;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: inline-block;
}

.nav-link-modern:hover {
    color: #0d47a1;
    background: rgba(13, 71, 161, 0.05);
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d47a1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-modern:hover::after {
    width: 20px;
}

/* دراپ‌دان مدرن */
.custom-dropdown-animate {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-radius: 20px !important;
    padding: 15px;
    min-width: 280px;
}

.dropdown:hover .custom-dropdown-animate {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
}

.icon-box-mini {
    width: 35px;
    height: 35px;
    background: #e3f2fd;
    color: #0d47a1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}


.btn-premium-shiny {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-premium-shiny:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
}




.dropdown-toggle::after {
    display: none !important;
}


.custom-dropdown-animate {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.15) !important; 
}


.nav-link-modern:hover {
    color: var(--refah-accent) !important; 
    background: rgba(16, 185, 129, 0.05) !important;
}

.nav-link-modern::after {
    background-color: var(--refah-accent) !important; 
}


.icon-box-mini {
    background: rgba(16, 185, 129, 0.1) !important; 
    color: var(--refah-primary) !important; 
    border-radius: 10px;
}


.btn-premium-shiny {
    background: linear-gradient(135deg, var(--refah-primary) 0%, var(--refah-accent) 100%) !important;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.2) !important;
}


.dropdown-item:hover {
    background: #f1f5f9 !important;
    transform: translateX(-5px) !important;
    color: var(--refah-primary) !important;
}


.dropdown-item .icon-box-mini {
    margin-left: 15px !important; 
    margin-right: 0 !important; 
    flex-shrink: 0; 
}


.dropdown-item > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}


.service-card-hover {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

    .service-card-hover:hover {
        transform: translateY(-5px);
        border-color: var(--refah-accent);
        box-shadow: var(--shadow-premium);
    }


        .service-card-hover:hover .btn-service-arrow {
            background-color: var(--refah-primary);
            color: white;
            transform: translateX(-5px); 
        }

.btn-service-arrow {
    transition: var(--transition);
    z-index: 2; 
}

.fw-black {
    font-weight: 900 !important;
}

.service-card-hover:hover .food-icon {
    background: #f59e0b !important; 
    color: white !important;
}


.modern-news-card {
    padding: 15px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    transition: all 0.3s ease;
}

    .modern-news-card:hover {
        background: #f8fafc;
        border-color: var(--refah-accent);
        transform: translateX(-5px); 
        box-shadow: 0 10px 20px rgba(6, 78, 59, 0.05);
    }

        .modern-news-card:hover .news-arrow i {
            color: var(--refah-primary) !important;
            opacity: 1;
        }