/* Basic Styles for Art Template */
:root {
    --primary-color: #7B3F00; /* Deep Earthy Brown - artistic, grounded */
    --secondary-color: #5C6F7F; /* Muted Grey-Blue for complementary text */
    --accent-color: #B8860B; /* Muted Gold for highlights */
    --text-color: #333333;
    --heading-color: #222222;
    --background-color: #F1F1F1;
    --card-background: #ffffff;
    --border-color: #E0E0E0;
    --hero-overlay-color: rgba(0, 0, 0, 0.6);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7; /* Slightly more relaxed line height for artistic feel */
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4A2800; /* Darker primary on hover */
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Section Styling */
section {
    padding: 2.5rem 1rem; /* Slightly more padding */
    margin-bottom: 1rem;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* Slightly wider underline */
    height: 4px;
    background-color: var(--accent-color); /* Use accent color for title underline */
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(var(--hero-overlay-color), var(--hero-overlay-color)), url('{% static "images/art_hero.jpg" %}') no-repeat center center/cover;
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    position: relative; /* For artistic flourishes */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1; /* Ensure content is above pseudo-elements */
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 30px; /* More rounded for artistic touch */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-primary {
    background-color: var(--accent-color); /* Use accent color for primary CTA */
    color: #fff;
    border: 2px solid var(--accent-color);
}

.cta-primary:hover {
    background-color: #9C780B;
    border-color: #9C780B;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more visible background */
    padding: 1.2rem 1.8rem;
    border-radius: 10px;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(5px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color); /* Use accent color for stats icons */
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Service Grid Section */
.services {
    background-color: var(--card-background);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem; /* Slightly larger gap */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 12px; /* More rounded */
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); /* Stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    padding-bottom: 3px;
}

.service-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 0;
}

/* Detailed Service Sections */
.service-detail {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-of-type {
    border-bottom: none;
}

.service-detail.alt {
    background-color: var(--background-color);
}

.service-detail .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.service-detail h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.service-detail p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.8rem;
}

.service-features li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    padding-right: 30px;
}

.service-features li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color); /* Use accent color */
    position: absolute;
    right: 0;
    top: 4px;
}

.service-action {
    text-align: center;
}

.action-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service-detail.alt .action-card {
    background-color: #fff;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.action-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    gap: 0.6rem;
}

.action-button.phone {
    background-color: #28a745;
    color: #fff;
}

.action-button.phone:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.action-button.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.action-button.whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

/* PhD Specializations Section (reuses .services-grid and .service-card) */
.specializations {
    background-color: var(--background-color);
}

.specializations .service-card i {
    color: var(--accent-color); /* Use accent color for specialization icons */
}

/* Journals Section */
.journals {
    background-color: var(--card-background);
}

.journals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.journal-category {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.journal-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
}

.journal-category h3 i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.journal-category ul {
    list-style: none;
    padding: 0;
}

.journal-category li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-color);
    padding-right: 20px;
    position: relative;
}

.journal-category li::before {
    content: '\f0a9';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    top: 4px;
}

/* Tips Section */
.tips {
    background-color: var(--card-background);
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.tip-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tip-card h3 i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.tip-card p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--heading-color);
    font-size: 1rem;
    text-align: left;
}

/* FAQ Section */
.faq {
    background-color: var(--background-color);
}

.faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    margin-bottom: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.2rem 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--heading-color);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.8rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #f8f8f8;
    color: var(--text-color);
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Increased max-height for potentially longer answers */
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--card-background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.contact-card .icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.contact-card .icon-wrapper.whatsapp {
    background-color: #25D366;
}

.contact-card .icon-wrapper.email {
    background-color: #dc3545;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin-top: 0.8rem;
}

/* Footer (Simple Placeholder, assuming base.html has main footer) */
.page-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #333;
    color: #fff;
    font-size: 0.85rem;
    margin-top: 2rem;
}

.page-footer a {
    color: #fff;
    text-decoration: underline;
}

/* New Sections */

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--background-color);
}

/* Our Process Section */
.our-process {
    background-color: var(--card-background);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.process-step {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.process-step .step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(rgba(123, 63, 0, 0.8), rgba(123, 63, 0, 0.8)), url('{% static "images/cta_bg_art.jpg" %}') no-repeat center center/cover; /* Use primary-color for overlay */
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
}

/* Blog/News Section */
.blog-news {
    background-color: var(--background-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin: 1.2rem 1.8rem 0.6rem;
    color: var(--heading-color);
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 1.8rem 1.2rem;
}

.blog-card .read-more {
    display: block;
    padding: 0.9rem 1.8rem;
    background-color: var(--accent-color); /* Use accent for blog read more */
    color: #fff;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.blog-card .read-more:hover {
    background-color: #9C780B;
}

.blog-card .read-more i {
    margin-right: 0.6rem;
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    section {
        padding: 3.5rem 2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .hero-cta {
        flex-direction: row;
    }

    .services-grid,
    .journals-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail .content-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .service-detail .service-content {
        flex: 2;
    }

    .service-detail .service-action {
        flex: 1;
    }

    .action-buttons {
        flex-direction: row;
    }

    .testimonials-grid,
    .tips-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-content h2 {
        font-size: 3.5rem;
    }

    .cta-content p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 2rem;
    }

    .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,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}