
        /* --- 1. การกำหนดตัวแปรสีตามชุดสีที่คุณให้มา --- */
        :root {
            --maroon: #800000;      /* สีแดงเข้ม */
            --dark-brown: #3D0B0E;  /* สีน้ำตาลเข้ม */
            --black: #000000;       /* สีดำ */
            --white: #FFFFFF;       /* สีขาว */
            --bg-light: #f4f4f4;
            --text-gray: #555555;
        }

/* =========================
   HEADER
========================= */
.header-top {
  background: #8B0000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
  position: relative;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 100px;
  width: auto;
  transform: translateY(10px);
}

.header-title {
  font-family: 'Inria Serif', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.header-right {
  position: absolute;
  top: 15px;
  right: 40px;
  font-size: 14px;
  text-align: right;
}

/* =========================
   NAVIGATION
========================= */
nav {
  background: linear-gradient(90deg, #5c0000, #8B0000, #5c0000);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 90px;
  flex-wrap: wrap;
}
nav ul li a {
    text-decoration: none; 
    color: white;          
}
nav ul li {
  color: white;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  transition: 0.3s ease;
  
}

nav ul li:hover {
  color: #ffe5e5;
}

nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

nav ul li:hover::after {
  width: 100%;
}

.dropdown-content {
    background-color: #ffffff;    
    min-width: 250px;            
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2); 
    border-radius: 8px;        
}


.dropdown-content a {
    color: #333333 !important;   
    padding: 12px 16px;
    text-decoration: none;        
    display: block;
    text-align: left;            
    font-size: 14px;             
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;    
    color: #990000 !important;   
}

.dropdown-content {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 260px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-content div {
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;          
  color: #111111;           
  letter-spacing: 0.3px;     
  transition: all 0.25s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.dropdown-content div:hover {
  background: #f3f3f3;
  border-left: 4px solid #8B0000;
  color: #000000;            
  padding-left: 28px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
        /* --- 5. Hero Section --- */
        .hero {
            position: relative;
            height: 450px;
            background: url('im/photo1.jpg') center/cover no-repeat; /* เปลี่ยนเป็นชื่อไฟล์รูปแบนเนอร์ของคุณ */
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
        }

        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .hero-content h2 { font-size: 45px; }
        .hero-content h2 span { background-color: var(--maroon); padding: 0 10px; }

        /* --- 6. Info Cards (ลอยทับ Hero) --- */
        .card-section {
            margin-top: -60px;
            position: relative;
            z-index: 5;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .info-card {
            background: var(--white);
            padding: 25px;
            display: flex;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-radius: 4px;
        }

        .card-icon { font-size: 35px; margin-right: 15px; color: #d4af37; }
        .card-body h3 { font-size: 16px; margin-bottom: 5px; text-transform: uppercase; }
        .card-body p { font-size: 13px; color: var(--text-gray); }

        /* --- 7. Careers Section (ส่วนที่ขอเพิ่มล่าสุด) --- */
        .career-section {
            padding: 80px 0;
            background-color: #fcfcfc;
        }

        .career-flex {
            display: flex;
            gap: 40px;
            align-items: flex-start;
        }

        .career-images { flex: 1; display: flex; flex-direction: column; gap: 20px; }
        .career-images img { width: 100%; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

        .career-content { flex: 1.5; }
        .career-badge {
            background-color: var(--maroon);
            color: var(--white);
            display: inline-block;
            padding: 8px 20px;
            border-radius: 8px;
            font-size: 20px;
            margin-bottom: 25px;
        }

        .career-group { margin-bottom: 20px; }
        .career-group h3 { font-size: 18px; border-left: 5px solid var(--maroon); padding-left: 12px; margin-bottom: 10px; }
        .career-group ul { list-style: none; padding-left: 20px; }
        .career-group li { font-size: 15px; color: var(--text-gray); margin-bottom: 4px; }
        .career-group li::before { content: "• "; color: var(--maroon); font-weight: bold; }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            .career-flex { flex-direction: column; }
            .hero-content h2 { font-size: 30px; }
            .nav-links { flex-direction: column; text-align: center; }
        }
    /* --- 1. การกำหนดตัวแปรสี (Color Variables) --- */
:root {
    --maroon: #800000;      /* สีแดงเข้มหลัก */
    --dark-brown: #3D0B0E;  /* สีน้ำตาลเข้มสำหรับเมนู */
    --black: #000000;       /* สีดำ */
    --white: #FFFFFF;       /* สีขาว */
    --gray-text: #555555;   /* สีเทาสำหรับเนื้อหาบรรยาย */
}

/* --- 2. การตั้งค่าพื้นฐาน (Global Styles) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif; /* ฟอนต์ทางการตามแบบฉบับหน่วยงานไทย */
}

body {
    background-color: var(--white);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. ส่วนหัวและแถบข้อมูล (Header & Top Bar) --- */
.top-info {
    background-color: var(--maroon); /* */
    color: var(--white);
    text-align: right;
    padding: 8px 5%;
    font-size: 13px;
}

.header-main {
    background-color: var(--maroon); /* */
    padding: 20px 5%;
}

.header-flex {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area img {
    height: 75px; 
    margin-right: 25px;
}

.title-area h1 {
    color: var(--white);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- 4. แถบเมนูนำทาง (Navigation Bar) --- */
.navbar {
    background-color: var(--dark-brown); /* */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-links li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 25px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links li a:hover {
    background-color: var(--maroon); /* */
}

.nav-links li a.active {
    background-color: var(--dark-brown); /* ปุ่ม Home สีเดียวกับแถบเมนูตามโจทย์ */
}

/* --- 5. พื้นที่แบนเนอร์หลัก (Hero Section) --- */
.hero {
    position: relative;
    height: 500px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* เลเยอร์สีดำโปร่งแสงทับรูป */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h2 { font-size: 50px; }
.hero-content h2 span { background-color: var(--maroon); padding: 0 15px; } /* เน้นคำว่า IoTE */

/* --- 6. การ์ดประชาสัมพันธ์ (Info Cards) --- */
/* คอนเทนเนอร์หลักที่หุ้มทั้ง 3 กล่อง */
.card-container {
    display: flex;          /* จัดเรียงแนวนอน */
    justify-content: center; /* จัดให้อยู่กึ่งกลางหน้าจอ */
    align-items: stretch;    /* ให้ทุกกล่องสูงเท่ากันแม้ข้อความยาวไม่เท่ากัน */
    gap: 20px;               /* ระยะห่างระหว่างกล่อง */
    padding: 20px;
    flex-wrap: wrap;         /* ถ้าหน้าจอแคบ ให้กล่องลงมาบรรทัดใหม่ (Responsive) */
}

/* ปรับแต่งลักษณะของแต่ละกล่อง */
.info-card {
    background-color: #ffffff;
    border-radius: 8px;      /* ความโค้งของมุมกล่อง */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* เงาฟุ้งๆ แบบในรูป */
    padding: 25px 20px;
    display: flex;
    align-items: center;     /* จัดไอคอนและข้อความให้อยู่กลางแนวตั้ง */
    gap: 15px;               /* ระยะห่างระหว่างไอคอนกับข้อความ */
    min-width: 300px;        /* ความกว้างขั้นต่ำของกล่อง */
    flex: 1;                 /* ให้กล่องขยายขนาดเท่าๆ กัน */
    max-width: 400px;        /* จำกัดความกว้างสูงสุดไม่ให้บานเกินไป */
}

/* ปรับแต่งไอคอน */
.info-card img {
    width: 40px;
    height: auto;
}

/* ปรับแต่งตัวอักษร */
.info-card p {
    margin: 0;
    font-family: 'Sarabun', sans-serif; /* แนะนำฟอนต์ไทยที่อ่านง่าย */
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* --- ส่วนเนื้อหากึ่งกลางทั้งหมด --- */
.central-content-area {
    padding: 50px 0;             /* เว้นระยะ บน-ล่าง ให้ดูโปร่ง */
    background-color: #ffffff;
    width: 100%;
}

.container-center {
    max-width: 1000px;           /* บีบความกว้างข้อความให้อ่านง่าย */
    margin: 0 auto;              /* จัดกล่องให้อยู่กึ่งกลางหน้าจอ */
    padding: 0 20px;
    text-align: center;          /* บังคับข้อความทุกอย่างให้จัดกลาง */
}

/* ปรับระยะห่างบรรทัดและย่อหน้า */
.text-block p, .dual-degree-block p {
    font-size: 18px;
    line-height: 1.9;            /* เว้นบรรทัดภาษาไทยให้โปร่ง */
    margin-bottom: 20px;
    color: #444;
}

/* เมื่อเอาเมาส์ไปวางที่กล่อง */
.info-card {
    transition: all 0.3s ease; /* ทำให้การขยับดูนุ่มนวล */
    cursor: pointer;           /* เปลี่ยนเมาส์เป็นรูปมือ */
}

.info-card:hover {
    transform: translateY(-5px); /* กล่องจะลอยขึ้นเล็กน้อย */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* เงาจะเข้มขึ้น */
    border: 1px solid #007bff; /* (ตัวเลือก) เพิ่มเส้นขอบสีฟ้าเวลาชี้ */
}


/* --- 7. ส่วนอาชีพหลังจบการศึกษา (Careers) --- */
.career-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.career-flex {
    display: flex;
    gap: 40px;
}

.career-images { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.career-images img { width: 100%; border-radius: 12px; }

.career-content { flex: 1.5; }
.career-badge {
    background-color: var(--maroon); /* หัวข้อสีแดงเข้ม */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 20px;
}

.career-group h3 { 
    border-left: 5px solid var(--maroon); /* ขีดข้างหัวข้อ */
    padding-left: 15px; 
    margin: 15px 0 10px; 
}
.career-group ul { list-style: none; padding-left: 20px; }
.career-group li::before { content: "• "; color: var(--maroon); font-weight: bold; }

/* เว้นระยะบน-ล่าง ของแต่ละส่วนให้ดูโปร่ง */
section {
    padding-top: 80px;    /* เว้นข้างบน */
    padding-bottom: 80px; /* เว้นข้างล่าง */
}

/* --- ส่วนรูปภาพยาวเต็มแถว (Full Width Banner) --- */
.full-width-banner {
    width: 100%;            /* กว้างเต็มพื้นที่ */
    overflow: hidden;       /* กันรูปล้น */
    line-height: 0;         /* ไล่ช่องว่างใต้รูปออก */
}

.full-width-banner img {
    width: 100%;            /* บังคับรูปให้กว้างเท่าหน้าจอ */
    height: auto;           /* ปรับความสูงตามสัดส่วนรูป */
    display: block;
    object-fit: cover;      /* ให้รูปดูดีแม้จะยืดกว้าง */
}

/* --- ส่วนเนื้อหาจัดกลาง (คงเดิมแต่ปรับให้ต่อจากรูปได้สวยงาม) --- */
.central-text-container {
    text-align: center !important;
    max-width: 900px;
    margin: 40px auto !important; /* เว้นระยะห่างจากขอบรูปล่างเล็กน้อย */
    padding: 0 20px;
}

.central-text-inner p {
    line-height: 1.9 !important; /* เว้นบรรทัดภาษาไทยให้โปร่ง */
    margin-bottom: 25px;
    font-size: 18px;
}

.dual-content {
    text-align: center; /* จัดกึ่งกลางทั้งหมดตามรูป */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.dual-title {
    font-size: 30px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.dual-line {
    width: 60px;
    height: 1px;
    background-color: #ddd; /* เส้นบางๆ ตามรูป */
    margin: 0 auto 25px;
}

.dual-sub {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.dual-detail-text {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

.dual-detail-text strong {
    color: #333;
    display: block; /* แยกบรรทัดให้เหมือนรูป */
    margin: 5px 0;
}

.dual-description {
    margin-top: 20px;
    font-size: 17px;
    color: #555;
}

/* ทำให้ดูดีในมือถือ */
@media (max-width: 768px) {
    .dual-title { font-size: 22px; }
    .dual-detail-text { font-size: 16px; }
}
/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f6f6f6;
  color: #333;
}


/* =========================
   HEADER
========================= */
.header-top {
  background: #8B0000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
  position: relative;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 100px;
  width: auto;
  transform: translateY(10px);
}

.header-title {
  font-family: 'Inria Serif', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.header-right {
  position: absolute;
  top: 15px;
  right: 40px;
  font-size: 14px;
  text-align: right;
}


/* =========================
   NAVIGATION
========================= */
nav {
  background: linear-gradient(90deg, #5c0000, #8B0000, #5c0000);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 90px;
  flex-wrap: wrap;
}

nav ul li {
  color: white;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

nav ul li:hover {
  color: #ffe5e5;
}

/* underline animation */
nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

nav ul li:hover::after {
  width: 100%;
}


/* =========================
   DROPDOWN - TEXT DARKER
========================= */

.dropdown-content {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 260px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-content div {
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;          /* เพิ่มความเข้ม */
  color: #111111;            /* จาก #333 → เข้มขึ้น */
  letter-spacing: 0.3px;     /* เพิ่มความคม */
  transition: all 0.25s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.dropdown-content div:hover {
  background: #f3f3f3;
  border-left: 4px solid #8B0000;
  color: #000000;            /* ตอน hover ดำสนิท */
  padding-left: 28px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   RESPONSIVE - TABLET
========================= */
@media (max-width: 1024px) {

  .header-top {
    padding: 30px 40px;
  }

  nav ul {
    gap: 40px;
  }

  .hero {
    height: 280px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .container {
    width: 90%;
  }
}

/* ล้างค่า Default */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #ffffff;
}

/* ส่วนของ Section หลัก */
.info-section {
    padding: 80px 20px; /* เว้นระยะบนล่างให้ดูโปร่ง */
    display: flex;
    justify-content: center;
}

.container {
    display: flex;
    flex-wrap: wrap; /* ให้รองรับการขึ้นบรรทัดใหม่เมื่อจอเล็กลง */
    justify-content: center;
    max-width: 1200px;
    gap: 40px; /* ระยะห่างระหว่างคอลัมน์ */
}

/* กล่องแต่ละคอลัมน์ */
.info-item {
    flex: 1;
    min-width: 280px; /* ป้องกันกล่องบีบจนเล็กเกินไป */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* วงกลมและเงา */
.circle-icon {
    width: 160px;
    height: 160px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    /* เงาฟุ้งแบบละมุนตามรูป */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(0,0,0,0.03); /* ใส่ขอบจางๆ เพื่อความเป๊ะ */
}

.circle-icon img {
    width: 90px;
    height: auto;
}

/* จัดการเนื้อหาข้อความ */
.text-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.7; /* ระยะบรรทัดไทยที่อ่านง่าย */
    margin-bottom: 2px;
}

.text-content strong {
    font-weight: 600;
    color: #000;
}

/* Reset ค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* จัด Layout หลัก */
.course-detail-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.inner-container {
    max-width: 900px; /* คุมความกว้างให้พอดีกับสายตา */
    width: 100%;
}

/* หัวข้อ (Heading) */
.main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left; /* ชิดซ้ายตามรูป */
    color: #000;
}

/* จัดการรูปภาพให้โค้งมน */
.image-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px; /* ปรับความโค้งของมุมรูปภาพให้เหมือนเป๊ะ */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ใส่เงาจางๆ ให้ดูมีมิติ */
}

/* เส้นแบ่ง */
.divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 40px 0;
}

/* สำหรับข้อความทั่วไป */
.content p, .text-content p {
    font-size: 16px;
    color: #444;
    /* ปรับระยะห่างบรรทัดเป็น 1.8 - 2.0 สำหรับภาษาไทยจะช่วยให้อ่านง่ายที่สุด */
    line-height: 1.8; 
    /* เพิ่มระยะห่างระหว่างตัวอักษรเล็กน้อยเพื่อให้หัวสระไม่เบียดกัน */
    letter-spacing: 0.02em; 
    margin-bottom: 10px;
}

/* สำหรับย่อหน้ายาวๆ ในส่วนรายละเอียดหลัก */
.description-text p {
    font-size: 18px;
    color: #555;
    /* บรรทัดยาวๆ ควรมีระยะห่างที่มากขึ้นเพื่อนำสายตาได้ดี */
    line-height: 2.0; 
    letter-spacing: 0.03em;
    text-align: center;
    /* ปรับแต่งการตัดคำภาษาไทยให้สวยงาม */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ปรับหัวข้อให้มีระยะห่างจากเนื้อหาพอสมควร */
.main-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4; /* หัวข้อใช้ระยะห่างน้อยกว่าเนื้อหาได้เพื่อให้ดูเป็นกลุ่มก้อน */
    margin-bottom: 45px;
    color: #000;
}

.timeline-section {
    /* ใส่ลิงก์รูปภาพของคุณที่นี่ */
    background-image: url('im/photo7.png');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ทำให้รูปนิ่งเวลาเลื่อน (Parallax effect) */
    padding: 80px 0; /* เว้นระยะบน-ล่างของ Section */
    min-height: 100vh; /* ให้มีความสูงอย่างน้อยเต็มหน้าจอ */
    display: flex;
    align-items: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CSS Timeline เดิมที่คุณมี --- */
.timeline-container {
    position: relative;
    padding-left: 80px;
}

/* เส้นสีแดงหนาๆ ด้านซ้าย */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 75%;
    background: #8b0000;
    border-radius: 25px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -68px; /* จัดตำแหน่งจุดให้อยู่บนแถบแดง */
    top: 10px;
    width: 25px;
    height: 25px;
    background: #4a0000;
    border-radius: 50%;
    z-index: 2;
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #ddd;
    line-height: 1.6;
}

/* จัดการภาพรวมและ Font */
.university-network {
  text-align: center;
  font-family: 'Arial', sans-serif;
  padding: 40px 20px;
  color: #334155;
}

.university-network h2 {
  font-weight: 500;
  margin-bottom: 10px;
}

/* เส้นขีดคั่นตรงกลาง */
.divider {
  width: 200px;
  border: 0;
  border-top: 1px solid #ddd;
  margin: 0 auto 40px auto;
}

/* จัดวางโลโก้ด้วย Flexbox */
.logo-container {
  display: flex;
  justify-content: center; /* จัดกึ่งกลางแนวนอน */
  align-items: center;     /* จัดกึ่งกลางแนวตั้ง */
  gap: 50px;               /* ระยะห่างระหว่างโลโก้ */
  flex-wrap: wrap;         /* ถ้าหน้าจอแคบ ให้ลงมาบรรทัดใหม่ */
}

.logo-item img {
  max-height: 100px;        /* กำหนดความสูงมาตรฐานให้เท่ากัน */
  width: auto;             /* ปรับความกว้างตามสัดส่วน */
  display: block;
}

.footer-branding {
  /* ใส่รูปพื้นหลังตึก */
  background: url('im/photo8.png');
  background-size: cover;
  background-position: center;
  padding: 60px 0 20px 0;
  color: #ffffff;
  font-family: 'Inter', 'Kanit', sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* จัดวางโลโก้ให้เรียงกันและอยู่กึ่งกลาง */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px; /* ระยะห่างระหว่างโลโก้ */
  margin-bottom: 40px;
  flex-wrap: wrap; /* รองรับมือถือให้ขึ้นบรรทัดใหม่ */
}

.logo-item img {
  max-height: 75px; /* คุมความสูงโลโก้ให้เท่ากัน */
  width: auto;
  transition: transform 0.3s ease;
}

/* เอฟเฟกต์เวลาเอาเมาส์ไปชี้ */
.logo-item img:hover {
  transform: scale(1.05);
}

/* เส้นคั่นและข้อความลิขสิทธิ์ */
.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.copyright-bar p {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* เลือกที่ตัวหัวข้อใน Header */
.header-title h1 {
    /* ในรูปใช้ฟอนต์แนว Serif (มีหัว) ซึ่งใน HTML ของคุณมีดึง Inria Serif มาแล้ว */
    font-family: 'Inria Serif', serif; 
    
    font-size: 2.5rem;      /* ปรับขนาดตามต้องการ */
    font-weight: 700;       /* ความหนา */
    color: #ffffff;         /* สีขาวเหมือนในรูป */
    line-height: 1.2;       /* ระยะห่างระหว่างบรรทัด */
    margin: 0;              /* เอาขอบส่วนเกินออก */
    text-align: left;       /* จัดชิดซ้าย */
}


/* การปรับแต่งสำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
    .info-section {
        padding: 40px 15px;
    }
    .container {
        gap: 60px;
    }
}
/* =========================
   RESPONSIVE - MOBILE
========================= */
@media (max-width: 768px) {

  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    gap: 15px;
  }

  .header-left {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    height: 80px;
    transform: none;
  }

  .header-title h1 {
    font-size: 18px;
  }

  .header-right {
    position: static;
    margin-top: 10px;
    text-align: center;
  }

  nav {
    padding: 15px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 18px;
  }

  nav ul li {
    font-size: 16px;
  }

  .hero {
    height: 220px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .container {
    width: 92%;
    margin: 40px auto;
  }

  .content-box {
    padding: 25px;
  }

  .footer-logo {
    width: 150px;
  }
}

/* =========================
   RESPONSIVE - SMALL MOBILE
========================= */
@media (max-width: 480px) {

  .hero h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
    padding: 10px 18px;
  }

  .content-box {
    font-size: 14px;
    line-height: 1.6;
  }
}