﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.accordion tr.no-border td {
    border-bottom: none !important;
    padding-bottom: 2px;
}

/* Background with Subtle Dynamic Glowing Aura Animation */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 12px;
    position: relative;
    overflow-x: hidden;
}

    /* Background Animated Gradient Orbs */
    body::before,
    body::after {
        content: '';
        position: fixed;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        filter: blur(80px);
        z-index: 0;
        opacity: 0.45;
        pointer-events: none;
        animation: floatAura 10s ease-in-out infinite alternate;
    }

    body::before {
        background: radial-gradient(circle, #a855f7 0%, #c084fc 100%);
        top: -50px;
        right: -50px;
    }

    body::after {
        background: radial-gradient(circle, #3b82f6 0%, #38bdf8 100%);
        bottom: -50px;
        left: -50px;
        animation-delay: -5s;
    }

@keyframes floatAura {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate(30px, 40px) scale(1.15);
        opacity: 0.55;
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.35;
    }
}

/* Card Container (Light Mode with Glassmorphism Effect) */
.card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 20px 16px;
    box-shadow: 0 20px 40px -15px rgba(148, 163, 184, 0.25);
    text-align: center;
}

/* Logo */
.logo-box {
    margin-bottom: 12px;
}

    .logo-box img {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #a855f7;
        box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
    }

.logo-placeholder {
    width: 85px;
    height: 85px;
    background: #f1f5f9;
    border: 2px dashed #a855f7;
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Typography */
h1 {
    font-size: 1.3rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 8px;
}

/* Action Buttons */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .btn .icon {
        width: 20px;
        height: 20px;
    }

    .btn:active {
        transform: scale(0.97);
    }

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.bale {
    background-color: #0f9488;
}

.call {
    background-color: #7c3aed;
    grid-column: span 2;
}

/* Contact Card */
.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    text-align: right;
}

    .contact-card h3 {
        font-size: 0.95rem;
        color: #7c3aed;
        margin-bottom: 10px;
    }

    .contact-card .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
        padding-bottom: 6px;
    }

    .contact-card .label {
        color: #64748b;
    }

    .contact-card .value {
        color: #0f172a;
        text-decoration: none;
        font-weight: 500;
        direction: ltr;
    }

/* Accordion */
.accordion {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 20px;
    text-align: right;
}

    .accordion summary {
        cursor: pointer;
        font-weight: 700;
        font-size: 0.9rem;
        color: #1e293b;
    }

.schedule-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.class-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.class-title {
    font-size: 0.85rem;
    color: #6d28d9;
    margin-bottom: 8px;
    text-align: right;
    font-weight: 700;
}

.accordion table {
    width: 100%;
    border-collapse: collapse;
}

.accordion td {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #475569;
}

    /* اصلاح نهایی برای نمایش مرتب کلمه «الی» در وسط ساعت‌ها */
    .accordion td:last-child {
        text-align: left;
        direction: rtl !important;
        white-space: nowrap !important;
        font-weight: 600;
        color: #0f172a;
    }

.accordion tr:last-child td {
    border-bottom: none;
}

/* Maps */
.map-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.maps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.map-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

    .map-box iframe {
        width: 100%;
        height: 250px;
        border: 0 !important;
        border-radius: 8px;
    }

/* Footer Branding */
.footer {
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.brand-name {
    color: #7c3aed;
    font-weight: 700;
}
