/* ==========================================================
   OKSY3 PUBLIC V2
   Responsive public website layer
   ========================================================== */

:root{
    --v2-navy:#0f172a;
    --v2-blue:#2563eb;
    --v2-blue-soft:#eff6ff;
    --v2-text:#172033;
    --v2-muted:#64748b;
    --v2-border:#e2e8f0;
    --v2-bg:#f8fafc;
    --v2-card:#ffffff;
    --v2-radius:22px;
}

/* ---------- Global ---------- */

body.public-pro{
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 32rem),
        radial-gradient(circle at top right, rgba(245,158,11,.05), transparent 28rem),
        #f8fafc;
    color:var(--v2-text);
}

body.public-pro .container{
    max-width:1480px;
}

body.public-pro a{
    text-underline-offset:3px;
}

/* ---------- Main navigation ---------- */

.public-main-nav{
    background:rgba(15,23,42,.97)!important;
    min-height:78px;
    box-shadow:0 8px 30px rgba(15,23,42,.12);
    position:sticky;
    top:0;
    z-index:1030;
    backdrop-filter:blur(14px);
}

.public-main-nav .navbar-brand{
    min-width:260px;
    font-weight:800;
    letter-spacing:-.01em;
}

.public-main-nav .navbar-brand span{
    white-space:nowrap;
}

.public-main-nav .nav-link{
    font-weight:650;
    border-radius:10px;
    padding:.65rem .72rem!important;
}

.public-main-nav .nav-link:hover,
.public-main-nav .nav-link:focus{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.public-main-nav .dropdown-menu{
    border:1px solid rgba(148,163,184,.2);
    border-radius:16px;
    padding:.55rem;
    box-shadow:0 20px 50px rgba(15,23,42,.18);
}

.public-main-nav .dropdown-item{
    border-radius:10px;
    padding:.65rem .8rem;
}

/* ---------- Page spacing ---------- */

.public-news-main,
.public-view-main{
    padding:46px 0 70px;
}

/* ---------- News hero ---------- */

.public-news-hero{
    background:rgba(255,255,255,.92);
    border:1px solid var(--v2-border);
    border-radius:var(--v2-radius);
    padding:38px;
    box-shadow:0 14px 40px rgba(15,23,42,.06);
    margin-bottom:30px;
}

/* ---------- Article / Content page ---------- */

.public-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    font-size:.92rem;
    margin-bottom:22px;
    color:var(--v2-muted);
}

.public-breadcrumb a{
    color:var(--v2-blue);
    text-decoration:none;
    font-weight:650;
}

.public-article-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:28px;
    align-items:stretch;
    margin-bottom:28px;
}

.public-article-hero-text,
.public-article-hero-panel{
    background:#fff;
    border:1px solid var(--v2-border);
    border-radius:var(--v2-radius);
    padding:34px;
    box-shadow:0 14px 40px rgba(15,23,42,.055);
}

.public-article-hero-text h1{
    margin:.65rem 0 0;
    font-size:clamp(2rem,4vw,3.4rem);
    line-height:1.14;
    letter-spacing:-.035em;
    font-weight:850;
}

.public-article-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
    color:var(--v2-muted);
    font-size:.92rem;
}

.public-article-meta span{
    background:var(--v2-bg);
    border:1px solid var(--v2-border);
    border-radius:999px;
    padding:7px 12px;
}

.public-article-hero-panel{
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:
        linear-gradient(145deg,#0f172a,#1d4ed8);
    color:#fff;
    border:0;
}

.article-panel-label{
    opacity:.72;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.76rem;
    font-weight:800;
}

.article-panel-title{
    font-size:1.45rem;
    font-weight:800;
    margin-top:8px;
}

.article-panel-desc{
    opacity:.82;
    line-height:1.7;
    margin-top:8px;
}

.public-article-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 310px;
    gap:28px;
    align-items:start;
}

.public-article-card{
    min-width:0;
    background:#fff;
    border:1px solid var(--v2-border);
    border-radius:var(--v2-radius);
    overflow:hidden;
    box-shadow:0 14px 40px rgba(15,23,42,.055);
}

.public-article-body{
    padding:38px 42px;
    font-size:1.04rem;
    line-height:1.9;
    color:#273449;
}

.public-article-body > :first-child{
    margin-top:0!important;
}

.public-article-body h1,
.public-article-body h2,
.public-article-body h3,
.public-article-body h4{
    color:#0f172a;
    line-height:1.3;
    font-weight:800;
}

.public-article-body h2{
    font-size:1.45rem;
    margin:2rem 0 1rem;
    padding-left:15px;
    border-left:4px solid var(--v2-blue);
}

.public-article-body h3{
    font-size:1.18rem;
    margin:1.7rem 0 .8rem;
}

.public-article-body p{
    margin:0 0 1.1rem;
}

.public-article-body ul,
.public-article-body ol{
    background:#f8fafc;
    border:1px solid var(--v2-border);
    border-radius:16px;
    padding:18px 22px 18px 44px;
    margin:1rem 0 1.5rem;
}

.public-article-body li{
    padding:.22rem 0;
}

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

.public-article-body table{
    width:100%;
    display:block;
    overflow-x:auto;
    border-collapse:collapse;
}

.public-article-body td,
.public-article-body th{
    padding:.7rem;
    border:1px solid var(--v2-border);
}

.public-article-footer{
    padding:20px 42px 30px;
    border-top:1px solid var(--v2-border);
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.public-back-btn{
    text-decoration:none;
    border-radius:12px;
    padding:10px 15px;
    background:var(--v2-blue);
    color:#fff!important;
    font-weight:700;
}

.public-back-btn.secondary{
    background:#f1f5f9;
    color:#334155!important;
}

/* ---------- Sidebar ---------- */

.public-article-sidebar{
    display:grid;
    gap:18px;
    position:sticky;
    top:100px;
}

.public-side-card{
    background:#fff;
    border:1px solid var(--v2-border);
    border-radius:18px;
    padding:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.045);
}

.public-side-card h2{
    font-size:1.05rem;
    font-weight:800;
    margin:0 0 12px;
}

.public-side-card a{
    display:block;
    text-decoration:none;
    color:#334155;
    padding:9px 10px;
    border-radius:9px;
}

.public-side-card a:hover{
    background:var(--v2-blue-soft);
    color:var(--v2-blue);
}

/* ---------- Footer ---------- */

.public-pro-footer{
    margin-top:60px;
}

/* ---------- Responsive ---------- */

@media (max-width:1199.98px){
    .public-main-nav .navbar-brand{
        min-width:auto;
    }

    .public-main-nav .nav-link{
        padding:.58rem .55rem!important;
        font-size:.92rem;
    }

    .public-article-layout{
        grid-template-columns:minmax(0,1fr) 270px;
    }
}

@media (max-width:991.98px){
    .public-main-nav{
        min-height:68px;
    }

    .public-main-nav .navbar-collapse{
        margin-top:14px;
        padding:14px;
        background:#172033;
        border-radius:16px;
        max-height:calc(100vh - 100px);
        overflow-y:auto;
    }

    .public-main-nav .navbar-nav{
        gap:3px;
    }

    .public-main-nav .dropdown-menu{
        box-shadow:none;
        border:0;
        margin:.25rem 0 .5rem;
    }

    .public-article-hero{
        grid-template-columns:1fr;
    }

    .public-article-hero-panel{
        display:none;
    }

    .public-article-layout{
        grid-template-columns:1fr;
    }

    .public-article-sidebar{
        position:static;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:767.98px){
    body.public-pro .container{
        width:100%;
        padding-left:16px;
        padding-right:16px;
    }

    .public-main-nav .navbar-brand span{
        font-size:.95rem;
        max-width:215px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .public-news-main,
    .public-view-main{
        padding:24px 0 46px;
    }

    .public-news-hero{
        padding:24px 20px;
        border-radius:18px;
    }

    .public-article-hero-text{
        padding:24px 20px;
        border-radius:18px;
    }

    .public-article-hero-text h1{
        font-size:1.85rem;
    }

    .public-article-body{
        padding:25px 20px;
        font-size:1rem;
        line-height:1.8;
    }

    .public-article-footer{
        padding:18px 20px 24px;
    }

    .public-article-sidebar{
        grid-template-columns:1fr;
    }

    .public-side-card{
        padding:19px;
    }
}

@media (max-width:479.98px){
    .public-main-nav .navbar-brand img{
        width:34px!important;
        height:34px!important;
    }

    .public-main-nav .navbar-brand span{
        max-width:190px;
        font-size:.9rem;
    }

    .public-article-hero-text h1{
        font-size:1.62rem;
    }

    .public-article-meta span{
        width:100%;
    }

    .public-back-btn{
        width:100%;
        text-align:center;
    }
}


/* OKSY3_PUBLIC_V2_HOME */

.v2-home{
    overflow:hidden;
}

.v2-hero{
    min-height:620px;
    display:flex;
    align-items:center;
    background:
        radial-gradient(circle at 85% 20%,rgba(37,99,235,.32),transparent 30rem),
        linear-gradient(135deg,#071226,#0f274c 58%,#164e63);
    background-size:cover;
    background-position:center;
    color:#fff;
    position:relative;
}

.v2-hero:after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:150px;
    background:linear-gradient(to top,rgba(7,18,38,.22),transparent);
    pointer-events:none;
}

.v2-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
    gap:70px;
    align-items:center;
    padding:90px 0;
    position:relative;
    z-index:1;
}

.v2-eyebrow,
.v2-section-kicker{
    display:inline-flex;
    align-items:center;
    font-size:.76rem;
    font-weight:850;
    letter-spacing:.12em;
    color:#2563eb;
    text-transform:uppercase;
}

.v2-eyebrow{
    color:#bfdbfe;
}

.v2-hero-copy h1{
    max-width:850px;
    font-size:clamp(2.7rem,5.6vw,5.4rem);
    line-height:1.02;
    letter-spacing:-.055em;
    font-weight:900;
    margin:18px 0 22px;
}

.v2-hero-copy p{
    max-width:720px;
    font-size:clamp(1.05rem,1.8vw,1.3rem);
    line-height:1.75;
    color:rgba(255,255,255,.83);
}

.v2-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:32px;
}

.v2-btn-primary,
.v2-btn-secondary{
    text-decoration:none;
    padding:13px 20px;
    border-radius:13px;
    font-weight:800;
    transition:.2s ease;
}

.v2-btn-primary{
    background:#fff;
    color:#0f172a!important;
}

.v2-btn-secondary{
    border:1px solid rgba(255,255,255,.35);
    color:#fff!important;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(8px);
}

.v2-btn-primary:hover,
.v2-btn-secondary:hover{
    transform:translateY(-2px);
}

.v2-hero-note{
    margin-top:20px;
    font-size:.9rem;
    color:rgba(255,255,255,.58);
}

.v2-school-pulse{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(18px);
    border-radius:28px;
    padding:25px;
    box-shadow:0 30px 80px rgba(0,0,0,.20);
}

.v2-pulse-title{
    font-weight:800;
    margin-bottom:14px;
    color:rgba(255,255,255,.85);
}

.v2-pulse-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.v2-pulse-card{
    background:rgba(255,255,255,.92);
    color:#0f172a;
    border-radius:18px;
    padding:22px;
}

.v2-pulse-card.wide{
    grid-column:1 / -1;
}

.v2-pulse-card strong{
    display:block;
    font-size:2rem;
    line-height:1;
    font-weight:900;
}

.v2-pulse-card.wide strong{
    font-size:1.15rem;
}

.v2-pulse-card span{
    display:block;
    margin-top:8px;
    color:#64748b;
    font-size:.88rem;
}

.v2-section{
    padding:88px 0;
}

.v2-section-soft{
    background:#f1f5f9;
}

.v2-section-heading{
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:end;
    margin-bottom:36px;
}

.v2-section-heading.centered{
    justify-content:center;
    text-align:center;
}

.v2-section-heading.centered > div{
    max-width:760px;
}

.v2-section-heading h2{
    font-size:clamp(2rem,3.5vw,3.2rem);
    letter-spacing:-.04em;
    font-weight:880;
    margin:8px 0;
}

.v2-section-heading p{
    margin:0;
    max-width:720px;
    color:#64748b;
    line-height:1.75;
}

.v2-text-link{
    white-space:nowrap;
    text-decoration:none;
    font-weight:800;
    color:#2563eb;
}

.v2-news-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.v2-news-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(15,23,42,.055);
    transition:.22s ease;
}

.v2-news-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 45px rgba(15,23,42,.09);
}

.v2-news-image{
    display:block;
    position:relative;
    min-height:220px;
    background:
        linear-gradient(135deg,#1e3a8a,#0ea5e9);
    background-size:cover;
    background-position:center;
    text-decoration:none;
}

.v2-news-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.88);
    font-size:2rem;
    font-weight:900;
    letter-spacing:.08em;
}

.v2-news-badge{
    position:absolute;
    left:16px;
    top:16px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#1d4ed8;
    font-size:.75rem;
    font-weight:800;
    padding:7px 11px;
}

.v2-news-content{
    padding:23px;
}

.v2-news-date{
    font-size:.82rem;
    color:#94a3b8;
    margin-bottom:8px;
}

.v2-news-content h3{
    font-size:1.15rem;
    line-height:1.45;
    font-weight:800;
    margin:0 0 10px;
}

.v2-news-content h3 a{
    color:#0f172a;
    text-decoration:none;
}

.v2-news-content p{
    color:#64748b;
    line-height:1.7;
    font-size:.93rem;
}

.v2-news-more{
    display:inline-block;
    margin-top:4px;
    color:#2563eb;
    text-decoration:none;
    font-weight:800;
    font-size:.9rem;
}

.v2-value-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}

.v2-value-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:30px;
}

.v2-value-icon{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#eff6ff;
    color:#2563eb;
    font-size:1.2rem;
    font-weight:900;
}

.v2-value-card h3{
    margin:18px 0 8px;
    font-size:1.2rem;
    font-weight:850;
}

.v2-value-card p{
    margin:0;
    color:#64748b;
    line-height:1.75;
}

.v2-service-band{
    border-radius:28px;
    padding:42px;
    background:linear-gradient(135deg,#0f172a,#172554);
    color:#fff;
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
    gap:50px;
    align-items:center;
}

.v2-section-kicker.light{
    color:#93c5fd;
}

.v2-service-copy h2{
    font-size:clamp(1.9rem,3vw,2.8rem);
    margin:8px 0 12px;
    font-weight:850;
    letter-spacing:-.035em;
}

.v2-service-copy p{
    color:rgba(255,255,255,.7);
    line-height:1.75;
    margin:0;
}

.v2-service-links{
    display:grid;
    gap:9px;
}

.v2-service-links a{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    text-decoration:none;
    color:#fff;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.07);
    padding:14px 16px;
    border-radius:13px;
    font-weight:750;
}

.v2-service-links a:hover{
    background:rgba(255,255,255,.13);
}

.v2-transparency-wrap{
    padding-top:20px;
}

.v2-transparency{
    border:1px solid #dbeafe;
    background:linear-gradient(135deg,#eff6ff,#ffffff);
    border-radius:26px;
    padding:38px;
    display:flex;
    justify-content:space-between;
    gap:35px;
    align-items:center;
}

.v2-transparency h2{
    font-weight:900;
    letter-spacing:-.035em;
    margin:7px 0 8px;
}

.v2-transparency p{
    margin:0;
    max-width:800px;
    color:#64748b;
    line-height:1.75;
}

.v2-transparency > a{
    white-space:nowrap;
    text-decoration:none;
    background:#2563eb;
    color:#fff;
    font-weight:800;
    padding:13px 18px;
    border-radius:12px;
}

.v2-empty{
    border:1px dashed #cbd5e1;
    background:#fff;
    border-radius:20px;
    padding:40px;
    text-align:center;
    color:#64748b;
}


/* TABLET */

@media(max-width:991.98px){

    .v2-hero{
        min-height:auto;
    }

    .v2-hero-grid{
        grid-template-columns:1fr;
        gap:38px;
        padding:70px 0;
    }

    .v2-school-pulse{
        max-width:620px;
    }

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

    .v2-news-card:nth-child(3){
        grid-column:1 / -1;
    }

    .v2-value-grid{
        grid-template-columns:1fr;
    }

    .v2-service-band{
        grid-template-columns:1fr;
        gap:28px;
    }

    .v2-transparency{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* PHONE */

@media(max-width:767.98px){

    .v2-hero-grid{
        padding:54px 0;
    }

    .v2-hero-copy h1{
        font-size:2.5rem;
    }

    .v2-hero-copy p{
        font-size:1rem;
    }

    .v2-hero-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .v2-btn-primary,
    .v2-btn-secondary{
        text-align:center;
        width:100%;
    }

    .v2-school-pulse{
        padding:17px;
        border-radius:22px;
    }

    .v2-pulse-grid{
        grid-template-columns:1fr 1fr;
    }

    .v2-pulse-card{
        padding:18px;
    }

    .v2-pulse-card strong{
        font-size:1.7rem;
    }

    .v2-section{
        padding:60px 0;
    }

    .v2-section-heading{
        align-items:flex-start;
        flex-direction:column;
        margin-bottom:26px;
    }

    .v2-news-grid{
        grid-template-columns:1fr;
    }

    .v2-news-card:nth-child(3){
        grid-column:auto;
    }

    .v2-news-image{
        min-height:200px;
    }

    .v2-value-card{
        padding:24px;
    }

    .v2-service-band{
        padding:28px 22px;
        border-radius:22px;
    }

    .v2-transparency{
        padding:26px 22px;
        border-radius:22px;
    }

    .v2-transparency > a{
        width:100%;
        text-align:center;
    }
}


/* SMALL PHONE */

@media(max-width:420px){

    .v2-hero-copy h1{
        font-size:2.15rem;
    }

    .v2-pulse-grid{
        grid-template-columns:1fr;
    }

    .v2-pulse-card.wide{
        grid-column:auto;
    }

    .v2-section-heading h2{
        font-size:1.8rem;
    }
}



/* OKSY3_PUBLIC_V2_COMPACT_R1 */

/* Hero: ลดความสูงจากเดิม */
.v2-hero{
    min-height:520px;
}

.v2-hero-grid{
    padding:64px 0;
    gap:52px;
}

/* Section spacing */
.v2-section{
    padding:58px 0;
}

.v2-section-heading{
    margin-bottom:26px;
}

.v2-section-heading h2{
    margin:6px 0;
}

.v2-section-heading p{
    line-height:1.65;
}

/* News cards */
.v2-news-grid{
    gap:20px;
}

.v2-news-image{
    min-height:190px;
}

.v2-news-content{
    padding:20px;
}

/* Our School */
.v2-value-grid{
    gap:18px;
}

.v2-value-card{
    padding:25px;
}

/* Public service */
.v2-service-band{
    padding:34px 38px;
    gap:38px;
}

/* ITA */
.v2-transparency-wrap{
    padding-top:8px;
    padding-bottom:54px;
}

.v2-transparency{
    padding:30px 34px;
}

/* Footer ให้ชิด section มากขึ้น */
.public-pro-footer{
    margin-top:28px;
}

/* Tablet */
@media(max-width:991.98px){

    .v2-hero-grid{
        padding:54px 0;
        gap:32px;
    }

    .v2-section{
        padding:50px 0;
    }

    .v2-service-band{
        padding:30px;
    }
}

/* Phone */
@media(max-width:767.98px){

    .v2-hero-grid{
        padding:42px 0;
    }

    .v2-section{
        padding:42px 0;
    }

    .v2-section-heading{
        margin-bottom:22px;
    }

    .v2-news-grid{
        gap:16px;
    }

    .v2-news-image{
        min-height:180px;
    }

    .v2-value-grid{
        gap:14px;
    }

    .v2-value-card{
        padding:22px;
    }

    .v2-service-band{
        padding:25px 20px;
    }

    .v2-transparency{
        padding:24px 20px;
    }

    .public-pro-footer{
        margin-top:18px;
    }
}

/* Small phone */
@media(max-width:420px){

    .v2-hero-grid{
        padding:36px 0;
    }

    .v2-section{
        padding:36px 0;
    }

    .v2-news-image{
        min-height:165px;
    }
}


/* ==========================================================
   OKSY3 PUBLIC V2 — SPACING SYSTEM R2
   Unified vertical rhythm
   ========================================================== */

/* ---------- 1. HERO ---------- */

.v2-hero{
    min-height:440px;
}

.v2-hero-grid{
    padding:48px 0 50px;
    gap:46px;
}

/* ไม่ปล่อยพื้นที่ลอยบน/ล่างมากเกิน */
.v2-hero-copy{
    align-self:center;
}

.v2-school-pulse{
    align-self:center;
}


/* ---------- GLOBAL SECTION RHYTHM ---------- */

.v2-section{
    padding:46px 0;
}

.v2-section-heading{
    margin-bottom:24px;
}


/* ---------- 2. NEWS -> OUR SCHOOL ---------- */

.v2-section + .v2-section{
    margin-top:0;
}

/* ข่าว */
.v2-home > .v2-section:nth-of-type(2){
    padding-bottom:36px;
}

/* Our School */
.v2-section-soft{
    padding-top:38px;
    padding-bottom:42px;
}


/* ---------- 3. OUR SCHOOL -> PUBLIC SERVICE ---------- */

.v2-section-soft + .v2-section{
    padding-top:34px;
}

.v2-service-band{
    margin:0;
}


/* ---------- 4. PUBLIC SERVICE -> ITA -> FOOTER ---------- */

.v2-service-band{
    margin-bottom:0;
}

.v2-transparency-wrap{
    padding-top:28px;
    padding-bottom:36px;
}

.public-pro-footer{
    margin-top:0;
}


/* ---------- COMPONENT COMPACT ---------- */

.v2-news-image{
    min-height:175px;
}

.v2-news-content{
    padding:19px 20px 21px;
}

.v2-value-card{
    padding:24px;
}

.v2-value-grid{
    gap:18px;
}

.v2-service-band{
    padding:32px 36px;
}

.v2-transparency{
    padding:28px 32px;
}


/* ---------- TABLET ---------- */

@media (max-width:991.98px){

    .v2-hero{
        min-height:auto;
    }

    .v2-hero-grid{
        padding:42px 0;
        gap:28px;
    }

    .v2-section{
        padding:38px 0;
    }

    .v2-section-soft{
        padding-top:34px;
        padding-bottom:36px;
    }

    .v2-section-soft + .v2-section{
        padding-top:30px;
    }

    .v2-transparency-wrap{
        padding-top:24px;
        padding-bottom:30px;
    }
}


/* ---------- PHONE ---------- */

@media (max-width:767.98px){

    .v2-hero-grid{
        padding:34px 0 38px;
    }

    .v2-section{
        padding:32px 0;
    }

    .v2-section-heading{
        margin-bottom:20px;
    }

    .v2-section-soft{
        padding-top:30px;
        padding-bottom:32px;
    }

    .v2-section-soft + .v2-section{
        padding-top:26px;
    }

    .v2-news-image{
        min-height:165px;
    }

    .v2-service-band{
        padding:24px 20px;
    }

    .v2-transparency-wrap{
        padding-top:20px;
        padding-bottom:26px;
    }

    .v2-transparency{
        padding:23px 20px;
    }
}


/* ---------- SMALL PHONE ---------- */

@media (max-width:420px){

    .v2-hero-grid{
        padding:28px 0 32px;
    }

    .v2-section{
        padding:28px 0;
    }

    .v2-section-soft{
        padding-top:26px;
        padding-bottom:28px;
    }

    .v2-transparency-wrap{
        padding-bottom:22px;
    }
}


/* ==========================================================
   OKSY3-QIA 6C HOME TEASER
   ========================================================== */

.v2-qia-grid .v2-value-card{
    position:relative;
    overflow:hidden;
}

.v2-qia-grid .v2-value-card:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:#2563eb;
}

.v2-qia-grid .qia-i:before{
    background:#0f9f92;
}

.v2-qia-grid .qia-a:before{
    background:#d99816;
}

.v2-qia-grid .qia-i .v2-value-icon{
    background:#ecfdf5;
    color:#0f8b7d;
}

.v2-qia-grid .qia-a .v2-value-icon{
    background:#fff7e6;
    color:#c47b00;
}

.v2-6c-flow{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
}

.v2-6c-flow > div{
    min-width:0;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:15px;
    padding:14px 10px;
    text-align:center;
}

.v2-6c-flow strong{
    display:block;
    color:#2563eb;
    font-size:1rem;
    font-weight:900;
}

.v2-6c-flow span{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:.74rem;
    line-height:1.35;
}

.v2-model-more{
    margin-top:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:17px 20px;
    background:#eaf2ff;
    border:1px solid #dbeafe;
    border-radius:15px;
    color:#475569;
}

.v2-model-more span{
    line-height:1.6;
}

.v2-model-more a{
    white-space:nowrap;
    color:#1d4ed8;
    text-decoration:none;
    font-weight:800;
}

@media(max-width:991.98px){
    .v2-6c-flow{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:767.98px){
    .v2-6c-flow{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .v2-model-more{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .v2-model-more a{
        white-space:normal;
    }
}

@media(max-width:420px){
    .v2-6c-flow{
        grid-template-columns:1fr;
    }
}


/* ==========================================================
   OKSY3 PUBLIC V2 — HERO R3
   TYFC/AFFAIRS inspired visual language
   ========================================================== */

.v2-hero{
    min-height:0;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:
        radial-gradient(circle at 82% 14%,rgba(59,130,246,.34),transparent 26rem),
        radial-gradient(circle at 94% 88%,rgba(14,165,233,.22),transparent 24rem),
        linear-gradient(135deg,#061329 0%,#0b2450 54%,#0b4a67 100%);
    background-size:cover;
    background-position:center 38%;
    border-radius:0 0 34px 34px;
    box-shadow:0 24px 55px rgba(15,23,42,.12);
}

.v2-hero.has-image{
    background-size:cover;
    background-position:center 42%;
}

.v2-hero:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        linear-gradient(115deg,rgba(255,255,255,.055),transparent 32%),
        linear-gradient(180deg,transparent 70%,rgba(2,8,23,.20));
    pointer-events:none;
}

.v2-hero:after{
    content:"";
    position:absolute;
    right:-120px;
    top:-240px;
    width:560px;
    height:560px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(255,255,255,.018);
    background:none;
    pointer-events:none;
}

.v2-hero-tech-grid{
    position:absolute;
    inset:0;
    z-index:-1;
    opacity:.15;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size:46px 46px;
    mask-image:linear-gradient(90deg,rgba(0,0,0,.7),transparent 72%);
    -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.7),transparent 72%);
}

.v2-hero-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(8px);
    pointer-events:none;
    z-index:-1;
}

.v2-hero-glow-a{
    width:260px;
    height:260px;
    left:34%;
    top:-130px;
    background:rgba(37,99,235,.16);
}

.v2-hero-glow-b{
    width:320px;
    height:320px;
    right:8%;
    bottom:-210px;
    background:rgba(14,165,233,.15);
}

.v2-hero-grid{
    grid-template-columns:minmax(0,1.16fr) minmax(380px,.84fr);
    gap:56px;
    min-height:500px;
    padding:54px 0;
}

.v2-hero-copy{
    max-width:860px;
}

.v2-hero-brandline{
    width:max-content;
    max-width:100%;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    color:#dbeafe;
    border:1px solid rgba(191,219,254,.26);
    background:rgba(15,23,42,.24);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-radius:999px;
    padding:8px 13px;
    font-size:.76rem;
    font-weight:850;
    letter-spacing:.10em;
    text-transform:uppercase;
}

.v2-live-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#34d399;
    box-shadow:0 0 0 6px rgba(52,211,153,.12);
    flex:0 0 auto;
}

.v2-brand-sep{
    color:#60a5fa;
}

.v2-hero-copy h1{
    max-width:900px;
    font-size:clamp(2.65rem,4.75vw,5rem);
    line-height:1.04;
    letter-spacing:-.045em;
    margin:20px 0 15px;
    text-shadow:0 8px 30px rgba(2,6,23,.26);
}

.v2-hero-lead{
    max-width:690px!important;
    margin:0;
    color:rgba(255,255,255,.82)!important;
    font-size:clamp(1rem,1.45vw,1.18rem)!important;
    line-height:1.7!important;
}

.v2-hero-actions{
    margin-top:27px;
    gap:11px;
}

.v2-btn-primary,
.v2-btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:12px 18px;
}

.v2-btn-primary{
    box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.v2-btn-secondary{
    background:rgba(255,255,255,.07);
}

.v2-hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:0;
    margin-top:22px;
    color:rgba(255,255,255,.56);
    font-size:.84rem;
}

.v2-hero-meta span{
    display:inline-flex;
    align-items:center;
}

.v2-hero-meta span + span:before{
    content:"•";
    margin:0 9px;
    color:#60a5fa;
}

.v2-hero-side{
    position:relative;
}

.v2-school-pulse{
    position:relative;
    z-index:2;
    background:
        linear-gradient(145deg,rgba(40,76,132,.62),rgba(12,48,83,.55));
    border:1px solid rgba(191,219,254,.24);
    border-radius:26px;
    padding:22px;
    box-shadow:
        0 26px 70px rgba(2,8,23,.28),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.v2-pulse-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:16px;
}

.v2-pulse-kicker{
    display:block;
    font-size:.68rem;
    letter-spacing:.12em;
    color:#93c5fd;
    font-weight:850;
    margin-bottom:4px;
}

.v2-pulse-title{
    margin:0;
    color:#fff;
    font-size:1.05rem;
}

.v2-pulse-status{
    display:flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    padding:6px 9px;
    color:rgba(255,255,255,.74);
    font-size:.72rem;
}

.v2-pulse-status span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#34d399;
    box-shadow:0 0 0 5px rgba(52,211,153,.10);
}

.v2-pulse-grid{
    gap:10px;
}

.v2-pulse-card{
    min-height:128px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border:1px solid rgba(255,255,255,.70);
    border-radius:17px;
    padding:18px;
    background:rgba(255,255,255,.93);
    box-shadow:0 9px 22px rgba(2,8,23,.08);
}

.v2-pulse-card.wide{
    min-height:104px;
}

.v2-pulse-label{
    display:block!important;
    margin:0 0 8px!important;
    color:#64748b!important;
    font-size:.76rem!important;
    font-weight:750;
}

.v2-pulse-card strong{
    font-size:2.15rem;
    color:#0f172a;
}

.v2-pulse-card .v2-term-value{
    font-size:1.18rem;
    line-height:1.3;
}

.v2-pulse-card small{
    display:block;
    margin-top:7px;
    color:#94a3b8;
    font-size:.70rem;
}

.v2-hero-watermark{
    position:absolute;
    z-index:1;
    right:-35px;
    bottom:-45px;
    width:150px;
    height:150px;
    opacity:.07;
    filter:grayscale(1) brightness(2.2);
    pointer-events:none;
}

.v2-hero-watermark img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.v2-hero + .v2-section{
    padding-top:38px;
}

@media(max-width:991.98px){
    .v2-hero{
        border-radius:0 0 26px 26px;
    }

    .v2-hero-grid{
        grid-template-columns:1fr;
        min-height:0;
        padding:42px 0;
        gap:26px;
    }

    .v2-hero-copy,
    .v2-school-pulse{
        max-width:none;
    }

    .v2-pulse-grid{
        grid-template-columns:1fr 1fr;
    }

    .v2-pulse-card.wide{
        grid-column:1 / -1;
    }
}

@media(max-width:767.98px){
    .v2-hero{
        border-radius:0 0 22px 22px;
        background-position:center 35%;
    }

    .v2-hero-grid{
        padding:30px 0 32px;
    }

    .v2-hero-brandline{
        border-radius:14px;
        width:auto;
        font-size:.67rem;
        line-height:1.35;
    }

    .v2-hero-copy h1{
        font-size:2.25rem;
        margin-top:16px;
    }

    .v2-hero-actions{
        margin-top:22px;
    }

    .v2-hero-meta{
        font-size:.78rem;
        line-height:1.65;
    }

    .v2-school-pulse{
        padding:16px;
        border-radius:20px;
    }

    .v2-pulse-head{
        margin-bottom:12px;
    }

    .v2-pulse-status{
        display:none;
    }

    .v2-pulse-card{
        min-height:108px;
        padding:15px;
    }

    .v2-pulse-card strong{
        font-size:1.8rem;
    }

    .v2-hero + .v2-section{
        padding-top:28px;
    }
}

@media(max-width:420px){
    .v2-hero-copy h1{
        font-size:1.95rem;
    }

    .v2-pulse-grid{
        grid-template-columns:1fr;
    }

    .v2-pulse-card.wide{
        grid-column:auto;
    }

    .v2-hero-meta span{
        width:100%;
    }

    .v2-hero-meta span + span:before{
        display:none;
    }
}

