@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #189010;
    --primary-dark: #107840;
    --primary-medium: #158010;
    --primary-soft: #3ea836;

    --blue-light: #b4ebb0;
    --blue-bg: #edf8ed;

    --silver: #A3A3A7;
    --gray-light: #E5E7EB;

    --background: #F7F8F8;
    --surface: #FFFFFF;

    --text-primary: #172033;
    --text-secondary: #667085;
    
    /* Compatibility variables mapping old values to new ones */
    --primary-light: var(--primary-medium);
    --secondary: var(--silver);
    --accent: var(--primary-dark);
    --white: #ffffff;
    --bg-light: var(--background);
    --text-dark: var(--text-primary);
    --text-muted: var(--text-secondary);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;

    /* Functional colors */
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --info: #2563EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Outfit', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Base Styles for LTR/RTL spacing */
.ms-auto {
    margin-inline-start: auto;
}

.me-auto {
    margin-inline-end: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.logo-brand img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.nav-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile Controls in Navbar */
.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 10px;
}

.btn-mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: rgba(24, 144, 16, 0.06);
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mobile-login:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: #edf8ed;
    border-color: var(--primary-soft);
}

.hamburger-btn .bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1250;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .mobile-drawer {
    right: 0;
    left: auto;
    transform: translateX(105%);
}

[dir="rtl"] .mobile-drawer.active {
    transform: translateX(0);
}

[dir="ltr"] .mobile-drawer {
    left: 0;
    right: auto;
    transform: translateX(-105%);
}

[dir="ltr"] .mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, rgba(24, 144, 16, 0.08), rgba(255, 255, 255, 0.95));
}

.mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-drawer-brand .brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    line-height: 1.25;
}

.mobile-drawer-brand .brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s ease;
}

.drawer-link i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.85;
}

.drawer-link:hover,
.drawer-link:active {
    background: rgba(24, 144, 16, 0.08);
    color: var(--primary);
}

[dir="rtl"] .drawer-link:hover {
    transform: translateX(-4px);
}

[dir="ltr"] .drawer-link:hover {
    transform: translateX(4px);
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.btn-drawer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.drawer-lang-btn:hover {
    background: rgba(24, 144, 16, 0.08);
    color: var(--primary);
    border-color: var(--primary-soft);
}

.drawer-quick-contact {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.drawer-quick-contact a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.drawer-quick-contact a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 34, 123, 0.25);
}

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

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

.lang-toggle {
    background: var(--bg-light);
    border: 1px solid var(--gray-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-soft) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(165, 172, 202, 0.15), transparent);
    pointer-events: none;
}

.hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
}

.hero .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
}

.hero .hero-btns .btn {
    min-width: 280px;
}

.hero .btn-secondary {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1px solid var(--gray-light);
}

.hero .btn-secondary:hover {
    background: var(--blue-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 34, 123, 0.15);
}

/* Stats Section */
.stats {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(29, 46, 140, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Stages Section */
.stages {
    padding: 100px 0;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.stage-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stage-img {
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.stage-body {
    padding: 30px;
}

.stage-body h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.stage-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Why Choose Us */
.why-us {
    padding: 100px 0;
    background: var(--accent);
    color: var(--white);
}

.why-us .section-header h2 {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary);
}

.feature-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Online Services */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary);
    color: var(--white);
}

.service-card:hover h3,
.service-card:hover i {
    color: var(--white);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Teachers Section */
.teachers {
    padding: 100px 0;
    background: #f1f5f9;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.teacher-avatar {
    height: 300px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 25px;
}

.teacher-info h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.teacher-info p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-inline-start: 10px solid var(--secondary);
}

.testi-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--accent);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-col p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-inline-start: 5px;
}

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

/* Tabs & Forms */
.apply-page {
    padding: 150px 0 100px;
}

.apply-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-dark);
    transition: var(--transition);
}

.tab-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(29, 46, 140, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 46, 140, 0.1);
}

.form-full {
    grid-column: 1 / -1;
}

.submit-area {
    margin-top: 30px;
    text-align: center;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* Login Page (Split Screen) */
.login-page {
    height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    overflow: hidden;
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(20, 34, 123, 0.9), rgba(29, 46, 140, 0.8)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 60px;
    text-align: center;
}

.login-left h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 500px;
}

.login-left p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 450px;
}

.login-right {
    flex: 1;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.role-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.role-card {
    flex: 1;
    padding: 15px 10px;
    background: #f1f5f9;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.role-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
    color: var(--primary);
}

.role-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.role-card:hover {
    background: #e2e8f0;
}

.role-card.active {
    border-color: var(--primary);
    background: rgba(29, 46, 140, 0.05);
}

.role-card.active span {
    color: var(--primary);
}

.login-form-area h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
    text-align: center;
}

/* Password Group */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

[dir="ltr"] .toggle-password {
    right: 15px;
}

[dir="rtl"] .toggle-password {
    left: 15px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 0.85rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    width: auto;
}

.forgot-link {
    color: var(--primary);
    font-weight: 600;
}

.register-link {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.register-link a {
    color: var(--primary);
    font-weight: 700;
}

/* Login Floating Lang Toggle */
.login-lang-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
}

[dir="rtl"] .login-lang-toggle {
    right: auto;
    left: 30px;
}

/* --- MOBILE & TABLET OPTIMIZATION --- */

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .login-left {
        flex: 1;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar .nav-links,
    .navbar .nav-btns {
        display: none !important;
    }

    .navbar .mobile-nav-controls {
        display: flex !important;
    }

    .navbar {
        padding: 0.65rem 0;
    }

    .logo-brand {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .logo-brand img {
        height: 38px;
        flex-shrink: 0;
    }

    .logo-brand span {
        font-size: 0.92rem;
        line-height: 1.25;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: inline-block;
    }
    .container {
        padding: 0 16px;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 110px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.3rem);
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.6;
        margin: 0 auto 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-lg {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Stats Grid Mobile */
    .stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h3 {
        font-size: 0.95rem;
    }

    /* Sections Mobile */
    .stages,
    .why-us,
    .services,
    .testimonials,
    .contact-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .stages-grid,
    .features-grid,
    .services-grid,
    .teachers-grid,
    .testi-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stage-card .stage-body {
        padding: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .service-card {
        padding: 28px 20px;
    }

    /* --- LOGIN MOBILE REFINEMENT --- */
    .login-page {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        margin-top: 0;
        /* Reset for better scroll */
        padding-top: 70px;
        background: var(--white);
    }

    .login-left {
        padding: 60px 20px;
        min-height: 250px;
        flex: none;
        width: 100%;
    }

    .login-left h1 {
        font-size: 1.6rem;
    }

    .login-right {
        padding: 30px 15px;
        flex: none;
        width: 100%;
        background: transparent;
    }

    .login-card {
        padding: 30px 20px;
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
    }

    .role-selector {
        gap: 8px;
        margin-bottom: 30px;
    }

    .role-card {
        padding: 15px 5px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
    }

    .role-card.active {
        background: rgba(29, 46, 140, 0.08);
        border-color: var(--primary);
    }

    /* --- APPLY/REGISTRATION MOBILE REFINEMENT --- */
    .apply-page {
        padding: 100px 15px 50px;
    }

    .apply-container {
        width: 100%;
    }

    .tabs-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 5px;
        background: #f1f5f9;
    }

    .tab-btn {
        padding: 10px 5px;
        font-size: 0.85rem;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 15px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .tab-content {
        padding: 30px 15px;
        margin-top: 20px;
        border-radius: 20px;
        box-shadow: var(--shadow-md);
    }

    /* General Form Mobile Tweak */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS */
        padding: 14px 15px !important;
        /* Larger hit zone */
    }

    .submit-area .btn {
        width: 100%;
        /* Full width buttons for mobile */
        padding: 16px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 0.55rem 0;
    }

    .navbar.scrolled {
        padding: 0.45rem 0;
    }

    .logo-brand {
        gap: 7px;
        flex: 1;
        min-width: 0;
    }

    .logo-brand img {
        height: 34px;
        flex-shrink: 0;
    }

    .logo-brand span {
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: inline-block;
    }

    .mobile-nav-controls {
        gap: 6px;
        flex-shrink: 0;
    }

    .btn-mobile-login {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .hamburger-btn {
        width: 38px;
        height: 38px;
    }

    .hamburger-btn .bar {
        width: 19px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-btns {
        width: 100%;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

.modal-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loader */
.loader {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- PARENT DASHBOARD --- */
.dashboard-body {
    background-color: #f1f5f9;
    min-height: 100vh;
}

.dash-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- HIGH-END DASHBOARD OVERHAUL --- */
.dashboard-body {
    background-color: #f6f8fb;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
}

.dash-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Elegant Sticky Header */
.dash-header {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.dash-header .dash-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.dash-logo img {
    height: 54px;
    object-fit: contain;
}

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

.logo-text .main {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text .sub {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 25px;
}

.notifications {
    position: relative;
    font-size: 1.1rem;
    color: #718096;
    cursor: pointer;
    background: #f7fafc;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications:hover {
    background: #edf2f7;
    color: var(--primary);
    transform: scale(1.05);
}

.notifications .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-info .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
}

.user-meta .name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a202c;
}

.user-meta .role {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
}

.dash-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle-btn {
    text-decoration: none;
    color: #4a5568;
    background: #edf2f7;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.lang-toggle-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.logout-link {
    color: #a0aec0;
    font-size: 1.25rem;
    padding: 8px;
    transition: 0.3s;
}

.logout-link:hover {
    color: #e53e3e;
    transform: scale(1.1);
}

/* Main Content Layout */
.dash-main-content {
    padding: 40px 0;
}

.dash-hero {
    background: linear-gradient(135deg, #189010 0%, #107840 100%);
    border-radius: 32px;
    padding: 60px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(29, 46, 140, 0.15);
}

.dash-hero .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 20px;
}

.h-stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.h-stat .val {
    font-size: 1.6rem;
    font-weight: 800;
}

.h-stat .lbl {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: none;
    text-align: right;
}

[dir='ltr'] .h-stat .lbl {
    text-align: left;
}

.h-stat.highlight .val {
    color: #f6ad55;
}

/* Workspace Grid */
.dash-workspace {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

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

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dash-section-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-section-header h3 i {
    color: var(--primary);
}

/* Student Profile Card - Premium */
.children-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 25px;
}

.student-profile-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.student-profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.student-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f7fafc;
    border: 2px solid #edf2f7;
}

.student-basic h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 4px;
}

.student-basic .code {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.student-status-tag {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 10px;
    text-transform: uppercase;
}

[dir='rtl'] .student-status-tag {
    margin-left: 0;
    margin-right: auto;
}

.student-status-tag.active {
    background: #c6f6d5;
    color: #22543d;
}

.profile-mid {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-pill {
    background: #f7fafc;
    color: #4a5568;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #edf2f7;
}

.profile-attendance {
    background: #fafbfc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #edf2f7;
}

.att-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a202c;
}

.att-bar {
    height: 10px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.att-bar .fill {
    height: 100%;
    background: linear-gradient(to right, #189010, #158010);
    border-radius: 10px;
}

.profile-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 25px;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #189010 0%, #107840 100%);
    color: white;
    border-radius: 16px;
    font-weight: 800;
    padding: 15px;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(29, 46, 140, 0.2);
    transition: 0.3s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(29, 46, 140, 0.3);
    opacity: 0.95;
}

/* Financial Layout Refined */
.financial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.financial-item-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #edf2f7;
}

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
}

.item-head h4 {
    font-weight: 800;
    color: #1a202c;
    font-size: 1.15rem;
}

.f-status {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 10px;
}

.f-status.partial {
    background: #fffaf0;
    color: #9c4221;
    border: 1px solid #feebc8;
}

.f-status.fully {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #c6f6d5;
}

.item-body {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.f-row span {
    color: #718096;
    font-weight: 600;
}

.f-row strong {
    color: #1a202c;
    font-weight: 700;
}

.f-row.highlight strong {
    color: #e53e3e;
    font-size: 1.1rem;
}

.item-foot {
    display: flex;
    gap: 12px;
}

.item-foot .btn {
    border-radius: 14px;
    font-weight: 700;
    flex: 1;
    padding: 12px;
}

/* Sidebar Premium */
.actions-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.action-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    padding: 25px 15px;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.action-item:hover {
    background: #f7fafc;
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 15px;
    transition: 0.3s;
}

.action-item:hover .icon-box {
    background: var(--primary);
    color: white;
}

.action-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
}

.side-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #edf2f7;
    margin-bottom: 25px;
}

.card-title {
    margin-bottom: 25px;
}

.card-title h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title h4 i {
    color: #f6ad55;
}

.ann-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.ann-item {
    position: relative;
    padding-right: 15px;
}

[dir='rtl'] .ann-item {
    padding-right: 0;
    padding-left: 15px;
}

.ann-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #cbd5e0;
    border-radius: 2px;
}

[dir='rtl'] .ann-item::after {
    right: auto;
    left: 0;
}

.ann-item h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 6px;
}

.ann-item p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 8px;
}

.ann-item .time {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
}

.more-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gold-card {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: white;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(218, 165, 32, 0.2);
}

.gold-card h4 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.gold-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-white {
    background: white;
    color: #b8860b;
    font-weight: 800;
    border-radius: 14px;
    width: 100%;
    padding: 14px;
}

.btn-white:hover {
    opacity: 0.95;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile Adaptations */
/* --- NEW APPLICATION FORM STYLES --- */
.app-page-header {
    margin-bottom: 40px;
}

.app-page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.app-page-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Status Stepper */
.app-status-bar {
    background: white;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    border: 1px solid #edf2f7;
    position: relative;
}

.app-status-bar::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #edf2f7;
    z-index: 1;
}

.status-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.status-step .dot {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid #edf2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.1rem;
    transition: 0.3s;
}

.status-step span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #a0aec0;
}

.status-step.active .dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 46, 140, 0.3);
}

.status-step.active span {
    color: var(--primary);
}

/* Form Cards */
.form-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.form-card .card-header {
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-card .card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-card .card-header h3 i {
    color: var(--primary);
}

.form-card .card-body {
    padding: 35px 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a5568;
}

.form-group .req {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 46, 140, 0.05);
}

.full-row {
    grid-column: 1 / -1;
}

.readonly-section {
    border-color: #cbd5e0;
}

.readonly-section .card-header {
    background: #edf2f7;
}

.readonly-section input {
    background: #f8fafc;
    color: #718096;
    font-weight: 600;
    cursor: not-allowed;
}

.auto-badge {
    background: #ffffff;
    color: #38a169;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #c6f6d5;
}

.form-upload-box {
    margin-top: 30px;
}

.upload-trigger {
    border: 2px dashed #cbd5e0;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    color: #718096;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-trigger:hover {
    border-color: var(--primary);
    background: #f0fdf4;
    color: var(--primary);
}

.trigger-content {
    position: relative;
    z-index: 5;
    transition: 0.3s;
}

.upload-trigger.has-photo .trigger-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    color: var(--primary);
}

.upload-trigger i {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

/* Checklist */
.docs-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 16px;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-info input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.doc-info label {
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
}

.file-status {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-status.selected {
    background: #f0fdf4;
    color: #189010 !important;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid #c6f6d5;
    font-weight: 800;
}

.decl-card {
    padding: 40px;
    text-align: center;
    background: #fffaf0;
    border: 1px solid #feebc8;
}

.decl-card p {
    font-size: 1.1rem;
    color: #744210;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.6;
}

.decl-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.decl-confirm label {
    font-weight: 800;
    color: #744210;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.form-actions .btn {
    flex: 1;
    padding: 18px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.1rem;
}

.app-footer {
    text-align: center;
    padding: 40px 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Validation & Feedback */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.error-text {
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Status Modal */
.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.app-modal {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: 0.3s;
}

.app-modal.active {
    transform: translateY(0);
}

.app-modal .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.app-modal.success .modal-icon {
    background: #f0fdf4;
    color: #38a169;
}

.app-modal.error .modal-icon {
    background: #fff5f5;
    color: #e53e3e;
}

.app-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.app-modal p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

.missing-list {
    text-align: right;
    background: #f8fafc;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #e53e3e;
    max-height: 150px;
    overflow-y: auto;
}

[dir='ltr'] .missing-list {
    text-align: left;
}

.hidden-input {
    display: none;
}

@media (max-width: 1200px) {
    .dash-workspace {
        grid-template-columns: 1fr;
    }

    .dash-container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .dash-hero {
        padding: 40px 30px;
        text-align: center;
    }

    .dash-hero .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .h-stat {
        flex: 1;
        min-width: 140px;
        padding: 20px;
    }

    .children-list-grid {
        grid-template-columns: 1fr;
    }

    .financial-grid {
        grid-template-columns: 1fr;
    }
}

.dash-premium {
    --side-bg: var(--primary-dark, #107840);
    --dash-bg: var(--background, #F7F8F8);
    --card-bg: var(--surface, #ffffff);
    --accent-blue: var(--primary, #189010);
    --accent-green: var(--success, #16A34A);
    --text-main: var(--text-primary, #172033);
    --text-muted: var(--text-secondary, #667085);
    --border-color: var(--gray-light, #E5E7EB);
    --shadow-soft: 0 10px 30px rgba(20, 34, 123, 0.05);

    background: var(--dash-bg);
    font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

.dash-wrapper {
    display: flex;
    min-height: 100vh;
}

.premium-sidebar {
    width: 280px;
    background: var(--side-bg);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.sidebar-brand img {
    width: 45px;
    filter: brightness(0) invert(1);
}

.brand-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.brand-info span {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.73);
    text-decoration: none;
    border-radius: 15px;
    margin-bottom: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.premium-main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.premium-topbar {
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-search {
    position: relative;
    width: 400px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search input {
    border: none;
    background: none;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    cursor: pointer;
}

.profile-pill img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.premium-content {
    padding: 40px;
}

.premium-hero {
    background: linear-gradient(135deg, #189010, #158010);
    border-radius: 35px;
    padding: 50px;
    color: white;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(29, 46, 140, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-stats-grid {
    display: flex;
    gap: 20px;
}

.glass-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.tab-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tab-triggers {
    background: #e2e8f0;
    padding: 6px;
    border-radius: 18px;
    display: flex;
    gap: 5px;
}

.p-tab-btn {
    border: none;
    background: none;
    padding: 12px 25px;
    border-radius: 14px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-tab-btn.active {
    background: white;
    color: var(--side-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.p-tab-panel {
    display: none;
}

.p-tab-panel.active {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.students-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.student-glass-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.s-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.s-tag {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: auto;
}

.s-tag.active {
    background: #f0fdf4;
    color: #38a169;
}

.card-mid {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.m-pill {
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.view-profile-btn {
    text-decoration: none;
    color: var(--side-bg);
    font-weight: 800;
    font-size: 0.9rem;
}

/* Tracking Cards */
.tracking-premium-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.t-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.t-applicant {
    display: flex;
    gap: 15px;
    align-items: center;
}

.t-avatar {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f7fafc;
    overflow: hidden;
}

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

.t-status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.p-step {
    flex: 1;
    height: 8px;
    border-radius: 30px;
    background: #edf2f7;
    position: relative;
}

.p-step.done {
    background: var(--side-bg);
}

.p-step.current {
    background: var(--gold-premium);
}

.t-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.t-labels span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    width: 0;
    text-align: center;
    white-space: nowrap;
}

.t-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.pulse-indicator {
    background: #f0fdf4;
    color: #38a169;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Sidebar Widgets */
.financial-widget {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.f-bill-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
}

.bill-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 800;
}

.bill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.bill-bar .fill {
    height: 100%;
    background: #c05621;
}

.btn-premium-sm {
    background: var(--side-bg);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.circular-chart {
    width: 50px;
    height: 50px;
}

.circle-bg {
    fill: none;
    stroke: #edf2f7;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: #38a169;
    stroke-width: 2.8;
    stroke-linecap: round;
}

.percentage {
    fill: #2d3748;
    font-size: 0.5rem;
    text-anchor: middle;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .premium-sidebar {
        width: 80px;
    }

    .brand-info,
    .nav-link span {
        display: none;
    }

    .workspace-layout {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Tabs */
.dash-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn.active {
    color: #189010;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFD700;
    border-radius: 10px;
}

.tab-btn .count-badge {
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 30px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    color: #718096;
    margin-bottom: 25px;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Variations */
.app-subtitle {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-status-tag.draft {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.student-status-tag.review {
    background: #fffaf0;
    color: #c05621;
    border: 1px solid #feebc8;
}

.student-status-tag.exam {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.student-status-tag.result {
    background: #faf5ff;
    color: #6b46c1;
    border: 1px solid #e9d8fd;
}

.student-status-tag.accepted {
    background: #f0fdf4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.student-status-tag.rejected {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.mini-step.rejected {
    background: #e53e3e !important;
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.3);
}

/* Status Variations */
.app-subtitle {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-status-tag.draft {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.student-status-tag.review {
    background: #fffaf0;
    color: #c05621;
    border: 1px solid #feebc8;
}

.student-status-tag.exam {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.student-status-tag.result {
    background: #faf5ff;
    color: #6b46c1;
    border: 1px solid #e9d8fd;
}

.student-status-tag.accepted {
    background: #f0fdf4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.student-status-tag.rejected {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.mini-step.rejected {
    background: #e53e3e !important;
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.3);
}

/* ── Pending Application Cards (Parent Dashboard) ──────── */
.pending-apps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pending-app-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.pending-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    border-color: var(--primary);
}

.papp-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.papp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e9f4ef, #c6f6d5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #189010;
    flex-shrink: 0;
}

.papp-details h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 3px;
}

.papp-details span {
    font-size: .8rem;
    color: #718096;
    font-weight: 500;
}

.papp-details small {
    display: block;
    font-size: .75rem;
    color: #a0aec0;
    margin-top: 2px;
}

.papp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* App status badge */
.app-status-badge {
    font-size: .75rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: .2px;
    white-space: nowrap;
}

.app-status-badge.draft    { background: #edf2f7; color: #718096; }
.app-status-badge.review   { background: #ebf8ff; color: #2b6cb0; border: 1px solid #bee3f8; }
.app-status-badge.exam     { background: #fffaf0; color: #9c4221; border: 1px solid #feebc8; }
.app-status-badge.accepted { background: #f0fff4; color: #22543d; border: 1px solid #c6f6d5; }
.app-status-badge.rejected { background: #fff5f5; color: #e53e3e; border: 1px solid #fed7d7; }

/* btn-sm */
.btn-sm {
    padding: 8px 16px !important;
    font-size: .82rem !important;
    border-radius: 10px !important;
}

/* App page header (used in new_application & under_review) */
.app-page-header {
    margin-bottom: 28px;
}
.app-page-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 6px;
}
.app-page-header p {
    color: #718096;
    font-size: .95rem;
}

/* CSS variables needed by under_review page */
:root {
    --surface: #ffffff;
    --border:  #edf2f7;
    --text:    #172033;
    --muted:   #667085;
    --bg:      #edf8ed;
    --primary: #189010;
    --gold:    #A3A3A7;
}

/* =========================================================================
   Premium Dual Portal Login Redesign
   ========================================================================= */

body.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg, #107840 0%, #189010 45%, #3ea836 100%);
    -webkit-overflow-scrolling: touch;
}

.login-navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.login-navbar .logo-brand,
.login-navbar .logo-brand span {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.login-navbar .nav-btns {
    display: flex;
    gap: 15px;
}

.login-navbar .lang-toggle {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-navbar .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.premium-login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #107840 0%, #189010 45%, #3ea836 100%);
    position: relative;
    padding: 2rem;
    overflow-y: auto;
}

.portal-step {
    width: 100%;
    max-width: 900px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.portal-step.active {
    opacity: 1;
    transform: translateY(0);
}

.portal-title {
    text-align: center;
    color: white;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.portal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.portal-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--silver);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(20, 34, 123, 0.3);
}

.portal-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.portal-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.5;
}

.premium-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.back-btn {
    position: relative;
    width: calc(100% + 6rem);
    margin: -3rem -3rem 2rem -3rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 10;
}
[dir="rtl"] .back-btn {
    flex-direction: row-reverse;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
[dir="rtl"] .back-btn:hover {
    transform: translateY(-2px);
}

.login-form-area h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .login-navbar {
        padding: 0.75rem 1rem;
    }

    .login-navbar .logo-brand {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .login-navbar .logo-brand img {
        height: 34px;
        flex-shrink: 0;
    }

    .login-navbar .logo-brand span {
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: inline-block;
    }

    .login-navbar .nav-btns {
        gap: 6px;
        flex-shrink: 0;
    }

    .login-navbar .lang-toggle {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 16px !important;
    }

    .login-navbar .btn-login-home {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 16px !important;
    }

    .login-navbar .btn-login-home .home-text {
        display: none;
    }

    .premium-login-container {
        padding: 1rem;
        padding-top: 5rem;
        padding-bottom: 2.5rem;
        align-items: flex-start;
    }

    .portal-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 0.35rem;
    }

    .portal-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.05rem);
        margin-bottom: 1.75rem;
    }

    .portals-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 420px;
        margin: 0 auto;
    }

    .portal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .portal-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .portal-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.4rem;
    }

    .portal-card p {
        font-size: 0.92rem;
    }

    .premium-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 18px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    }

    .back-btn {
        width: calc(100% + 2.5rem) !important;
        margin: -1.75rem -1.25rem 1.5rem -1.25rem !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 18px 18px 0 0 !important;
    }

    .login-form-area h2 {
        font-size: 1.45rem;
        margin-bottom: 0.35rem;
    }

    .form-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }

    .role-selector {
        gap: 8px;
        margin-bottom: 20px;
    }

    .role-card {
        padding: 10px 6px;
    }

    .role-card i {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .role-card span {
        font-size: 0.8rem;
    }

    .role-field input {
        font-size: 16px !important;
    }
}

@media (max-width: 400px) {
    .login-navbar .logo-brand span {
        max-width: 130px;
    }

    .login-navbar .lang-toggle,
    .login-navbar .btn {
        padding: 5px 8px !important;
        font-size: 0.78rem !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--blue-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-info-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-info-card .contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--blue-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background-color: var(--primary);
    color: var(--surface);
}

.contact-info-card .contact-icon.whatsapp-icon {
    color: #25D366;
}

.contact-info-card:hover .contact-icon.whatsapp-icon {
    background-color: #25D366;
    color: var(--surface);
}

.contact-info-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info-card p {
    font-size: 1rem;
    color: var(--text-muted);
    word-break: break-word;
    line-height: 1.6;
}

.contact-info-card p a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.contact-info-card p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}