.public-page {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 80px;
    color: #1b2a25;
    font-family: "Tajawal", system-ui, sans-serif;
}

.hero,
.hero-split,
.info-card,
.story-block,
.course-card,
.team-card,
.policy-card,
.contact-form,
.contact-notes,
.contact-box {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(20, 52, 43, 0.08);
}

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px;
}

.hero-copy,
.hero-media,
.contact-form,
.contact-notes {
    padding: 24px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #1b5444;
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.button-primary {
    background: #c9a84c;
    color: #13231e;
}

.button-secondary {
    background: #f4eee0;
    color: #1b5444;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-media img,
.course-card img,
.team-card img {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

.info-grid,
.cards-grid,
.team-grid,
.policy-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.info-card,
.course-card,
.team-card,
.policy-card {
    padding: 22px;
}

.story-block,
.contact-layout {
    margin-top: 24px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.checklist {
    margin: 0;
    padding: 0 18px 0 0;
}

.contact-box .contact-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee4cf;
}

.contact-box .contact-item:last-child {
    border-bottom: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

/* --- Hero Page Header --- */
.page-header {
    position: relative;
    background-image: url('../images/silhouette-dome-mosques-on-twilight-with-crescent-moon-colorful-night-sky-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    text-align: center; /* Centered */
    color: #fff;
    margin-top: 0;
    margin-bottom: 50px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-image: linear-gradient(180deg, #0ba39e 0%, #aa8730 100%);
    opacity: 0.5;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered */
}

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    font-weight: 600;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-family: 'Almarai', sans-serif !important;
    font-size: clamp(48px, 6vw, 70px); /* Huge font size */
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .separator {
    color: #aa8730;
    font-weight: 800;
    margin: 0 4px;
}


.contact-form input,
.cont.page-header .separator {
    opacity: 0.7;
    margin: 0 4px;
}

/* --- About Academy Section --- */
.about-section {
    padding: 60px 20px;
    background-color: #fff;
    direction: rtl;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(19, 121, 118, 0.1);
    display: block;
    margin: 0 auto;
}

.about-text .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color, #AA8730);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-text .eyebrow::after {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--accent-color, #AA8730);
}

.about-text .section-title {
    color: var(--primary-color, #137976);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.3;
}

.about-text .gold-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color, #AA8730);
    border-radius: 2px;
    margin-bottom: 25px;
}

.about-text p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: rgba(170, 135, 48, 0.1);
    /* Light Gold */
    color: var(--accent-color, #AA8730);
    border-radius: 50%;
    font-size: 20px;
}

.feature-item p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.feature-item p strong {
    display: block;
    color: var(--primary-color, #137976);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text .eyebrow {
        justify-content: center;
    }

    .about-text .gold-line {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-item {
        text-align: right;
    }
}

/* --- Mission Section --- */
.mission-section {
    background-color: #1a3a2a; /* Dark green matching screenshot */
    padding: 80px 20px;
    direction: rtl;
    color: #fff;
    margin-top: 60px;
}

.mission-section .eyebrow.center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-color, #AA8730);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mission-section .eyebrow.center::before,
.mission-section .eyebrow.center::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color, #AA8730);
}

.mission-section .section-title.center {
    text-align: center;
    color: #fff;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin: 0 0 30px;
    line-height: 1.3;
}

.mission-quote {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.mission-quote blockquote {
    margin: 0 auto;
    width: fit-content; /* Make container hug the text */
    padding: 0 25px 0 0; /* Padding on the right */
    border-right: 3px solid var(--accent-color, #AA8730);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-align: right;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background-color: rgba(255, 255, 255, 0.04); /* Faint background */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Faint border */
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.mission-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--accent-color, #AA8730);
    font-size: 40px; /* Larger icon, no background circle */
    margin-bottom: 15px;
}

.mission-card h4 {
    color: var(--accent-color, #AA8730); /* Gold color */
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
}

.mission-card p {
    color: #cccccc; /* Light gray */
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness for Mission Section */
@media (max-width: 980px) {
    .mission-cards {
        grid-template-columns: 1fr;
    }
}

/* --- Goals Section --- */
.goals-section {
    background-color: #f4eee0;
    /* Cream background matching theme */
    padding: 80px 20px;
    direction: rtl;
    margin-top: 0;
}

.goals-section .eyebrow.center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-color, #AA8730);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

.goals-section .eyebrow.center::before,
.goals-section .eyebrow.center::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color, #AA8730);
}

.goals-section .section-title.center {
    text-align: center;
    color: var(--primary-color, #137976);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin: 0 0 40px;
    line-height: 1.3;
}

/* Optional subtitle style if added later */
.goals-section .subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: -25px auto 40px;
    max-width: 600px;
    line-height: 1.6;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.goal-card {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid #eee4cf;
    /* Subtle border */
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.goal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.goal-card .goal-number {
    font-size: 48px;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: rgba(170, 135, 48, 0.25);
    /* Muted light gold */
    line-height: 1;
    margin-top: -5px;
}

.goal-card .goal-content {
    flex: 1;
}

.goal-card .goal-content h4 {
    color: var(--primary-color, #137976);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.4;
}

.goal-card .goal-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness for Goals Section */
@media (max-width: 980px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Why Choose Us Section --- */
.why-section {
    background-color: #f4eee0;
    padding: 80px 20px;
    direction: rtl;
    margin-top: 0;
}

.why-section .eyebrow.center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-color, #AA8730);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-section .eyebrow.center::before,
.why-section .eyebrow.center::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color, #AA8730);
}

.why-section .section-title.center {
    text-align: center;
    color: var(--primary-color, #137976);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin: 0 0 40px;
    line-height: 1.3;
}

.why-section .subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: -25px auto 40px;
    max-width: 600px;
    line-height: 1.6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.why-card .why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f6efe1;
    border: 1px solid #e2d8c3;
    border-radius: 16px;
    font-size: 30px;
    margin-bottom: 20px;
}

.why-card h4 {
    color: var(--primary-color, #137976);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}

.why-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 25px;
    flex-grow: 1;
}

.why-card .tag {
    display: inline-block;
    background-color: #f6efe1;
    color: var(--primary-color, #137976);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 25px;
    border: 1px solid #e2d8c3;
}

/* Mobile Responsiveness for Why Section */
@media (max-width: 980px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}