/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    /*outline:1px solid red;*/
}

html,
body{
    overflow-x:hidden;
    max-width:100%;
    font-family:'Noto Sans Thai',sans-serif;
    color:#333;
    line-height:1.8;
}

/* =========================
   CONTAINER
========================= */
.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding-left:15px;
    padding-right:15px;
}

/* =========================
   NAVBAR
========================= */
.navbar{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:999;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:80px;
}

.logo img{
    max-width:250px;
    height:auto;
    display:block;
}

.nav-menu{
    display:flex;
    gap:25px;
    align-items:center;
}

.nav-menu a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:.3s;
}

.nav-menu a:hover{
    color:#0066ff;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    color:#333;
}

.youtube-section{
    width:100%;
    max-width:1200px;
    margin:0 auto;
}

.youtube-responsive{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}


.youtube-responsive iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

/* =========================
   HERO
========================= */


.hero h1{
    font-size:52px;
    line-height:1.3;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
}

.color1{
    color:#003770;
}
.color2{
    color:#358f16;
}
/* =========================
   SECTION
========================= */
.section{
    padding:50px 0;
}

.gray{
    background:#f5f7fb;
}

/* =========================
   GRID
========================= */
.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

/* =========================
   CARD
========================= */
.card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);

    overflow-wrap:break-word;
    word-break:break-word;

    width:100%;
    max-width:100%;
}

.card img{
    max-width:800px;
    height:auto;
    display:block;
}

.content-image{
    text-align:center;
    margin-left:auto !important;
    margin-right:auto !important;
    padding: 20px;
    /*outline:3px solid green !important;
    border:3px dashed green !important;*/
}

.content-image img{
    
    max-width:800px;
    width: 100%;
    /*outline:3px solid red !important;
    border:3px dashed red !important;*/
}

.content-image-banner{
    text-align:center;
}

/* บังคับจัดกลางโลโก้ */
.content-image-logo{
    width:100%;
    text-align:center !important;
}

.content-image-logo img{
    display:block !important;
    margin:0 auto;
    max-width:300px;
    width: 100%;
}

.content-image img{
    display:block !important;
    margin:0 auto;
    max-width:700px;
}
.content-image-banner img{
    display:block !important;
    margin:0 auto !important;
    max-width:100%;
    height:auto;
}

.content-image-banner img {
    width: 100%;
    margin-left:auto !important;
    margin-right:auto !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

.full-width-frame{
    width:100vw;
    margin-left:calc(50% - 50vw);
}

.full-width-frame iframe{
    width:100%;
    height:700px;
    border:none;
    display:block;
}

/* =========================
   BUTTON
========================= */
.btn{
    display:inline-block;
    background:#00c853;
    color:#fff;
    padding:15px 35px;
    border-radius:50px;
    text-decoration:none;
    margin-top:20px;
    transition:.3s;
}

.btn-primary{
    background:#003770;
    color:#fff;
    font-weight:700;
}

.link-blue{   
    color:#003770;
    font-weight:700;
}

.link-gold{   
    color:#f5b400;
    font-weight:700;
}

.contact-box{
    background:rgba(248, 250, 255, 0.7);
    color:#000000;
    padding:12px 20px;
    border-radius:50px;
    text-align:center;
    display:inline-block;
    font-weight:500;
    backdrop-filter:blur(10px);
    box-shadow:0 5px 20px rgba(0,0,0,.25);
}

.btn:hover{
    transform:translateY(-2px);
}

.img-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    margin: 0 auto;
    margin-top: 10px;
}


/* ─── MENTOR CARD ─── */
.mentor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mentor-card .avatar-wrap {
    position: relative;
    display: inline-block;
}

.mentor-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-light);
    box-shadow: 0 0 0 6px rgba(201,162,39,0.12);
}

.mentor-badge {
    position: absolute;
    bottom: 4px; right: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}
.mentor-badge svg { width: 14px; height: 14px; }

.mentor-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

.mentor-label { font-size: 13px; color: var(--text-soft); text-align: center; }

.mentor-codes {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================
   CTA
========================= */
.cta{
    background:
        radial-gradient(circle at top center,
            rgba(255,255,255,0.15) 0%,
            rgba(255,255,255,0) 30%),
        linear-gradient(
            180deg,
            #edf7ff 0%,
            #fff 40%,
            #fff 70%,
            #edf7ff 100%
        );
        color:#000000;
    text-align:center;
    padding:100px 0;
}

/* =========================
   MEDIA
========================= */
img,
iframe,
video{
    max-width:100%;
    height:auto;
}

.floating-bar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    display:flex;
    z-index:9999;
    box-shadow:0 -2px 15px rgba(0,0,0,.15);
    justify-content: center;
    align-items: center;
}

.button-below{
    max-height: 100px;
}

.floating-btn{
    flex:1;
    text-align:center;
    padding:14px 10px;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
}

.btn-income{
    background:#f5b400;
}

.btn-register{
    background:#0319a9;
}

.btn-line{
    background:#06c755;
}

/* =========================
   FOOTER
========================= */
footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:30px;
}

/* =========================
   TABLET
========================= */
@media (max-width:992px){

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

    .hero h1{
        font-size:42px;
    }

}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){

    .container{
        padding:0 15px;
    }

    .logo img{
        max-height:45px;
        width:auto;
    }

    .menu-toggle{
        display:block;
    }

    .nav-menu{
        display:none;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        padding:20px;
        box-shadow:0 10px 20px rgba(0,0,0,.08);
        gap:15px;
    }

    .nav-menu.active{
        display:flex;
    }

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

    .hero{
        padding:60px 0;
    }

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:18px;
    }

    .section{
        padding:60px 0;
    }

    .card{
        padding:20px;
    }

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

/* =========================
   SMALL MOBILE
========================= */
@media (max-width:480px){

    .hero h1{
        font-size:28px;
    }

    .card{
        padding:18px;
    }

}