:root {
    --emerald-950: #042c22;
    --emerald-900: #073d2f;
    --emerald-800: #0c5542;
    --emerald-700: #13715a;
    --gold-600: #c79a2b;
    --gold-500: #d8ad42;
    --gold-200: #f2dfaa;
    --beige-100: #fbf7ef;
    --beige-200: #f4ecdb;
    --ink: #14221d;
    --muted: #68756f;
    --white: #ffffff;
    --line: rgba(7, 61, 47, 0.13);
    --shadow: 0 22px 55px rgba(7, 61, 47, 0.13);
    --shadow-soft: 0 12px 30px rgba(7, 61, 47, 0.09);
    --radius: 8px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--beige-100);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(45deg, rgba(199, 154, 43, 0.05) 25%, transparent 25%, transparent 75%, rgba(199, 154, 43, 0.05) 75%),
        linear-gradient(45deg, rgba(7, 61, 47, 0.04) 25%, transparent 25%, transparent 75%, rgba(7, 61, 47, 0.04) 75%);
    background-position: 0 0, 16px 16px;
    background-size: 32px 32px;
}

a {
    color: var(--emerald-700);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--gold-600);
}

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

h1,
h2,
h3 {
    color: var(--emerald-950);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

p {
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 999;
    padding: 0.6rem 1rem;
    background: var(--gold-500);
    color: var(--emerald-950);
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.top-info-bar {
    background: var(--emerald-950);
    color: var(--beige-100);
    font-size: 0.9rem;
    padding: 0.55rem 0;
}

.top-info-bar a {
    color: var(--beige-100);
}

.top-info-bar i {
    color: var(--gold-500);
    margin-right: 0.35rem;
}

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(4, 44, 34, 0.06);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-500);
    box-shadow: var(--shadow-soft);
    background: var(--white);
}

.brand-mark img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: center;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--emerald-950);
    font-size: 1rem;
}

.brand-text small {
    color: var(--gold-600);
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--emerald-900);
    font-weight: 700;
    padding: 0.85rem 0.72rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.45rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--gold-500);
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--gold-600);
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.btn {
    border-radius: var(--radius);
    font-weight: 800;
    padding: 0.82rem 1.2rem;
    border-width: 1px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-gold {
    color: var(--emerald-950);
    border-color: var(--gold-500);
    background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
    box-shadow: 0 14px 24px rgba(199, 154, 43, 0.22);
}

.btn-gold:hover {
    color: var(--emerald-950);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(199, 154, 43, 0.28);
}

.btn-emerald {
    color: var(--white);
    border-color: var(--emerald-800);
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-950));
    box-shadow: 0 14px 24px rgba(7, 61, 47, 0.18);
}

.btn-emerald:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-emerald {
    color: var(--emerald-900);
    border-color: rgba(7, 61, 47, 0.25);
    background: var(--white);
}

.btn-outline-emerald:hover {
    color: var(--white);
    border-color: var(--emerald-800);
    background: var(--emerald-800);
    transform: translateY(-2px);
}

.islamic-pattern {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(216, 173, 66, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(4, 44, 34, 0.96), rgba(12, 85, 66, 0.91)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.islamic-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background:
        linear-gradient(30deg, transparent 38%, rgba(255, 255, 255, 0.22) 39%, transparent 40%),
        linear-gradient(150deg, transparent 38%, rgba(216, 173, 66, 0.22) 39%, transparent 40%);
    background-size: 54px 54px;
}

.hero-section {
    min-height: 740px;
    display: flex;
    align-items: center;
    padding: 7rem 0 6rem;
}

.hero-copy,
.hero-feature-card,
.page-hero .container {
    position: relative;
    z-index: 2;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold-600);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.section-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero-copy h1 {
    color: var(--white);
    font-family: "Aref Ruqaa", serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    color: var(--gold-200);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.hero-text {
    color: rgba(255, 255, 255, 0.84);
    max-width: 650px;
    font-size: 1.12rem;
}

.hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1.3rem;
}

.hero-contact i {
    color: #25d366;
}

.hero-contact a {
    color: var(--gold-200);
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 173, 66, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.hero-logo-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 1rem;
    background: var(--white);
}

.hero-logo-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 1006 / 578;
    object-fit: contain;
    object-position: center;
    background: var(--white);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--emerald-950);
    font-weight: 800;
    background: var(--beige-100);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem;
}

.feature-list i {
    color: var(--gold-600);
}

.mini-stat {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--emerald-950);
}

.mini-stat strong {
    color: var(--gold-500);
    font-size: 1.8rem;
}

.mini-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.crescent-glow {
    position: absolute;
    top: 13%;
    right: 10%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 18px solid var(--gold-500);
    box-shadow: 0 0 36px rgba(216, 173, 66, 0.48);
    animation: glowPulse 3.6s ease-in-out infinite;
    z-index: 1;
}

.crescent-glow::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    left: 22px;
    top: -9px;
    border-radius: 50%;
    background: var(--emerald-800);
}

.floating-book {
    position: absolute;
    left: 8%;
    bottom: 12%;
    z-index: 1;
    color: rgba(242, 223, 170, 0.35);
    font-size: 4.5rem;
    animation: floatBook 5s ease-in-out infinite;
}

.section {
    padding: 5.5rem 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 780px;
    text-align: center;
    margin: 0 auto 3rem;
}

.section-heading h2,
.section-title-left {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
    font-size: 1.04rem;
}

.feature-grid,
.course-grid,
.pricing-grid,
.teacher-grid,
.testimonial-grid,
.values-grid {
    display: grid;
    gap: 1.2rem;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-grid,
.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.icon-card,
.premium-card,
.course-card,
.price-card,
.teacher-card,
.testimonial-card,
.value-card,
.mission-card,
.contact-panel,
.contact-form {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.icon-card,
.premium-card,
.course-card,
.price-card,
.teacher-card,
.testimonial-card,
.value-card {
    padding: 1.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.icon-card:hover,
.premium-card:hover,
.course-card:hover,
.price-card:hover,
.teacher-card:hover,
.testimonial-card:hover,
.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 173, 66, 0.45);
    box-shadow: var(--shadow);
}

.icon-card h3 {
    font-size: 1.02rem;
    margin: 1rem 0 0;
}

.icon-circle {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    color: var(--emerald-950);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
    box-shadow: 0 12px 26px rgba(199, 154, 43, 0.18);
}

.course-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.course-mini {
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: var(--emerald-950);
    font-weight: 800;
}

.course-mini i {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold-600);
    background: var(--beige-100);
}

.course-mini:hover {
    transform: translateY(-5px);
    color: var(--emerald-950);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    font-family: "Aref Ruqaa", serif;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 760px;
    margin: 0 auto;
}

.mission-card {
    padding: 2rem;
    min-height: 270px;
    display: grid;
    align-content: center;
    text-align: center;
}

.mission-card i {
    color: var(--gold-600);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.split-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.premium-card h2,
.course-card h2,
.price-card h2,
.teacher-card h2,
.testimonial-card h2 {
    font-size: 1.35rem;
    margin: 1rem 0 0.55rem;
}

.value-card h3 {
    font-size: 1.04rem;
}

.course-card,
.price-card {
    display: flex;
    flex-direction: column;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.2rem;
    display: grid;
    gap: 0.52rem;
}

.check-list li {
    color: var(--muted);
    display: flex;
    gap: 0.55rem;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold-600);
    flex: 0 0 auto;
}

.course-card .btn,
.price-card .btn {
    margin-top: auto;
}

.price-card {
    position: relative;
}

.price-card.featured {
    background: linear-gradient(180deg, var(--white), #fffaf0);
    border-color: rgba(216, 173, 66, 0.5);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--emerald-950);
    background: var(--gold-200);
    border: 1px solid var(--gold-500);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.price-time {
    color: var(--gold-600);
    font-weight: 800;
}

.benefit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.benefit-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    color: var(--emerald-900);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.teacher-card {
    text-align: center;
}

.teacher-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(242, 223, 170, 0.95), rgba(216, 173, 66, 0.8)),
        var(--gold-200);
    color: var(--emerald-950);
    font-size: 2.5rem;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-soft);
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.2rem;
    top: 1.1rem;
    color: rgba(199, 154, 43, 0.24);
    font-size: 2.3rem;
}

.stars {
    color: var(--gold-600);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.testimonial-card span {
    color: var(--gold-600);
    font-weight: 800;
}

.faq-accordion {
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.accordion-item {
    border-color: var(--line);
}

.accordion-button {
    font-weight: 800;
    color: var(--emerald-950);
    background: var(--white);
    padding: 1.15rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--emerald-950);
    background: var(--beige-100);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(216, 173, 66, 0.22);
}

.contact-panel,
.contact-form {
    padding: 1.5rem;
}

.contact-panel {
    display: grid;
    gap: 1rem;
}

.contact-panel a,
.contact-panel span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--emerald-950);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-panel i {
    color: var(--gold-600);
}

.contact-name {
    font-weight: 800;
    color: var(--gold-600);
    margin-bottom: 0;
}

.contact-form label {
    color: var(--emerald-950);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--beige-100);
    border-radius: var(--radius);
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 0.2rem rgba(216, 173, 66, 0.18);
    background: var(--white);
}

.contact-form .invalid {
    border-color: #b3261e;
}

.field-error {
    min-height: 1.2rem;
    color: #b3261e;
    display: block;
    font-weight: 700;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-note {
    margin: 0;
    font-size: 0.9rem;
}

.narrow-content {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 4vw, 2.4rem);
}

.narrow-content h2 {
    font-size: 1.35rem;
    margin-top: 1.3rem;
}

.narrow-content h2:first-child {
    margin-top: 0;
}

.cta-band {
    padding: 0 0 5.5rem;
}

.cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background:
        linear-gradient(135deg, rgba(4, 44, 34, 0.96), rgba(19, 113, 90, 0.94)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
    box-shadow: var(--shadow);
}

.cta-inner h2 {
    color: var(--white);
    margin-bottom: 0.4rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.site-footer {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    background: var(--emerald-950);
    padding: 4rem 0 1.2rem;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background:
        linear-gradient(30deg, transparent 38%, var(--gold-500) 39%, transparent 40%),
        linear-gradient(150deg, transparent 38%, var(--white) 39%, transparent 40%);
    background-size: 60px 60px;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand:hover {
    color: var(--gold-200);
}

.footer-brand img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    border: 2px solid var(--gold-500);
    background: var(--white);
    padding: 0.3rem;
}

.footer-brand span {
    display: grid;
}

.footer-brand strong {
    color: var(--white);
    font-size: 1.1rem;
}

.footer-brand small {
    color: var(--gold-200);
    font-weight: 700;
}

.footer-text {
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
}

.footer-contact {
    display: grid;
    gap: 0.55rem;
}

.footer-contact a,
.footer-links a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--gold-200);
}

.footer-contact i {
    color: var(--gold-500);
    margin-right: 0.4rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.whatsapp-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 150;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: #25d366;
    border-radius: 50%;
    font-size: 1.85rem;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.28);
    animation: whatsappPulse 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

@keyframes glowPulse {
    0%,
    100% {
        transform: translateY(0) rotate(-12deg);
        opacity: 0.86;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes floatBook {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-18px) rotate(4deg);
    }
}

@keyframes whatsappPulse {
    0%,
    100% {
        box-shadow: 0 16px 32px rgba(37, 211, 102, 0.28);
    }
    50% {
        box-shadow: 0 16px 42px rgba(37, 211, 102, 0.42);
    }
}

@media (max-width: 1199px) {
    .navbar-collapse {
        padding: 1rem 0 1.2rem;
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .main-navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .feature-grid,
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0;
    }

    .teacher-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-inner .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .top-info-bar {
        text-align: center;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .brand-text strong {
        font-size: 0.92rem;
    }

    .section {
        padding: 4rem 0;
    }

    .page-hero {
        min-height: 280px;
        padding: 4rem 0;
    }

    .feature-grid,
    .course-grid,
    .pricing-grid,
    .values-grid,
    .course-mini-grid,
    .split-cards {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-actions .btn,
    .form-actions .btn {
        width: 100%;
    }

    .crescent-glow {
        width: 78px;
        height: 78px;
        border-width: 12px;
        right: 5%;
        top: 7%;
    }

    .crescent-glow::after {
        width: 64px;
        height: 64px;
        left: 16px;
        top: -7px;
    }

    .floating-book {
        display: none;
    }

    .benefit-row span {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, 1320px);
    }

    .hero-copy h1 {
        font-size: 2.7rem;
    }

    .hero-feature-card,
    .contact-panel,
    .contact-form,
    .icon-card,
    .premium-card,
    .course-card,
    .price-card,
    .teacher-card,
    .testimonial-card,
    .value-card {
        border-radius: 12px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .top-info-bar,
    .main-navbar,
    .whatsapp-float,
    .cta-band,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .page-hero,
    .hero-section,
    .site-footer {
        background: #fff !important;
        color: #000;
    }

    h1,
    h2,
    h3,
    p,
    a {
        color: #000 !important;
    }

    .section {
        padding: 1.5rem 0;
    }

    .icon-card,
    .course-card,
    .price-card,
    .teacher-card,
    .testimonial-card,
    .narrow-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
