/* ── Variables set by PHP header inline ── */
:root {
  --pink: #c2185b;
  --blue: #1565c0;
  --pink-light: #c2185b22;
  --blue-light:  #1565c022;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 14px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Sarabun', sans-serif; background: #f5f6fa; color: #2c3e50; }
a { text-decoration: none; }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a237e 40%, var(--pink) 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: .85; max-width: 580px; line-height: 1.8; }

/* ── Stats Bar ── */
.stats-bar {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin: -36px 0 40px;
  position: relative; z-index: 10;
  padding: 24px 0;
}
.stat-item { text-align: center; padding: 12px 24px; }
.stat-item + .stat-item { border-left: 1px solid #eee; }
.stat-num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: 12px; color: #888; font-weight: 500; }

/* ── Section Titles ── */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 1.8rem; font-weight: 800; color: #1a237e; margin-bottom: 8px; }
.section-title .line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--pink)); border-radius: 2px; margin: 0 auto; }
.section-title p { color: #666; margin-top: 12px; font-size: .95rem; }

/* ── Cards ── */
.card-hover {
  border: none; border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }

/* ── News Card ── */
.news-card .card-img-top { height: 200px; object-fit: cover; }
.news-card .badge-cat { font-size: 10px; font-weight: 700; background: var(--pink-light); color: var(--pink); border-radius: 20px; padding: 3px 10px; }
.news-card .card-title { font-size: .95rem; font-weight: 700; line-height: 1.5; }
.news-card .card-text { font-size: .85rem; color: #666; line-height: 1.7; }
.news-card .card-date { font-size: 11px; color: #aaa; }

/* ── Program Card ── */
.program-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.program-card .prog-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 24px auto 12px; }
.program-card .prog-level { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.program-card .prog-name { font-size: 1rem; font-weight: 800; line-height: 1.4; }
.program-card .prog-duration { font-size: 12px; color: #888; }

/* ── Faculty Card ── */
.faculty-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: .25s; }
.faculty-card:hover { transform: translateY(-5px); }
.faculty-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue-light); margin: 20px auto 12px; display: block; }
.faculty-card .fac-name { font-size: .9rem; font-weight: 700; }
.faculty-card .fac-title { font-size: 11px; color: #888; line-height: 1.6; }

/* ── Buttons ── */
.btn-pink { background: linear-gradient(135deg, var(--pink), #e91e63); color: #fff; border: none; border-radius: 50px; font-weight: 700; padding: 10px 28px; transition: .2s; }
.btn-pink:hover { opacity: .9; color: #fff; transform: translateY(-2px); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #1a237e); color: #fff; border: none; border-radius: 50px; font-weight: 700; padding: 10px 28px; transition: .2s; }
.btn-blue:hover { opacity: .9; color: #fff; transform: translateY(-2px); }
.btn-outline-pink { border: 2px solid var(--pink); color: var(--pink); border-radius: 50px; font-weight: 700; padding: 8px 24px; transition: .2s; }
.btn-outline-pink:hover { background: var(--pink); color: #fff; }

/* ── Quick Actions ── */
.quick-action { border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: .25s; cursor: pointer; border: 2px solid transparent; }
.quick-action:hover { transform: translateY(-4px); border-color: var(--blue-light); }
.quick-action .qa-icon { font-size: 2.2rem; margin-bottom: 12px; }
.quick-action .qa-title { font-weight: 700; font-size: .9rem; }

/* ── Calendar ── */
#calendar { font-family: 'Sarabun', sans-serif !important; }
.fc-event { border-radius: 6px !important; font-size: 11px !important; font-weight: 600 !important; }

/* ── Contact ── */
.contact-info-card { border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); background: #fff; }
.contact-info-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* ── Auth ── */
.auth-card { max-width: 440px; margin: 60px auto; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.auth-header { padding: 32px 36px 24px; background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; text-align: center; }
.auth-header h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.auth-body { padding: 32px 36px; background: #fff; }
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #e0e0e0; font-family: 'Sarabun', sans-serif; font-size: 14px; padding: 10px 14px; transition: .2s; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form-label { font-weight: 600; font-size: 13.5px; color: #444; }

/* ── Footer ── */
.site-footer { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: rgba(255,255,255,.8); padding: 56px 0 0; margin-top: 80px; }
.site-footer h5 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.15); }
.site-footer a { color: rgba(255,255,255,.65); font-size: .85rem; display: block; padding: 3px 0; transition: .2s; }
.site-footer a:hover { color: #fff; padding-left: 6px; }
.site-footer .footer-bottom { margin-top: 32px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }
.social-link { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; transition: .2s; margin-right: 6px; }
.social-link:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Utilities ── */
.bg-gradient-pink-blue { background: linear-gradient(135deg, var(--pink-light), var(--blue-light)); }
.text-pink { color: var(--pink) !important; }
.text-blue { color: var(--blue) !important; }
.badge-pink { background: var(--pink-light); color: var(--pink); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; }
.badge-blue { background: var(--blue-light); color: var(--blue); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; }

/* ── Breadcrumb ── */
.site-breadcrumb { background: linear-gradient(90deg, var(--blue-light), var(--pink-light)); padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.site-breadcrumb .breadcrumb { margin: 0; font-size: 13px; font-weight: 500; }
.site-breadcrumb .breadcrumb-item a { color: var(--blue); }
.site-breadcrumb .breadcrumb-item.active { color: var(--pink); }

/* ── Thesis / Download table ── */
.data-table th { background: var(--blue); color: #fff; font-weight: 600; font-size: 13px; border: none; }
.data-table td { font-size: 13.5px; vertical-align: middle; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }