/* ==========================================================================
   Shikaku Japanese Language School - Phase 1 Stylesheet
   Faithfully matching https://shikakujapanese.online/
   Reference: Astra theme + Elementor, DM Sans 400/700, Forum 400
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Forum&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS Custom Properties — matching reference site colours
   #536942 primary green, #ffd936 accent yellow, #000 text
   ========================================================================== */
:root {
    --font-body:    'DM Sans', 'Noto Sans Bengali', sans-serif;
    --font-heading: 'Forum', serif;

    --green:        #536942;           /* --ast-global-color-2  */
    --green-dark:   #3d5030;
    --green-nav:    #1c2e22;
    --yellow:       #ffd936;           /* --ast-global-color-0  */
    --yellow-hover: #dab200;           /* --ast-global-color-1  */
    --bg-light:     #f6f8f5;           /* --ast-global-color-4  */
    --text-dark:    #222222;
    --text-muted:   #555555;
    --text-light:   #888888;
    --white:        #ffffff;
    --border:       #e8e8e8;

    /* Spacing */
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7em;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==========================================================================
   Header & Navigation
   Reference: transparent on home, dark #1c2e22 on sub-pages
   Nav items: DM Sans 400, ~15px, white
   ========================================================================== */
.site-header {
    position: relative;
    background-color: var(--green-nav);
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    transition: var(--transition);
}

.site-header.solid-header {
    position: relative;
    background-color: var(--green-nav);
    padding: 14px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-logo img {
    width: 56px;
    height: auto;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Navigation links — reference: DM Sans, 15px, font-weight 500, white */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-navigation a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--yellow);
}

.main-navigation a.active {
    color: var(--yellow);
    font-weight: 600;
}

.main-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--yellow);
    border-radius: 2px;
}

/* Auth buttons in nav */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Register button: yellow background, dark text — matches reference CTA style */
.btn-auth-register {
    background-color: var(--yellow);
    color: #111111;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-auth-register:hover {
    background-color: var(--yellow-hover);
    color: #000000;
}

/* Profile menu container & trigger */
.profile-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.profile-btn-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    line-height: 1.2;
}

.profile-btn-trigger:hover,
.profile-btn-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.55);
}

.solid-header .profile-btn-trigger {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.solid-header .profile-btn-trigger:hover,
.solid-header .profile-btn-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.profile-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.profile-btn-trigger[aria-expanded="true"] .profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 8px 0;
    z-index: 1050;
    animation: dropdownFadeIn 0.15s ease-out;
}

.profile-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-user-header {
    padding: 10px 16px 8px;
}

.dropdown-user-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    margin-top: 4px;
}

.badge-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 12px;
}

.badge-role-admin {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-role-student {
    background-color: #e6f4ea;
    color: var(--green);
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f3f5;
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #333333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--green);
}

.dropdown-logout-form {
    margin: 0;
}

.dropdown-logout-btn {
    color: #dc2626;
}

.dropdown-logout-btn:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--green-nav);
    z-index: 1002;
    padding: 28px 22px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-body);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: var(--yellow);
    padding-left: 4px;
}

.mobile-nav-links a.active {
    color: var(--yellow);
    font-weight: 600;
}

.mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Mobile drawer profile dropdown */
.mobile-drawer .profile-dropdown-wrap {
    width: 100%;
}

.mobile-drawer .profile-btn-trigger {
    width: 100%;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff;
}

.mobile-drawer .profile-dropdown-menu {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    margin-top: 8px;
    border-radius: 6px;
}

.mobile-drawer .dropdown-user-name {
    color: #ffffff;
}

.mobile-drawer .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-drawer .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--yellow);
}

.mobile-drawer .dropdown-divider {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-drawer .dropdown-logout-btn {
    color: #fca5a5;
}

.mobile-drawer .dropdown-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

/* ==========================================================================
   Home Hero
   Reference: "Shikaku" at ~117px (desktop), "Japanese Language" ~50px,
              "Build Your Drime" 16px,  button 14px
   Responsiveness: 98px → 72px → 42px
   ========================================================================== */
.hero-home {
    position: relative;
    min-height: 560px;
    /* Focal point: sky & school scene — centre stays balanced on all widths */
    background: url('/assets/images/Shikaku_Japanese_Banner_1140x555_no_text_under_1MB-1.jpg') center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 85px 20px 85px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* "Shikaku" — reference elementor inline style: font-size 117px, letter-spacing -3px, white */
.hero-title {
    font-family: var(--font-body);
    font-size: 117px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 8px;
    letter-spacing: -3px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* "Japanese Language" — reference: 50px, white, letter-spacing -3px */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 50px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

/* "Build Your Drime" — reference: 16px, white */
.hero-tagline {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 24px;
    margin-bottom: 28px;
}

/* "Join Out Course" — reference button: 14px, yellow, padding 17px 40px */
.btn-primary-yellow {
    display: inline-block;
    background-color: var(--yellow);
    color: #222222;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    padding: 17px 40px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-yellow:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   Page Sub-Banners (About, Services, Contact)
   Reference desktop banner height: 420px for all three sub-pages
   Overlay tailored individually:
   - About: 0.58 dark (matches reference 74 brightness perfectly)
   - Services: 0.35 dark (preserves student group & table)
   - Contact: 0.32 dark (preserves landscape & sky)
   ========================================================================== */
.page-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 40px;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
}

.banner-about {
    background-image: url('/assets/images/Questions_Banner_16x9_under_1MB_final.jpg');
    /* People / subject sits at bottom of this image — keep bottom-anchored */
    background-position: center bottom;
}

.banner-about::before {
    background: rgba(0, 0, 0, 0.28);
}

.banner-services {
    background-image: url('/assets/images/Our_Services_Banner_16x9_under_1MB.jpg');
    /* Student group is centred horizontally and slightly above mid */
    background-position: center 45%;
}

.banner-services::before {
    background: rgba(0, 0, 0, 0.35);
}

.banner-contact {
    background-image: url('/assets/images/contact-hero-1.jpg');
    /* Landscape/sky — anchor slightly above centre so horizon stays visible */
    background-position: center 40%;
}

.banner-contact::before {
    background: rgba(0, 0, 0, 0.32);
}

/* Blog pages reuse the services image but with its own class for focal control */
.banner-blog {
    background-image: url('/assets/images/Our_Services_Banner_16x9_under_1MB.jpg');
    background-position: center 35%;
}

.banner-blog::before {
    background: rgba(0, 0, 0, 0.42);
}

/* Contact: "contact us" — reference: h1, 76px, white, Forum, letter-spacing -3px */
.page-banner-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 76px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -3px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    padding: 0 16px;
}

/* Services / About Bangla title — reference: 58px, DM Sans */
.page-banner-title.bangla-title {
    font-family: var(--font-body);
    font-size: 58px;
    font-weight: 400;
    letter-spacing: -1px;
}

/* Blog article title inside banner — smaller for long titles */
.page-banner-title.blog-article-title {
    font-family: var(--font-body);
    font-size: clamp(18px, 3.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.35;
    max-width: 860px;
    margin: 0 auto;
    text-transform: none;
}

/* ==========================================================================
   Home — Our Services Section
   Reference: "Our Services" h2, DM Sans, 40px, green, letter-spacing -2px
   Service card titles: h3, DM Sans, 20px, font-weight 400
   ========================================================================== */
.section-services-grid {
    padding: 90px 0 70px;
    background-color: #ffffff;
}

.section-header-center {
    text-align: center;
    margin-bottom: 52px;
}

/* "Our Services" heading — reference: Forum font would look like h2 38px Forum on desktop */
.section-title-forum {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--green);
    line-height: 1.3em;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title-forum::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--yellow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}

.service-card {
    background: #ffffff;
    text-align: center;
    transition: var(--transition);
}

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

.service-card-img-wrap {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img-wrap img {
    transform: scale(1.03);
}

/* Service card label — reference hfe-infocard-title: ~17px, DM Sans, color #536942 at ~80% opacity */
.service-card-title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    color: rgba(83, 105, 66, 0.85);
    line-height: 1.4;
    margin-top: 8px;
}

/* ==========================================================================
   Home — About Preview Section
   "🌸আমাদের সম্পর্কে" — h3-like, DM Sans, ~22px bold
   Body paragraph — DM Sans 16px, line-height 1.85, #555
   "Find Out More" button — transparent border, 15px
   ========================================================================== */
.section-about-preview {
    padding: 75px 0 95px;
    background-color: #ffffff;
}

.about-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-preview-text {
    flex: 1;
    max-width: 480px;
}

/* Reference "🌸আমাদের সম্পর্কে" — small bold heading, greenish, ~21px */
.about-preview-title {
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

/* Body text under preview title — reference: 16px, #555, line-height 1.8 */
.about-preview-desc {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85em;
    color: #555555;
    margin-bottom: 26px;
}

/* "Find Out More" — transparent border button, reference: 15px, green border, DM Sans */
.btn-outline-dark {
    display: inline-block;
    border: 1px solid #536942;
    background: transparent;
    color: #536942;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    padding: 16px 36px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background-color: #536942;
    border-color: #536942;
    color: #ffffff;
}

.about-preview-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-preview-media img {
    max-width: 420px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Home — Questions / Contact Section
   Reference: "কোনো প্রশ্ন আছে?" — h1, 58px, red #EA0000
   Subtitle text: 17px, #BE00A6 / #721C3E
   "Let's Talk Now" button: yellow, 14px
   ========================================================================== */
.section-home-questions {
    position: relative;
    padding: 100px 20px;
    background: url('/assets/images/Questions_Banner_1140x550_under_1MB.jpg') center center / cover no-repeat;
    text-align: center;
}

.section-home-questions::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
}

.home-questions-box {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* "কোনো প্রশ্ন আছে?" — reference h1, 58px, #EA0000 */
.questions-heading {
    font-family: var(--font-body);
    font-size: 58px;
    font-weight: 400;
    color: #EA0000;
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -2px;
}

/* First subtitle text — reference: 17px, #BE00A6, line-height 32px */
.questions-desc {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    color: #BE00A6;
    margin-bottom: 10px;
}

/* Second subtitle text — reference: 15px, slightly lighter */
.questions-subdesc {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: #721C3E;
    margin-bottom: 26px;
    line-height: 1.7;
}

/* ==========================================================================
   About Page Styles
   Reference: 
     h1 main: "🌸 আমাদের সম্পর্কে — About Us" — 30px DM Sans (content heading)
     h2 section headings: "🎓 আমাদের লক্ষ্য" etc. — 25px, DM Sans, #536942
     h3 sub: "💻 Online Japanese Class" — 20px, DM Sans, #333
     Paragraphs: 16px, DM Sans, 1.85 line-height, #444
   ========================================================================== */
.about-content-section {
    padding: 70px 0 90px;
    background-color: #ffffff;
}

.about-article {
    max-width: 920px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 44px;
    padding-bottom: 36px;
    border-bottom: 1px solid #f0f0f0;
}

.about-block:last-child {
    border-bottom: none;
}

/* Block heading — reference: h1 in content ~30px DM Sans, green color */
.about-block-title {
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 400;
    color: var(--green);
    margin-bottom: 18px;
    line-height: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sub heading within blocks — reference: h3 ~20px DM Sans */
.about-subheading {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: #333333;
    margin: 14px 0 10px;
    line-height: 1.3em;
}

/* Body paragraphs — reference: 16px, #444, 1.85 line-height */
.about-paragraph {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85em;
    color: #444444;
    margin-bottom: 16px;
}

.about-paragraph strong {
    font-weight: 600;
    color: #333333;
}

/* Bullet list — reference: normal body size, indented */
.about-bullet-list {
    list-style: none;
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.about-bullet-list li {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7em;
    color: #444444;
    padding-left: 18px;
    position: relative;
}

.about-bullet-list li::before {
    content: '•';
    color: var(--green);
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -1px;
}

/* Service items on about page — h3 sub-service titles */
.about-service-item {
    margin-bottom: 18px;
}

.about-service-item h4 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.about-service-item p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 1.75em;
}

/* Quote/highlight box */
.highlight-box {
    background: #fdfaf2;
    border-left: 4px solid var(--yellow);
    padding: 16px 22px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    color: var(--green);
    font-weight: 600;
    line-height: 1.7;
}

/* Workflow steps — e.g. "Hiragana → Katakana → …" */
.workflow-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f7f9f7;
    padding: 14px 20px;
    border-radius: 6px;
    margin: 16px 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
    line-height: 1.5;
}

.workflow-arrow {
    color: var(--yellow-hover);
    font-weight: bold;
}

/* ==========================================================================
   Services Page Styles
   Reference:
     Banner: "Our Course" h1 76px Forum white
     N5 desc: 15px DM Sans, line-height 30px
     "🎯 আমাদের JLPT N5 কোর্সে যা থাকছে" — h3 ~23px, letter-spacing -1px
     "Graphic Design" h4 — Forum, 35px, green, letter-spacing -1px
     Bullet list: 15.5px
     "From 10000 TAKA" — h3 ~34px, letter-spacing -1px
     "Start a Project" button: 14px, border, 15px 30px padding
   ========================================================================== */
.services-content-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.course-row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 90px;
    padding-bottom: 80px;
    border-bottom: 1px solid #f0f0f0;
}

.course-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.course-poster {
    flex: 0 0 420px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.course-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.course-details {
    flex: 1;
}

/* "Graphic Design" heading (N4 course) — reference: h4, Forum, 35px, green, letter-spacing -1px */
.course-heading-forum {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 400;
    color: var(--green);
    margin-bottom: 16px;
    line-height: 1.2em;
    letter-spacing: -1px;
}

/* Course description body — reference: 15px, DM Sans, line-height 30px */
.course-summary {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 30px;
    color: #444444;
    margin-bottom: 22px;
}

.course-summary strong {
    font-weight: 600;
    color: #333333;
}

/* "🎯 আমাদের JLPT N5 কোর্সে যা থাকছে" — reference h3, ~23px, letter-spacing -1px */
.course-includes-title {
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 14px;
    line-height: 31px;
    letter-spacing: -1px;
}

/* Course feature list items — reference: 15px */
.course-feature-list {
    list-style: none;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-feature-list li {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.7;
}

/* "From 10000 TAKA" / "From 5000 TAKA" — reference h3, ~34px, letter-spacing -1px, green */
.course-price {
    font-family: var(--font-body);
    font-size: 34px;
    font-weight: 400;
    color: var(--green);
    margin-bottom: 22px;
    letter-spacing: -1px;
    line-height: 40px;
}

/* "Start a Project" — reference: outline button, 14px, green border, padding 15px 30px */
.btn-start-project {
    display: inline-block;
    background: transparent;
    color: #333333;
    border: 1px solid #777777;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    padding: 15px 30px;
    border-radius: 3px;
    transition: var(--transition);
}

.btn-start-project:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

/* ==========================================================================
   Contact Page Styles
   Reference:
     "You can find us at" — h4, Forum, 35px (h4 default), green
     "Let's get in touch" — h4, Forum, 35px, green
     Email/Phone/Location labels — h6, DM Sans, 13px, upper, #888
     Email/Phone/Location values — p, 18px, green, line-height 30px
     "We are optimists who love to work together" — h4, 40px Forum
     Form inputs: 15px, border #d9d9d9
     "Send Message": yellow button, 14px
   ========================================================================== */
.contact-main-section {
    padding: 80px 0 90px;
    background-color: #ffffff;
}

.contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.contact-layout {
    display: flex;
    gap: 70px;
}

.contact-info-col {
    flex: 0 0 380px;
}

.contact-form-col {
    flex: 1;
}

/* "You can find us at" / "Let's get in touch" — reference h4, Forum font, ~40px */
.contact-col-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--green);
    line-height: 1.2em;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.contact-item {
    margin-bottom: 26px;
}

/* Contact labels (EMAIL, PHONE NUMBER, LOCATION) — reference h6: 13px, DM Sans, uppercase */
.contact-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(83, 105, 66, 0.8);
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 18px;
}

/* Contact values — reference: p.elementor-icon-box-description, 18px, green, line-height 30px */
.contact-value {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--green);
    line-height: 30px;
}

.contact-value a {
    color: var(--green);
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--green);
    color: #ffffff;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

/* Form inputs — reference: 15px, #333, border #d9d9d9, background #fafafa */
.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    background-color: #fafafa;
    transition: var(--transition);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(83, 105, 66, 0.10);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
}

/* "Send Message" — reference yellow button, 14px, padding 15px 34px */
.btn-send-message {
    align-self: flex-start;
    background-color: var(--yellow);
    color: #222222;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    padding: 15px 34px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.btn-send-message:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-1px);
}

/* Alert banners */
.alert {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.alert-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* ==========================================================================
   Contact — "We are optimists who love to work together" section
   Reference h4: Forum, 40px, letter-spacing -2px, green color
   ========================================================================== */
.section-optimists {
    padding: 70px 0 100px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
}

.optimists-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* "We are optimists…" — reference h4, Forum, 40px, letter-spacing -2px */
.optimists-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--green);
    line-height: 44px;
    letter-spacing: -2px;
}

.optimists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.optimist-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    aspect-ratio: 1 / 1;
}

.optimist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.optimist-card:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   Public Footer
   Dark green (#1c2e22), white, and yellow (#ffd936) palette
   ========================================================================== */
.site-footer {
    background-color: var(--green-nav, #1c2e22);
    color: #ffffff;
    border-top: 3px solid var(--yellow, #ffd936);
    padding: 55px 0 24px;
}

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

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col {
    min-width: 0;
    overflow-wrap: break-word;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
}

.footer-brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-brand-names {
    display: flex;
    flex-direction: column;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.footer-brand-subtitle {
    font-size: 11.5px;
    color: var(--yellow, #ffd936);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-top: 2px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 480px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: -0.3px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--yellow, #ffd936);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a svg {
    color: var(--yellow, #ffd936);
    transition: transform 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--yellow, #ffd936);
    transform: translateX(4px);
}

.footer-links-list a:hover svg {
    transform: translateX(2px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--yellow, #ffd936);
    flex-shrink: 0;
    margin-top: -2px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--yellow, #ffd936);
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--yellow, #ffd936);
    color: var(--green-nav, #1c2e22);
    transform: translateY(-2px);
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--yellow, #ffd936);
    color: var(--green-nav, #1c2e22);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-footer-cta:hover {
    background-color: var(--yellow-hover, #dab200);
    transform: translateY(-1px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-copyright {
    margin: 0;
}

.footer-developer {
    margin: 0;
}

.footer-developer a {
    color: var(--yellow, #ffd936);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-developer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   Auth Forms (Login & Register)
   ========================================================================== */
.auth-page-wrapper {
    min-height: 80vh;
    padding: 60px 20px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 8px;
    padding: 36px 36px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

/* Auth tabs navigation */
.auth-tabs-nav {
    display: flex;
    background-color: #f1f5f2;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 26px;
    border: 1px solid #e2e8f0;
}

.auth-tab-item {
    flex: 1;
    text-align: center;
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.auth-tab-item:hover {
    color: var(--green);
}

.auth-tab-item.active {
    background-color: #ffffff;
    color: var(--green);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 400;
    color: var(--green);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-card-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

.form-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    margin-bottom: 6px;
    display: block;
}

.auth-btn-submit {
    width: 100%;
    background-color: var(--green);
    color: #ffffff;
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-btn-submit:hover {
    background-color: var(--green-dark);
}

/* "Already have an account? Login" link */
.auth-footer-text {
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    line-height: 1.6;
}

.auth-footer-text a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
}

.auth-footer-text a:hover {
    color: var(--green-dark);
}

/* Password Visibility Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 48px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: var(--green, #0d3b2e);
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-toggle-password:focus-visible {
    outline: 2px solid var(--green, #0d3b2e);
    outline-offset: 2px;
}

/* Dashboard placeholder */
.dashboard-landing {
    padding: 140px 20px 80px;
    min-height: 75vh;
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--green-nav, #1c2e22);
    color: var(--yellow, #ffd936);
    border: 2px solid var(--yellow, #ffd936);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--yellow, #ffd936);
    color: var(--green-nav, #1c2e22);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--yellow, #ffd936);
    outline-offset: 3px;
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    transition: transform 0.2s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Blog Posts Grid & Article Detail Responsive Layout
   ========================================================================== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 30px;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================================================
   Responsive — 992px (tablet)
   ========================================================================== */
@media (max-width: 992px) {
    /* Hero */
    .hero-home {
        min-height: 500px;
        padding: 120px 20px 60px;
        background-position: center 40%;
    }
    .hero-title {
        font-size: 72px;
        letter-spacing: -2px;
    }
    .hero-subtitle {
        font-size: 44px;
        letter-spacing: -2px;
    }

    /* Sub-page banners — tablet: taller for comfort */
    .page-banner {
        min-height: 320px;
        padding: 100px 20px 40px;
    }
    .banner-about {
        background-position: 55% bottom;
    }
    .banner-blog {
        background-position: center 35%;
    }

    /* Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .optimists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog layout */
    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* About preview */
    .about-preview-row {
        flex-direction: column;
        text-align: center;
    }
    .about-preview-title {
        justify-content: center;
    }
    .about-preview-text {
        max-width: 100%;
    }

    /* Services page */
    .course-row {
        flex-direction: column;
        align-items: center;
    }
    .course-poster {
        flex: 0 0 auto;
        max-width: 380px;
        width: 100%;
    }

    /* Contact */
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info-col {
        flex: 0 0 auto;
    }

    /* Nav & Mobile Toggle */
    .main-navigation,
    .auth-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        cursor: pointer;
    }

    /* Footer responsive (Tablet: 2 columns) */
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ==========================================================================
   Mobile Unified Hero Banners (Phone screens <= 768px, including 600px, 390px, 360px)
   TASK 1: ONE unified mobile hero area containing both full image & overlaid text/CTA.
   - No separate solid green text section below the image.
   - 100% full original image composition is visible (no cropping of subjects/faces).
   - Ambient blurred background of the same image provides vertical extension seamlessly.
   - Soft gradient mask transitions the foreground image into the ambient background (no hard seam).
   - Tasteful dark gradient overlay provides rich, readable typography.
   - Page-specific focal positioning ensures text never covers faces or subjects.
   ========================================================================== */
/* ==========================================================================
   Mobile Responsive Banners & Photo Sections (Phone screens <= 768px, including 600px, 390px, 360px)
   Main requirements:
   1. Complete original photo visible edge-to-edge without cropping or stretching (aspect-ratio preservation).
   2. Heading, supporting text, and button kept INSIDE the photo, cleanly scaled and positioned.
   3. Subtle overlays and text-shadows ensure crisp legibility without obscuring the imagery.
   4. Applies to Home Hero, About, Services, Blog, Contact, and both Home lower photo sections.
   ========================================================================== */
@media (max-width: 768px) {
    /* ── 1. Home Hero Banner: Full Uncropped 1140x555 Photo with Overlaid Content ── */
    .hero-home {
        width: 100% !important;
        aspect-ratio: 1140 / 555 !important;
        min-height: unset !important;
        height: auto !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        position: relative !important;
        padding: 8px 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hero-overlay {
        position: absolute !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.28) !important;
        display: block !important;
    }

    .hero-content {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .hero-title {
        font-family: var(--font-body) !important;
        font-size: clamp(18px, 5.6vw, 32px) !important;
        font-weight: 400 !important;
        line-height: 1.05 !important;
        letter-spacing: -0.5px !important;
        color: #ffffff !important;
        margin: 0 0 2px 0 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    }

    .hero-subtitle {
        font-family: var(--font-body) !important;
        font-size: clamp(11px, 3.3vw, 18px) !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.3px !important;
        color: #ffffff !important;
        margin: 0 0 2px 0 !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    }

    .hero-tagline {
        font-family: var(--font-body) !important;
        font-size: clamp(9px, 2.5vw, 12px) !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        margin: 0 0 6px 0 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .hero-home .btn-primary-yellow {
        display: inline-block !important;
        background-color: var(--yellow) !important;
        color: #222222 !important;
        font-family: var(--font-body) !important;
        font-size: clamp(9.5px, 2.5vw, 12px) !important;
        font-weight: 500 !important;
        padding: 4px 14px !important;
        border-radius: 3px !important;
        border: none !important;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
        line-height: 1.25 !important;
    }

    /* ── 2. Sub-Page Banners: Preserved Natural Aspect Ratios & Overlaid Titles ── */
    .page-banner {
        aspect-ratio: 16 / 9 !important;
        min-height: unset !important;
        height: auto !important;
        width: 100% !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 14px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .page-banner::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.3) !important;
        display: block !important;
    }

    .page-banner-title {
        position: relative !important;
        z-index: 2 !important;
        font-family: var(--font-heading, 'Forum', serif) !important;
        font-size: clamp(16px, 5vw, 26px) !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        color: #ffffff !important;
        margin: 0 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        max-width: 600px !important;
    }

    /* About banner (1280x720 16:9) — shows all 4 students, Mt Fuji, and pagoda uncropped */
    .page-banner.banner-about {
        aspect-ratio: 16 / 9 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .banner-about::before {
        background: rgba(0, 0, 0, 0.28) !important;
    }
    .banner-about .page-banner-title {
        font-size: clamp(15px, 4.6vw, 22px) !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        padding: 0 8px !important;
    }

    /* Services banner (1280x720 16:9) — shows student with laptop and right circular vignettes */
    .page-banner.banner-services {
        aspect-ratio: 16 / 9 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .banner-services::before {
        background: rgba(0, 0, 0, 0.3) !important;
    }
    .banner-services .page-banner-title {
        font-size: clamp(18px, 5.6vw, 28px) !important;
        line-height: 1.2 !important;
    }

    /* Blog banner (1280x720 16:9) */
    .page-banner.banner-blog {
        aspect-ratio: 16 / 9 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .banner-blog::before {
        background: rgba(0, 0, 0, 0.35) !important;
    }
    .banner-blog .page-banner-title {
        font-size: clamp(16px, 5vw, 24px) !important;
        line-height: 1.2 !important;
    }
    .banner-blog .page-banner-title.blog-article-title {
        font-family: 'DM Sans', sans-serif !important;
        font-size: clamp(12px, 3.5vw, 17px) !important;
        line-height: 1.35 !important;
        letter-spacing: -0.2px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    /* Contact banner (1920x500 panorama) — complete mountain panorama visible */
    .page-banner.banner-contact {
        aspect-ratio: 1920 / 500 !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        padding: 6px 12px !important;
    }
    .banner-contact::before {
        background: rgba(0, 0, 0, 0.28) !important;
    }
    .banner-contact .page-banner-title {
        font-size: clamp(15px, 4.6vw, 22px) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    /* ── 3. Home Lower Photo Section 1: About Preview ── */
    .section-about-preview {
        padding: 36px 0 !important;
    }
    .about-preview-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .about-preview-text {
        max-width: 100% !important;
    }
    .about-preview-title {
        justify-content: center !important;
        font-size: clamp(18px, 5vw, 22px) !important;
        margin-bottom: 12px !important;
    }
    .about-preview-desc {
        font-size: clamp(13px, 3.6vw, 15px) !important;
        line-height: 1.7 !important;
        margin-bottom: 18px !important;
    }
    .about-preview-media {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .about-preview-media img {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: contain !important;
        border-radius: 6px !important;
        margin: 0 auto !important;
    }

    /* ── 4. Home Lower Photo Section 2: Questions Banner (1140x550) ── */
    .section-home-questions {
        width: 100% !important;
        aspect-ratio: 1140 / 550 !important;
        min-height: unset !important;
        height: auto !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        position: relative !important;
        padding: 6px 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .section-home-questions::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: rgba(255, 255, 255, 0.45) !important;
        display: block !important;
    }
    .home-questions-box {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .questions-heading {
        font-family: var(--font-body) !important;
        font-size: clamp(13px, 3.8vw, 20px) !important;
        font-weight: 700 !important;
        color: #EA0000 !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85) !important;
    }
    .questions-desc {
        font-family: var(--font-body) !important;
        font-size: clamp(8px, 2.2vw, 11px) !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        color: #9c0067 !important;
        margin: 0 0 2px 0 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
    }
    .questions-subdesc {
        font-family: var(--font-body) !important;
        font-size: clamp(7.5px, 2vw, 10px) !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: #5c1632 !important;
        margin: 0 0 5px 0 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85) !important;
    }
    .section-home-questions .btn-primary-yellow {
        display: inline-block !important;
        font-size: clamp(9px, 2.4vw, 11px) !important;
        padding: 3px 12px !important;
        line-height: 1.2 !important;
        border-radius: 3px !important;
        margin: 0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }
}

/* ==========================================================================
   Responsive — 600px (mobile)
   ========================================================================== */
@media (max-width: 600px) {

    .services-grid {
        grid-template-columns: 1fr;
    }
    .optimists-grid {
        grid-template-columns: 1fr;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .about-block-title {
        font-size: 22px;
    }

    .section-title-forum {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .contact-main-section {
        padding: 40px 0 50px;
    }

    .contact-col-title {
        font-size: 26px;
        letter-spacing: -0.8px;
    }

    .course-heading-forum {
        font-size: 26px;
    }

    .course-price {
        font-size: 24px;
    }

    .optimists-heading {
        font-size: 26px;
        letter-spacing: -0.8px;
    }

    .course-row {
        gap: 24px;
    }

    /* Footer responsive (Mobile: 1 column) */
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Back to Top floating button (Mobile) */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile drawer touch targets */
    .mobile-nav-links a {
        min-height: 46px;
        display: flex;
        align-items: center;
    }
    .mobile-drawer-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Responsive — 480px & 360px (narrow mobile)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .auth-page-wrapper {
        padding: 28px 14px 40px;
        min-height: auto;
    }

    .auth-card {
        padding: 24px 18px 28px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    }

    .auth-card-title {
        font-size: 28px;
    }

    .auth-tabs-nav {
        margin-bottom: 20px;
    }

    .auth-tab-item {
        padding: 8px 10px;
        font-size: 14px;
    }

    .form-control {
        min-height: 44px;
        font-size: 14px;
    }

    .auth-btn-submit {
        min-height: 44px;
    }

    .btn-primary-yellow {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}
