
/* ==========================================
   AL ZAINAB QURAN ACADEMY
   MAIN WEBSITE STYLESHEET
   Emerald Green, Gold and Ivory Theme
========================================== */

:root {
    --emerald: #123D32;
    --dark-emerald: #0B2B24;
    --deep-green: #071E19;
    --gold: #C5A45D;
    --light-gold: #E3C981;
    --ivory: #F5F0E6;
    --cream: #FBF9F4;
    --white: #FFFFFF;
    --dark-text: #202820;
    --body-text: #303830;
    --muted-text: #505A52;
    --border-color: #E5DDCB;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark-text);
    font-size: 18px;
    line-height: 1.85;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

p {
    color: var(--body-text);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
}


/* ==========================================
   ANNOUNCEMENT BAR
========================================== */

.announcement-bar {
    background: var(--gold);
    color: var(--dark-emerald);
    text-align: center;
    padding: 8px 15px;
}

.announcement-bar p {
    color: var(--dark-emerald);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}


/* ==========================================
   SHARED HEADER AND NAVIGATION
   Same design on every website page
========================================== */

.az-header {
    background: var(--dark-emerald);
    padding: 17px 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.az-nav-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

/* LOGO */

.az-logo {
    color: var(--white);
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* NAVIGATION */

.az-navigation {
    display: flex;
    align-items: center;
    gap: 23px;
}

.az-navigation a {
    text-decoration: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.az-navigation a:hover,
.az-navigation a.active {
    color: var(--gold);
}

.az-navigation .az-enroll-btn {
    background: var(--gold);
    color: var(--dark-emerald);
    padding: 11px 20px;
    border-radius: 5px;
}

.az-navigation .az-enroll-btn:hover {
    background: var(--light-gold);
    color: var(--dark-emerald);
}

/* MOBILE MENU BUTTON */

.az-menu-toggle {
    display: none;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 4px 8px;
}


/* ==========================================
   COMMON BUTTONS
========================================== */

.primary-btn,
.secondary-btn,
.secondary-dark-btn {
    display: inline-block;
    padding: 14px 27px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

.primary-btn {
    background: var(--gold);
    color: var(--dark-emerald);
}

.primary-btn:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
}

.secondary-btn {
    border: 2px solid var(--gold);
    color: var(--white);
    background: transparent;
}

.secondary-btn:hover {
    background: var(--gold);
    color: var(--dark-emerald);
}

.secondary-dark-btn {
    border: 2px solid var(--emerald);
    color: var(--emerald);
}

.secondary-dark-btn:hover {
    background: var(--emerald);
    color: var(--white);
}

.text-link {
    color: #74561D;
    font-size: 17px;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

.text-link:hover {
    color: var(--emerald);
    text-decoration: underline;
}


/* ==========================================
   HERO SECTION
========================================== */

.hero-section {
    background:
        radial-gradient(circle at 80% 40%, rgba(197, 164, 93, 0.13), transparent 30%),
        linear-gradient(120deg, #0B2B24, #164B3D);
    padding: 85px 7%;
    color: var(--white);
}

.hero-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;
}

.hero-label {
    color: var(--light-gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-content h1 {
    font-size: clamp(40px, 4.5vw, 61px);
    line-height: 1.2;
    color: var(--white);
    margin: 22px 0;
}

.hero-content h1 span {
    display: block;
    color: var(--light-gold);
}

.hero-content p {
    color: #F4F1E9;
    font-size: 19px;
    line-height: 1.85;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 28px;
}

.hero-image {
    position: relative;
    min-height: 440px;
    border: 2px solid rgba(227, 201, 129, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.hero-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.hero-image-caption span {
    color: var(--light-gold);
    font-weight: 700;
    font-size: 18px;
}

.hero-image-caption p {
    color: white;
    font-size: 15px;
    margin: 5px 0 0;
}


/* ==========================================
   HIGHLIGHTS
========================================== */

.highlights-section {
    background: var(--ivory);
    padding: 35px 6%;
}

.highlights-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.highlight-item {
    text-align: center;
    padding: 15px;
}

.highlight-icon {
    font-size: 34px;
    color: #8A6B2D;
}

.highlight-item h3 {
    color: var(--dark-emerald);
    font-size: 21px;
    margin: 8px 0;
}

.highlight-item p {
    color: var(--body-text);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}


/* ==========================================
   COMMON SECTION SETTINGS
========================================== */

.section-padding {
    padding: 95px 8%;
}

.section-label {
    color: #826127;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2,
.section-content h2 {
    color: var(--dark-emerald);
    font-size: clamp(32px, 4vw, 43px);
    line-height: 1.35;
    margin: 17px 0;
}

.section-heading p {
    max-width: 850px;
    margin: 0 auto;
}


/* ==========================================
   ABOUT SECTION
========================================== */

.home-about {
    background: var(--cream);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.section-image {
    height: 530px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-content p {
    font-size: 18px;
}


/* ==========================================
   COURSES SECTION
========================================== */

.courses-section {
    background: var(--ivory);
}

.courses-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.12);
}

.course-image {
    height: 230px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.course-number {
    color: #8A6B2D;
    font-size: 15px;
    font-weight: 700;
}

.course-content h3 {
    color: var(--dark-emerald);
    font-size: 25px;
    line-height: 1.4;
    margin: 10px 0;
}

.course-content p {
    font-size: 17px;
    margin-bottom: 12px;
}

.course-content .text-link {
    margin-top: auto;
}

.courses-bottom {
    text-align: center;
    margin-top: 45px;
}


/* ==========================================
   WHY CHOOSE US
========================================== */

.why-section {
    background: var(--cream);
}

.why-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.why-card {
    background: var(--white);
    padding: 32px;
    border-radius: 9px;
    border-bottom: 4px solid var(--gold);
    box-shadow: var(--shadow);
}

.why-card > span {
    font-size: 36px;
    color: #8A6B2D;
}

.why-card h3 {
    color: var(--dark-emerald);
    font-size: 23px;
    margin: 12px 0;
}

.why-card p {
    font-size: 17px;
    margin: 0;
}


/* ==========================================
   TEACHERS SECTION
========================================== */

.teachers-section {
    background: var(--ivory);
}

.teachers-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.teacher-image {
    height: 340px;
    overflow: hidden;
    background: #E8E2D5;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    padding: 25px;
    text-align: center;
}

.teacher-info h3 {
    color: var(--dark-emerald);
    font-size: 25px;
}

.teacher-info > span {
    color: #826127;
    font-size: 15px;
    font-weight: 700;
}

.teacher-info p {
    font-size: 16px;
    margin: 15px 0 0;
}


/* ==========================================
   MISSION AND VISION
========================================== */

.mission-vision-section {
    background: var(--dark-emerald);
}

.mission-vision-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.mission-box,
.vision-box {
    border-left: 3px solid var(--gold);
    padding: 15px 25px;
}

.mission-vision-section .section-label {
    color: var(--light-gold);
}

.mission-vision-section h2 {
    color: var(--white);
    font-size: 34px;
    line-height: 1.4;
    margin: 18px 0;
}

.mission-vision-section p {
    color: #F3F0E8;
    font-size: 18px;
}


/* ==========================================
   ENROLLMENT CTA
========================================== */

.enrollment-section {
    padding: 90px 8%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(197, 164, 93, 0.12), transparent 50%),
        linear-gradient(120deg, #123D32, #0B2B24);
}

.enrollment-content {
    max-width: 900px;
    margin: auto;
}

.enrollment-content > span {
    color: var(--light-gold);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 3px;
}

.enrollment-content h2 {
    color: var(--white);
    font-size: clamp(33px, 4vw, 45px);
    line-height: 1.35;
    margin: 20px 0;
}

.enrollment-content p {
    color: #F3F0E8;
    font-size: 19px;
    margin-bottom: 28px;
}


/* ==========================================
   SHARED FOOTER
========================================== */

.az-footer {
    background: var(--deep-green);
    padding: 65px 7% 25px;
}

.footer-container {
    max-width: 1350px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.footer-about p {
    color: #E5E8E3;
    font-size: 16px;
    margin-top: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h3 {
    color: var(--light-gold);
    font-size: 21px;
    margin-bottom: 10px;
}

.footer-column a,
.footer-column span {
    color: #F3F0E8;
    font-size: 16px;
}

.footer-column a:hover {
    color: var(--light-gold);
}

.footer-bottom {
    max-width: 1350px;
    margin: 45px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: #E5E8E3;
    font-size: 14px;
    margin: 5px 0;
}


/* ==========================================
   TABLET RESPONSIVE DESIGN
========================================== */

@media (max-width: 1050px) {

    .az-navigation {
        gap: 13px;
    }

    .az-navigation a {
        font-size: 14px;
    }

    .az-logo {
        font-size: 18px;
    }

    .hero-container {
        gap: 35px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==========================================
   MOBILE NAVIGATION AND LAYOUT
========================================== */

@media (max-width: 850px) {

    .az-header {
        padding: 15px 6%;
    }

    .az-menu-toggle {
        display: block;
    }

    .az-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-emerald);
        flex-direction: column;
        align-items: stretch;
        padding: 15px 7% 25px;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .az-navigation.show {
        display: flex;
    }

    .az-navigation a {
        font-size: 17px;
        padding: 13px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: normal;
    }

    .az-navigation .az-enroll-btn {
        text-align: center;
        margin-top: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 750px;
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 700px;
        width: 100%;
        margin: auto;
    }

    .home-about {
        grid-template-columns: 1fr;
    }

    .section-image {
        height: 400px;
    }

    .highlights-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-vision-container {
        grid-template-columns: 1fr;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==========================================
   SMALL MOBILE SCREENS
========================================== */

@media (max-width: 550px) {

    body {
        font-size: 17px;
    }

    p {
        font-size: 17px;
        line-height: 1.85;
    }

    .announcement-bar p {
        font-size: 12px;
    }

    .az-logo {
        font-size: 16px;
        gap: 8px;
    }

    .site-logo {
        width: 40px;
        height: 40px;
    }

    .hero-section {
        padding: 60px 7%;
    }

    .hero-content h1 {
    font-size: clamp(30px, 8vw, 38px);
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-image img {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .section-padding {
        padding: 65px 7%;
    }

    .section-heading h2,
    .section-content h2 {
        font-size: 31px;
    }

    .section-image {
        height: 310px;
    }

    .highlights-container {
        grid-template-columns: 1fr;
    }

    .courses-grid,
    .why-grid,
    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .course-image {
        height: 230px;
    }

    .teacher-image {
        height: 330px;
    }

    .mission-vision-section h2 {
        font-size: 29px;
    }

    .enrollment-section {
        padding: 65px 7%;
    }

    .enrollment-content h2 {
        font-size: 32px;
    }

    .enrollment-content p {
        font-size: 17px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        margin-top: 35px;
    }

}


/* ==========================================
   ACCESSIBILITY
========================================== */

.az-navigation a:focus-visible,
button:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
    outline: 3px solid var(--light-gold);
    outline-offset: 4px;
}



/* =====================================
   FLOATING WHATSAPP CONTACT BUTTON
===================================== */

.floating-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 20px;
    background: #25D366;
    color: #ffffff;

    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
}

.floating-whatsapp svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.floating-whatsapp:hover {
    background: #128C7E;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 600px) {
    .floating-whatsapp {
        right: 15px;
        bottom: 18px;
        padding: 13px;
        width: 54px;
        height: 54px;
    }

    .floating-whatsapp span {
        display: none;
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}


/* ===================================
   FOOTER SOCIAL MEDIA ICONS
=================================== */

.footer-social {
    margin-top: 22px;
}

.footer-social h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a,
.social-coming-soon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    font-size: 19px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #c69b42;
    color: #07382f;
    transform: translateY(-4px);
}

.social-coming-soon {
    opacity: 0.65;
    cursor: default;
}


/* =================================
   CLICKABLE CONTACT LINKS
================================= */

.contact-info a,
a[href^="mailto:"],
a[href^="https://wa.me/"] {
    color: #075b46;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease,
                text-decoration 0.3s ease;
}

/* Hover effect */
.contact-info a:hover,
a[href^="mailto:"]:hover,
a[href^="https://wa.me/"]:hover {
    color: #c69b42;
    text-decoration: underline;
}

/* Keyboard accessibility */
.contact-info a:focus-visible,
a[href^="mailto:"]:focus-visible,
a[href^="https://wa.me/"]:focus-visible {
    outline: 2px solid #c69b42;
    outline-offset: 4px;
}


/* FOOTER CONTACT INFORMATION */

.footer-contact {
    margin-top: 22px;
}

.footer-contact h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: #ffffff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.footer-contact i {
    color: #d5ae58;
    min-width: 18px;
    font-size: 17px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #d5ae58;
    text-decoration: underline;
}

