/* ===== Local Fonts ===== */
@font-face{
    font-family: 'Marcellus';
    src: url('Fonts/Marcellus-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  /* Prompt (หลายน้ำหนัก) */
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'Prompt';
    src: url('Fonts/Prompt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* ===== Helper classes (เรียกใช้สะดวก) ===== */
  .font-marcellus { font-family: 'Marcellus', serif; }
  .font-prompt    { font-family: 'Prompt', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 12px 60px;
    gap: 20px;
}

.header-top a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 60px 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-left {
    display: flex;
    gap: 35px;
}

.nav-left a {
    color: white;
    text-decoration: none;
    font-size: 17px; 
    font-weight: 300 !important;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    gap: 35px;
}

.nav-right a {
    color: white;
    text-decoration: none;
    font-size: 17px; 
    font-weight: 300 !important;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #2a2a2a;
    padding: 20px;
    gap: 15px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-color: #5a6a75;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    z-index: 10;
}

.slide-content h1 {
    font-size: 52px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.slide-content p {
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 32px;
    font-weight: 300;
}

.btn-outline {
    display: inline-block;
    padding: 11px 28px;
    border: 1.5px solid white;
    color: white;
    text-decoration: none;
    font-size: 11px;
    background: transparent;
    transition: all 0.3s;
    pointer-events: auto; /* เพิ่มบรรทัดนี้ */
    position: relative; /* เพิ่มบรรทัดนี้ */
    z-index: 20; /* เพิ่มบรรทัดนี้ */
}

.btn-outline:hover {
    background: white;
    color: #333;
}

.slide-indicators {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    width: 28px;
    border-radius: 3.5px;
}

.section {
    padding: 90px 80px;
}

.about-section {
    display: grid;
    grid-template-columns: 4fr 6fr 2fr;
    gap: 50px;
    align-items: start; 
    font-weight: 600;
}

.about-image {
    width: 100%;
    min-height: 300px; 
}

 

.about-content p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 16px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 30px;
}

.stat-box {
    text-align: right;
}

.stat-box h2 {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-box:first-child h2::after {
    content: '%';
    font-size: 64px;
}

.stat-box p {
    font-size: 14px;
    color: #666;
}

.btn-primary {
    display: inline-block;
    border-radius: 0;
    padding: 10px 26px;
    background: #1e90ff;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-top: 12px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1c7ed6;
}

.core-business {
    background: #fff;
    padding: 90px 80px;
}
@media (max-width: 768px) {
    .core-business {
        background: #fff;
        padding: 40px 15px;
    }
}

.core-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 70px;
    align-items: start;
}

.core-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.core-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.core-header p {
    font-size: 14px;
    line-height: 1.9;
    color: #222;
}

.business-carousel {
    display: flex;
    height: 520px;
}

/* Business Column - ปรับให้แคบลงและเพิ่ม background image support */
.business-column {
    flex: 0 0 60px; /* ลดจาก 100px เหลือ 60px */
    background: #ebebeb;
    background-size: cover;
    background-position: center;
    border-right: 1px solid #d8d8d8;
    position: relative;
    cursor: pointer;
    transition: flex 0.4s ease;
}

/* ถ้ามี data-bg-url ให้ใช้รูปพื้นหลัง */
.business-column[data-bg-url]:not([data-bg-url=""]) {
    background-image: var(--bg-url);
}

.business-column:last-child {
    border-right: none;
}

.business-column.active {
    flex: 1;
    background: #f9f9f9;
}

.business-number {
    position: absolute;
    top: 22px;
    left: 22px;
    font-size: 15px;
    color: #b0b0b0;
    font-weight: 300;
    z-index: 2;
}

.business-column.active .business-number {
    color: #888;
}

.business-side-text {
    writing-mode: vertical-rl;
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) rotate(180deg);
    font-size: 14px;
    color: #aaa;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.business-column.active .business-side-text {
    display: none;
}

.business-main {
    display: none; 
    height: 100%;
}

.business-column.active .business-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.business-image{
    width: 100%;
    height: 240px;          /* ความสูงของกล่อง */
    overflow: hidden;       /* ซ่อนส่วนที่เกินกล่อง */
    background: #d5d5d5;    /* สีเผื่อรูปยังไม่มา */
    margin-bottom: 28px;
    position: relative;
  }
  
  .business-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ครอปภาพให้พอดีกล่อง */
    object-position: center;/* โฟกัสกลางภาพ */
    display: block;         /* ตัดช่องว่าง inline img */
  }
  

.business-info {
    text-align: center; 
}

.business-info h4 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 11px;
    color: #333;
}

.business-info h5 {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 14px;
    color: #666;
    line-height: 1.5;
}

.business-info p {
    font-size: 11px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.partners {
    padding: 55px 80px;
    background: white;
}

.partner-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
}

.partner-logo {
    width: 85px;
    height: 42px;
    background: #f0f0f0;
}


/* ===== Community Section - Static (ไม่มี hover effect) ===== */
.community {
    padding: 90px 80px;
    background: white;
}

.community h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 45px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.community-card {
    height: 360px;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: block;
}

/* ใช้รูป hover เป็นรูปหลักเลย (static) */
.community-card.card-1 {
    background-image: url('images/homepage/h1.png');
}
.community-card.card-2 {
    background-image: url('images/homepage/h2.png');
}
.community-card.card-3 {
    background-image: url('images/homepage/h3.png');
}
.community-card.card-4 {
    background-image: url('images/homepage/h4.png');
}

/* overlay คงที่ */
.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.5));
    z-index: 1;
}

/* ป้ายข้อความ - ใช้ top เพื่อให้ตำแหน่งตรงกันทุก card */
.community-label {
    position: absolute;
    top: 220px;
    left: 22px;
    right: 22px;
    color: white;
    z-index: 2;
}

/* หัวข้อ - ขนาดเท่ากับคำอธิบาย */
.community-label h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* คำอธิบาย - ขนาดเท่ากับหัวข้อ */
.community-label p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ปุ่ม Read More (ถ้ามี) */
.community-label .btn-white {
    display: inline-block;
    padding: 7px 18px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    border-radius: 4px;
    margin-top: 12px;
}

.community-label .btn-white:hover {
    background: #f0f0f0;
}

/* Responsive - Community */
@media (max-width: 1200px) {
    .community {
        padding: 70px 40px;
    }
    
    .community-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .community {
        padding: 50px 20px;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .community-label {
        top: auto;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .community-card {
        height: 250px;
    }
    
    .community-label {
        top: auto;
        bottom: 20px;
    }
}


.institute {
    padding: 90px 80px;
    background: white;
}

.institute h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 45px;
}

.institute h2 span {
    font-weight: 300;
}

.institute-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 70px;
}

.institute-image {
    width: 100%;
    height: 360px;
    background: #c0c0c0;
}

.institute-content h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 22px;
}

.institute-content p {
    font-size: 11px;
    line-height: 1.9;
    color: #555;
}

.ceo-section {
    padding: 90px 80px;
    background: #FFF;
    text-align: center;
}

.ceo-section h2 {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 8px;
}

.ceo-section .subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 32px;
}

.ceo-section > p {
    font-size: 12px;
    line-height: 1.85;
    color: #555;
    max-width: 720px;
    margin: 0 auto 48px;
}

.team-circles {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 48px 0;
}

.circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #c8c8c8;
}

.gradient-banner {
    height: 190px;
    background: linear-gradient(135deg, #90EE90 0%, #FFD700 50%, #FFA07A 100%);
    margin-top: 48px;
}

/* ===== Footer (layout ตามรูป, no color/gradient) ===== */
footer{
    background:#fff !important;
    padding:70px 20px 28px;
    border-top:1px solid #eaeaea;
    position:relative;
  }
  
  /* แถวบน: 4 คอลัมน์ ตามสัดส่วนในภาพ (ซ้ายกว้างกว่า) */
  .footer-grid{
    display:grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap:60px;
    align-items:start;
  }
  
  /* คอลัมน์ซ้าย: มีสแลช "/" หนึ่งตัวบนสุด ตามภาพ */
  .footer-col:first-child{
    position:relative;
    padding-top:24px;
  }
  .footer-col:first-child::before{ 
    position:absolute;
    top:0; left:0;
    font-size:16px;
    color:#111;
  }
  
  /* ที่อยู่ */
  .footer-col p{
    margin:0;
    font-size:16px;
    line-height:1.8;
    color:#111;
  }
  
  /* หัวข้อเล็กสีเทา Uppercase (LINKEDIN / INSTAGRAM / YOUTUBE / EMAIL US / CONTACT US) */
  .footer-col h4{
    margin:0 0 8px 0;
    font-size:14px;
    font-weight:600;
    letter-spacing:.8px;
    color:#777;
    text-transform:uppercase;
  }
  
  /* Social ชิดซ้ายเป็นบรรทัดเดี่ยวพร้อม "/" นำหน้า */
  .footer-col:nth-child(2) h4{
    margin:0 0 6px 0;
    font-size:14px;
    font-weight:500;
    color:#111;
    letter-spacing:0;
    text-transform:none;
    position:relative;
    padding-left:14px;
  }
  .footer-col:nth-child(2) h4::before{ 
    position:absolute; left:0; top:0;
    color:#111;
  }
  
  /* Email / Phone: หนา + ขีดเส้นใต้ ตามภาพ */
  .footer-col a{
    display:inline-block;
    font-size:20px;
    font-weight:800;
    color:#111;
    text-decoration:underline;
    text-underline-offset:2px;
  }
  
  /* แถวล่าง: ลิขสิทธิ์ซ้าย & เมนูเรียงในบรรทัดเดียวด้านขวา (ตำแหน่งตามภาพ) */
  .footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid #eee;
  }
  .footer-bottom p{
    margin:0;
    font-size:14px;
    color:#111;
  }
  .footer-nav{
    display:flex;
    gap:34px;
  }
  .footer-nav a{
    font-size:16px;
    color:#111;
    text-decoration:none;
  }
  .footer-nav a:hover{ text-decoration:underline; }
  
  /* ===== Responsive ===== */
  @media (max-width: 992px){
    .footer-grid{
      grid-template-columns: 1fr 1fr;
      gap:28px;
    }
    .footer-col a{ font-size:18px; }
  }
  @media (max-width: 576px){
    .footer-grid{
      grid-template-columns: 1fr;
      gap:22px;
    }
    .footer-bottom{
      flex-direction:column;
      align-items:flex-start;
      gap:12px;
    }
    .footer-nav{ gap:18px; flex-wrap:wrap; }
  }

  /* Remove all hr-like separators in footer */
footer,
.footer-bottom {
  border-top: none !important;
}

/* keep spacing without the line */
.footer-bottom {
  padding-top: 0;
  margin-top: 26px;
}

/* just in case any <hr> is used */
footer hr {
  display: none !important;
  height: 0 !important;
  border: 0 !important;
}

/* no decorative pseudo lines from old styles */
footer::before,
footer::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .section {
        padding: 70px 40px;
    }

    .about-section {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-container {
        display: none;
    }

    .core-wrapper {
        grid-template-columns: 1fr;
    }

    .business-carousel {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        background: #2a2a2a;
    }

    .header-top {
        padding: 10px 20px;
    }

    .header-main {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: none;
    }

    .nav-left, .nav-right {
        display: none;
    }

    .logo-container {
        position: static;
        transform: none;
    }

    .burger-menu {
        display: flex;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .section {
        padding: 50px 20px;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .business-carousel {
        flex-direction: column;
        height: auto;
    }

    .business-column {
        flex: none;
        height: 60px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d8d8d8;
    }

    .business-column:last-child {
        border-bottom: none;
    }

    .business-column.active {
        height: auto;
        min-height: 500px;
    }

    .business-number {
        top: 35px;
        left: 35px;
    }

    .business-side-text {
        writing-mode: horizontal-tb;
        transform: none;
        left: 95px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
    }

    .business-column.active .business-side-text {
        display: none;
    }

    .institute-grid {
        grid-template-columns: 1fr;
    } 
}

    .partners{ padding:55px 20px; background:#fff; }

    .partner-swiper .swiper-slide{
    display:flex; align-items:center; justify-content:center;
    }

    .partner-logo-img{
    width:160px; height:64px; object-fit:contain;
    border-radius:10px; background:#f3f3f3; /* เผื่อโลโก้โปร่งใส */
    box-shadow:0 0 0 1px rgba(0,0,0,.06) inset; 
    }
    .partner-logo-img:hover{ filter:none; opacity:1; transform:translateY(-2px); }

    @media (max-width:576px){
    .partner-logo-img{ width:140px; height:56px; }
    }


    /* ===== Institute - Carousel (เหมือน business-carousel) ===== */
.institute-wrapper{
    display:grid;
    grid-template-columns: 1fr 380px;
    gap:70px;
    align-items:start;
  }
  
  .institute-carousel{ display:flex; height:520px; }
  .institute-column{
    flex:0 0 60px;
    background:#ebebeb;
    background-size:cover;
    background-position:center;
    border-right:1px solid #d8d8d8;
    position:relative;
    cursor:pointer;
    transition:flex .4s ease;
  }
  
  /* ใช้รูปพื้นหลังเมื่อมี data-bg-url */
  .institute-column[data-bg-url]:not([data-bg-url=""]) { background-image: var(--bg-url); }
  
  .institute-column:first-child{ border-left:1px solid #d8d8d8; }
  .institute-column:hover{ background:#e5e5e5; }
  .institute-column.active{ flex:1; background:#f9f9f9; }
  
  .institute-number{
    position:absolute; left:22px; top:20px;
    font-size:18px; color:#bcbcbc; font-weight:500;
  }
  
  .institute-side-text{
    writing-mode: vertical-rl;
    position:absolute; left:50%; bottom:30px;
    transform:translateX(-50%) rotate(180deg);
    font-size:11px; color:#aaa; white-space:nowrap; letter-spacing:.5px;
  }
  
  .institute-column.active .institute-side-text{ display:none; }
  
  .institute-main{ display:none;   height:100%; }
  .institute-column.active .institute-main{
    display:flex; flex-direction:column; align-items:center;
  }
  
  .institute-image{
    width: 100%;
    height: 240px;          /* ความสูงของกล่อง */
    overflow: hidden;       /* ซ่อนส่วนที่เกินกล่อง */
    background: #d5d5d5;    /* สีเผื่อรูปยังไม่มา */
    margin-bottom: 28px;
    position: relative;
  }
  
  .institute-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ครอปภาพให้พอดีกล่อง */
    object-position: center;/* โฟกัสกลางภาพ */
    display: block;         /* ตัดช่องว่าง inline img */
  }
 
  .institute-info h4{ font-size:16px; font-weight:500; margin:0 0 6px; color:#111; }
  .institute-info h5{ font-size:12px; font-weight:400; margin:0 0 14px; color:#666; line-height:1.5; }
  .institute-info p{ font-size:11px; line-height:1.8; color:#666; margin-bottom:20px; }
  
  /* ปุ่มเหมือนเดิม */
  .btn-primary{ display:inline-flex; align-items:center; gap:8px; padding:10px 16px; background:#2e7df6; color:#fff; border-radius:8px; font-size:12px; text-decoration:none; }
  
  /* Responsive: ให้เหลือ padding ข้าง 20px ตามที่คุยไว้ */
  @media (max-width:1200px){
    .institute-wrapper{ grid-template-columns:1fr; gap:40px; }
    .institute-carousel{ height:auto; } 
    .institute-image{ max-width:100%; }
  }

 
/* --- ค่าเริ่มต้นสำหรับ PC --- */
.mobile_off {
    display: block !important;   /* แสดงบน PC */
  }
  .mobile_on {
    display: none !important;    /* ซ่อนบน PC */
  }
  
  /* --- เมื่อหน้าจอเล็ก (Mobile / Tablet) --- */
  @media screen and (max-width: 768px) {
    .mobile_off {
      display: none !important;  /* ซ่อนบนมือถือ */
    }
    .mobile_on {
      display: block !important; /* แสดงบนมือถือ */
    }
  }
   

/* TVA Institute Section - ปรับเหมือนกัน */
@media (max-width: 1200px) {
    .institute {
        padding: 60px 15px;
    }
    
    .institute-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .institute-carousel {
        height: auto;
        margin: 0 -10px;
    }
}

@media (max-width: 768px) {
    .institute {
        padding: 40px 25px;
    }
    
    .institute-carousel {
        margin: 0 -5px;
    }
}
 
a:focus, a:active {
    outline: none !important;
    }


    /* ===== CEO Slider (ใช้ layout เดิม) ===== */
.ceo-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.ceo-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* โชว์แค่ slide ที่ active */
.ceo-slide.active {
    display: block;
    opacity: 1;
}

 

/* จุดเล็กๆ ใต้ข้อความ */
.ceo-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ceo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ceo-dot.active {
    background: #111;
    transform: scale(1.3);
}

/* Responsive สำหรับ ceo-section */
@media (max-width: 1200px) {
    .ceo-section {
        padding: 70px 40px;
    }
}

@media (max-width: 768px) {
    .ceo-section {
        padding: 50px 20px;
    }
    
    .ceo-section h2 {
        font-size: 24px;
        white-space: nowrap;
    }
    
    .ceo-section .subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }
    
    .ceo-slider {
        max-width: 100%;
        padding: 0;
    }

    .ceo-slide p {
        font-size: 12px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .ceo-section {
        padding: 40px 15px;
    }
    
    .ceo-section h2 {
        font-size: 20px;
    }
    
    .ceo-section .subtitle {
        font-size: 10px;
    }
    
    .ceo-slide p {
        font-size: 11px;
    }
}