/* =========================================================
   KHAN JAPANESE LANGUAGE & CAREER ACADEMY
   Premium navy + soft red responsive stylesheet
========================================================= */

:root {
    --navy: #101d38;
    --navy-deep: #09142b;
    --red: #c66b70;
    --red-dark: #a84d54;
    --red-pale: #fbefef;
    --ink: #202b3c;
    --muted: #667085;
    --paper: #ffffff;
    --soft: #f6f7fa;
    --line: #e6e8ee;
    --shadow: 0 18px 45px rgba(16, 29, 56, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(198, 107, 112, 0.55);
    outline-offset: 3px;
}

section[id] {
    scroll-margin-top: 92px;
}

/* Header / navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 6%;
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(230, 232, 238, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--navy);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    border: 2px solid var(--red);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    letter-spacing: 0.2px;
}

.logo-text small {
    margin-top: 4px;
    color: #687184;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.navbar nav,
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.navbar nav a {
    color: #3d4759;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.navbar nav a:hover,
.site-footer nav a:hover {
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#languageBtn {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#languageBtn:hover {
    border-color: var(--red);
    color: var(--red-dark);
}

.nav-cta {
    padding: 10px 14px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

/* Hero: dark navy overlay + soft red accent */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 620px;
    padding: 70px 5% 95px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background-color: var(--navy-deep);
    background-image:
        linear-gradient(115deg, rgba(8, 19, 42, 0.88), rgba(18, 31, 59, 0.72) 58%, rgba(151, 57, 67, 0.48)),
        url("images/school-classroom.png");
    background-position: center top ;
    background-size: auto;
    background-repeat: no-repeat;
}

.hero::before {
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 220, 220, 0.18);
    border-radius: 50%;
    content: "";
}

.hero::after {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--red);
    content: "";
}

.hero-content {
    width: min(100%, 850px);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f1b9bc;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.1px;
}

.hero-ja {
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    letter-spacing: 1px;
}

.intro {
    max-width: 630px;
    margin: 20px auto 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 12px 23px;
    border: 1px solid var(--red);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.cta:hover {
    transform: translateY(-2px);
    border-color: var(--red-dark);
    background: var(--red-dark);
    box-shadow: 0 8px 22px rgba(168, 77, 84, 0.22);
}

.cta-outline {
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
    color: #fff;
}

.cta-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Shared sections */
.section {
    padding: 88px 7%;
}

.section h2 {
    margin: 0 0 17px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3.3vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

.section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading > p:not(.eyebrow) {
    margin: 0 auto;
    max-width: 620px;
    font-size: 14px;
}

/* About */
.about-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(35px, 7vw, 95px);
    max-width: 1400px;
    margin: 0 auto;
}

.section-copy {
    max-width: 560px;
}

.section-copy > p:not(.eyebrow) {
    margin: 0 0 22px;
    font-size: 14px;
}

.text-link {
    display: inline-block;
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 800;
    transition: color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
    color: var(--navy);
    transform: translateX(3px);
}

.about-image-wrap {
    position: relative;
    padding: 0 0 14px 14px;
}

.about-image-wrap::before {
    position: absolute;
    z-index: 0;
    top: 14px;
    left: 0;
    width: 45%;
    height: 48%;
    border-top: 2px solid var(--red);
    border-left: 2px solid var(--red);
    content: "";
}

.about-image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* Course cards */
.courses {
    background: var(--soft);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: min(100%, 1040px);
    margin: 0 auto;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 275px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(16, 29, 56, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

.course-card::after {
    position: absolute;
    right: -36px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(198, 107, 112, 0.13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--red);
    box-shadow: var(--shadow);
}

.course-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    border-radius: 50%;
    background: var(--red-pale);
    color: var(--red-dark);
    font-family: Georgia, "Noto Serif JP", serif;
    font-size: 22px;
}

.course-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.35;
}

.course-card p {
    margin: 0 0 16px;
    font-size: 13px;
}

.course-details {
    margin: 0 0 18px;
    padding-left: 19px;
    color: var(--muted);
    font-size: 12px;
}

.course-details li + li {
    margin-top: 4px;
}

.course-card .text-link {
    margin-top: auto;
    padding-top: 8px;
}

.disclaimer {
    max-width: 900px;
    margin: 28px auto 0;
    color: #7b8494;
    font-size: 11px;
    text-align: center;
}

/* Why choose us */
.why-section {
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 22px 8px 10px;
    border-top: 1px solid var(--line);
}

.feature-number {
    display: block;
    margin-bottom: 17px;
    color: #d8dce4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1;
}

.feature-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.4;
}

.feature-card p {
    margin: 0;
    font-size: 12px;
}

/* FAQ */
.faq-section {
    background: #f7f8fb;
}

.faq-list {
    width: min(100%, 850px);
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.faq-item summary {
    position: relative;
    padding: 17px 48px 17px 20px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--red-dark);
    font-size: 20px;
    font-weight: 400;
    content: "+";
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 13px;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(35px, 7vw, 90px);
    background: var(--red-pale);
}

.contact-copy {
    max-width: 600px;
}

.contact-copy > p:not(.eyebrow) {
    margin: 0 0 28px;
    font-size: 14px;
}

.contact-list {
    display: grid;
    gap: 19px;
}

.contact-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.contact-symbol {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--red-dark);
    font-size: 17px;
}

.contact-item strong {
    display: block;
    margin: 0 0 3px;
    color: var(--navy);
    font-size: 12px;
}

.contact-item a,
.contact-item p {
    display: inline-block;
    margin: 0;
    color: #5f6878;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.contact-item a:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.contact-form-wrap {
    align-self: start;
    padding: clamp(22px, 4vw, 35px);
    border: 1px solid rgba(198, 107, 112, 0.16);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 29, 56, 0.06);
}

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-form label {
    margin-top: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dfe3ea;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    outline: 2px solid rgba(198, 107, 112, 0.13);
}

.form-submit {
    width: 100%;
    margin-top: 12px;
}

.form-note {
    margin: 5px 0 0;
    color: #7b8494;
    font-size: 10px;
}

/* Footer */
.site-footer {
    padding: 48px 7% 18px;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.78);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-logo {
    color: #fff;
}

.footer-logo .logo-mark {
    background: transparent;
    border-color: var(--red);
}

.footer-logo .logo-text small {
    color: rgba(255, 255, 255, 0.62);
}

.footer-main > p {
    margin: 7px 0 0;
    color: #e4b1b4;
    font-size: 12px;
    letter-spacing: 1px;
}

.site-footer nav {
    gap: 16px;
}

.site-footer nav a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1300px;
    margin: 34px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p,
.footer-bottom a {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Subtle text motion: restrained so it remains comfortable */
@keyframes gentleTextNudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-0.5px); }
}

.hero h1:hover,
.section h2:hover,
.course-card h3:hover,
.feature-card h3:hover {
    animation: gentleTextNudge 260ms ease-in-out;
}

@media (hover: none) {
    .hero h1:active,
    .section h2:active,
    .course-card h3:active,
    .feature-card h3:active {
        animation: gentleTextNudge 260ms ease-in-out;
    }
}

/* Tablet */
@media (max-width: 1050px) {
    .navbar {
        gap: 15px;
        padding-right: 4%;
        padding-left: 4%;
    }

    .navbar nav {
        gap: 12px;
    }

    .navbar nav a {
        font-size: 11px;
    }

    .nav-cta {
        display: none;
    }

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

/* Mobile */
@media (max-width: 700px) {
    html {
        scroll-padding-top: 125px;
    }

    .navbar {
        position: sticky;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 5%;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .logo-text small {
        max-width: 190px;
        font-size: 8px;
        letter-spacing: 0.45px;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 9px 16px;
        padding-top: 4px;
    }

    .navbar nav a {
        font-size: 11px;
    }

    .nav-actions {
        margin-left: auto;
    }

    #languageBtn {
        padding: 7px 9px;
    }

    .hero {
        min-height: 560px;
        padding: 78px 6%;
        background-position: center;
    }

    .hero h1 {
        font-size: clamp(35px, 9vw, 47px);
        letter-spacing: -0.5px;
    }

    .hero-ja {
        font-size: 14px;
    }

    .intro {
        max-width: 440px;
        font-size: 14px;
    }

    .cta {
        min-height: 43px;
        padding: 11px 17px;
        font-size: 11px;
    }

    .section {
        padding: 62px 6%;
    }

    .section h2 {
        font-size: clamp(28px, 7vw, 35px);
    }

    .about-section,
    .contact {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-image-wrap {
        max-width: 600px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-card {
        min-height: auto;
        padding: 25px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .feature-card {
        display: grid;
        grid-template-columns: 45px minmax(0, 1fr);
        column-gap: 12px;
        padding: 18px 0;
    }

    .feature-number {
        grid-row: span 2;
        margin: 0;
        font-size: 30px;
    }

    .feature-card h3 {
        margin-bottom: 6px;
    }

    .feature-card p {
        grid-column: 2;
    }

    .contact-form-wrap {
        padding: 23px;
    }

    .footer-main {
        flex-direction: column;
        gap: 18px;
    }

    .site-footer nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

/* Modern Academy Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Premium Geometric K Logo */

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: linear-gradient(145deg, #172746, #263f68);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    box-shadow: 0 5px 14px rgba(20, 33, 61, 0.18);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.logo:hover .logo-icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.25);
}

@media (max-width: 480px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-icon {
        transition: none;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-text strong {
    color: #B83245;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text small {
    color: #5b6475;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-text small {
        font-size: 9px;
    }
}
/* Mobile Hero Background Fix */

@media (max-width: 768px) {
    .hero {
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
/* Mobile: Fit the full background image */

@media (max-width: 768px) {
    .hero {
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }
}
/* Japanese Language Course Information Box */
.course-info-box {
margin-top: 22px;
padding: 20px;
background: #f3f6fb;
border: 1px solid #dce4f0;
border-left: 4px solid #b94752;
border-radius: 12px;
text-align: left;
}

.course-info-box h4 {
margin: 0 0 14px;
color: #14213d;
font-size: 17px;
}

.course-info-box .course-details {
margin: 0 0 18px;
padding-left: 20px;
}

.course-info-box .course-details li {
margin-bottom: 10px;
color: #3d485b;
line-height: 1.6;
font-size: 14px;
}

.course-info-box .text-link {
display: inline-block;
font-weight: 600;
color: #14213d;
text-decoration: none;
}

.course-info-box .text-link:hover {
color: #b94752;
}
