/* ----------------------------------------------------
   Madrasa Quraniya Web Design System - style.css
---------------------------------------------------- */

:root {
    /* Color Palette */
    --primary-color: #1b4332;       /* Deep Forest Green */
    --primary-light: #2d6a4f;       /* Medium Forest Green */
    --primary-soft: #eaf4f0;        /* Light Pale Green */
    --accent-color: #c5a880;        /* Elegant Gold/Sand */
    --accent-dark: #b39366;         /* Gold Accent Darker */
    --accent-light: #f7f4f0;        /* Warm Gold Background tint */
    --text-color: #2b2d42;          /* Slate Dark Grey for Text */
    --text-muted: #6c757d;         /* Cool Grey for captions */
    --bg-light: #f8f9fa;            /* Light background */
    --bg-white: #ffffff;            /* White */
    --danger-color: #e63946;        /* Subtle red */
    --success-color: #2a9d8f;       /* Emerald Green */
    --info-color: #4a90e2;          /* Sky Blue */

    /* Typography */
    --font-cairo: 'Cairo', sans-serif;
    --font-amiri: 'Amiri', serif;

    /* Shadow levels */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    /* Radius options */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Reset & Styling */
* {
    margin: 0;
    padding: 0;
    box-index: border-box;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cairo);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.container-xs {
    max-width: 480px;
}

/* Utilities */
.text-center { text-align: center; }
.ltr-text { direction: ltr; display: inline-block; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mt-5 { margin-top: 5px; }
.mt-20 { margin-top: 20px; }
.btn-block { width: 100%; display: block; }
.bg-light { background-color: var(--bg-light); }

/* Global Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cairo);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27, 67, 50, 0.2);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: #e5c158;
    color: #1b4332;
    border: 2px solid #e5c158;
}

.btn-gold:hover {
    background-color: var(--bg-white);
    color: #1b4332;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background-color: var(--primary-soft);
    color: var(--primary-color);
}

/* Main Header Navigation */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: var(--font-amiri);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.school-location {
    font-size: 0.8rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.main-nav .nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Account Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-greeting {
    font-weight: 600;
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: inline-block;
    color: var(--primary-color);
    border: 1px solid rgba(27, 67, 50, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-white);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    z-index: 1;
    overflow: hidden;
    margin-top: -2px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content a,
.dropdown-content button {
    color: var(--text-color);
    padding: 12px 16px;
    text-align: right;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #122d22 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    padding: 80px 0 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
}

.hero-text-side {
    text-align: right;
}

.hero-text-side h1 {
    font-family: var(--font-amiri);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-text-side p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
    color: var(--bg-light);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.hero-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-banner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    display: flex;
    transition: var(--transition);
}

.hero-banner-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.3);
    box-shadow: var(--shadow-lg), 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.hero-wave .shape-fill {
    fill: var(--bg-light);
}

/* About / Welcome Section */
.about-section {
    padding: 70px 0;
}

.section-title {
    margin-bottom: 50px;
}

.sub-title {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-family: var(--font-amiri);
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 0 auto;
    border-radius: var(--radius-full);
}

.about-intro-grid {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.about-text-card {
    background-color: var(--bg-white);
    padding: 30px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--accent-color);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Pillars grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.pillar-card {
    background-color: var(--bg-white);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    background-color: var(--accent-light);
    height: 75px;
    width: 75px;
    line-height: 75px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Programs Listing Section */
.programs-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-header-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header-inline .section-title {
    margin-bottom: 0;
}

.section-header-inline .divider {
    margin: 12px 0 0 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.program-image-wrapper {
    position: relative;
    height: 200px;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-price {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.program-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.meta-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-body h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.program-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.program-footer {
    margin-top: auto;
}

/* Call To Action Banner */
.cta-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 70px 20px;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 750px;
}

.cta-content h2 {
    font-family: var(--font-amiri);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Generic Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 50px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.banner-content h1 {
    font-family: var(--font-amiri);
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.page-section {
    padding: 60px 0;
}

.no-data-card {
    background-color: var(--bg-white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.no-data-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 15px;
}

.no-data-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Program Detail Page */
.program-details-page {
    padding: 50px 0;
}

.back-link-wrapper {
    margin-bottom: 25px;
}

.back-link {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.program-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

.program-banner-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    height: 350px;
}

.program-detail-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-desc-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--primary-color);
}

.program-desc-card h2 {
    color: var(--primary-color);
    font-family: var(--font-amiri);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.desc-content {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.sidebar-details-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    border-top: 4px solid var(--accent-color);
}

.sidebar-details-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.program-info-list {
    margin-bottom: 30px;
}

.program-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.info-icon {
    height: 42px;
    width: 42px;
    background-color: var(--primary-soft);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-val {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05rem;
}

.status-alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.status-pending {
    background-color: #fff9e6;
    border-right: 4px solid #f39c12;
    color: #b7791f;
}

.status-approved {
    background-color: #eafaf1;
    border-right: 4px solid #2ecc71;
    color: #27ae60;
}

.status-rejected {
    background-color: #fde8e8;
    border-right: 4px solid #e74c3c;
    color: #c0392b;
}

.status-alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.admin-note-box {
    margin-top: 12px;
    padding: 14px 18px;
    background-color: var(--accent-light);
    border-right: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.6;
}

.admin-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--accent-color);
}

.info-intro h3 {
    font-family: var(--font-amiri);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-intro p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-details-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.c-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.c-text h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-text p {
    font-weight: 700;
    font-size: 1.05rem;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Auth Screens */
.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.auth-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.auth-logo {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--accent-color);
}

.auth-header h2 {
    color: var(--primary-color);
    font-family: var(--font-amiri);
    font-size: 1.9rem;
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Global Forms System */
.school-form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.required {
    color: var(--danger-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    padding: 11px 16px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.field-error {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-right: 42px !important;
    width: 100%;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

/* Custom Checkbox */
.custom-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
    transition: var(--transition);
}

.custom-checkbox-container:hover input ~ .checkmark {
    background-color: #ddd;
}

.custom-checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.custom-checkbox-container .checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-weight: 600;
    color: var(--text-color);
}

.form-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Child Registration Form */
.registration-form-page {
    padding: 60px 0;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h1 {
    font-family: var(--font-amiri);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.form-section-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border-right: 4px solid var(--accent-color);
}

.section-title-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-title-badge .number {
    height: 32px;
    width: 32px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.section-title-badge h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

/* File Upload System Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary-light);
    background-color: var(--primary-soft);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.file-upload-placeholder i {
    font-size: 2rem;
    color: var(--primary-light);
}

.file-upload-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
}

.file-preview-name {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.file-selected {
    border-color: var(--success-color);
    background-color: #f0fbf6;
}

/* Health Declarations Toggles */
.health-toggle-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.toggle-label {
    margin-bottom: 0 !important;
}

.radio-toggle-container {
    display: flex;
    gap: 10px;
}

.radio-toggle-option {
    position: relative;
    cursor: pointer;
}

.radio-toggle-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-toggle-option span {
    display: inline-block;
    padding: 6px 20px;
    background-color: var(--bg-white);
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.radio-toggle-option input:checked ~ span {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.hidden-details-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-bottom: 0;
}

.hidden-details-field.active {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 20px;
}

.pickup-row-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.pickup-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 6px;
}

.pickup-row-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.remove-pickup-btn {
    background-color: var(--danger-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-cairo);
    transition: var(--transition);
}

.remove-pickup-btn:hover {
    background-color: #d62828;
}

.add-pickup-wrapper {
    display: flex;
    justify-content: flex-end;
}

.section-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pledge-text-box {
    background-color: var(--accent-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--accent-color);
    margin-bottom: 20px;
}

.pledge-text-box p {
    font-family: var(--font-amiri);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 700;
}

.error-list {
    list-style: disc;
    padding-right: 20px;
    margin: 0;
}

.alert-content:has(.error-list) {
    align-items: flex-start;
}

.form-submit-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Top Notification System */
.notifications-container {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 105;
    max-width: 380px;
    width: 100%;
}

.alert {
    background-color: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-right: 5px solid transparent;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-content i {
    font-size: 1.2rem;
}

.alert-success {
    border-right-color: var(--success-color);
}
.alert-success i {
    color: var(--success-color);
}

.alert-danger {
    border-right-color: var(--danger-color);
}
.alert-danger i {
    color: var(--danger-color);
}

.alert-info {
    border-right-color: var(--info-color);
}
.alert-info i {
    color: var(--info-color);
}

.close-alert {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-alert:hover {
    color: var(--text-color);
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 20px 0;
    border-top: 5px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--accent-color);
}

.footer-brand h3 {
    font-family: var(--font-amiri);
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.85;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(197, 168, 128, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--bg-white);
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
}

.footer-contact p i {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    height: 36px;
    width: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Mobile Sidebar Menu Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-menu-container {
    width: 280px;
    height: 100%;
    background-color: var(--bg-white);
    float: right;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.mobile-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

.mobile-menu-close {
    font-size: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.15rem;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.mobile-nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.mobile-menu-actions {
    margin-top: auto;
}

.mobile-user-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Keyframes animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s forwards;
}

.animation-delay-1 {
    animation-delay: 0.2s;
}

.animation-delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-in {
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .program-details-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-details-card {
        position: static;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .hero-text-side {
        text-align: center;
    }
    .hero-text-side h1 {
        font-size: 2.2rem;
    }
    .hero-text-side p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-image-side {
        order: -1;
    }
    .hero-banner-card {
        max-width: 400px;
        aspect-ratio: 16 / 10;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .health-toggle-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
