/* SEA Website — Premium colourful academic theme */

:root{
  --navy:#0B1F3B;
  --teal:#00A6A6;
  --orange:#FF7A18;
  --purple:#6D28D9;
  --sky:#F3F7FF;
  --white:#FFFFFF;
  --text:#0b1220;
  --muted:#475569;
  --border:rgba(11,31,59,.12);
  --shadow: 0 10px 30px rgba(11,31,59,.12);
  --radius: 18px;
  --radius2: 26px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(109,40,217,.22), transparent 60%),
              radial-gradient(1100px 700px at 90% 0%, rgba(0,166,166,.22), transparent 60%),
              linear-gradient(180deg, var(--sky), #fff 45%, #fff);
}

/* Floating Social Bar + WhatsApp */
.social-float{
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.social-icon{
  width: 30px;
  height: 30px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 26px rgba(11,31,59,.18);
  border: 1px solid rgba(255,255,255,.20);
  transition: transform .15s ease, filter .15s ease;
}
.social-icon:hover{ transform: translateY(-2px); filter: brightness(1.05); }

/* Official brand-ish colours */
.social-icon.fb{ background:#1877F2; }
.social-icon.x{ background:#111827; }
.social-icon.in{ background:#0A66C2; }
.social-icon.yt{ background:#FF0000; }
.social-icon.ig{ background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }

.whatsapp-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  background: #25D366;
  box-shadow: 0 12px 26px rgba(11,31,59,.18);
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 700;
}
.whatsapp-float:hover{ filter: brightness(1.04); }
.whatsapp-float svg{ width: 22px; height: 22px; }

/* Newsletter modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(11,31,59,.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 18px;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width: min(560px, 100%);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 60px rgba(11,31,59,.22);
  overflow: hidden;
}
.modal-head{
  padding: 16px 16px 10px;
  background: linear-gradient(135deg, rgba(0,166,166,.18), rgba(109,40,217,.14), rgba(255,122,24,.14));
  border-bottom: 1px solid var(--border);
}
.modal-head .row{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.modal-head h3{ margin:0; color: var(--navy); }
.modal-head p{ margin:6px 0 0; color: var(--muted); font-size: 13px; }
.modal-close{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
}
.modal-body{ padding: 14px 16px 16px; }
.modal-body .hint{ color: var(--muted); font-size: 12px; margin-top: 10px; }

@media (max-width: 980px){
  .social-float{ display:none; }
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }
.container{ width:min(1160px, calc(100% - 40px)); margin:0 auto; }

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:#fff; color:#000; padding:10px 14px;
  border-radius:12px; box-shadow:var(--shadow); z-index:9999;
}
.skip-link:focus{ left:10px; }

.topbar{
  background: rgba(11,31,59,.92);
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  gap:14px;
}
.topbar .links{ display:flex; gap:14px; flex-wrap:wrap; }
.topbar .links a{ opacity:.92; }
.topbar .links a:hover{ opacity:1; text-decoration:underline; }

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header.scrolled{ box-shadow: 0 12px 30px rgba(11,31,59,.10); }

.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand-logo{
  width:200px;
  height:108px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,166,166,.18), rgba(109,40,217,.18));
  border: 1px solid var(--border);
  display:grid; place-items:center;
  overflow:hidden;
}
.brand-logo img{ width:100%; height:100%; object-fit:contain; padding:6px; background:#fff; }
.brand-title{ line-height:1.1; }
.brand-title b{ display:block; font-size:18px; letter-spacing:.35px; color:var(--navy); }
.brand-title span{ display:block; font-size:12px; color:var(--muted); }

.menu{
  display:flex; align-items:center; gap:18px;
}
.menu a{
  font-size:15px;
  color: rgba(11,31,59,.9);
  padding:10px 10px;
  border-radius: 12px;
}
.menu a.active, .menu a:hover{
  background: rgba(0,166,166,.10);
  color: var(--navy);
}
.actions{ display:flex; gap:10px; align-items:center; }

.btn{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 14px;
  border-radius: 14px;
  font-weight:600;
  font-size:14px;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 8px 18px rgba(11,31,59,.06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 24px rgba(11,31,59,.10); }
.btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}
.btn.secondary{
  border:none; color:#fff;
  background: linear-gradient(135deg, var(--orange), #ff3d77);
}

.hamburger{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
}
.hamburger span{
  display:block; width:22px; height:2px;
  background: var(--navy); margin:4px 0;
  border-radius: 10px;
}

.mobile-drawer{
  display:none;
  padding:12px 0 18px;
  border-top:1px solid var(--border);
}
.mobile-drawer a{ display:block; padding:12px 6px; border-radius:12px; }
.mobile-drawer a:hover{ background: rgba(0,166,166,.10); }
.mobile-actions{ display:flex; gap:10px; padding-top:10px; }

.hero{
  padding: 38px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}
.hero-card{
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(11,31,59,.96), rgba(109,40,217,.88) 48%, rgba(0,166,166,.82));
  color:#fff;
  padding: 30px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-40px -80px auto auto;
  width:240px; height:240px;
  background: radial-gradient(circle, rgba(255,122,24,.35), transparent 60%);
  transform: rotate(15deg);
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .4px;
}
.hero p{
  margin:0 0 18px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  max-width: 58ch;
}
.hero .cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 8px; }
.badges{
  display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px;
}
.badge{
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  font-size: 13px;
}

.ticker{
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  overflow:hidden;
}
.ticker-track{
  display:flex; gap:18px;
  padding: 10px 12px;
  white-space:nowrap;
  animation: ticker 18s linear infinite;
}
.ticker-item{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255,122,24,.18);
}

@keyframes ticker{
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

.side-stack{
  display:grid; gap:14px;
}
.glass{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(11,31,59,.08);
  padding: 16px;
}
.glass h3{ margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.small{ font-size: 13px; color: var(--muted); margin:0; }

.split{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  border: 1px solid var(--border);
  background: rgba(243,247,255,.7);
  font-size: 13px; color: var(--navy);
}

.countdown{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:10px;
}
.timebox{
  min-width: 72px;
  padding:10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  text-align:center;
}
.timebox b{ display:block; font-size: 18px; color: var(--navy); }
.timebox span{ font-size:12px; color: var(--muted); }

.section{ padding: 26px 0; }
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom: 14px;
}
.section-title h2{
  margin:0; font-size: 20px; color: var(--navy);
}
.section-title p{ margin:0; color: var(--muted); font-size: 13px; }

.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card{
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: 0 10px 22px rgba(11,31,59,.07);
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11,31,59,.12);
}
.kpi{
  display:flex; gap:12px; align-items:center;
}
.icon{
  width:42px; height:42px; border-radius: 16px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,166,166,.18), rgba(109,40,217,.18));
}
.icon.orange{ background: linear-gradient(135deg, rgba(255,122,24,.20), rgba(255,61,119,.16)); }
.icon.purple{ background: linear-gradient(135deg, rgba(109,40,217,.22), rgba(0,166,166,.14)); }
.icon.teal{ background: linear-gradient(135deg, rgba(0,166,166,.22), rgba(243,247,255,.8)); }

.kpi b{ font-size: 18px; color: var(--navy); }
.kpi span{ display:block; color: var(--muted); font-size: 12px; }

.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
}
.tab{
  padding:9px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(243,247,255,.8);
  font-size: 13px; cursor:pointer;
}
.tab.active{
  background: linear-gradient(135deg, rgba(0,166,166,.18), rgba(109,40,217,.14));
  border-color: rgba(0,166,166,.30);
  color: var(--navy);
}

.notice{
  display:flex; flex-direction:column; gap:8px;
}
.tag{
  align-self:flex-start;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,166,166,.12);
  color: var(--navy);
  border: 1px solid rgba(0,166,166,.20);
}
.tag.orange{ background: rgba(255,122,24,.14); border-color: rgba(255,122,24,.22); }
.tag.purple{ background: rgba(109,40,217,.14); border-color: rgba(109,40,217,.22); }
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  color: var(--muted); font-size: 12px;
}
.notice h3{ margin:0; font-size: 15px; color: var(--navy); }
.notice p{ margin:0; font-size: 13px; color: var(--muted); }

.hero-strip{
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(255,122,24,.20), rgba(109,40,217,.14), rgba(0,166,166,.12));
  border:1px solid var(--border);
  padding: 16px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; flex-wrap:wrap;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ph{
  border-radius: 18px;
  height: 140px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(11,31,59,.14), rgba(0,166,166,.16), rgba(255,122,24,.14));
  overflow:hidden;
  position:relative;
}
.ph img{ width:100%; height:100%; object-fit:cover; display:block; }
.ph:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(11,31,59,.18));
}

.footer{
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(11,31,59,.96), rgba(11,31,59,.92));
  color: rgba(255,255,255,.9);
  padding: 34px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}
.footer h4{ margin:0 0 10px; font-size: 14px; }
.footer a{ opacity:.9; }
.footer a:hover{ opacity:1; text-decoration:underline; }
.footer .muted{ color: rgba(255,255,255,.72); font-size: 13px; }
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  font-size: 12px; color: rgba(255,255,255,.75);
}

/* Page header */
.pagehead{
  padding: 28px 0 10px;
}
.pagehead .box{
  border-radius: var(--radius2);
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 26px rgba(11,31,59,.08);
}
.pagehead h1{ margin:0 0 6px; color: var(--navy); font-size: 26px; }
.pagehead p{ margin:0; color: var(--muted); font-size: 13px; max-width: 75ch; }

.form{
  display:grid; gap:10px;
}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background:#fff;
  font-size: 14px;
  outline:none;
}
.input:focus{
  border-color: rgba(0,166,166,.45);
  box-shadow: 0 0 0 4px rgba(0,166,166,.12);
}
textarea.input{ min-height: 120px; resize: vertical; }

/* Tables */
.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius: 18px;
  background:#fff;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  font-size: 13px;
  text-align:left;
}
.table th{
  background: rgba(243,247,255,.85);
  color: var(--navy);
  font-weight: 700;
}
.table tr:last-child td{ border-bottom:none; }
.table td small{ color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .menu, .actions{ display:none; }
  .hamburger{ display:block; }
  .mobile-drawer.show{ display:block; }
}
@media (max-width: 520px){
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .brand-title span{ display:none; }
}


/* Top controls: language + font size */
.top-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.top-controls select{padding:7px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:rgba(255,255,255,.92);outline:none;font-size:13px;}
.top-controls select option{color:#0b1220;}
.fontctrl{display:flex;gap:6px;align-items:center;}
.fontbtn{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:rgba(255,255,255,.92);border-radius:12px;padding:6px 10px;font-weight:700;cursor:pointer;font-size:13px;}
.fontbtn.active{background:rgba(255,255,255,.22);}

/* Font scaling */
html.font-small{font-size:14px;}
html.font-normal{font-size:16px;}
html.font-large{font-size:18px;}
