/* ================================
   Modern Contact Page Styles V2
   ================================ */

  /* ================================
   Modern & Minimal Contact Page
   ================================ */

/* فایل contact.css */

/* این کد جدید را به بالای فایل اضافه کنید */
body.contact-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* این قانون را پیدا کرده و آن را اصلاح کنید */
/* این کد را جایگزین کد قبلی کنید */
.contact-main-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: calc(100vh - 85px); */ /* <-- این خط حذف شد */
    padding: 80px 20px; /* کمی پدینگ عمودی را بیشتر میکنیم */
    background-color: #f8f9fa;
}

/* بقیه کدهای شما بدون تغییر باقی میماند */
/* .contact-card { ... } */

.contact-card {
    width: 100%;
    max-width: 700px; /* حداکثر عرض کارت اطلاعات */
    background-color: #fff;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-title {
    font-family: 'lalezar', sans-serif;
    font-size: 52px;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 50px auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* در موبایل تک ستونه است */
    gap: 30px;
    margin-bottom: 50px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.info-block h4 {
    font-weight: 600;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-block a, .info-block p {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #6A8B82;
}

.contact-socials a {
    display: inline-block;
    margin: 0 15px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-socials a:hover {
    color: #1a1a1a;
}

/* برای صفحات بزرگتر، اطلاعات را در سه ستون نمایش میدهیم */
@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr); /* سه ستون مساوی */
    }
}
/* ================================
   Schedule Section Styles (Tabbed Version)
   ================================ */

   .schedule-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-family: 'lalezar', sans-serif;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* استایل دکمه های تب */
.schedule-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 30px;
    font-family: 'lalezar', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    position: relative;
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: #1a1a1a;
}

.tab-link.active {
    color: #1a1a1a;
}

/* خط رنگی زیر تب فعال */


/* استایل محتوای تب ها */
.schedule-content {
    min-height: 200px; /* حداقل ارتفاع برای جلوگیری از پرش صفحه */
}

.tab-content {
    display: none; /* همه محتواها در ابتدا مخفی هستند */
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block; /* محتوای فعال نمایش داده میشود */
}

.class-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.class-item .class-time {
    font-weight: 600;
    color: #1a1a1a;
    width: 150px;
}

.class-item .class-title {
    flex-grow: 1; /* باعث میشود این بخش بزرگ شود و بقیه را هل دهد */
    font-weight: 500;
}

.class-item .class-level {
    color: #777;
    margin: 0 30px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.no-class {
    text-align: center;
    padding: 50px;
    color: #888;
    font-size: 18px;
}

/* کد جدید برای خط انیمیشنی */
.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* انیمیشن نرم و زیبا */
}

span{
    font-family: 'lalezar';
}

/* انیمیشن محو شدن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* واکنشگرایی برای موبایل */
@media (max-width: 768px) {
    .class-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .class-item > * {
        width: 100%;
        margin-bottom: 10px;
    }
    .class-item .btn-small {
        margin-top: 10px;
        text-align: center;
    }
    .tab-link {
        padding: 15px 10px;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
    
    }



    

}


html{
    font-family: 'Lalezar', cursive;
   }



h1,
h2,
h3,
h4,
h5,
h6,
p,
span{
    font-family: 'lalezar';
}

/* ============================= */
/* استایل بخش کارت‌های جزئیات   */
/* ============================= */

/* کانتینر اصلی بخش کارت‌ها */
.details-section-container {
    width: 100%;
    padding: 40px 20px;
    background-color: #f8f9fa; /* یک رنگ پس‌زمینه کمی متفاوت */
    text-align: center;
}

.details-section-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

/* نگهدارنده کارت‌ها برای چینش در کنار هم */
.class-cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px; /* فاصله بین کارت‌ها */
    flex-wrap: wrap; /* اگر فضا کم بود، کارت‌ها به خط بعدی بروند */
}

/* استایل هر کارت */
.class-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 320px;
    text-align: right;
    display: flex;
    flex-direction: column; /* چیدمان عمودی محتوای کارت */
    transition: transform 0.3s, box-shadow 0.3s;
}

.class-card:hover {
    transform: translateY(-8px); /* کمی بالا برود */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* بخش بالایی کارت (هدر) */
.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.card-level {
    font-size: 14px;
    color: #666;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 8px;
}

/* بدنه اصلی کارت */
.card-body {
    padding: 20px;
    flex-grow: 1; /* باعث می‌شود بدنه کارت فضا را پر کند و فوتر همیشه پایین بماند */
}

.card-body p {
    margin: 0 0 15px 0;
    line-height: 1.7;
    color: #555;
}

.card-body p strong {
    color: #333;
}

/* بخش پایینی کارت (فوتر) */
.card-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* دکمه ثبت نام */
.card-btn {
    display: block;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.card-btn:hover {
    background-color: #555;
}

.main-header{
    box-shadow: 0 5px 20px rgba(128, 128, 128, 0.292);
}

.schedule-section{
    margin-top: 4rem;
}

@media(max-width:768px){


    .schedule-section{
        margin-top: -3rem;
    }
    

}



@media (max-width: 480px) {
    .contact-card {
        padding: 40px 25px;
    }

    .contact-title {
        font-size: 42px;
    }
}
