:root{
  --bg:#eef6ff;
  --deep:#071a3d;
  --blue:#0b5cff;
  --text:#102033;
  --muted:#60708a;
  --card:#ffffff;
  --radius:26px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{
  margin:0;min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Noto Sans Thai","Segoe UI",Tahoma,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#0a47d1 0%,#d0e4ff 18%,#eaf3ff 100%);
}
a{text-decoration:none;color:inherit}

/* ─── APP SHELL ─── */
.app-shell{
  min-height:100vh;
  max-width:480px;
  margin:0 auto;
  padding:0;
  padding-bottom:30px;
}

/* ─── HERO / HEADER ─── */
.hero{
  background:linear-gradient(135deg,#002bba 0%,#0b5cff 60%,#14c9ff 100%);
  color:#fff;
  border-radius:0 0 42px 42px;
  padding:52px 20px 28px;
  margin-bottom:0;
  box-shadow:0 20px 50px rgba(0,56,180,.28);
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";position:absolute;right:-60px;top:-60px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.09);
}

.hero-main{
  display:flex;align-items:center;gap:14px;
  position:relative;z-index:1;
}

.hero-logo{
  width:72px;height:72px;border-radius:22px;
  box-shadow:0 12px 28px rgba(0,0,0,.26);
  flex-shrink:0;object-fit:cover;
}

.hero-content h1{
  color:#fff;font-size:32px;font-weight:900;margin:0;line-height:1.1;
}
.hero-content p{
  color:rgba(255,255,255,.88);font-size:14px;margin-top:5px;line-height:1.4;
}

.notify-icon{
  margin-left:auto;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}

.hero-banner{
  margin-top:20px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.1);
  color:#fff;
  border-radius:999px;
  padding:11px 16px;
  font-size:11.5px;
  font-weight:700;
  backdrop-filter:blur(8px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  position:relative;z-index:1;
}
.hero-banner span{color:#ffd84d}

/* ─── CONTENT ─── */
.content{
  padding:0 14px;
  margin-top:18px;
}

/* ─── QUICK SECTION ─── */
.quick-section{
  background:#fff;
  border-radius:36px;
  padding:24px 20px 20px;
  box-shadow:0 14px 40px rgba(12,42,90,.10);
}

.section-header{
  display:flex;align-items:center;gap:14px;
  margin-bottom:20px;
}
.section-icon-wrap{
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;
  border-radius:18px;
  background:linear-gradient(135deg,#3a8ff7,#1a5fe8);
  box-shadow:0 10px 24px rgba(30,100,240,.3);
}
.section-title-text h3{
  font-size:22px;font-weight:900;margin:0;color:#102033;
}
.section-title-text p{
  font-size:14px;color:var(--muted);margin:3px 0 0;
}

/* ─── SERVICE GRID ─── */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.service-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:12px 10px 10px;
  border-radius:20px;
  background:#fff;
  border:1px solid #e5edf8;
  box-shadow:0 8px 20px rgba(8,32,75,.08);
  transition:transform .15s ease,box-shadow .15s ease;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  min-height:auto;
  height:auto;
}
.service-card:before{
  content:"";position:absolute;top:0;left:0;right:0;
  height:5px;
  background:linear-gradient(90deg,var(--c1),var(--c2));
}
.service-card:active{transform:scale(0.97);}

.service-icon{
  width:58px;height:58px;flex-shrink:0;
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:8px;
  overflow:hidden;
}
.service-icon svg{width:100%;height:100%;display:block;}

.service-text h4{
  font-size:12px;font-weight:800;
  margin:0 0 3px;line-height:1.3;color:#102033;
}
.service-text p{
  font-size:10px;
  color:var(--muted);
  line-height:1.3;
  margin:0;
}

.go{
  margin-top:6px;
  font-size:22px;
  color:#8fafd4;
  font-weight:400;
  display:block;
  line-height:1;
}
.go-ext{
  margin-top:8px;
  display:block;
}

/* Card colors */
.card-wpl{--c1:#ff9a3c;--c2:#ff4500}
.card-dve{--c1:#3b82f6;--c2:#0f2f7d}
.card-table{--c1:#e879f9;--c2:#a21caf}
.card-group{--c1:#4ade80;--c2:#166534}
.card-mbank{--c1:#fcd34d;--c2:#d97706}
.card-grade{--c1:#fb923c;--c2:#b91c1c}
.card-facebook{--c1:#42a5ff;--c2:#1877f2}
.card-website{--c1:#4ade80;--c2:#166534}

/* ─── FEATURE STRIP ─── */
.feature-strip-wrap{
  background:#fff;
  border-radius:30px;
  padding:16px 14px;
  margin-top:16px;
  box-shadow:0 10px 28px rgba(12,42,90,.08);
}
.feature-strip-wrap h4{
  font-size:13.5px;font-weight:800;margin:0 0 12px;color:#102033;text-align:center;
}
.feature-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
.feature-item{
  display:flex;flex-direction:row;align-items:center;gap:7px;
  text-align:left;
}
.feature-icon{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.feat-blue{background:linear-gradient(135deg,#3a8ff7,#1a5fe8)}
.feat-pink{background:linear-gradient(135deg,#f43f5e,#e11d48)}
.feat-orange{background:linear-gradient(135deg,#f97316,#ea580c)}
.feat-green{background:linear-gradient(135deg,#22c55e,#15803d)}

.feature-item b{
  display:block;font-size:11px;font-weight:800;color:#102033;line-height:1.2;
}
.feature-item span{
  display:block;font-size:9.5px;color:var(--muted);line-height:1.3;
}

/* ─── FOOTER ─── */
.app-footer{
  margin-top:16px;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(135deg,#001a7a 0%,#0038c8 55%,#0060e0 100%);
  color:#fff;
  box-shadow:0 16px 40px rgba(0,30,140,.22);
}

.footer-top{
  display:flex;align-items:center;gap:14px;
  padding:18px 18px 14px;
}
.footer-logo-wrap{flex-shrink:0;}

.footer-college-info{flex:1;}
.footer-college-name{
  font-size:13px;font-weight:900;color:#fff;line-height:1.3;
}
.footer-college-en{
  font-size:10px;color:rgba(255,255,255,.65);line-height:1.5;margin-top:3px;
}

.footer-contacts{display:flex;flex-direction:column;gap:6px;flex-shrink:0;}
.footer-contact-item{
  display:flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:700;color:#fff;
}

.footer-divider{
  height:1px;background:rgba(255,255,255,.12);margin:0 16px;
}

.footer-bottom{
  display:flex;align-items:flex-end;
  padding:14px 18px 16px;
  gap:10px;
}
.footer-digital-wrap{flex:1;}
.footer-digital{
  font-size:15px;font-weight:900;letter-spacing:.03em;color:#fff;
}
.footer-digital-sub{
  font-size:12px;color:rgba(255,255,255,.75);line-height:1.55;
}
.footer-building-wrap{
  width:110px;flex-shrink:0;margin-bottom:-4px;
}
.footer-building-wrap svg{width:100%;height:auto;display:block;}

/* ─── RESPONSIVE ─── */
@media(max-width:380px){
  .service-grid{grid-template-columns:repeat(3,1fr);gap:10px}
  .service-card{
    padding:12px 10px;
    min-height:auto;
    height:auto;
}
  .service-icon{width:58px;height:58px;}
  .service-text h4{font-size:12px}
  .service-text p{font-size:10.5px}
  .hero-content h1{font-size:26px}
  .feature-strip{grid-template-columns:repeat(4,1fr);gap:6px}
  .feature-icon{width:42px;height:42px}
}
@media(min-width:481px){
  .service-grid{grid-template-columns:repeat(3,1fr)}
}
.footer-logo-img{
  width:54px;
  height:54px;
  object-fit:contain;
  display:block;
}

/* SICE Gate Pass */
.card-gatepass::before{
background:linear-gradient(90deg,#ef4444,#1F55E5);
}

.card-gatepass .service-icon svg{
filter:drop-shadow(0 10px 20px rgba(31,85,229,.25));
}

/* ===== DESKTOP PRODUCT LAYOUT — aligned with SICE ONE LIFE ===== */
:root{--sice-page-max:1280px;}

.app-shell{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding-left:18px;
  padding-right:18px;
}
.hero,
.quick-section,
.feature-strip-wrap,
.app-footer{
  width:100%;
  max-width:var(--sice-page-max);
  margin-left:auto;
  margin-right:auto;
}
.content{
  width:100%;
  max-width:var(--sice-page-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}
.quick-section{padding:30px 28px 28px;}
.service-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.service-card{
  min-height:190px;
  height:100%;
  padding:18px 16px 16px;
  border-radius:24px;
  box-shadow:0 10px 26px rgba(8,32,75,.09);
}
.service-icon{
  width:76px;
  height:76px;
  border-radius:24px;
  margin-bottom:12px;
  filter:drop-shadow(0 10px 14px rgba(15,23,42,.14));
}
.service-text{display:flex;flex-direction:column;width:100%;}
.service-text h4{
  min-height:42px;
  display:flex;
  align-items:flex-start;
  margin:0 0 6px;
  font-size:15px;
  line-height:1.32;
  font-weight:900;
  letter-spacing:-.01em;
}
.service-text p{
  min-height:48px;
  font-size:11.5px;
  line-height:1.45;
}
.go{
  position:absolute;
  right:15px;
  bottom:10px;
  margin-top:0;
  font-size:28px;
  color:var(--c2,#2563eb);
}

@media (min-width:901px){
  .hero{border-radius:0 0 42px 42px;}
}
@media (max-width:1200px){
  .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:900px){
  .app-shell{max-width:540px;padding-left:0;padding-right:0;}
  .hero{max-width:540px;}
  .content{max-width:540px;padding-left:14px;padding-right:14px;}
  .quick-section{padding:24px 20px 20px;}
  .service-grid{grid-template-columns:repeat(3,1fr);gap:14px;}
  .service-card{min-height:auto;height:auto;padding:12px 10px 10px;border-radius:20px;}
  .service-icon{width:58px;height:58px;border-radius:16px;margin-bottom:8px;filter:none;}
  .service-text h4{min-height:34px;font-size:12px;line-height:1.3;margin-bottom:3px;}
  .service-text p{min-height:39px;font-size:10px;line-height:1.3;}
  .go{position:static;margin-top:6px;font-size:22px;}
}
@media (max-width:390px){
  .content{padding-left:10px;padding-right:10px;}
  .quick-section{padding:20px 14px 16px;border-radius:30px;}
  .service-grid{gap:10px;}
  .service-card{padding:10px 8px;}
  .service-icon{width:54px;height:54px;}
  .service-text h4{min-height:32px;font-size:11.5px;}
  .service-text p{min-height:37px;font-size:9.5px;}
}
