* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn','Vazir', 'Segoe UI', Tahoma, sans-serif;
}

:root {
    --primary-color: #3e6c8c;
    --secondary-color: #b75b47;
    --accent-color: #e6b325;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --text-color: #333;
    --transition: all 0.3s ease;
}

/* Header Section */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.about-text {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text ul {
    margin: 25px 0;
    padding-right: 20px;
}

.about-text li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
}

.about-text li:before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}

.image-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: 800px;
}

/* Features Section */
.features-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}


.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.step:hover .circle {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: var(--secondary-color); 
}

.arrow {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0 5px;
}

.process-steps .step p {
    margin: 0;
    max-width: 140px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .page-header {
        padding: 15px;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.6rem; /* smaller heading */
    }

    .page-header p {
        font-size: 1rem; /* smaller paragraph */
        max-width: 95%;
        margin: 0 auto;
    }

    /* About Content Grid → stack vertically */
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .about-text {
        padding: 20px;
    }

    .about-text h2 {
        font-size: 1.5rem; /* smaller section title */
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 0.8rem; /* smaller text */
        line-height: 1.6;
    }

    .about-text ul {
        margin: 20px 0;
    }

    .about-text li {
        margin-bottom: 10px;
        font-size: 0.8rem;
        padding-right: 20px;
    }

    .about-text li:before {
        font-size: 1.2rem;
    }
    /* Make all circles in one row */
    .process-steps {
        display: flex;
        flex-wrap: nowrap; /* force single row */
        justify-content: space-between; /* evenly spaced */
        gap: 10px;
        padding: 10px;
        overflow-x: auto; /* allow horizontal scroll if needed */
    }

    .process-steps::-webkit-scrollbar {
        height: 6px;
    }

    .process-steps::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

    /* Circles */
    .circle {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        flex-shrink: 0; /* prevent shrinking in row */
    }

    /* Arrows */
    .arrow {
        font-size: 20px;
        margin: 0 4px;
    }

    /* Step text */
    .process-steps .step p {
        max-width: 90px;
        font-size: 0.85rem;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    /* Header */
    .page-header {
        padding: 10px;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.4rem; /* smaller heading */
    }

    .page-header p {
        font-size: 0.8rem; /* smaller paragraph */
        max-width: 95%;
        margin: 0 auto;
    }

    /* About Content Grid → stack vertically */
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .about-text {
        padding: 20px;
    }

    .about-text h2 {
        font-size: 1.3rem; /* smaller section title */
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 0.75rem; /* smaller text */
        line-height: 1.6;
    }

    .about-text ul {
        margin: 20px 0;
    }

    .about-text li {
        margin-bottom: 10px;
        font-size: 0.75rem;
        padding-right: 20px;
    }

    .about-text li:before {
        font-size: 1rem;
    }

    .image-section {
        padding: 10px;
    }

    .image-container img {
        max-height: 400px; /* smaller image */
    }

    /* Features Section */
    .section-title {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item i {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .feature-item h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    /* Process Steps */
    .process-steps {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: flex-start; /* RTL text alignment */
    }

    .step {
        flex-direction: row; /* circle on right, text on left */
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }

    .circle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .arrow {
        display: none;
    }

    .process-steps .step p {
        max-width: 100%;
        text-align: right;
        font-size: 0.85rem;
    }
}


@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}


.hero-section.about {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-about-bg.jpg');
}