/* =======================================
   GLOBAL VARIABLES
======================================= */
:root {
  --primary-dark: #0f172a;
  --primary-blue: #1e3a8a;
  --accent-blue: #2563eb;
  --accent-cyan: #00E5FF;
  --text-main: #334155;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.7; background-color: var(--bg-white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary-dark); letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; display: block; } 

.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.section-padding { padding: 90px 0; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-dark); }
.section-title .divider { width: 50px; height: 3px; background: #00b4d8; margin: 20px auto 0; border-radius: 2px; }
.section-title.dark-mode h2 { color: #fff; }

/* =======================================
   HEADER
======================================= */
header { 
    position: fixed; top: 0; width: 100%; 
    background: rgba(255, 255, 255, 0.98); 
    z-index: 1000; 
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}
.top-bar { background-color: var(--bg-light); border-bottom: 1px solid var(--border-color); padding: 6px 0; }
.top-bar-container { display: flex; justify-content: flex-end; }
.quick-menu { display: flex; gap: 20px; list-style: none; }
.main-header { padding: 12px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 45px; width: auto; }
.logo span { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 900; color: #111827; letter-spacing: -1px; margin-left: 5px; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); }
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links li a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--text-main); letter-spacing: 1px; display: inline; }
.nav-links li a:hover { color: var(--accent-blue); }

.nav-utility a {
    font-size: 0.75rem !important; display: flex !important; align-items: center; gap: 6px;
    color: var(--text-light) !important; transition: all 0.3s ease; text-transform: uppercase; font-weight: 700 !important;
}
.nav-utility a img { height: 12px; width: auto; opacity: 0.7; transition: 0.3s; }
.nav-utility a i { color: var(--text-light); transition: 0.3s; }
.nav-utility a:hover { color: var(--accent-blue) !important; }
.nav-utility a:hover i { color: var(--accent-blue); }
.nav-utility a:hover img { opacity: 1; }
.mobile-utility-wrapper { display: none; }

/* =======================================
   HERO SECTION & BANNERS
======================================= */
.hero { height: 100vh; min-height: 650px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('/assets/img/head.jpg') center/cover no-repeat; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(37,99,235,0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; color: #fff; margin-top: 50px;} 
.hero-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 25px; line-height: 1.15; text-transform: uppercase; letter-spacing: 2px; color: #ffffff !important; }
.hero-content h1 span { color: #00E5FF; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; opacity: 0.9; }

.page-hero { padding: 180px 0 140px; background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(37,99,235,0.85) 100%), url('/assets/img/judges.jpg') center/cover no-repeat; text-align: center; color: #fff; position: relative; }
.hero-main-logo { width: 140px; height: auto; margin: 0 auto 30px; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.page-hero h1 { font-size: 3.5rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.page-hero h1 span { color: var(--accent-cyan); }
.page-hero p { font-size: 1.15rem; max-width: 800px; margin: 0 auto; opacity: 0.9; font-weight: 300; line-height: 1.8;}

.btn-gradient { display: inline-block; padding: 15px 40px; background: #00E5FF; color: #0f172a; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 50px; transition: 0.3s; }
.btn-gradient:hover { background: #fff; color: var(--accent-blue); }

/* =======================================
   ABOUT WMBO SECTION
======================================= */
#about {
    background-color: #f1f5f9;
    width: 100%;
    max-width: 100%; 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* =======================================
   CATEGORIES (???? ADJUDICATION)
======================================= */
.categories { background: var(--bg-light); border-top: 1px solid var(--border-color); }
.cat-sub-heading { font-size: 1.5rem; color: var(--primary-dark); margin: 40px 0 20px; text-align: left; border-left: 4px solid var(--accent-blue); padding-left: 15px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 40px; }
.cat-card { background: var(--bg-white); border-radius: 12px; padding: 20px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: 0.3s; display: flex; align-items: flex-start; gap: 15px; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); }
.cat-icon { width: 50px; height: 50px; background: var(--gradient-accent); color: var(--bg-white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2); }
.cat-info h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 5px; text-transform: uppercase; letter-spacing: -0.5px;}
.cat-info p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; font-weight: 300;}

.cat-card.full-row-mmb { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; padding: 30px; gap: 30px; }
.mmb-top { flex: 1; display: flex; align-items: flex-start; gap: 15px; }
.mmb-top .cat-info h3 { font-size: 1.25rem; }
.mmb-top .cat-info p { font-size: 0.9rem; max-width: 450px; }
.mmb-bottom { flex: 1.2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-left: 30px; border-left: 1px dashed var(--border-color); }
.mmb-sub-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 15px; background: var(--bg-light); border-radius: 8px; border: 1px solid var(--border-color); transition: 0.3s; }
.mmb-sub-item:hover { border-color: var(--accent-cyan); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mmb-sub-icon { width: 55px !important; height: auto !important; max-height: 40px !important; object-fit: contain; flex-shrink: 0; }

/* =======================================
   PORTAL CONTENT (JUDGES & DOCUMENTS)
======================================= */
.adjudication-portal-wrapper { position: relative; z-index: 10; margin-top: -100px; padding: 0 20px; margin-bottom: 60px; }
.acs-portal-card { background: var(--bg-white); padding: 40px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); border: 2px solid var(--accent-blue); text-align: center; max-width: 900px; margin: 0 auto 30px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.acs-portal-logo { height: 60px; width: auto; }
.acs-portal-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 1px; }
.acs-portal-desc { font-size: 0.95rem; color: var(--text-light); max-width: 650px; line-height: 1.6; margin-bottom: 10px; }
.btn-acs-site { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; background: var(--gradient-accent); color: #fff; font-weight: 800; border-radius: 50px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.btn-acs-site:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4); color: var(--primary-dark); }

.judges-portal-card { background: var(--bg-white); padding: 50px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); border: 2px solid var(--accent-cyan); text-align: center; max-width: 900px; margin: 0 auto; }
.judges-portal-card h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 30px; letter-spacing: 1px; }
.judges-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.btn-judge { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 40px; background: var(--gradient-accent); color: #fff; font-weight: 800; border-radius: 50px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3); }
.btn-judge:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 229, 255, 0.5); color: var(--primary-dark); }

.portal-documents { margin-top: 20px; text-align: left; border-top: 1px solid var(--border-color); padding-top: 30px; }
.portal-doc-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.portal-doc-heading { font-size: 1.2rem; color: var(--primary-dark); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin: 0; }
.btn-close-all { background: transparent; color: var(--text-light); border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 5px; font-size: 0.7rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.btn-close-all:hover { background: #f1f5f9; color: var(--primary-dark); }

.doc-item { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 15px; box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.3s ease; }
.doc-item[open] { border-color: var(--accent-blue); box-shadow: var(--shadow-md); background: #fff; }
.doc-title { padding: 20px 25px; font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); cursor: pointer; display: flex; align-items: center; gap: 15px; list-style: none; }
.doc-title::-webkit-details-marker { display: none; } 
.doc-title i { color: var(--accent-blue); font-size: 1.3rem; }
.doc-title::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; color: var(--text-light); transition: transform 0.3s ease; }
.doc-item[open] > .doc-title::after { transform: rotate(180deg); color: var(--accent-blue); }
.doc-content { padding: 0 25px 25px 25px; color: var(--text-main); border-top: 1px solid var(--border-color); margin-top: 10px; padding-top: 20px; }
.doc-content p { margin-bottom: 15px; font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

.sub-doc-item { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.sub-doc-title { padding: 15px 20px; font-size: 0.95rem; font-weight: 700; color: var(--primary-blue); cursor: pointer; display: flex; align-items: center; list-style: none; transition: background 0.3s ease; }
.sub-doc-title:hover { background: var(--bg-light); }
.sub-doc-title::-webkit-details-marker { display: none; }
.sub-doc-title::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; color: var(--text-light); font-size: 0.8rem; transition: transform 0.3s ease; }
.sub-doc-item[open] > .sub-doc-title::after { transform: rotate(180deg); color: var(--accent-blue); }
.sub-doc-item[open] { border-color: var(--accent-cyan); }
.sub-doc-content { padding: 0 20px 20px 20px; border-top: 1px dashed var(--border-color); margin-top: 5px; padding-top: 15px; }
.caption-acronym { color: var(--accent-blue); font-weight: 800; margin-right: 3px; }

.doc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-top: 10px; }
.doc-gallery a { cursor: pointer; transition: transform 0.2s; }
.doc-thumb { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background: #fff; text-align: center; }
.doc-thumb img { width: 100%; height: 100px; object-fit: cover; object-position: top; background: #f8fafc; border-bottom: 1px solid var(--border-color); padding: 5px; }
.doc-thumb span { display: block; padding: 8px; font-size: 0.75rem; font-weight: 600; color: var(--primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-thumb:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--accent-blue); }
.doc-thumb:hover span { color: var(--accent-blue); }

.btn-download-pdf, .btn-download-excel { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 25px; font-weight: 700; border-radius: 50px; font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; width: 100%; margin-top: 15px; }
.btn-download-pdf { background: #fee2e2; color: #dc2626; border: 1px solid #f87171; }
.btn-download-pdf:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-download-excel { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.btn-download-excel:hover { background: #166534; color: #fff; border-color: #166534; }
.sheet-notice { text-align: center; font-size: 0.9rem; color: var(--text-light); margin-bottom: 5px; }
.admin-link { display: inline-block; font-size: 0.65rem; font-weight: 300; color: #cbd5e1; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; margin-top: 10px; text-align:center; width:100%; }
.admin-link:hover { color: #94a3b8; }

.chart-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.chart-heading { font-size: 0.95rem; color: var(--primary-dark); font-weight: 700; margin-bottom: 15px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.chart-heading i { color: var(--accent-blue); }

/* =======================================
   MISC & OTHERS
======================================= */
.quick-access-section { background-color: #f1f5f9; padding: 60px 0; border-bottom: 1px solid var(--border-color); }
.quick-access-wrapper { position: relative; z-index: 10; margin: 0 auto; padding: 0 20px; }
.quick-access-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.quick-card { background: #ffffff; border-radius: 16px; padding: 25px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; }
.quick-card:hover { transform: translateY(-8px); border-color: var(--accent-cyan); box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15); }
.quick-logo { height: 45px; width: auto; margin-bottom: 12px; }
.quick-icon { font-size: 2.2rem; color: var(--accent-blue); margin-bottom: 12px; }
.quick-title { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.quick-desc { font-size: 0.8rem; color: var(--text-light); margin-top: 5px; }

.about-content { max-width: 1000px; margin: 0 auto; text-align: center; max-height: 450px; overflow-y: auto; padding-right: 15px; }
.about-content::-webkit-scrollbar { width: 6px; }
.about-content::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 10px; }
.about-content::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 10px; }
.about-logo-wrapper { text-align: center; margin-bottom: 40px; }
.about-logo-wrapper img { width: 120px; height: auto;}
.about-text { font-size: 1rem; margin-bottom: 18px; line-height: 1.8; color: var(--text-main); text-align: justify; }
.about-highlight { font-size: 1.2rem; font-weight: 700; color: var(--accent-blue); margin-top: 40px; margin-bottom: 15px; padding: 25px 30px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-color); font-style: italic; text-align: center; }

.goals { background-color: #f8fafc; border-top: 1px solid var(--border-color); }
.goals-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.goal-card { background: #fff; padding: 40px 20px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-align: center; position: relative; overflow: hidden; }
.goal-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-accent); opacity: 0; transition: 0.4s; }
.goal-card:hover { transform: translateY(-10px); border-color: var(--accent-cyan); box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15); }
.goal-card:hover::before { opacity: 1; height: 7px; }
.goal-icon-wrapper { width: 65px; height: 65px; border-radius: 50%; background: #eff6ff; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; transition: all 0.4s ease; }
.goal-icon { font-size: 1.7rem; color: var(--accent-blue); transition: all 0.4s ease; }
.goal-card:hover .goal-icon-wrapper { background: var(--gradient-accent); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); transform: scale(1.1) rotate(5deg); }
.goal-card:hover .goal-icon { color: #fff; }
.goal-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary-dark); font-weight: 800; transition: color 0.3s;}
.goal-card:hover h3 { color: var(--accent-blue); }
.goal-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin: 0; }

.init-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.acs-initiative-card { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(15,23,42,0.02) 0%, rgba(37,99,235,0.05) 100%); border: 2px solid var(--accent-cyan) !important; display: flex; flex-direction: row !important; align-items: center; justify-content: space-between; padding: 30px 50px !important; gap: 30px; }
.acs-initiative-card:hover { transform: translateY(-5px) !important; box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15) !important; }
.acs-init-left { display: flex; align-items: center; gap: 30px; text-align: left; }
.acs-init-logo { height: 60px; width: auto; }
.acs-init-text h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--primary-dark); font-weight: 800; }
.acs-init-text p { font-size: 0.95rem; color: var(--text-light); margin: 0; max-width: 500px; }
.acs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px; font-weight: 700; font-size: 0.85rem; background: var(--accent-blue); color: #fff; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.acs-initiative-card:hover .acs-btn { background: var(--primary-dark); }
.init-card { padding: 40px 20px; text-align: center; border-radius: 16px; border: 1px solid var(--border-color); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.init-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--gradient-accent); opacity: 0.8; transition: 0.4s; }
.init-card:hover { border-color: var(--accent-cyan); box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15); transform: translateY(-8px); }
.init-card:hover::before { opacity: 1; height: 8px; }
.init-logo-area { height: 60px; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; width: 100%; }
.init-logo-area img { max-width: 100%; max-height: 100%; object-fit: contain; }
.text-logo { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--primary-dark); }
.init-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-dark); font-weight: 800; }
.init-desc { font-size: 0.8rem; color: var(--text-light); margin-bottom: 25px; flex-grow: 1; }
.init-btn { display: inline-block; padding: 10px 25px; font-weight: 700; font-size: 0.75rem; color: var(--accent-blue); border: 2px solid var(--border-color); border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; background: var(--bg-light); }
.init-card:hover .init-btn { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.adj-system-banner { background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('/assets/img/judges.jpg') center/cover no-repeat; padding: 80px 40px; color: #fff; text-align: center; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.adj-system-banner h2 { color: #fff; font-size: 2.2rem; margin-bottom: 20px; letter-spacing: 1px; }
.adj-system-banner p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

.leadership { background-color: var(--bg-light); border-top: 1px solid var(--border-color); padding-bottom: 80px; }
.leadership-image-banner { width: 100%; margin-bottom: 50px; display: block; }
.leadership-image-banner img { width: 100%; height: auto; object-fit: cover; display: block; }
.exec-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; align-items: start; }
.exec-top-grid .board-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); text-align: center; box-shadow: var(--shadow-sm); transition: 0.3s;}
.exec-top-grid .board-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.exec-top-grid .board-info { padding: 25px 15px; }
.exec-top-grid .board-info h3 { font-size: 1.25rem; margin-bottom: 5px; color: var(--primary-dark); font-weight: 800;}
.exec-top-grid .board-info .position { font-size: 0.85rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; display: block;}
.ceo-card { border: 4px solid var(--accent-blue) !important; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25) !important; z-index: 10; position: relative; }
.ceo-card:hover { transform: translateY(-5px) !important; box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4) !important; }
.ceo-card .board-info h3 { font-size: 1.35rem !important; color: #0f172a !important; }
.ceo-card .board-info .position { color: #2563eb !important; font-size: 0.95rem !important; letter-spacing: 0.5px; }
.country-fade { display: block; font-size: 0.7rem; color: #94a3b8; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; opacity: 0.7; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 60px; justify-content: center; }
.director-full { width: 90%; max-width: 1280px; margin: 0 auto 80px; }
.director-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.board-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: all 0.3s ease; text-align: center; }
.board-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.board-img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #e2e8f0; position: relative; }
.board-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; filter: grayscale(10%); }
.board-card:hover .board-img-wrap img { transform: scale(1.05); filter: grayscale(0%); }
.board-info { padding: 15px 10px; }
.board-info h3 { font-size: 0.95rem; margin-bottom: 2px; color: var(--primary-dark); font-weight: 700;}
.board-info .position { font-size: 0.65rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; margin-bottom: 8px; display: block; min-height: 25px; line-height: 1.2;}
.country-reps-container { background: #fff; padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.country-reps-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 50px; row-gap: 15px; }
.rep-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 25px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 50px; transition: 0.3s; cursor: default; }
.rep-item:hover { background: #fff; border-color: var(--accent-blue); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateX(5px); }
.rep-country { font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: 12px; font-size: 0.95rem;}
.rep-country .fi { border-radius: 2px; }
.rep-name { color: var(--text-main); font-size: 0.9rem; font-weight: 500; text-align: right; }

.network { background-color: #0b1120; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; color: #fff; }
.network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.net-card { position: relative; background: #111827; padding: 30px 15px; text-align: center; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; display: flex; flex-direction: column; align-items: center; min-height: 240px; text-decoration: none; }
.net-card:hover { border-color: var(--accent-cyan); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1); transform: translateY(-5px); }
.expand-btn { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; z-index: 5; }
.net-card:hover .expand-btn { color: var(--accent-cyan); background: rgba(0, 229, 255, 0.1); }
.expand-btn:hover { background: var(--accent-cyan) !important; color: #0f172a !important; transform: scale(1.15); }
.net-logo-area { width: 80px; height: 80px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff; transition: 0.3s; padding: 4px; overflow: hidden; }
.net-card:hover .net-logo-area { box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
.net-logo-area img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.net-country { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; justify-content: center; }
.net-country .fi { border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.5); font-size: 0.9rem;}
.net-org { font-size: 0.75rem; color: #94a3b8; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.5px; flex-grow: 1; }
.net-url { font-size: 0.65rem; color: #475569; margin-top: 10px; transition: 0.3s; }
.net-card:hover .net-url { color: rgba(255,255,255,0.6); }

.org-modal { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(11, 17, 32, 0.95); justify-content: center; align-items: center; padding: 20px; }
.org-modal-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
.org-modal-content { position: relative; background: #1f2937; border: 1px solid var(--accent-cyan); border-radius: 20px; padding: 40px; text-align: center; max-width: 500px; width: 100%; z-index: 2; box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15); animation: scaleUp 0.3s ease-out; }
@keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.org-modal-close { position: absolute; top: 15px; right: 20px; color: #94a3b8; font-size: 30px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.org-modal-close:hover { color: #fff; transform: scale(1.1);}
.org-modal-logo { width: 120px; height: 120px; margin: 0 auto 25px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 5px; overflow: hidden; box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
.org-modal-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.org-modal-country { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px;}
.org-modal-name { font-size: 1rem; color: #cbd5e1; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.5;}
.org-modal-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px; background: var(--gradient-accent); color: #0f172a; font-weight: 800; border-radius: 50px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s; margin-top: 10px; }
.org-modal-link:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3); color: #fff;}

.contact-section { background-color: var(--bg-light); border-top: 1px solid var(--border-color); text-align: center; }
.contact-container { width: 90%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px;}
.contact-item-box { background: #fff; border: 1px solid var(--border-color); padding: 50px; border-radius: 16px; transition: 0.3s; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; box-shadow: 0 10px 25px rgba(0,0,0,0.05);}
.contact-item-box:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.contact-icon-wrapper { width: 70px; height: 70px; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; border: 2px solid var(--border-color); }
.contact-icon-wrapper i { font-size: 2.2rem; color: var(--accent-blue); }
.contact-item-box h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary-dark); font-weight: 800;}
.contact-item-box p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 30px; line-height: 1.6; }
.btn-contact { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; background: var(--accent-blue); color: #fff; font-weight: 700; border-radius: 50px; font-size: 1rem; transition: 0.3s; }
.btn-contact:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); color: #fff; }
.philosophy { background: var(--bg-white); text-align: center; }
.phil-box { max-width: 900px; margin: 0 auto; }
.phil-box p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.8; text-align: justify; }
.highlight-quote { font-size: 1.25rem; font-weight: 700; color: var(--accent-blue); font-style: italic; padding: 30px; background: var(--bg-light); border-left: 5px solid var(--accent-cyan); border-radius: 0 12px 12px 0; margin-top: 40px; text-align: center; }
.captions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.caption-box { text-align: center; padding: 50px 30px; background: #fff; border-radius: 16px; border: 1px solid var(--border-color); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; }
.caption-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--gradient-accent); opacity: 0; transition: 0.3s; }
.caption-box:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.caption-box:hover::before { opacity: 1; }
.cap-icon { font-size: 3.5rem; color: var(--primary-dark); margin-bottom: 25px; transition: 0.3s; }
.caption-box:hover .cap-icon { color: var(--accent-blue); transform: scale(1.1); }
.caption-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-dark); font-weight: 800;}
.caption-box p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6;}
.cta-section { background-color: var(--primary-dark); padding: 80px 0; text-align: center; color: #fff; }
.cta-section h2 { color: #fff; margin-bottom: 20px; font-size: 2rem;}
.cta-section p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;}
.btn-outline { display: inline-block; padding: 15px 40px; border: 2px solid var(--accent-cyan); color: var(--accent-cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 50px; transition: 0.3s; }
.btn-outline:hover { background: var(--accent-cyan); color: var(--primary-dark); }
.image-modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.image-modal-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.image-modal-content { position: relative; max-width: 90%; max-height: 90vh; z-index: 2; display: flex; justify-content: center; align-items: center; }
.image-modal-content img { max-width: 100%; max-height: 90vh; object-fit: contain; cursor: pointer; }
.image-modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 10; transition: 0.3s; }
.image-modal-close:hover { color: var(--accent-cyan); transform: scale(1.1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem; cursor: pointer; padding: 15px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; z-index: 10; transition: 0.3s; }
.lightbox-nav:hover { background: var(--accent-blue); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.image-modal-help { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: rgba(255,255,255,0.2); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-family: 'Inter', sans-serif; z-index: 10; pointer-events: none; }
footer { background-color: #030712; padding: 60px 0 30px; text-align: center; color: #94A3B8; }
.footer-img { height: 60px; margin-bottom: 20px; opacity: 0.9; }
.copyright { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; margin-top: 30px; font-size: 0.85rem; }

/* =======================================
   HOME PAGE - COMPETITION CATEGORIES (Big Logos & No Text Overlap)
======================================= */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr; /* ????????????????? ?????? ?????????? 100% */
    gap: 15px;
    margin: 0 auto;
    max-width: 1200px;
}

.home-cat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
    height: 100%; 
    box-sizing: border-box;
    position: relative;
}

.home-cat-card:hover {
    transform: translateY(-4px); 
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #ffffff; 
    z-index: 50; /* ?????????????????????????????? */
}

/* ?????????? */
.home-cat-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

/* ---------------- ????? IMA, MSP (???????) ---------------- */
.cat-custom-logo {
    height: 28px; 
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom; /* ?????????????????????? */
}

/* ???????????????? IMA, MSP */
.home-cat-card:hover .cat-custom-logo {
    transform: scale(4.5) translateY(-10px); /* ???? 4.5 ???? ????????????????????????????????????? */
    background: #ffffff;
    padding: 1.5px; /* ????? 4.5 ???? padding ?????????? 7px */
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 0.2px solid #cbd5e1; /* ????????????????? ??????????????? 1px ???????? */
    position: relative;
    z-index: 999;
}

.home-cat-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ---------------- MMB CARD ---------------- */
.home-mmb-card {
    grid-column: span 2;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: stretch; 
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.home-mmb-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    z-index: 50;
}

.home-mmb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    border-right: 1px dashed #cbd5e1;
    padding-right: 15px;
}

.home-mmb-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; 
    flex: 1;
    align-content: center; 
}

/* ---------------- MMB Sub-items ---------------- */
.mmb-sub-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 4px 8px; 
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.mmb-sub-item:hover {
    transform: translateY(-2px); 
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.1);
    color: var(--primary-dark);
    z-index: 60;
}

/* ????? Woodwind, Brassline, etc. */
.mmb-sub-icon {
    width: auto !important; 
    max-width: 60px !important; 
    height: 20px !important; 
    object-fit: contain; 
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom; /* ?????????????????????? */
}

/* ???????????????? MMB (??????????? ?????????????????????) */
.mmb-sub-item:hover .mmb-sub-icon {
    transform: scale(9.0) translateY(-8px); /* ???? 9 ????! ?????????????????? ??????????? DRUMLINE ?????? */
    background: #ffffff;
    padding: 1px; /* ???????? 9 ???? padding ?????????? 9px */
    border-radius: 1.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 0.1px solid #cbd5e1; /* ?????????? ??????????????? 1px ???? */
    position: relative;
    z-index: 999;
}

/* ---------------- ???????????????? ---------------- */
.category-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin: 30px auto 0;
    max-width: 1000px;
    line-height: 1.6;
    padding: 0 20px;
    opacity: 0.8;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 576px) {
    .home-cat-grid, .home-cat-grid[style] { 
        grid-template-columns: 1fr !important; 
        grid-auto-rows: auto !important; 
        gap: 10px !important; 
    }
    
    .home-cat-card {
        height: auto !important; 
        min-height: 70px !important; 
        padding: 15px 20px !important; 
    }
    
    .home-cat-title { 
        white-space: normal; 
        font-size: 0.95rem; 
    } 
    
    .home-mmb-card { 
        grid-column: span 1; 
        height: auto !important; 
        padding: 15px 20px !important; /*ปรับขอบกล่องให้เท่ากับอันอื่น */
    }
    .home-mmb-right { 
        grid-template-columns: 1fr; 
    }
    
    /* แก้ตรงนี้: บังคับให้โลโก้กับชื่อ MMB เรียงซ้าย-ขวา */
    .home-mmb-left { 
        flex-direction: row !important; /* เรียงแนวนอน */
        text-align: left !important;    /* ชิดซ้าย */
        justify-content: flex-start !important; 
        padding-bottom: 1px; 
    }
}

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 1280px) {
    .exec-top-grid { grid-template-columns: repeat(2, 1fr); }
    .director-grid { grid-template-columns: repeat(3, 1fr); }
    .goals-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}
@media (max-width: 1200px) {
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .captions-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .page-hero h1 { font-size: 2.5rem; }
    .goals-grid { grid-template-columns: repeat(2, 1fr); }

    .country-reps-grid { grid-template-columns: 1fr; }
    .init-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .contact-container { grid-template-columns: 1fr; }
    .top-bar { display: none; } 
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; flex-direction: column; gap: 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); display: none; padding: 10px 0; }
    .nav-links.active { display: flex; }
    .nav-links li:not(.mobile-utility-wrapper) { width: 100%; text-align: center; }
    .nav-links li:not(.mobile-utility-wrapper) a { display: block; padding: 15px; font-size: 1rem !important; border-bottom: 1px solid var(--border-color); }
    .nav-links li:nth-last-child(2) a { border-bottom: none; }
    .mobile-utility-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 25px 0; width: 100%; background-color: var(--bg-light); border-top: 1px solid var(--border-color); } 
    .mobile-pill { display: flex !important; align-items: center; justify-content: center; gap: 10px; padding: 12px 25px !important; width: 80%; max-width: 250px; border: 1px solid #cbd5e1 !important; border-radius: 50px !important; background-color: #ffffff; color: var(--primary-dark) !important; font-size: 0.85rem !important; font-weight: 700 !important; letter-spacing: 0.5px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s ease; }
    .mobile-pill img { height: 16px; opacity: 0.8; }
    .mobile-pill i { color: var(--accent-blue); font-size: 1.1rem; }
    .mobile-pill:hover { border-color: var(--accent-blue) !important; color: var(--accent-blue) !important; box-shadow: 0 6px 12px rgba(37, 99, 235, 0.1); transform: translateY(-2px); }

    .home-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .home-mmb-card { flex-direction: column; padding: 20px; gap: 20px; }
    .home-mmb-right { grid-template-columns: repeat(2, 1fr); border-left: none; border-top: 1px dashed var(--border-color); padding-left: 0; padding-top: 20px; width: 100%; }
}
@media (max-width: 768px) {
    .judges-actions { flex-direction: column; }
    .judges-portal-card { padding: 40px 20px; }
    .cat-grid { grid-template-columns: 1fr; } 
    .cat-card.full-row-mmb { flex-direction: column; padding: 20px; gap: 15px;}
    .mmb-bottom { border-left: none; border-top: 1px dashed var(--border-color); padding-left: 0; padding-top: 15px; grid-template-columns: 1fr; width: 100%; }
    .mmb-sub-item { justify-content: center; } 
    .doc-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .image-modal-close { top: 15px; right: 15px; font-size: 30px; }
    .image-modal-help { font-size: 0.7rem; bottom: 10px; }
    .goals-grid { grid-template-columns: 1fr; }
    .exec-top-grid { grid-template-columns: 1fr; }
    .director-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { max-height: 350px; }
    .acs-initiative-card { flex-direction: column !important; text-align: center; padding: 30px !important; }
    .acs-init-left { flex-direction: column; text-align: center; gap: 15px;}
    .quick-access-container { grid-template-columns: 1fr; }
    .quick-access-section { padding: 40px 0; }
    .org-modal-content { padding: 30px 20px; }
}
	
@media (max-width: 992px) {
    #about .about-content,
    #about .about-highlight {
        padding-left: 30px;
        padding-right: 30px;
    }
	
	#about .about-highlight {
			margin-left: 30px !important;   /* เพิ่มระยะห่างจากขอบซ้าย */
			margin-right: 30px !important;  /* เพิ่มระยะห่างจากขอบขวา */
			padding: 20px 15px !important;  /* ลด padding ข้างในลงนิดหน่อยเพื่อให้ข้อความไม่ดูอึดอัด */
			font-size: 1.1rem !important;   /* ปรับขนาดตัวอักษรลงเล็กน้อยให้พอดีกับจอเล็ก */
			line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .home-cat-grid, .home-cat-grid[style] { grid-template-columns: 1fr !important; }
    .home-cat-title { white-space: normal; font-size: 0.95rem; } /* ???????????????????????? */
    .home-mmb-right { grid-template-columns: 1fr; }
    .home-mmb-left { flex-direction: column; text-align: center; }
}

/* =======================================
   MESSAGE FROM LEADERSHIP (FIXED SLIDER)
======================================= */
.dark-zone {
    background-color: #0b1120;
    position: relative;
    padding: 60px 0;
    overflow: hidden; /* ป้องกันของล้นจอแนวนอน */
}

.dark-zone .section-title h2 {
    color: #ffffff;
}

/* คุมกล่องสไลด์ทั้งหมดให้อยู่ตรงกลางเสมอ */
.slider-container {
    position: relative;
    max-width: 900px; /* กำหนดความกว้างสูงสุด */
    margin: 0 auto;   /* จัดให้อยู่ตรงกลางจอ */
    overflow: hidden; /* ซ่อนหน้าที่ถูกเลื่อนออกไป */
    z-index: 10;
    cursor: grab;
}

.slider-container:active {
    cursor: grabbing;
}

/* รางสำหรับเลื่อนสไลด์ */
.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
    align-items: center; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
}

/* บังคับสไลด์ให้กว้าง 100% ห้ามหด (จุดที่แก้ปัญหาจอพัง) */
.ceo-slide {
    flex: 0 0 100%; 
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* เผื่อขอบกันเนื้อหาติดจอในมือถือ */
}

/* จัดกลุ่มรูป + กล่องข้อความ ให้อยู่กึ่งกลาง */
.ceo-glass-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0 auto; /* ล็อกให้อยู่ตรงกลาง */
    max-width: 100%;
}

/* ส่วนรูปภาพ */
.ceo-profile-side {
    flex-shrink: 0; /* ป้องกันรูปโดนบีบจนเบี้ยว */
    display: flex;
    justify-content: center;
}

.ceo-image-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.ceo-image-circle img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
    border: 3px solid #0b1120;
}

/* กล่องข้อความ Glassmorphism */
.ceo-quote-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* เครื่องหมายคำพูด */
.ceo-quote-box::before {
    content: '\201C';
    font-family: Arial, sans-serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-family: 'Prompt', sans-serif; 
}

.quote-author {
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.ceo-name-dark {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ceo-position-dark {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ปุ่มจุดไข่ปลา (Dots) */
.slider-dots {
    text-align: center;
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 8px; /* ระยะห่างระหว่างปุ่ม */
    position: relative;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 8px; 
    width: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-cyan);
    width: 24px; /* ขยายยาวขึ้นเมื่อถูกเลือก */
    border-radius: 10px;
}

/* แสงพื้นหลัง */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.orb-1 {
    width: 300px; height: 300px;
    background: var(--accent-blue);
    top: -50px; left: -100px;
}

/* =======================================
   RESPONSIVE (รองรับมือถือ)
======================================= */
@media (max-width: 768px) {
    .ceo-glass-wrapper { 
        flex-direction: column; /* จับเรียงแนวตั้ง */
        text-align: center; 
        gap: 25px; 
    }
    .ceo-quote-box { padding: 30px 20px; }
    .quote-author { text-align: center; }
    .ceo-quote-box::before { 
        left: 50%; 
        transform: translateX(-50%); 
    }
}