/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --bg-color: #F8FDFA;
    --primary-color: #27C79A;
    --secondary-color: #6DE3C2;
    --card-bg: #FFFFFF;
    --text-dark: #2c3e50;
    --text-light: #5a7184;
    --border-color: #EBF5F3;
    --shadow: 0 8px 25px rgba(44, 62, 80, 0.07);
    --font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- BUTTONS --- */
.btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 199, 154, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 199, 154, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}
.btn-secondary:hover {
    background: var(--primary-color);
}

.btn-tertiary {
    background: #eafaf6;
    color: var(--primary-color);
    padding: 8px 20px;
}
.btn-tertiary:hover {
    background: var(--secondary-color);
    color: white;
}


/* --- HEADER --- */
.main-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo h1 { font-size: 1.5rem; color: var(--text-dark); }
.main-nav { display: none; } /* Hidden on mobile */
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--text-light); font-weight: 500; }
.main-header .btn-primary { display: none; } /* Hidden on mobile */
.mobile-menu-btn { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- SEARCH SECTION --- */
.search-section { padding: 40px 0; }
.search-bar { display: flex; background: white; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 18px 20px;
    font-size: 1rem;
    font-family: var(--font-family);
    background: transparent;
}
.search-bar input:focus { outline: none; }
.search-bar button { background: none; border: none; padding: 0 20px; cursor: pointer; }

/* --- HERO SECTION --- */
.hero-section { padding-bottom: 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.hero-card, .profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}
.hero-card img { width: 100%; border-radius: 12px; margin-bottom: 15px; }
.hero-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.hero-card p, .profile-card p { color: var(--text-light); }
.profile-card .profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid var(--border-color);
}
.profile-card h4 { font-size: 1.15rem; margin-bottom: 5px; }
.profile-card .btn { margin-top: 15px; width: 100%; }

/* --- SERVICES SECTION --- */
.services-section { padding-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; }
.service-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.service-item i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.service-item span { font-weight: 500; font-size: 0.9rem; }

/* --- CTA BANNER --- */
.cta-banner-section { padding-bottom: 40px; }
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}
.cta-banner img { width: 100%; max-width: 250px; border-radius: 12px; margin: 20px 0; }
.cta-banner .btn { background: white; color: var(--primary-color); }

/* --- ARTICLES SECTION --- */
.articles-section { padding-bottom: 40px; }
.tabs { display: flex; justify-content: center; margin-bottom: 30px; background: #eafaf6; border-radius: 12px; padding: 5px; }
.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}
.tab-btn.active { background: white; color: var(--text-dark); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.article-content h4 { margin-bottom: 10px; }
.article-content p { color: var(--text-light); flex-grow: 1; margin-bottom: 15px; }

/* --- RESOURCES SECTION --- */
.resources-section { padding-bottom: 40px; }
.resources-grid { display: grid; gap: 25px; }
.resource-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.resource-card h4 { font-size: 1.15rem; }
.resource-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- FOOTER --- */
.main-footer {
    padding: 40px 0 20px;
    background: #eafaf6;
    text-align: center;
}
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 25px; margin-bottom: 25px; }
.footer-nav a { text-decoration: none; color: var(--text-light); }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.copyright { color: var(--text-light); font-size: 0.9rem; }

/* --- RESPONSIVE STYLES --- */

/* TABLET */
@media (min-width: 768px) {
    .mobile-menu-btn, .main-header .btn-primary { display: block; }
    .main-nav { display: block; }
    .mobile-menu-btn { display: none; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .profile-card { grid-column: 1 / -1; } /* Spans full width */
    .cta-banner { flex-direction: row; text-align: right; justify-content: space-between; }
    .cta-banner img { margin: 0; }
    .articles-grid { grid-template-columns: 1fr 1fr; }
    .resources-grid { grid-template-columns: 1fr 1fr; }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr 0.8fr; }
    .profile-card { grid-column: auto; }
    .articles-grid { grid-template-columns: 1fr 1fr 1fr; }
}

