/* ============================================================
   FINSBACK SCUBA — Main Stylesheet
   ============================================================ */

:root {
    --color-primary: #00b4d8;
    --color-primary-dark: #0096c7;
    --color-accent: #90e0ef;
    --color-dark: #03045e;
    --color-dark-mid: #023e8a;
    --color-bg: #020b18;
    --color-bg-card: #0a1628;
    --color-bg-card-hover: #0d1f38;
    --color-text: #e0f4ff;
    --color-text-muted: #94b4c8;
    --color-white: #ffffff;
    --color-border: rgba(0, 180, 216, 0.2);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --nav-height: 80px;
    --transition: 0.3s ease;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.tag-light { color: var(--color-accent); border-color: var(--color-accent); }

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.text-white { color: var(--color-white) !important; }
.text-light-muted { color: rgba(224, 244, 255, 0.8); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.btn-outline-teal {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-teal:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== LAYOUT ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(2, 11, 24, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    line-height: 1;
}
.nav-logo-img {
    height: 33px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
}
.footer-logo-img {
    height: 33px;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
    text-transform: uppercase;
}
.nav-links li a:hover { color: var(--color-primary); }

.nav-cta {
    background: var(--color-primary) !important;
    color: var(--color-dark) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}
.nav-cta:hover { background: var(--color-primary-dark) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #020b18 0%, #023e8a 50%, #0096c7 100%);
    overflow: hidden;
}

/* YouTube IFrame Player — fills wrapper, acts as background */
#hero-yt-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Ensures full coverage regardless of window aspect ratio */
    width: 100vw;
    height: 56.25vw;   /* 16:9 ratio based on width */
    min-height: calc(100vh + 120px);
    min-width: 177.78vh; /* 16:9 ratio based on height */
    pointer-events: none;
}

/* YouTube adds its own iframe — target it */
#hero-yt-player iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2, 11, 24, 0.3) 0%,
        rgba(2, 11, 24, 0.5) 50%,
        rgba(2, 11, 24, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title-line {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-white);
    font-size: 0.45em;
    margin-bottom: 0.2em;
}

.hero-title-accent {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(224, 244, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease 1s both;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ===== STATS BAR ===== */
.stats-bar {
    padding: 0;
    background: var(--color-dark-mid);
    border-top: 1px solid rgba(0, 180, 216, 0.3);
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--color-bg); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.about-highlights {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.highlight-item i { font-size: 1rem; }

.about-image {
    position: relative;
    height: 500px;
}

.about-img-main {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-card);
}

.about-img-main img, .about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 220px;
    height: 170px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 4px solid var(--color-bg);
    box-shadow: var(--shadow);
    background: var(--color-bg-card);
}

/* Placeholder for missing images */
.img-placeholder {
    background: linear-gradient(135deg, #0a1628, #023e8a) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder::after {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.about-img-main.img-placeholder::after { content: 'Instructor underwater'; }
.about-img-accent.img-placeholder::after { content: 'Course'; font-size: 0.65rem; }

/* ===== COURSES SECTION ===== */
.courses-section { background: var(--color-bg-card); }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.course-featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #0a1628, #023e8a);
}

.course-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 0 0 8px 8px;
}

.course-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.course-level {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

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

.course-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex: 1;
}

.course-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.course-features li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.course-features li i { color: var(--color-primary); font-size: 0.75rem; }

/* ===== COMMERCIAL SECTION ===== */
.commercial-section {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.commercial-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #020b18 0%, #023e8a 60%, #0096c7 100%);
    z-index: 0;
}

.commercial-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,180,216,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.commercial-section .section-container { position: relative; z-index: 1; }

.commercial-content { max-width: 700px; }

.commercial-text p { color: rgba(224, 244, 255, 0.8); margin-bottom: 2rem; }

.commercial-services {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.service-item > i {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 28px;
}

.service-item h4 {
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 0.2rem;
}

.service-item p {
    font-size: 0.85rem;
    color: rgba(224, 244, 255, 0.7);
    margin: 0;
}

/* ===== WHY SECTION ===== */
.why-section { background: var(--color-bg); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.why-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

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

.why-card h3 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== GALLERY SECTION ===== */
.gallery-section { background: var(--color-bg-card); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0.75rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0a1628, #023e8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item.gallery-large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.gallery-note i { color: var(--color-primary); margin-right: 0.3rem; }

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section { background: var(--color-bg); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-card > p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

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

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-white);
}
.testimonial-author span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--color-bg-card); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.contact-item i {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 0.15rem;
    width: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-white);
    margin-bottom: 0.15rem;
}
.contact-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(148, 180, 200, 0.5);
}

.form-group select option { background: var(--color-bg-card); }

/* ===== FOOTER ===== */
.site-footer {
    background: #010912;
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
}

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

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 180, 216, 0.1);
}

.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-links ul li,
.footer-courses ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul li a,
.footer-courses ul li a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-links ul li a:hover,
.footer-courses ul li a:hover {
    color: var(--color-primary);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

.footer-contact ul li i {
    color: var(--color-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root { --nav-height: 70px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(2, 11, 24, 0.98);
        backdrop-filter: blur(12px);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }

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

    .about-content { grid-template-columns: 1fr; }
    .about-image { height: 300px; }
    .about-img-accent { display: none; }

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

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

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.gallery-large { grid-column: span 2; }

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

    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    section { padding: 4rem 0; }

    .courses-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    .stats-container { grid-template-columns: 1fr 1fr; }

    .footer-container { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }

    .contact-form-wrapper { padding: 1.5rem; }
}

/* ===== BLOG — SHARED CARDS ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(0, 180, 216, 0.25);
}
.blog-card-thumb {
    display: block;
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #0a1628;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}
.blog-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #051020);
}
.blog-card-thumb--placeholder .fas {
    font-size: 3rem;
    color: rgba(0, 180, 216, 0.3);
}
.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 20px;
}
.blog-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.65rem;
}
.blog-card-meta .fas {
    margin-right: 4px;
    color: var(--color-primary);
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.65rem;
}
.blog-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--color-primary); }
.blog-card-excerpt {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}
.blog-card-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    margin-top: auto;
}
.blog-card-read-more:hover { gap: 10px; }

/* ===== BLOG — HOMEPAGE TEASER ===== */
.blog-teaser-section { background: var(--color-bg); padding: 6rem 0; }
.blog-teaser-cta { text-align: center; margin-top: 3rem; }

/* ===== BLOG — LISTING PAGE ===== */
.blog-listing-page { background: var(--color-bg); min-height: 100vh; }
.blog-hero {
    padding: 9rem 0 5rem;
    background: linear-gradient(180deg, #020b18 0%, #051020 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0,180,216,0.1);
}
.blog-hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}
.blog-archive-section { padding: 5rem 0; }
.blog-empty {
    text-align: center;
    padding: 5rem 0;
    color: rgba(255,255,255,0.4);
}
.blog-empty .fas { font-size: 3rem; color: rgba(0,180,216,0.2); margin-bottom: 1rem; }
.blog-empty h3 { color: #fff; margin-bottom: 0.5rem; }
.blog-empty p { margin-bottom: 2rem; }
.blog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}
.blog-pagination .nav-links { display: flex; gap: 0.5rem; align-items: center; }
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}
.blog-pagination .prev,
.blog-pagination .next { width: auto; padding: 0 16px; gap: 6px; }

/* ===== SINGLE POST ===== */
.single-post-page { background: var(--color-bg); min-height: 100vh; }

.single-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background: linear-gradient(180deg, #020b18 0%, #051020 100%);
    overflow: hidden;
}
.single-hero--has-image { padding: 10rem 0 6rem; }
.single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.35);
    transform: scale(1.05);
}
.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,11,24,0.5) 0%, rgba(2,11,24,0.85) 100%);
}
.single-hero-content { position: relative; z-index: 1; }
.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}
.single-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.single-breadcrumb a:hover { color: var(--color-primary); }
.single-breadcrumb .fas { font-size: 0.6rem; }
.single-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.single-meta .fas { margin-right: 5px; color: var(--color-primary); }
.single-category {
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 20px;
}
.single-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    line-height: 1.25;
    max-width: 800px;
    margin: 0;
}

.single-content-section { padding: 5rem 0; }
.single-content-wrap { max-width: 780px; }
.single-content {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.85;
}
.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin: 2rem 0 0.75rem;
}
.single-content p { margin-bottom: 1.4rem; }
.single-content img {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
}
.single-content a { color: var(--color-primary); }
.single-content blockquote {
    border-left: 3px solid var(--color-primary);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: rgba(0,180,216,0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.65);
}
.single-content ul, .single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}
.single-content li { margin-bottom: 0.4rem; }

.single-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
.single-tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.single-tag:hover {
    background: rgba(0,180,216,0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.single-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.single-post-nav a:hover {
    border-color: rgba(0,180,216,0.3);
    background: rgba(0,180,216,0.05);
}
.single-post-nav a span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
}
.single-post-nav a strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}
.single-post-nav-next a { text-align: right; }

.single-related-section {
    padding: 4rem 0 6rem;
    background: #020b18;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.single-related-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2rem;
}
.single-related-title span { color: var(--color-primary); }

/* responsive blog */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .single-post-nav { grid-template-columns: 1fr; }
    .single-post-nav-next a { text-align: left; }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.fab-whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    color: #fff;
}
.fab-whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #111;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #111;
}
.fab-whatsapp-float:hover .fab-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 480px) {
    .fab-whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    .fab-whatsapp-tooltip { display: none; }
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: #020b18;
}
.newsletter-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 150, 199, 0.08) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300b4d8' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.newsletter-text {
    color: rgba(255,255,255,0.75);
}
.newsletter-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.newsletter-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.newsletter-perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.newsletter-perks li .fa-check-circle {
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.newsletter-form-wrap {
    display: flex;
    justify-content: center;
}
.newsletter-form {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.newsletter-form h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 0.4rem;
}
.newsletter-form > p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin: 0 0 1.75rem;
}
.newsletter-form > p strong {
    color: var(--color-primary);
}
.nl-field {
    margin-bottom: 1.1rem;
}
.nl-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.45rem;
}
.nl-field label span {
    color: var(--color-primary);
}
.nl-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.nl-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 180, 216, 0.07);
}
.nl-field input::placeholder {
    color: rgba(255,255,255,0.25);
}
.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.95rem 1.5rem;
}
.nl-response {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.nl-response.success {
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--color-primary);
}
.nl-response.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.nl-privacy {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    margin-top: 1rem;
    margin-bottom: 0;
}
.nl-privacy .fas {
    font-size: 0.7rem;
    margin-right: 3px;
}
@media (max-width: 900px) {
    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .newsletter-form-wrap {
        justify-content: stretch;
    }
    .newsletter-form {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .newsletter-form {
        padding: 1.75rem 1.25rem;
    }
}

/* ===== MOBILE SUPPLEMENTS ===== */

/* --- Tablet (≤768px) additions not already covered --- */
@media (max-width: 768px) {
    /* Step section padding down from 6rem */
    section { padding: 5rem 0; }

    /* Mobile nav menu needs a stacking context */
    .nav-menu { z-index: 999; }

    /* About: reduce gap when stacked */
    .about-content { gap: 2.5rem; }
    .about-image { height: 260px; }

    /* Section header: less bottom margin */
    .section-header { margin-bottom: 2.5rem; }

    /* Blog & single-post hero: too tall at default */
    .blog-hero { padding: 7rem 0 3.5rem; }
    .single-hero { padding: 7rem 0 3.5rem; }
    .single-hero--has-image { padding: 7rem 0 3.5rem; }

    /* Inner content sections */
    .blog-archive-section { padding: 3.5rem 0; }
    .single-content-section { padding: 3.5rem 0; }
    .single-related-section { padding: 3rem 0 4.5rem; }

    /* Blog teaser on homepage */
    .blog-teaser-section { padding: 5rem 0; }

    /* Newsletter */
    .newsletter-section { padding: 5rem 0; }

    /* Commercial section */
    .commercial-section { padding: 5rem 0; }

    /* Testimonials: 2-col at tablet before going to 1-col */
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer: tighten gap between columns */
    .footer-container { gap: 1.5rem; }
}

/* --- Phone (≤480px) additions --- */
@media (max-width: 480px) {
    /* Tighter horizontal padding */
    .section-container { padding: 0 1rem; }
    .navbar { padding: 0 1rem; }

    /* Gallery: go to full single column */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.gallery-large { grid-column: span 1; aspect-ratio: 4/3; }

    /* Hero buttons: stack and widen */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Reduce blog/single hero padding further */
    .blog-hero { padding: 6rem 0 3rem; }
    .single-hero, .single-hero--has-image { padding: 6rem 0 3rem; }
    .single-content-section { padding: 2.5rem 0; }
    .single-related-section { padding: 2.5rem 0 3.5rem; }

    /* Testimonials: 1-col */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Stats: slightly smaller numbers */
    .stat-number { font-size: 1.8rem; }
    .stats-container { gap: 1.25rem; padding: 2rem 1rem; }

    /* Section header tighter */
    .section-header { margin-bottom: 2rem; }

    /* Courses: reduce card padding */
    .course-card { padding: 1.5rem; }

    /* Why cards: reduce padding */
    .why-card { padding: 1.5rem; }

    /* Single post nav: full width */
    .single-post-nav a { padding: 0.85rem 1rem; }

    /* Blog card thumb height */
    .blog-card-thumb { height: 180px; }

    /* Footer columns */
    .footer-container { padding: 0 1rem 2rem; }
}

/* --- Small phones (≤360px) --- */
@media (max-width: 360px) {
    .section-container { padding: 0 0.85rem; }
    .navbar { padding: 0 0.85rem; }
    .stats-container { gap: 0.75rem; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.72rem; }
    .section-title { font-size: clamp(1.5rem, 7vw, 1.8rem); }
    .course-card, .why-card { padding: 1.25rem; }
}
