/* General Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #F1F1F1;
    color: #333;
    line-height: 1.6;
    direction: rtl; /* Right-to-left for Persian */
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 3px;
    width: 60px;
    background-color: #3498db;
    border-radius: 5px;
}

/* Buttons */
.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-primary {
    background-color: #3498db;
    color: #ffffff;
    border: 2px solid #3498db;
}

.cta-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.cta-secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    margin-right: 15px;
}

.cta-secondary:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://tadbirsaz.org/static/images/accounting_hero.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Adjusted for mobile-first */
}

.hero-content h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta a {
    margin: 10px;
}

/* Main Content Sections - Centering within their containers */
.service-intro,
.accounting-specializations,
.reputable-journals,
.apply-section,
.accounting-tips,
.faq-section,
.testimonials-section,
.contact {
    background-color: #ffffff;
    padding: 40px 20px;
    margin: 20px auto; /* Centering the sections */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 1000px; /* Limit width for better readability and centering */
}

.service-intro p,
.accounting-specializations p,
.accounting-specializations .note,
.apply-section p,
.faq-item p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Accounting Specializations */
.specialization-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 10px;
}

.specialization-list li {
    background-color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.specialization-list li i {
    color: #2c3e50;
    margin-left: 10px;
    font-size: 1.1em;
}

/* Reputable Journals */
.journals-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
}

.journal-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-5px);
}

.journal-card i {
    font-size: 2.5em;
    color: #34495e;
    margin-bottom: 15px;
}

.journal-card h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.journal-card p {
    font-size: 0.95em;
    color: #555;
}

/* Apply Section */
.apply-section {
    text-align: center;
    background-color: #eaf2f8; /* A lighter shade for contrast */
    border-left: 5px solid #3498db;
    padding: 30px 20px;
}

.apply-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.apply-section p {
    max-width: 800px;
    margin: 0 auto 25px auto;
}

/* Accounting Tips */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
}

.tip-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-top: 4px solid #f39c12;
}

.tip-card h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tip-card h3 i {
    margin-left: 10px;
    color: #f39c12;
    font-size: 1.3em;
}

.tip-card p {
    font-size: 0.95em;
    color: #555;
}

/* FAQ Section */
.faq-item {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.1em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
}

.testimonial-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card i.fa-quote-left {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: #bdc3c7;
    opacity: 0.6;
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
    padding-top: 20px; /* Space for quote icon */
}

.testimonial-card h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1em;
}

.testimonial-card span {
    font-size: 0.9em;
    color: #777;
}

/* Contact Section - New Styles */
.contact-new {
    background-color: #fcfcfc;
    padding: 60px 20px;
    margin: 40px auto; /* Centering the section */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1000px;
    text-align: center;
}

.contact-new .section-title {
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 30px;
    margin-top: 30px;
}

.contact-method-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact-method-card i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 20px;
}

.contact-method-card h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-method-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 60px; /* Increased space above the footer for better separation */
}

footer p {
    margin: 0;
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 768px) {
    .hero {
        padding: 100px 15px;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .specialization-list {
        grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    }

    .journals-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    }

    .tips-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    }

    .contact-methods-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 120px 15px;
        min-height: 600px;
    }

    .hero-content h1 {
        font-size: 3.8em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    .section-title {
        font-size: 2.5em;
    }

    .specialization-list {
        grid-template-columns: 1fr 1fr 1fr; /* Three columns for desktop */
    }

    .journals-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
    }

    .tips-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
    }

    .contact-methods-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
    }
}
