* { 
    font-family: "Noto Sans Lao", sans-serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    font-style: normal;
    margin: auto;
    width: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* contract school */
.contract{
    display: flex;
    justify-content: start;
    position: relative;
    z-index: 10;
    background: rgb(5, 188, 188);
}
.contract img{
    padding-top: 0.1rem;
    border-radius: 100%;
    width: 2rem;
    margin: 0.5rem;
}

/* logo and menu */
/* logo */
nav{
    background: white;
    top: 0;
    left: 0;
    position: sticky;

    z-index: 1000;

    display: flex;
    padding: 0.5rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px -5px black ;
    z-index: 1000;
}
.logo{
    display:flex;
    align-items: center;
    padding-left: 0.5rem;
}
.logo h2{
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: clamp(0.5rem,calc(5vh+1rem),1.2rem);
    padding: min(0.5em);
    margin: 0;
    line-height: 1.2;
}
.logo a img{
    display: block;
    border-radius: 100%;
    width: 100px;
}
/* menu */
.allmenu{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: relative;
}
.menu{
    position: relative;
    margin-right: 2rem;
}
.menu-btn{
    font-size: 1.2rem;
    text-decoration: none;
    border: none;
    background: white;
    cursor: pointer;
    position: relative;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown{
    position: absolute;
    color: black;
    left: auto;
    margin: 0;
    border-top: 2px solid blue;
    width: 10rem;
    
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease ;
    background:white;
}
.dropdown li{
    padding-top: 5px;
}
a{
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
}
.menu:hover .dropdown{
    opacity: 1;
    transform: translateY(0);
}
.hamburger{
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition:  0.3s;
}
.overlay.show{
    opacity: 0.3;
    pointer-events: auto;
}
@media(max-width:768px){
    .hamburger{
        display: block;
        padding: 1rem;
    }
    .allmenu{
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height:100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        z-index: 10000;
        overflow-y:auto ;
    }

    /* open menu */
    .allmenu.show{
        right: 0;
    }
    
    .dropdown{
    position: relative;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3 ease;
    background: white;
    }

    
    #btn-active{
    color: black;
    padding-bottom: 0.1rem;
    border-bottom: none;
    }
    .dropdown.show{
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== HERO ===== */
.page-hero {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: blue;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/picture/ໜ້າຫຼັກທຸງສອງ.jpeg")
    center/cover no-repeat;
  opacity: 0.15;
}

.page-hero h1 {
  position: relative;
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 0 1rem;
}

/* ===== LAYOUT ===== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

/* ===== TABLE ===== */
.info-table-wrap {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}

.info-table-wrap h2 {
  background: blue;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table tr:nth-child(even) {
  background: #f0fbfb;
}

table tr:hover {
  background: #e0f7f7;
}

table td {
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

table td:first-child {
  font-weight: 700;
  color: #0568a6;
  width: 40%;
  white-space: nowrap;
}

table td a {
  color: #05bcbc;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* ===== SECTION CARDS ===== */
.section-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.section-card-header {
  background: blue;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-card-body {
  padding: 1.2rem 1.5rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

.section-card-body p {
  margin-bottom: 0.5rem;
}

/* ===== LIST ===== */
.section-card-body ul {
  list-style: none;
  padding: 0;
}

.section-card-body ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  border-bottom: 1px dashed #eee;
  font-size: 0.93rem;
}

.section-card-body ul li:last-child {
  border-bottom: none;
}

.section-card-body ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #05bcbc;
  font-size: 0.85rem;
}

/* ===== STRATEGY GROUP ===== */
.strategy-group {
  margin-bottom: 1.2rem;
}

.strategy-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: blue;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border-left: 3px solid #0568a6;
}

/* ===== COLOR BADGE ===== */
.color-badge {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a1628;
    color: #ccc;
    border-top: 4px solid rgb(5,188,188);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo-img {
    border-radius: 50%;
    width: 80px;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-school-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.footer-slogan {
    font-size: 0.85rem;
    color: rgb(5,188,188);
    font-style: italic;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgb(5,188,188);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgb(5,188,188);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s;
}

.footer-social img:hover {
    transform: scale(1.15);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.78rem;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .footer-col { min-width: unset; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .page-hero {
    height: 180px;
  }

  table td:first-child {
    white-space: normal;
    width: 45%;
  }

  table td {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .section-card-body {
    padding: 1rem;
    font-size: 0.88rem;
  }
}
