@supports (transition-behavior: allow-discrete) {
    .page_width,
    .small_box,
    .home_width,
    .body_page {
        transition-behavior: allow-discrete;
    }
}
*,
*::before,
*::after {
    transition: 
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s ease,
        margin 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease;
}
body { 
    font-family: system-ui, sans-serif; 
    min-width: 320px; 
    margin: 0; 
    padding: 0; 
    font-size: clamp(0.92rem, 1.5vw, 1.15rem); 
    line-height: 1.62; 
    text-align: center; 
    height: 100%; 
    overflow-x: hidden; 
    position: relative; 
}
body { transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@media (min-width: 1201px) { body { margin-top: 95px; } }
@media (min-width: 901px) and (max-width: 1200px) { body { margin-top: 65px; } }
@media (max-width: 900px) { body { margin-top: 60px; } }
body.scroll-locked { overflow: hidden; }

:root {
    --hero-size: clamp(1.6rem, 2vw, 2.8rem);
    --heading-size: clamp(1.2rem, 4cqi, 1.4rem);
    --font-main: 16px;
    --font-main-small: 14px;
}

/*******************************************************
TEXT AND FONT FORMATTING (critical parts only)
*******************************************************/
.gradient { background: linear-gradient(90deg, #1f5979, #e67e22); font-weight: 900 !important; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/*******************************************************
HEADER & NAVIGATION
*******************************************************/
.right-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; white-space: nowrap; }
.lang { position: relative; }
.lang-current { display:flex; align-items:center; gap:6px; padding:7px 13px; background:rgba(10,90,130,0.08); border:2.2px solid #bfeaffff; border-radius:50px; cursor:pointer; font-weight:600; color:#0A5A82; font-size:13.5px; user-select:none; }
.lang-current svg { width:14px; height:14px; }
.lang-drop { position:absolute; top:100%; right:0; margin-top:7px; background:white; border-radius:11px; box-shadow:0 18px 55px rgba(0,0,0,0.17); opacity:0; visibility:hidden; transition:all .35s; z-index:999; }
.lang-drop.show { opacity:1; visibility:visible; }
.lang-drop a { font-size: var(--font-main-small); display:block; padding:11px 22px; color:#1e293b; font-weight:600; text-decoration:none; }
.lang-drop a:hover { background:#f0f9ff; color:#0A5A82; border-radius:11px; }

.login-btn { display:flex; align-items:center; gap:6px; padding:7px 13px; border:2.2px solid #0A5A82; border-radius:50px; color:#0A5A82; font-weight:700; font-size:14px; text-decoration:none; transition:all .3s; }
.login-btn:hover { background:#0A5A82; color:white; }
.admin-btn { display:flex; align-items:center; gap:6px; padding:7px 13px; border:2.2px solid #7b2222ff; border-radius:50px; color:#FFF; background-color: #9a3030ff; font-weight:700; font-size:14px; text-decoration:none; transition:all .3s; }
.admin-btn:hover { background: #ed5454ff; color:white; }

.menubar { height: 38px; background: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); position: relative; z-index: 998; }
.menu { display:flex; gap:clamp(16px,3vw,40px); }
.menu a { color:#1e293b; text-decoration:none; font-weight:600; font-size:15.5px; padding:9px 0; position:relative; white-space:nowrap; }
.menu a:hover { color:#e67e22; }
.menu a::after { content:''; position:absolute; bottom:0; left:50%; width:0; height:2.8px; background:linear-gradient(90deg,#0A5A82,#e67e22); border-radius:2px; transition:width .5s; transform:translateX(-50%); }
.menu a:hover::after { width:100%; }
.menu a::after { bottom: 5px; height: 2.8px; border-radius: 2px; }

.mobile { position: fixed; top: 0; left: -100%; width: 100%; max-width: 360px; height: 100vh; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px); box-shadow: none; transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1001; display: flex; flex-direction: column; overflow: hidden; }
.mobile.open { left: 0; }
.mobile-header { height: 85px; padding: 0 22px; background: linear-gradient(135deg, #0A5A82, #1e293b); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; position: relative; }
.mobile-header img { height: 48px; filter: brightness(0) invert(1); }
.mobile-close { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); border: none; width: 42px; height: 42px; border-radius: 50%; color: white; font-size: 28px; font-weight: 300; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; position: relative; padding-top: 2px; line-height: 1; }
.mobile-close span { transform: translateY(-2px); display: block; }
.mobile-close:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.12); }
.mobile-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 0; }
.mobile-links a { display: block; padding: 16px 34px; font-size: 17.5px; font-weight: 700; color: #1e293b; text-decoration: none; border-bottom: 1px solid #f1f5f9; transition: all 0.35s ease; position: relative; }
.mobile-links a:hover { background: linear-gradient(90deg, #f0f9ff, transparent); color: #0A5A82; padding-left: 42px; }
.mobile-links a:last-child { border-bottom: none; }
.mobile-cta-link { display: block; margin: 22px 34px 40px; padding: 16px; background: linear-gradient(135deg, #0A5A82, #1e293b); color: white; text-align: center; font-weight: 900; font-size: 18px; border-radius: 50px; text-decoration: none; box-shadow: 0 10px 28px rgba(10, 90, 130, 0.4); transition: all 0.4s ease; }
.mobile-cta-link:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 90, 130, 0.5); }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transition: opacity 0.6s; z-index: 1000; backdrop-filter: blur(6px); }
.overlay.visible { opacity: 1; pointer-events: all; }

.top-bar { position: relative; height: 64px; max-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-width: 0; padding: 0 16px; gap: 10px; }
@media (max-width: 900px) { .lang-current, .login-btn, .admin-btn, .tas-avatar { font-size: 13.5px !important; } }
@media (max-width: 901px) { .top-bar { padding: 0 16px 0 0px; gap: 6px; } .lang-current, .login-btn, .admin-btn, .tas-avatar { padding: 6px 10px; font-size: 13.5px; } .right-actions { gap: 6px; } }

.toggle-buttons { display: flex; gap: 9px; flex-shrink: 0; }
.tablet-toggle, .mobile-toggle { background: none; border: none; padding: 8px; cursor: pointer; display: none; }
.tablet-toggle svg, .mobile-toggle svg { width: 26px; height: 26px; stroke: #0A5A82; stroke-width: 2.3; }

.brand-center { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 0 6px; }
.logo { height: 52px; width: auto; flex-shrink: 0; transform: translateZ(0); }
.logo-absolute { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 10; height: 52px; display: flex; align-items: center; }
.logo-absolute .logo { height: 52px; width: auto; }
.site-title { font-weight: 700; color: #0A5A82; letter-spacing: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(14px, 3vw, 28px); margin: 0; line-height: 1.25; }
.header { position: fixed; top: 0; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 28px rgba(0,0,0,0.08); z-index: 999; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s; }
.header.hide { transform: translateY(-100%); }
.header.at-top { box-shadow: none; border-bottom-color: transparent; }

@media (max-width: 1200px) { 
    .logo { display: none; }
    .mobile-toggle { display:block !important; } .tablet-toggle { display:none !important; }
    .menubar {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #f8fafc; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        display: none; transform: translateY(-20px); opacity: 0;
    }
}
@media (min-width: 1201px) { .menubar { display: flex; } }
@media (max-width: 1200px) { .mobile-toggle { display:block !important; } .tablet-toggle { display:none !important; } }
@media (max-width: 500px) { .lang { display: none; } .brand-center { align-items: left; justify-content: center; gap: 0px; padding: 0 0px; } }
@media (max-width: 899px) { .mobile-toggle { display:block !important; } .tablet-toggle { display:none !important; } }
@media (min-width: 900px) { .site-title { padding-left: 120px; } }
@media (min-width: 1201px) { .tablet-toggle, .mobile-toggle { display:none !important; } }
@media (max-width: 900px) { .right-actions { gap:6px; } }

/*******************************************************
HERO & ABOVE-THE-FOLD
*******************************************************/
.hero { padding: 45px 12px; text-align: center; position: relative; overflow: hidden; font-size: clamp(0.92rem, 1.5vw, 1.15rem); line-height: 1.62; }
.hero::before { position: absolute; opacity: 0.06; }
.hero-course { padding: 45px 12px; text-align: center; position: relative; overflow: hidden; font-size: clamp(0.92rem, 1.5vw, 1.15rem); line-height: 1.62; }
.hero-course::before { position: absolute; opacity: 0.06; }

.heading-hero { font-size: var(--hero-size); font-weight: 900; line-height: 1.12; letter-spacing: -0.8px; margin: 0 auto 0px; max-width: 1200px; text-align: center; display: inline-block; }
.heading-lone { font-size: var(--hero-size); font-weight: 900; line-height: 1.12; letter-spacing: -0.8px; margin: -15px auto 25px; max-width: 1200px; text-align: center; display: inline-block; }
.heading-hero-small { font-size: calc(var(--hero-size) * 0.9); font-weight: 700; line-height: 1.12; letter-spacing: -0.8px; margin: 0 auto 12px; max-width: 1200px; text-align: center; display: inline-block; }
.subtitle { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 0px auto; max-width: 1400px; opacity: 0.94; font-weight: 600; padding-top: 15px; }
.font-main { font-size: var(--font-main) !important; margin: 10px auto 20px; }

.hero p { font-size: calc(var(--hero-size) * 0.86); line-height: 1.4; max-width: 1200px; margin: 0 auto 24px; opacity: 0.88; }
.hero-content { max-width: 1350px; margin: 15px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; text-align: center; }
.hero-text-column p { margin: 0 0 22px 0; }
.hero-text-column p:last-child { margin-bottom: 0; }
.hero-buttons-grid { margin-top: 35px; margin-bottom: 16px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.form-buttons-grid { margin-top: 20px; margin-bottom: 0px; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 0; }
.buttons-grid { margin-top: 20px; margin-bottom: 20px; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 0; }

.bold { font-weight: bold; }
.line-spacer { margin: 0 0 9px; padding: 6px 0 6px 0; border-bottom: 2.8px solid #e2e8f0; }
.box-blue { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; }

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 30px; margin: 20px auto 0; }
    .hero-seal-column { order: 1; }
    .hero-text-column { order: 0; }
    .hero-buttons-grid { margin-top: 30px; }
    .form-buttons-grid { margin-top: 18px; }
    
    .buttons-grid > button,
    .hero-buttons-grid > button,
    .form-buttons-grid > button {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .hero-content { gap: 22px; margin: 16px auto 0; }
    .hero-text-column p { margin-bottom: 20px; font-size: 1rem; }
    .hero-buttons-grid { margin-top: 30px; gap: 16px; margin-bottom: 16px; }
    .form-buttons-grid { margin-top: 16px; gap: 16px; margin-bottom: 16px; }
}


/*******************************************************
BUTTONS (critical for hero CTAs)
*******************************************************/
.button,
a.button,
.submit,
a.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    width: auto;
    min-width: 140px;          /* ← optional: prevent tiny buttons */
    padding: 12px 24px;

    /* typography */
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;

    /* visuals */
    color: #ffffff;
    background: none;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1);

    /* interaction */
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* ---------- size modifiers ---------- */
.button-tiny { font-size: 0.8rem !important; padding: 6px 10px !important; min-width: auto !important; }
.button-small { font-size: 0.86rem; padding: 9px 18px; }
.button-normal,
.button-regular { font-size: 15px; padding: 16px 24px; min-height: 45px; }
.button-large,
.button-xlarge { font-size: 18px !important; padding: 15px 34px; min-height: 55px; min-width: 250px !important; }
.button-huge { font-size: 1.20rem; padding: 16px 38px; }

/* ---------- width modifiers ---------- */
.long_button,
#long_button { width: 100%; min-width: auto; }
.wide_button { width: 500px; }

/* ---------- color modifiers ---------- */
.button-dark_blue, a.button-dark_blue { background: #163d52; }
.button-dark_blue:hover, a.button-dark_blue:hover { background: #3492c5; }

.button-blue, a.button-blue { background: #1f5979; }
.button-blue:hover, a.button-blue:hover { background: #3492c5; }

.button-green, a.button-green { background: #428000; }
.button-green:hover, a.button-green:hover { background: #69c904; }

.button-red, a.button-red { background: #b02022; }
.button-red:hover, a.button-red:hover { background: #751719; }

.button-orange, a.button-orange { background: #d15921; color: white !important; }
.button-orange:hover, a.button-orange:hover { background: #af3700; }

.button-white, a.button-white { background: #ffffff; color: #333333; border: 2.6px solid #cccccc; }
.button-white:hover, a.button-white:hover { background: #1f5979; color: #ffffff; }

.button-black, a.button-black { background: #1e1e1eff; color: white !important; }
.button-black:hover, a.button-black:hover { background: #353535ff; }

.button-yellow, a.button-yellow { background: #d15921; color: white !important; }
.button-yellow:hover, a.button-yellow:hover { background: #af3700; }

/* ---------- disabled ---------- */
.button-disabled,
.submit:disabled,
.button[disabled] { background: #b5b5b5 !important; color: #333333 !important; cursor: not-allowed !important; box-shadow: none !important; opacity: 0.6; }

/* ---------- text color overrides ---------- */
.button-blue,
.button-green,
.button-red,
.button-dark_blue { color: #FFFFFF !important; }



/* ---------- responsive ---------- */
@media (max-width: 1920px) {
    .button,
    .submit {
        min-width: 150px;
        padding: 9px 20px;
        font-size: 0.92rem;
    }
}

@media (max-width: 600px) {
    .buttons-grid {
        flex-direction: column;     /* stack vertically – very common for two buttons */
        gap: 12px;                  /* smaller gap on mobile */
        align-items: stretch;       /* makes children stretch full width */
    }

    .dialog_column_button_left,
    .dialog_column_button_right {
        width: 100%;                /* or just rely on align-items: stretch */
    }

    .phone_button {
        width: 100%;                /* now it will actually fill the div */
        /* display: block is optional here – inline-flex usually fine */
    }
}