﻿/* ========================================
   Global NCLEX Prep - Modern Minimalist
   Fonts: Newsreader (serif/headlines), Manrope (body/labels)
   Palette: Deep navy (#000f4d), surface (#f8f9fa)
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    background: #f8f9fa;
    color: #191c1d;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utilities ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}
.nav-logo {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
}
.nav-list {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}
.nav-link:hover { color: #000f4d; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    z-index: 210;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu .mobile-nav-link {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    color: #000f4d;
    transition: opacity 0.3s;
}
.mobile-menu .mobile-nav-link:hover { opacity: 0.6; }

/* ---------- Language Selector ---------- */
.language-selector { position: relative; }
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #000f4d;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
}
.language-toggle:hover { transform: scale(0.97); }
.lang-dropdown-arrow {
    font-size: 0.5rem;
    transition: transform 0.3s;
}
.language-toggle.active .lang-dropdown-arrow {
    transform: rotate(180deg);
}
.language-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 0.35rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s;
    z-index: 200;
}
.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
    color: #191c1d;
}
.language-option:hover { background: #f1f5f9; }
.lang-check { margin-left: auto; opacity: 0; color: #000f4d; font-weight: 700; }
.language-option.active .lang-check { opacity: 1; }

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f8f9fa 0%, #eef0f8 50%, #e8ebf5 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 3rem 0;
}
.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    background: #dde1ff;
    color: #000f4d;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #000f4d;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-title em {
    display: block;
    font-style: italic;
}
.hero-subtitle {
    font-size: 1rem;
    color: #43474f;
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0.6rem;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
}
.btn-hero {
    background: linear-gradient(135deg, #000f4d, #001f7e);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0,15,77,0.2);
}
.btn-hero:hover {
    box-shadow: 0 12px 32px rgba(0,15,77,0.3);
    transform: translateY(-2px);
}
.btn-submit {
    background: #000f4d;
    color: #fff;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 24px rgba(0,15,77,0.15);
    border: none;
}
.btn-submit:hover {
    transform: scale(1.02);
    background: #001f7e;
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Sections ---------- */
.section {
    padding: 3.5rem 0;
}
.section-dark {
    background: #0f172a;
    color: #fff;
}
.section-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #000f4d;
    margin-bottom: 0.5rem;
}
.section-dark .section-label { color: #b9c3ff; }
.section-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #000f4d;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}
.section-title em { font-style: italic; }
.section-dark .section-title { color: #fff; }
.section-subtitle {
    font-size: 0.95rem;
    color: #43474f;
    max-width: 560px;
    line-height: 1.6;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ---------- About / Features Section ---------- */
.about-section {
    position: relative;
    background: #f8f9fa;
}
.about-header {
    margin-bottom: 2rem;
    max-width: 580px;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.feature-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0,15,77,0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(0,15,77,0.1);
}
.feature-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.25rem;
}
.feature-number {
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.feature-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    color: #000f4d;
    line-height: 1.2;
}
.feature-content p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
}

/* Card variants */
.feature-card--accent {
    background: #000f4d;
    border-color: transparent;
}
.feature-card--accent:hover {
    box-shadow: 0 12px 32px -8px rgba(0,15,77,0.3);
}
.feature-card--accent .feature-number { color: rgba(255,255,255,0.3); }
.feature-card--accent .feature-content h3 { color: #fff; }
.feature-card--accent .feature-content p { color: rgba(255,255,255,0.6); }

/* ---------- Topics Grid ---------- */
.topics-header {
    margin-bottom: 1.5rem;
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.topic-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.4s, transform 0.4s;
}
.topic-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.topic-card h4 {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    color: #000f4d;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.topic-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.topic-card li {
    font-size: 0.8rem;
    color: #43474f;
    padding-left: 1rem;
    position: relative;
    line-height: 1.45;
}
.topic-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000f4d;
}

/* ---------- Testimonials ---------- */
.section-dark .section-title { color: #fff; }
.section-label--light {
    color: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.15);
}
.testimonials-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.testimonial-carousel {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}
.testimonial-track {
    position: relative;
    overflow: hidden;
}
.testimonial-card {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.04);
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s ease, visibility 0.5s, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.testimonial-card.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.testimonial-quote-icon {
    color: #6780ff;
    opacity: 0.5;
    line-height: 1;
}
.testimonial-text {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.65;
    color: #e2e8f0;
    letter-spacing: 0.005em;
}
.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f6df5, #000f4d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    flex-shrink: 0;
}
.author-name {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.3;
}
.author-badge {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.15rem;
}

/* Controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
}
.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.testimonial-dot.active {
    background: #6780ff;
    box-shadow: 0 0 8px rgba(103,128,255,0.4);
    transform: scale(1.2);
}
.testimonial-nav {
    display: flex;
    gap: 0.5rem;
}
.testimonial-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.testimonial-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* ---------- Contact Form ---------- */
.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}
.contact-header .section-subtitle {
    margin: 0 auto;
}
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}
.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.6rem 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: #191c1d;
    transition: border-color 0.3s;
    outline: none;
    border-radius: 0;
}
.form-control:focus {
    border-bottom-color: #000f4d;
}
.form-control::placeholder {
    color: #cbd5e1;
}
textarea.form-control {
    resize: none;
    min-height: 60px;
}
.form-submit-row {
    text-align: center;
    padding-top: 1rem;
}
.error-message {
    display: block;
    font-size: 0.7rem;
    color: #ba1a1a;
    margin-top: 0.25rem;
    min-height: 0.85rem;
}
.form-error {
    border-bottom-color: #ba1a1a !important;
}
.form-status {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    min-height: 1rem;
}
.form-error-message { color: #ba1a1a; }
.form-success-message { color: #16a34a; }

/* ---------- Footer ---------- */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-logo {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #0f172a;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 560px;
}
.footer-disclaimer strong { color: #000f4d; }
.footer-copy {
    font-size: 0.6rem;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-langs {
    font-size: 0.75rem;
    color: #94a3b8;
}
.footer-langs strong {
    color: #000f4d;
    font-weight: 600;
}

/* ---------- RTL Support ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-list { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .topic-card li { padding-left: 0; padding-right: 1rem; }
[dir="rtl"] .topic-card li::before { left: auto; right: 0; }
[dir="rtl"] .language-menu { right: auto; left: 0; }
[dir="rtl"] .testimonial-footer { flex-direction: row-reverse; }
[dir="rtl"] .contact-header { text-align: center; }
[dir="rtl"] .mobile-menu { direction: rtl; }

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-list { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .hero { min-height: 60vh; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* iPad portrait */
@media (max-width: 768px) {
    .section { padding: 2.5rem 0; }
    .hero { min-height: auto; }
    .hero-content { padding: 2.5rem 0; }
    .hero-subtitle { max-width: 100%; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
    .section { padding: 2rem 0; }
    .hero-content { padding: 2rem 0; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .topics-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 1.25rem; }
    .topic-card { padding: 1.25rem; }
    .testimonial-text { font-size: 1rem; }
    .testimonial-card { padding: 1.5rem 1.25rem; }
    .testimonial-controls { flex-direction: column; gap: 1rem; }
    .testimonial-dots { justify-content: center; }
    .testimonial-nav { justify-content: center; }
    .nav { padding: 0.75rem 0; }
    .nav-logo { font-size: 1.15rem; }
    .language-toggle {
        padding: 0.4rem 0.7rem;
        font-size: 0.6rem;
    }
    .mobile-menu .mobile-nav-link { font-size: 1.35rem; }
    footer { padding: 1.5rem 0; }
}
