/* Professional Quran Academy Stylesheet */

:root {
    --primary-color: #1a5f4a;
    --secondary-color: #2d9b6f;
    --accent-color: #00b894;
    --light-color: #f0f8f5;
    --dark-color: #0f3828;
    --text-color: #1a3a2e;
    --gold-color: #d4a574;
    --green-light: #e8f5f0;
    --green-dark: #0d4a3b;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(26, 95, 74, 0.25);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 26px rgba(26, 95, 74, 0.25);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(26, 95, 74, 0.35);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: var(--green-light);
    color: var(--dark-color);
}

section {
    padding: 72px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 700;
}

.section-title p {
    color: #6b7280;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--gold-color);
    margin: 12px auto 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: linear-gradient(135deg, #2d5a3d 0%, #1a5f4a 50%, #0d8659 100%);
    transition: box-shadow 0.18s ease, backdrop-filter 0.18s ease;
    box-shadow: 0 8px 30px rgba(13, 134, 89, 0.25);
}

header.scrolled {
    box-shadow: 0 8px 30px rgba(13, 134, 89, 0.35);
    backdrop-filter: blur(4px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 46px;
}

.logo h1 {
    font-size: 1.05rem;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu a:hover::after {
    width: 70%;
}

.nav-menu a.cta {
    background: var(--gold-color);
    color: var(--dark-color);
    font-weight: 700;
    padding: 11px 24px;
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
    margin-left: 8px;
}

.nav-menu a.cta:hover {
    background: #e0c59e;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 165, 116, 0.4);
}

.nav-menu a.cta::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 11, 0.45);
    z-index: 1250;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.85), rgba(45, 155, 111, 0.85)), url('img/QAP.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 110px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.hero p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
}

.hero .hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: flex;
    gap: 36px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Courses Section */
.courses {
    background: linear-gradient(135deg, var(--green-light) 0%, #f0f8f5 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(26, 95, 74, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(26, 95, 74, 0.15);
    border-color: var(--accent-color);
}

.course-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover !important;
    background-position: center !important;
}

.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
}

.course-image h2 {
    position: relative;
    z-index: 2;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    font-size: 1.3rem;
}

.course-content {
    padding: 16px 18px;
}

.course-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.course-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.course-card .btn {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Fee Section */
.fee-section {
    padding: 72px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(26, 95, 74, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 18px 44px rgba(26, 95, 74, 0.15);
}

.price-card.recommended {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 18px 44px rgba(26, 95, 74, 0.2);
    background: linear-gradient(135deg, white 0%, var(--green-light) 100%);
}

.price-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 700;
}

.price-header .muted {
    margin: 4px 0 0;
    color: #666;
    font-size: 0.85rem;
}

.price-body {
    margin-top: 12px;
}

.price-amount {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.price-period {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-left: 6px;
}

.price-pkr {
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
}

.price-features {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    color: #555;
}

.price-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.price-cta {
    margin-top: 14px;
}

.price-cta .btn {
    width: 100%;
    text-align: center;
}

.fee-note {
    margin-top: 18px;
    text-align: center;
    color: #666;
}

.fee-note.muted {
    font-size: 0.9rem;
    color: #999;
}

/* Teachers Section */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.teacher-card {
    padding: 22px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(45, 155, 111, 0.05), rgba(0, 184, 148, 0.05));
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.teacher-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(45, 155, 111, 0.1), rgba(0, 184, 148, 0.1));
}

.teacher-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.teacher-card p {
    color: #666;
}

.teacher-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(26, 95, 74, 0.2);
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--light-color) 0%, #f0f8f5 100%);
}

.testimonials-container {
    max-width: 820px;
    margin: 0 auto;
}

.testimonial {
    padding: 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, white 0%, var(--green-light) 100%);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(26, 95, 74, 0.1);
    margin-bottom: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1 1 260px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 20px;
    color: #555;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-item p {
    color: #555;
}

.contact-form {
    flex: 1 1 320px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e6e9ee;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d5a3d 0%, #1a5f4a 50%, #0d8659 100%);
    color: white;
    padding: 60px 0 20px;
    box-shadow: 0 -5px 20px rgba(13, 134, 89, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-color), #d4a574);
    bottom: 0;
    left: 0;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: white;
    font-weight: 600;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 0;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 90%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #2d5a3d 0%, #1a5f4a 50%, #0d8659 100%);
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
        box-shadow: 0 10px 40px rgba(13, 134, 89, 0.3);
        transition: left 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
        z-index: 1300;
        border-radius: 0 0 12px 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: white;
        font-weight: 600;
        padding: 12px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-align: left;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 24px;
    }

    .nav-menu a.cta {
        background: var(--gold-color);
        color: var(--dark-color);
        font-weight: 700;
        padding: 12px 16px;
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
    }

    .nav-menu a.cta:hover {
        background: #e0c59e;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        padding: 90px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .contact-container {
        gap: 20px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .hero .hero-cta {
        flex-direction: column;
    }

    .hero .hero-cta .btn {
        width: 100%;
    }
}

