
/* --- 1. CORE STYLES --- */
body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.9;
    background: #f7f9fb;
    color: #333;
    box-sizing: border-box;
}

*, *:before, *:after { box-sizing: inherit; }

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.logo img { height: 130px; width: auto; }

.language-switch { position: absolute; left: 20px; top: 20px; }

.flag-icon {
    width: 40px; /* Refined size */
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flag-icon:hover { transform: scale(1.1); opacity: 0.8; }

/* --- 3. TYPOGRAPHY & LAYOUT --- */
section { padding: 40px 20px; max-width: 1000px; margin: auto; }

h1, h2, h3 { color: #123c5a; font-weight: 600; }
h1 { font-size: 28px; text-align: center; }
h2 { margin-top: 40px; border-bottom: 2px solid #eef2f6; padding-bottom: 10px; }

ul { padding-right: 25px; }

/* --- 4. BUTTONS (CTA) --- */
.cta { 
    text-align: center; 
    margin-top: 30px; 
    /* This ensures the container itself treats the buttons as a row */
    line-height: 0; 
}

.cta a {
    display: inline-flex;
    align-items: center;   /* Centers content inside the button */
    justify-content: center;
    vertical-align: middle; /* Fix: Aligns the buttons relative to each other */
    gap: 10px;
    margin: 10px;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1;        /* Prevents text height from pushing the button box */
    transition: all 0.3s ease;
    background: #123c5a;   /* Default Blue */
}

/* Ensure the SVG doesn't carry extra margin or baseline shift */
.cta a svg {
    display: block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Button Variants */
.cta a.secondary { background: #4CAF50; }
.cta a.third     { background: #8e44ad; }
.cta a.whatsapp  { background: #25D366; }
.cta a.telegram  { background: #0088cc; }

.cta a:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
/* --- 5. IMAGE BANNERS --- */
.cta-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.cta-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cta-image:hover { transform: scale(1.02); }

/* --- 6. FOOTER --- */
footer {
    background: #123c5a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    direction: rtl;
    margin-bottom: 20px;
}

.footer-icons a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-icons a:hover { color: #4CAF50; transform: scale(1.1); }

/* --- 7. RESPONSIVENESS --- */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    
    .cta-image.mobile-only {
        width: 100%; /* Better than fixed 200px to avoid stretching */
        max-width: 400px;
    }

    h1 { font-size: 24px; }
    
    .cta a { width: 90%; margin: 8px auto; } /* Full width buttons for mobile focus */
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}
