
/* --- 1. General & Setup --- */
:root {
    --primary-color: #0D47A1; /* آبی تیره */
    --accent-color: hsl(165, 100%, 50%);  /* نارنجی */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #FFFFFF;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
}

p {
    font-family: 'Vazirmatn', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header --- */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav a {
    margin-right: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.search-icon {
    cursor: pointer;
    font-size: 28px !important;
    color: var(--primary-color);
}

/* --- 3. Hero Section --- */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/includes/images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #ffa726; /* Lighter orange */
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* --- 4. Categories Section --- */
.categories-section {
    padding: 80px 0;
    text-align: center;
}

/* --- Service List Page (scoped) --- */
.service-list-page {
    padding: 20px;
}

.service-list-page .main-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 10px 0 25px;
}

.service-list-page.container {
    max-width: 960px;
}

.service-list-page .page-header {
    padding: 30px 20px 40px;
    text-align: center;
}

.service-list-page .breadcrumb {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.service-list-page .breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-list-page .breadcrumb a:hover {
    color: var(--accent-color);
}

.service-list-page .service-intro {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.service-list-page .filter-bar {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.service-list-page .filter-bar input,
.service-list-page .filter-bar select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
}

.service-list-page .coach-list {
    display: grid;
    gap: 20px;
}

.service-list-page .coach-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.service-list-page .coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-list-page .coach-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-bg);
    display: block;
}

.service-list-page .coach-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e3f2fd;
    border: 3px solid var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-list-page .coach-avatar-placeholder .material-icons {
    font-size: 44px;
    color: var(--primary-color);
}

.service-list-page .coach-details {
    flex-grow: 1;
}

.service-list-page .coach-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.service-list-page .coach-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-list-page .coach-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-list-page .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 0.9rem;
}

.service-list-page .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.service-list-page .info-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-color);
}

.service-list-page .profile-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.service-list-page .profile-button:hover {
    background-color: hsl(165, 100%, 60%);
}

.service-list-page .coach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.service-list-page .coach-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(13, 71, 161, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-list-page .filter-bar {
        flex-direction: column;
    }

    .service-list-page .coach-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-list-page .coach-header {
        flex-direction: column;
        align-items: center;
    }

    .service-list-page .info-grid {
        justify-items: center;
    }

    .service-list-page .info-item {
        flex-direction: column;
        text-align: center;
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

/* Underline effect for title */
.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    gap: 20px;
    /* Mobile First: 4 columns */
    grid-template-columns: repeat(4, 1fr);
}

.category-card {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.category-card .material-symbols-outlined {
    font-size: 48px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-icon-svg {
    width: 48px;
    height: 48px;
    display: block;
}

.category-card:hover .material-symbols-outlined {
    color: var(--accent-color);
}

.category-card span {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- 5. Footer --- */
.main-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.main-footer .container {
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links a {
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- 6. Responsive Design --- */

/* Desktop & Large Tablets (8 columns) */
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Small Tablets (can be 4 or adjust if needed) */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .main-nav {
        display: none; /* Simple hiding for demo. In a real app, use a hamburger menu */
    }
}

/* Mobile (already 4 columns, but can adjust font sizes etc.) */
@media (max-width: 576px) {
    .category-grid {
        /* On very small screens, 2 columns might be better */
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* --- Internal Pages: Content + Icon Grid --- */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.content-section .section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #555;
}

.icon-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.icon-card {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.icon-card .material-symbols-outlined {
    font-size: 48px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.icon-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-card-icon-svg {
    width: 48px;
    height: 48px;
    display: block;
}

.icon-card:hover .material-symbols-outlined {
    color: var(--accent-color);
}

.icon-card span {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    font-size: 1rem;
}

@media (min-width: 992px) {
    .icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Coach Listing Page --- */
.page-header {
    padding: 30px 20px 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.filter-bar {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
}

.coach-list {
    display: grid;
    gap: 20px;
}

.coach-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.coach-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-bg);
}

.coach-details {
    flex-grow: 1;
}

.coach-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.coach-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.coach-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.info-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-color);
}

.profile-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.profile-button:hover {
    background-color: hsl(165, 100%, 60%);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }
    .coach-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .coach-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .info-grid {
        justify-items: center;
    }
    .info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Profile Page (scoped) --- */
.profile-page {
    --profile-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --profile-spacing-gap: 30px;
}

.profile-page .profile-header-v2 {
    background-color: var(--white);
    text-align: center;
    box-shadow: var(--profile-card-shadow);
    margin-bottom: var(--profile-spacing-gap);
}

.profile-page .header-top-part {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976D2 100%);
    height: 150px;
}

.profile-page .header-bottom-part {
    padding: 0 20px 30px;
    margin-top: -80px;
}

.profile-page .profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-page .profile-picture-placeholder .material-icons {
    font-size: 90px;
    color: var(--primary-color);
}

.profile-page .profile-header-v2 h1 {
    margin: 15px 0 5px;
    font-size: 2.2rem;
    font-weight: 800;
}

.profile-page .profile-header-v2 .specialty {
    font-size: 1.1rem;
    font-weight: 400;
    color: #757575;
}

.profile-page .profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--profile-spacing-gap) var(--profile-spacing-gap);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--profile-spacing-gap);
}

.profile-page .main-content,
.profile-page .sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--profile-spacing-gap);
}

.profile-page .profile-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--profile-card-shadow);
}

.profile-page .profile-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.profile-page .key-info-list,
.profile-page .strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-page .key-info-list li,
.profile-page .strengths-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.profile-page .key-info-list .material-icons,
.profile-page .strengths-list .material-icons {
    color: var(--primary-color);
}

.profile-page .key-info-list li:last-child,
.profile-page .strengths-list li:last-child {
    margin-bottom: 0;
}

.profile-page .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-page .social-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #eef2f6;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.profile-page .social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(13, 71, 161, 0.3);
}

.profile-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.profile-page .gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.profile-page .gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .profile-page .profile-header-v2 h1 {
        font-size: 1.8rem;
    }

    .profile-page .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .profile-page .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .profile-page .gallery-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .profile-page .gallery-grid .gallery-item {
        flex: 0 0 85%;
        margin-left: 15px;
        scroll-snap-align: center;
    }

    .profile-page .gallery-grid .gallery-item img {
        height: 200px;
    }

    .profile-page .gallery-grid .gallery-item:last-child {
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .profile-page .profile-container {
        grid-template-columns: 1fr 380px;
    }

    .profile-page .sidebar {
        position: sticky;
        top: var(--profile-spacing-gap);
    }
}
