@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

/* Base Styles */
:root {
    --background-color: #F8F9FA; /* Very light grey */
    --text-color-dark: #212529; /* Dark charcoal for main headings/titles */
    --text-color-light: #2C3E50; /* Darker grey for body text, better contrast */
    --primary-color: #0A6EBD; /* A deep, professional blue for main elements */
    --primary-hover-color: #005999; /* Darker shade of primary for hover */
    --accent-color: #28A745; /* A strong green for highlights */
    --card-background: #FFFFFF; /* Pure white for card backgrounds */
    --border-color: #E9ECEF; /* Light grey for borders */
    --shadow-color: rgba(0, 0, 0, 0.06); /* Slightly more visible subtle shadow */
    --hero-overlay: rgba(10, 110, 189, 0.8); /* Overlay matching primary color */
}

body {
    font-family: 'Vazirmatn', sans-serif; 
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color-light); /* Body text uses light text color for better readability on light background */
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    font-weight: 700; 
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover-color);
}

/* Sections */
section {
    padding: 70px 25px; /* Slightly more padding */
    margin: 0 auto;
    max-width: 1200px;
}

.section-title {
    text-align: center;
    font-size: 2.8em; /* Slightly larger title */
    margin-bottom: 50px; /* More space below title */
    position: relative;
    padding-bottom: 18px; /* More space for underline */
    color: var(--text-color-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px; /* Wider underline */
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons and CTAs */
.cta-primary, .cta-secondary, .action-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.2em; /* Slightly larger text */
    cursor: pointer;
    text-transform: capitalize; /* Ensure consistent casing */
}

.cta-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.cta-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(10, 110, 189, 0.45); /* More pronounced shadow */
}

.cta-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-right: 20px; /* More space */
}

.cta-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(10, 110, 189, 0.45);
}

.action-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    margin: 10px 0; /* More margin */
    padding: 14px 28px;
    font-size: 1.05em;
}

.action-button.whatsapp {
    background-color: #25D366; /* WhatsApp green */
}

.action-button.whatsapp:hover {
    background-color: #1DA851;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.action-button.phone {
    background-color: #0A6EBD; /* Primary color */
}

.action-button.phone:hover {
    background-color: var(--primary-hover-color);
    box-shadow: 0 4px 8px rgba(10, 110, 189, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(to top, var(--primary-hover-color) 0%, var(--primary-color) 100%), url('https://via.placeholder.com/1920x1080/0A6EBD/FFFFFF?text=Medical+Research+Hero') no-repeat center center/cover; /* Gradient overlay for better text contrast */
    color: #fff;
    text-align: center;
    padding: 180px 20px 100px; /* More padding top and bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75vh; /* Minimum height for full viewport height */
    position: relative;
    overflow: hidden; /* Ensure nothing spills out */
}

.hero-content {
    max-width: 900px;
    z-index: 2; /* Ensure content is above overlay */
}

.hero-content h1 {
    font-size: 4em; /* Much larger heading */
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7); /* Stronger shadow for impact */
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.6em; /* Larger paragraph */
    margin-bottom: 50px;
    color: #f0f8ff; /* Slightly off-white for readability */
    max-width: 800px;
    line-height: 1.7;
    font-weight: 300; /* Lighter font weight for modern feel */
}

.hero-cta {
    display: flex;
    flex-direction: row; /* Buttons side-by-side on mobile */
    justify-content: center;
    gap: 30px; /* More space between buttons */
    margin-top: 40px;
}

.hero-cta .cta-primary, .hero-cta .cta-secondary {
    padding: 18px 45px; /* Larger buttons */
    font-size: 1.25em;
    border-radius: 50px; /* Pill-shaped buttons */
}

.hero-cta .cta-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.hero-cta .cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2); /* White shadow for contrast */
}

/* No longer using .hero-stats in the new design, but keeping for reference if needed */
.hero-stats {
    display: none; /* Hide old stats section */
}

/* Responsive Design for Hero */
@media (max-width: 767px) {
    .hero {
        padding: 120px 20px 80px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    .hero-cta {
        flex-direction: column;
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 5em;
    }

    .hero-content p {
        font-size: 1.7em;
    }

    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 85vh;
    }

    .hero-content h1 {
        font-size: 6em;
    }

    .hero-content p {
        font-size: 1.8em;
    }
}

/* Services Grid (General) */
.services-grid, .journals-grid, .testimonials-grid, .tips-grid, .contact-grid, .specializations-grid {
    display: grid;
    gap: 35px; /* More space */
}

.service-card, .journal-card, .testimonial-card, .tip-card, .contact-card, .specialization-card {
    background-color: var(--card-background);
    border-radius: 18px; /* More rounded */
    padding: 45px; /* More padding */
    box-shadow: 0 12px 25px var(--shadow-color); /* Stronger shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover, .journal-card:hover, .testimonial-card:hover, .tip-card:hover, .contact-card:hover, .specialization-card:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22); /* Stronger hover shadow */
}

.service-card i, .journal-category h3 i, .tip-card i, .contact-card .icon-wrapper i, .specialization-card i {
    font-size: 4em; /* Larger icons */
    color: var(--primary-color);
    margin-bottom: 30px; /* More space */
}

.service-card h3, .journal-card h3, .tip-card h3, .contact-card h3, .specialization-card h3 {
    font-size: 1.9em; /* Larger headings */
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.service-card p, .journal-card p, .tip-card p, .contact-card p, .specialization-card p {
    color: var(--text-color-light);
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    font-size: 1.05em;
}

.service-link::after {
    content: '\f053'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    transition: margin-right 0.3s ease;
}

.service-link:hover::after {
    margin-right: 18px;
}

/* Service Detail Sections */
.service-detail {
    background-color: var(--card-background);
    padding: 90px 25px; /* More padding */
    border-bottom: 1px solid var(--border-color);
}

.service-detail.alt {
    background-color: var(--background-color);
}

.service-detail .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px; /* More space */
    max-width: 1050px; /* Wider content wrapper */
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

.service-detail .service-content h2 {
    font-size: 2.4em; /* Larger heading */
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: right;
}

.service-features li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 40px; /* More space */
    color: var(--text-color-light);
    font-size: 1.15em; /* Larger text */
}

.service-features li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    right: 0;
    top: 6px;
}

.service-action .action-card {
    background-color: var(--background-color);
    border-radius: 15px;
    padding: 50px; /* More padding */
    box-shadow: 0 8px 18px var(--shadow-color);
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-action .action-card h3 {
    font-size: 2.1em; /* Larger heading */
    margin-bottom: 25px;
    color: var(--primary-color);
}

.service-action .action-card p {
    font-size: 1.25em; /* Larger text */
    margin-bottom: 35px;
    color: var(--text-color-dark);
}

.service-action .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px; /* More space */
}

/* Journals Section */
.journals-grid {
    grid-template-columns: 1fr;
}

.journal-category {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 20px var(--shadow-color);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.journal-category h3 {
    font-size: 1.7em;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* More space */
}

.journal-category h3 i {
    font-size: 1.4em;
}

.journal-category ul {
    list-style: none;
    padding: 0;
}

.journal-category ul li {
    margin-bottom: 12px;
    padding-right: 28px; /* More space */
    position: relative;
    color: var(--text-color-light);
    font-size: 1.05em;
}

.journal-category ul li::before {
    content: '\f0da';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    right: 0;
    top: 5px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-grid {
    grid-template-columns: 1fr;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px;
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 3.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    opacity: 0.15; /* Slightly less opaque */
    position: absolute;
    top: 25px;
    left: 25px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 18px;
    color: var(--text-color-light);
    font-size: 1.2em;
    z-index: 1;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--text-color-dark);
    margin-top: 12px;
    font-size: 1.1em;
}

.testimonial-card .rating {
    color: #FFD700; 
    margin-top: 12px;
}

/* Tips Section */
.tips-grid {
    grid-template-columns: 1fr;
}

.tip-card {
    text-align: right;
}

.tip-card i {
    font-size: 3.8em;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.tip-card h3 {
    color: var(--text-color-dark); /* Changed to dark text color */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.tip-card p {
    color: var(--text-color-light);
    line-height: 1.7;
}

/* Apply Section */
.apply-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 100px 30px; /* More padding */
    text-align: center;
    border-radius: 25px; /* More rounded */
    margin: 50px auto;
    max-width: 950px; /* Wider */
    box-shadow: 0 15px 30px rgba(10, 110, 189, 0.55); /* Stronger shadow */
}

.apply-section h2 {
    font-size: 3em; /* Larger heading */
    margin-bottom: 25px;
    color: #fff;
}

.apply-section p {
    font-size: 1.4em; /* Larger text */
    margin-bottom: 50px;
    color: #E0E0E0;
    line-height: 1.9;
}

.apply-section .cta-primary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.apply-section .cta-primary:hover {
    background-color: var(--primary-hover-color);
    color: #fff;
    border-color: var(--primary-hover-color);
    box-shadow: 0 6px 12px rgba(10, 110, 189, 0.3);
}

/* Specializations Section */
.specializations-grid {
    grid-template-columns: 1fr;
}

.specialization-card {
    text-align: right;
}

.specialization-card i {
    color: var(--accent-color);
}

.specialization-card h3 {
    color: var(--text-color-dark);
}

.specialization-card ul {
    list-style: none;
    padding: 0;
    margin-top: 18px;
}

.specialization-card ul li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
    color: var(--text-color-light);
    font-size: 1.05em;
}

.specialization-card ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    right: 0;
    top: 5px;
}

/* FAQ Section */
.faq-item {
    background-color: var(--card-background);
    border-radius: 15px; /* More rounded */
    margin-bottom: 20px; /* More space */
    box-shadow: 0 8px 16px var(--shadow-color); /* Stronger shadow */
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 25px 30px; /* More padding */
    background-color: #F1F3F5; /* A slightly darker light grey */
    color: var(--text-color-dark);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-size: 1.15em;
}

.faq-question:hover {
    background-color: #E9ECEF;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    color: var(--text-color-light);
    line-height: 1.8;
    font-size: 1.05em;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Increased max-height */
    padding: 25px 30px;
}

.faq-question .icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 1.4em; /* Larger icon */
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

/* Contact Section (General) */
.contact-grid {
    grid-template-columns: 1fr;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card .icon-wrapper {
    background-color: transparent; /* Changed to transparent for border effect */
    color: var(--primary-color); /* Icon color matches primary */
    width: 80px; /* Larger icon wrapper */
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em; /* Larger icon */
    margin-bottom: 30px;
    border: 3px solid var(--primary-color); /* Added colored border */
    transition: all 0.3s ease; /* Add transition for hover effect */
    box-shadow: 0 6px 12px rgba(10, 110, 189, 0.2); /* Lighter shadow for border style */
}

.contact-card .icon-wrapper.whatsapp {
    border-color: #25D366; /* WhatsApp green border */
    color: #25D366; /* WhatsApp green icon */
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.2);
}

.contact-card .icon-wrapper.email {
    border-color: #DC3545; /* Email red border */
    color: #DC3545; /* Email red icon */
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.2);
}

.contact-card .icon-wrapper:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 16px rgba(10, 110, 189, 0.4); 
}

.contact-card .icon-wrapper.whatsapp:hover {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

.contact-card .icon-wrapper.email:hover {
    background-color: #DC3545;
    color: #fff;
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
}

.contact-link {
    font-weight: bold;
    font-size: 1.2em; /* Larger link text */
}

/* Responsive Design */

/* Tablet (md) */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4.2em;
    }

    .hero-content p {
        font-size: 1.6em;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        max-width: none;
        margin-top: 80px;
    }

    .stat-item {
        margin-bottom: 0;
        width: 220px;
        padding: 30px;
    }

    .services-grid, .tips-grid, .specializations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail .content-wrapper {
        flex-direction: row;
        text-align: right;
        align-items: flex-start;
    }

    .service-detail.alt .content-wrapper {
        flex-direction: row-reverse;
    }

    .service-detail .service-content,
    .service-detail .service-action {
        flex: 1;
    }

    .service-action .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }

    .journal-category {
        margin-bottom: 0;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (lg) */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8em;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .specializations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 3.2em;
    }
}

/* Right-to-Left (RTL) adjustments */
.cta-secondary {
    margin-left: 20px; 
    margin-right: 0;
}

.service-features li::before {
    right: unset;
    left: 0; 
}

.journal-category ul li::before {
    right: unset;
    left: 0; 
    transform: none; 
}

.service-link::after {
    margin-left: 12px; 
    margin-right: 0;
}

.service-link:hover::after {
    margin-left: 18px;
} 