/* Reset and Base Styles */
:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #f8fafc;
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #e2e8f0;
    --secondary-hover: #cbd5e1;
    --accent: #3b82f6;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(37, 99, 235, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography Enhancement: Fluid Heading Sizes */
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 4vw, 2rem); }

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }

.section-title {
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 1100px;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-light); }
.bg-dark .section-desc { color: #94a3b8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background-color: #25D366;
    color: white !important;
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5);
}

.btn-secondary:hover {
    background-color: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(37, 211, 102, 0.6);
}

.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

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

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

.bg-dark .btn-outline {
    border-color: var(--border-dark);
    color: var(--text-light);
}
.bg-dark .btn-outline:hover {
    border-color: var(--text-light);
}

.btn-full { width: 100%; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

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

.logo-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-bold { color: var(--text-muted); font-weight: 500;}
.logo-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-right: 4px; display: inline-block; }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dark-mode-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 1.85rem;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* User uploaded background image */
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 900;
}

.hero-subtitle-new {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.justify-center {
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-large {
    font-size: 1.25rem;
    line-height: 1.8;
}

.image-box {
    position: relative;
    border-radius: var(--radius-lg);
}

.box-pattern {
    position: absolute;
    top: -20px; right: -20px;
    width: 150px; height: 150px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: -1;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.services-section {
    background-color: #f1f2ec;
}

.title-underline {
    width: 70px; 
    height: 3px; 
    background-color: #000; 
    margin: 0 auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.service-card-new {
    background: transparent;
    border: none;
    transition: var(--transition);
}

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

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 1.4;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--radius-md);
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.service-card-new:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-content-new h3 {
    color: #000; 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    text-align: center;
}

.service-details {
    color: #000; 
    font-size: 0.95rem; 
    line-height: 1.8; 
    text-align: right; 
    direction: rtl; 
    padding: 0 1rem;
}

/* Programs */
.packages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .packages-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .packages-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.package-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Package Header Classes for moving inline styles */
.pkg-header {
    background: linear-gradient(135deg, #1a6fa8, #5eb8d4);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    color: white;
}

.pkg-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pkg-silver-badge {
    background: linear-gradient(135deg, #a8a9ad, #d9dada, #a8a9ad);
    color: #333;
}

.pkg-gold-badge {
    background: linear-gradient(135deg, #c9a227, #f0d060, #c9a227);
    color: #5a3e00;
}

.pkg-price-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2rem;
}

.pkg-price-item {
    text-align: center;
}

.pkg-price-val {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
}

.pkg-price-unit {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.pkg-price-sep {
    color: rgba(255,255,255,0.5);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 200;
}

.pkg-duration {
    margin-top: 1.2rem;
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    font-weight: 700;
}

.pkg-body {
    padding: 2rem 1.5rem;
    direction: rtl;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pkg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pkg-feature-icon {
    min-width: 26px;
    height: 26px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pkg-gold-icon {
    background: #d4af37;
}

.pkg-feature-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.pkg-btn-gold {
    background: linear-gradient(135deg, #c9a227, #f0d060);
    color: #5a3e00 !important;
    font-weight: 800;
}

.pkg-advantage-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(94, 184, 212, 0.12));
    border-right: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1e3a5f;
    font-weight: 600;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.program-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.program-img {
    position: relative;
    height: 240px;
}

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

.program-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--bg-dark);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.program-content {
    padding: 2rem;
}

.program-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.program-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.program-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.program-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.program-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--border-dark);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px; height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* FAQ Section */
.faq-accordion {
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(37,99,235,0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 2rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

.faq-item.active {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: var(--bg-dark);
    color: white;
}

.contact-info .section-title {
    color: white;
}

.contact-info p {
    color: #cbd5e1;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
}

.contact-card h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-card span {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Payment Section (Home Page) */
.payment-section {
    background-color: var(--bg-white);
    padding: 6rem 0;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.home-payment-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.home-payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.pay-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pay-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pay-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.pay-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 1.5rem;
    user-select: all;
}

body.dark-mode .home-payment-card {
    background: var(--bg-dark);
    border-color: var(--border-dark);
}

body.dark-mode .pay-value {
    color: white;
}

.pkg-extra {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

select {
    appearance: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-container, .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .about-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info, .contact-form-container {
        padding: 3rem 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .section {
        padding: 4rem 0;
    }
    .hero-title {
        margin-bottom: 1rem;
    }
    .hero-subtitle-new {
        margin-bottom: 1.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 1.5rem;
        border-top: 1px solid var(--border-light);
        z-index: 1001; /* Ensure mobile menu is above hero section */
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .nav-cta {
        display: none;
    }
    .floating-badge {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* End of base styles */

/* --- Dark Mode Styles --- */
body.dark-mode {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --bg-dark: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: #334155;
    --border-dark: #cbd5e1;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --card-bg: #1e293b;
    --section-bg-alt: #111827;
}

/* Service Section Dark Mode Fixes */
body.dark-mode .services-section {
    background-color: var(--section-bg-alt) !important;
}

body.dark-mode .service-content-new h3,
body.dark-mode .service-details,
body.dark-mode .service-details li {
    color: var(--text-main) !important;
}

body.dark-mode .title-underline {
    background-color: var(--primary) !important;
}

/* Packages Dark Mode Fixes */
body.dark-mode div[style*="background:white"] {
    background-color: var(--bg-white) !important;
}

body.dark-mode li span[style*="color:#333"],
body.dark-mode div[style*="color:#333"],
body.dark-mode span[style*="color:#333"] {
    color: var(--text-main) !important;
}

body.dark-mode div[style*="background:linear-gradient(135deg,rgba(37,99,235,0.08)"] {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #e2e8f0 !important;
    border-right-color: var(--primary) !important;
}

body.dark-mode .pkg-toggle {
    color: var(--primary) !important;
}

body.dark-mode .program-card,
body.dark-mode .contact-wrapper,
body.dark-mode .footer {
    background: var(--bg-white);
}

body.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.8);
}
body.dark-mode .navbar.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    body.dark-mode .nav-links {
        background-color: var(--bg-white);
        border-top-color: var(--border-light);
    }
}

body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-light);
}

body.dark-mode input:focus, 
body.dark-mode select:focus, 
body.dark-mode textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Floating Instagram Icon */
.floating-instagram {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: clamp(55px, 10vw, 65px);
    height: clamp(55px, 10vw, 65px);
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: clamp(30px, 5vw, 36px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-instagram:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .floating-instagram {
        bottom: 20px;
        left: 20px;
    }
}

/* Payment Page Specifics (Consolidated) */
.payment-hero {
    padding: clamp(8rem, 15vh, 12rem) 0 6rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.payment-hero .section-title {
    color: white;
}

.payment-hero .section-desc {
    color: #cbd5e1;
}

.bg-light-payment {
    background-color: var(--bg-light);
    padding-bottom: 10rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.payment-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.1);
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.payment-value {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    margin: 0.5rem 0;
    word-break: break-all;
}

/* Extra Mobile Fixes */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .pkg-price-wrap {
        gap: 1rem;
    }
    .pkg-price-val {
        font-size: 2.2rem;
    }
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

.payment-cta-footer {
    text-align: center;
    margin-top: 4rem;
}

.payment-cta-text {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
