  @import url("fonts.css");

:root {
    --primary-color: #0f4959;
    --secondary-color: #fbad1b;
    --white-color: #ffffff;
    --dark-color: #333333;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    line-height: 1.8;
    color: var(--dark-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 100px;
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-left: 10px;
}

.nav-link {
    font-weight: 700;
    font-size: 20px;
    padding: 10px 15px !important;
    position: relative;
}
.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 50%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
}
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
}

.nav-link:hover:after {
    width: calc(100% - 30px);
}
/* Quran Style */
/* استایل‌های عمومی */
.quran-section {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* کارت خدمات */
.service-card {
    background: white;
    border: 1px solid rgba(15, 73, 89, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.service-icon-box {
    display: inline-flex;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(251, 173, 27, 0.1) 0%, rgba(251, 173, 27, 0.2) 100%);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.service-main-icon {
    font-size: 1.8rem;
    color: #fbad1b;
}

/* دکمه‌های خدمات */
.service-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    text-decoration: none;
    color: #0f4959;
    font-weight: 500;
    border: 1px solid rgba(15, 73, 89, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
}

.service-btn:hover {
    border-color: #fbad1b;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(251, 173, 27, 0.1);
}

.service-btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(15, 73, 89, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: #fbad1b;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.service-btn:hover .service-btn-icon {
    background: rgba(251, 173, 27, 0.1);
    transform: scale(1.1);
}

.service-arrow {
    margin-right: auto;
    color: rgba(15, 73, 89, 0.4);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-btn:hover .service-arrow {
    color: #fbad1b;
    transform: translateX(-5px);
}

.loan-btn {
    background: linear-gradient(135deg, rgba(15, 73, 89, 0.05) 0%, rgba(15, 73, 89, 0.1) 100%);
    border: 1px dashed rgba(15, 73, 89, 0.2) !important;
}

.loan-btn:hover {
    background: linear-gradient(135deg, rgba(251, 173, 27, 0.05) 0%, rgba(251, 173, 27, 0.1) 100%);
    border: 1px dashed #fbad1b !important;
}

.quran-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px; /* ارتفاع حداقلی برای موبایل */
}

.quran-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(15, 73, 89, 0.9) 0%, rgba(15, 73, 89, 0.95) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230f4959"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.quran-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.quran-verse {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quran-ref {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: #fff;
    font-weight: 500;
}
.quran-ref-1 {
  text-shadow: 0 1px 0 #ccc, 
               0 2px 0 #bbb,
               0 3px 0 #aaa,
               0 4px 1px rgba(0,0,0,0.5);
}
.institute-name {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.institute-slogan {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0.9;
    font-style: italic;
}

/* دکوریشن‌ها */
.circle-decor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decor-1 {
    width: 200px;
    height: 200px;
    background: #fbad1b;
    top: -50px;
    right: -50px;
}

.decor-2 {
    width: 150px;
    height: 150px;
    background: #fbad1b;
    bottom: -30px;
    left: -30px;
}

.pattern-decor {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(251, 173, 27, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .quran-card {
        margin-bottom: 2rem;
        height: auto;
    }
    
    .quran-content {
        padding: 1.5rem;
    }
    
    .decor-1 {
        width: 150px;
        height: 150px;
        top: -30px;
        right: -30px;
    }
    
    .decor-2 {
        width: 100px;
        height: 100px;
        bottom: -20px;
        left: -20px;
    }
}

@media (max-width: 576px) {
    .quran-verse {
        line-height: 1.5;
    }
    
    .institute-info {
        margin-top: 1.5rem;
    }
}
/* استایل‌های سفارشی */
.mobile-banking-section {
    background-color: #f8f9fa;
    z-index: 1;
}

.bg-primary-soft {
    background-color: rgba(15, 73, 89, 0.1);
}

.text-primary {
    color: #0f4959 !important;
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.phone-mockup img {
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.screen-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 87%;
    height: 90%;
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.screen-slider img {
    border-radius: 0;
    height: 100%;
    object-fit: cover;
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    color: #fbad1b;
}

.decor-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 173, 27, 0.1);
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

/* انیمیشن‌ها */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.phone-mockup {
    animation: float 6s ease-in-out infinite;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .phone-mockup {
        max-width: 250px;
    }
    
    .shape-1, .shape-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .download-buttons {
        justify-content: center;
    }
    
    .app-content {
        text-align: center;
        padding-right: 0 !important;
    }
    
    .features-list {
        text-align: right;
    }
}


/* About Section */
.about-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}
    
 .section-title {
    position: relative;
    display: inline-block;
    color: #0f4959;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 800;
}
.section-title::before {
    position: absolute;
    content: "";
    width: 180px;
    height: 5px;
    right: 0;
    bottom: 0;
    background:  #fbad1b;
    border-radius: 2px;
}
.section-title:after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section4-title-run 5s infinite linear;
    animation: section4-title-run 5s infinite linear;
}
@-webkit-keyframes section4-title-run {
    0% {right: 0; } 50% { right : 145px; } 100% { right: 0; }
}

@-webkit-keyframes section4-title-run-center {
    0% { right: 50%; margin-right: -75px; } 50% { right : 50%; margin-right: 45px; } 100% { right: 50%; margin-right: -75px; }
}

@-webkit-keyframes section4-title-run-sm {
    0% {right: 0; } 50% { right : 85px; } 100% { right: 0; }
}
@-webkit-keyframes footer-title-run {
    0% {right: 0; } 50% { right : 100px; } 100% { right: 0; }
}

@-webkit-keyframes footer-title-run-center {
    0% { right: 50%; margin-right: -75px; } 50% { right : 50%; margin-right: 45px; } 100% { right: 50%; margin-right: -75px; }
}

@-webkit-keyframes footer-title-run-sm {
    0% {right: 0; } 50% { right : 85px; } 100% { right: 0; }
}
.about-content .lead {
    color: #0f4959;
    font-weight: 500;
    margin-bottom: 25px;
}
    
.about-features {
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-item i {
    color: #fbad1b;
    margin-left: 10px;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    padding: 20px;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}
    
    .experience-badge {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #0f4959;
        color: white;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .experience-badge span {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
    }
    
    .experience-badge small {
        font-size: 0.8rem;
    }
    
    .floating-element {
        position: absolute;
        width: 60px;
        height: 60px;
        background-color: #fbad1b;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 3;
        animation: float 3s ease-in-out infinite;
    }
    
    .element-1 {
        top: 20%;
        left: -10px;
        animation-delay: 0.5s;
    }
    
    .element-2 {
        bottom: 20%;
        right: -10px;
        animation-delay: 1s;
    }
    
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
    
    @media (max-width: 768px) {
        .experience-badge {
            width: 80px;
            height: 80px;
        }
        
        .floating-element {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
    }



/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 0;
}
    
.footer-title {
   font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.footer-title::before {
    position: absolute;
    content: "";
    width: 100px;
    height: 5px;
    right: 0;
    bottom: 0;
    background:  #fbad1b;
    border-radius: 2px;
}
.footer-title:after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: footer-title-run 5s infinite linear;
    animation: footer-title-run 5s infinite linear;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
    display: none; /* ابتدا مخفی باشد */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0;
  }
  
  .navbar-collapse.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
  }
  
  .navbar-toggler {
    z-index: 1001; /* بالاتر از منو باشد */
    position: relative;
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  .nav-item {
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .nav-link {
    padding: 1rem;
    font-size: 1.2rem;
    color: #333 !important;
    border-bottom: 1px solid #f5f5f5;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* استایل‌های سفارشی */
.bank-accounts-section {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.account-card {
    border: 1px solid rgba(15, 73, 89, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.account-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.bg-primary-soft {
    background-color: rgba(15, 73, 89, 0.1);
}

.text-primary {
    color: #0f4959 !important;
}

.account-title {
    font-size: 1.3rem;
    color: #0f4959;
}

.detail-item {
    position: relative;
    padding-right: 30px;
}

.detail-label {
    display: block;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: #0f4959;
    word-break: break-all;
}

.btn-copy {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fbad1b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-copy:hover {
    color: #0f4959;
}

.notice-box {
    border-left: 4px solid #fbad1b !important;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .account-card {
        text-align: right;
    }
    
    .section-title:after {
        width: 40px;
        bottom: -8px;
    }
    
    .account-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .account-title {
        margin-top: 15px;
    }
}
/* استایل‌های سفارشی */
.faq-section {
    background-color: #f8f9fa;
}

.text-primary {
    color: #0f4959 !important;
}

.faq-info-card {
    border: 1px solid rgba(15, 73, 89, 0.1);
    position: sticky;
    top: 20px;
}

.contact-card {
    border: 1px dashed rgba(15, 73, 89, 0.3);
}

.accordion-button {
    background-color: white;
    color: #0f4959;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(15, 73, 89, 0.05);
    color: #0f4959;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(251, 173, 27, 0.25);
}

.accordion-body {
    background-color: white;
}



/* رسپانسیو */
@media (max-width: 992px) {
    .faq-info-card {
        position: static;
        margin-bottom: 30px;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
}