:root {
  --citt-ink: #12233f;
  --citt-muted: #5d6b82;
  --citt-brand: #155eef;
  --citt-brand-dark: #0b3b9e;
  --citt-accent: #11b8a3;
  --citt-surface: #ffffff;
  --citt-bg: #f5f8fc;
  --citt-line: #e4eaf2;
  --citt-radius: 18px;
  --citt-shadow: 0 14px 40px rgba(18, 35, 63, .09);
}

html { scroll-behavior: smooth; }
body {
  background: var(--citt-bg) !important;
  color: var(--citt-ink) !important;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif !important;
  line-height: 1.75 !important;
}
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--citt-brand), var(--citt-accent));
}
.navbar {
  height: 76px !important;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2)) !important;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid rgba(228,234,242,.8) !important;
  box-shadow: 0 5px 24px rgba(18,35,63,.06) !important;
}
.logo-container img { max-height: 48px !important; }
.logo-text { color: var(--citt-ink) !important; letter-spacing: -.02em; }
.nav-links a { font-weight: 600 !important; color: var(--citt-ink) !important; border-radius: 10px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--citt-brand) !important; background: #eef4ff; }
.dropdown { border: 1px solid var(--citt-line) !important; border-top: 3px solid var(--citt-brand) !important; border-radius: 0 0 14px 14px !important; box-shadow: var(--citt-shadow) !important; }
.hero, .page-header {
  background: linear-gradient(135deg, #102a56 0%, #155eef 58%, #11b8a3 130%) !important;
  color: #fff !important;
}
.hero h1, .hero h2, .page-header h1, .page-header h2 { color: #fff !important; letter-spacing: -.035em; }
.hero p { color: #fff !important; font-weight: 700 !important; text-shadow: 0 2px 4px rgba(4,20,48,.9), 0 0 18px rgba(4,20,48,.45) !important; }
.section, .content-section, .content-wrapper, .main-content { max-width: 1180px !important; margin-inline: auto !important; }
.content-card, .card, .post-card, .news-card, .contact-card, .objective-item {
  background: var(--citt-surface) !important;
  border: 1px solid var(--citt-line) !important;
  border-radius: var(--citt-radius) !important;
  box-shadow: var(--citt-shadow) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.content-card:hover, .card:hover, .post-card:hover, .news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(18,35,63,.14) !important; border-color: #bfd2f5 !important; }
a { color: var(--citt-brand); }
a:hover { color: var(--citt-brand-dark); }
button, .button, .btn, input[type="submit"] {
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
button:hover, .button:hover, .btn:hover, input[type="submit"]:hover { transform: translateY(-2px); }
img { max-width: 100%; height: auto; }
img[loading="lazy"] { content-visibility: auto; }
:focus-visible { outline: 3px solid #f5b942 !important; outline-offset: 3px; }
.footer { background: #10233f !important; color: #dce7f6 !important; }
.view-counter { margin-top: 2rem; }
.timeline-content { min-width: 0; overflow: hidden; overflow-wrap: anywhere; }
.hero + .container { margin-top: 1.5rem !important; }
.intro-card { margin-bottom: 2rem !important; padding: clamp(1.25rem, 3vw, 2rem) !important; text-align: left !important; border: 1px solid var(--citt-line); }
.intro-card h2 { margin: 0 0 .7rem !important; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.35; }
.intro-card p { max-width: 780px; margin: 0; color: var(--citt-muted); line-height: 1.85; overflow-wrap: anywhere; }
.timeline-title, .timeline-content p, .timeline-content .university { overflow-wrap: anywhere; word-break: normal; }
.conf-links .conf-btn { white-space: normal; text-align: center; line-height: 1.45; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: .8rem 0 1rem; }
.event-meta span { background: #eef4ff; color: #174ea6; border-radius: 999px; padding: .35rem .65rem; font-size: .85rem; }
.event-note { color: var(--citt-muted); margin: .35rem 0; font-size: .92rem; overflow-wrap: anywhere; }
.conf-links .conf-btn, .conf-links .conf-btn:visited { color: #155eef !important; background: #eef4ff !important; border-color: #bfd2f5 !important; }
.conf-links .conf-btn:hover, .conf-links .conf-btn:focus-visible { color: #fff !important; background: #155eef !important; border-color: #155eef !important; }
@media (max-width: 768px) {
  .timeline-content { width: calc(100% - 54px) !important; margin-left: 54px !important; padding: 1.15rem !important; }
  .timeline::before, .timeline-dot { left: 24px !important; }
}
.citt-announcement-backdrop { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 18px; background: rgba(8, 20, 42, .64); backdrop-filter: blur(5px); }
.citt-announcement { width: min(620px, 100%); max-height: min(86vh, 760px); overflow: auto; position: relative; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.28); color: var(--citt-ink); }
.citt-announcement-media { width: 100%; max-height: 330px; object-fit: cover; display: block; }
.citt-announcement-body { padding: 24px 26px 20px; }
.citt-announcement h2 { margin: 0 36px 10px 0; color: var(--citt-ink); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.35; }
.citt-announcement-copy { color: var(--citt-muted); white-space: pre-line; line-height: 1.75; }
.citt-announcement-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(16,35,63,.08); color: var(--citt-ink); font-size: 1.45rem; line-height: 1; }
.citt-announcement-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.citt-announcement-dismiss { border: 0; background: transparent; color: var(--citt-muted); text-decoration: underline; cursor: pointer; }
body.citt-modal-open { overflow: hidden; }
@media (max-width: 800px) {
  .navbar { height: 68px !important; }
  .nav-links { background: #fff !important; box-shadow: var(--citt-shadow) !important; }
  .hero, .page-header { padding-top: 5rem !important; padding-bottom: 3rem !important; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
