@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');
:root{--event-brand:#e32636;--ink:#162033;--muted:#687386;--paper:#fff;--soft:#f4f7fb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--soft);color:var(--ink);font-family:'Noto Sans Thai',system-ui,sans-serif}.event-site-head{height:76px;padding:0 max(20px,calc((100% - 1280px)/2));display:flex;align-items:center;background:#fff;box-shadow:0 2px 18px #1c2a430c;position:sticky;top:0;z-index:10}.event-brand{display:flex;align-items:center;gap:12px;color:var(--event-brand);text-decoration:none;font-weight:800;font-size:1.15rem}.event-brand>i{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:linear-gradient(145deg,var(--event-brand),#ff725d);border-radius:13px}.event-brand span{line-height:1.2}.event-brand small{display:block;color:#7b8492;font-size:.67rem;font-weight:500;margin-top:4px}.event-site-head nav{margin-left:auto;display:flex;gap:8px}.event-site-head nav a{text-decoration:none;padding:10px 14px;border-radius:12px;color:#526071;font-weight:600}.event-site-head nav a.active,.event-site-head nav a:hover{background:#fff0f1;color:var(--event-brand)}.event-hero{min-height:300px;display:flex;align-items:center;background:radial-gradient(circle at 80% 20%,#ffb62955,transparent 30%),linear-gradient(125deg,#620b16,#d71e32 55%,#f46f45);color:#fff;padding:60px max(20px,calc((100% - 1280px)/2))}.event-hero div{max-width:800px}.event-hero p{letter-spacing:3px;font-size:.78rem;font-weight:800;margin:0}.event-hero h1{font-size:clamp(2.1rem,5vw,4.5rem);line-height:1.15;margin:10px 0}.event-hero span{font-size:1.08rem;opacity:.9}.event-container{max-width:1280px;margin:auto;padding:36px 20px 80px}.calendar-toolbar{display:flex;justify-content:center;align-items:center;gap:22px;margin-bottom:20px}.calendar-toolbar>a{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--ink);box-shadow:0 5px 20px #1d2b4410;text-decoration:none}.calendar-toolbar div{text-align:center;min-width:230px}.calendar-toolbar h2{margin:0;font-size:1.7rem}.today-link{font-size:.76rem;color:var(--event-brand)}.event-chips{display:flex;justify-content:center;gap:8px;overflow:auto;padding:0 0 22px}.event-chips a{flex:none;text-decoration:none;background:#fff;color:#465369;border:1px solid #e4e9f0;border-radius:999px;padding:9px 15px;font-size:.9rem;font-weight:600}.event-chips a.active{background:var(--chip,var(--event-brand));border-color:var(--chip,var(--event-brand));color:#fff}.calendar-card{background:#fff;border-radius:24px;box-shadow:0 12px 40px #1c294312;overflow:hidden}.week-head,.month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.week-head{background:#17243a;color:#fff}.week-head b{text-align:center;padding:13px}.day-cell{min-height:130px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:10px;overflow:hidden}.day-cell:nth-child(7n){border-right:0}.day-cell.muted{background:#fafbfc}.day-cell.today{background:#fff9f1}.day-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:700}.today .day-number{background:var(--event-brand);color:#fff}.day-events{display:grid;gap:5px;margin-top:7px}.day-events a{display:flex;align-items:center;gap:6px;text-decoration:none;color:#354157;font-size:.72rem;line-height:1.25}.day-events a i{width:7px;height:7px;border-radius:50%;background:var(--dot,var(--event-brand));flex:none}.day-events a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-events a.cancelled{text-decoration:line-through;opacity:.55}.day-events small{color:var(--event-brand)}.event-list-section{margin-top:55px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-title p{color:var(--event-brand);font-size:.78rem;letter-spacing:1.5px;font-weight:800;margin:0}.section-title h2{font-size:2rem;margin:4px 0}.section-title>span{background:#fff;border-radius:999px;padding:8px 14px;color:var(--muted)}.event-list{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.event-card{background:#fff;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:210px 1fr;min-height:250px;box-shadow:0 8px 28px #1c29430d}.event-card .cover{position:relative;background:linear-gradient(135deg,#ffe7d1,#ffd3d9);display:grid;place-items:center;overflow:hidden}.event-card .cover>i{font-size:3rem;color:var(--event-brand)}.event-card .cover img{width:100%;height:100%;object-fit:cover}.date-badge{position:absolute;top:12px;left:12px;background:#fff;border-radius:12px;box-shadow:0 5px 16px #0002;text-align:center;padding:7px 10px;color:#637085;font-size:.68rem}.date-badge b{display:block;color:var(--event-brand);font-size:1.2rem;line-height:1}.event-card-body{padding:23px;display:flex;flex-direction:column}.category{font-size:.78rem;font-weight:800}.event-card h3{margin:8px 0 5px;font-size:1.2rem;line-height:1.45}.event-card h3 a{text-decoration:none;color:var(--ink)}.event-card p{color:var(--muted);font-size:.88rem;margin:0 0 11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.event-meta{display:grid;gap:3px;color:#657184;font-size:.77rem}.event-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-link{color:var(--event-brand);font-weight:700;text-decoration:none;margin-top:auto;padding-top:12px}.cancel-label{display:inline-block;color:#b42318;background:#fff0ef;border-radius:8px;padding:3px 8px;font-size:.72rem;margin-top:6px}.event-empty{grid-column:1/-1;background:#fff;border-radius:20px;text-align:center;padding:60px;color:var(--muted)}.event-empty i{font-size:3rem;color:#abb5c3}.event-footer{background:#17243a;color:#fff;display:flex;justify-content:space-between;padding:35px max(20px,calc((100% - 1280px)/2));gap:20px}.detail-wrap{max-width:1180px;margin:0 auto;padding:36px 20px 80px}.back-events{text-decoration:none;color:var(--event-brand);font-weight:700;display:inline-block;margin-bottom:22px}.detail-cover{width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:26px;box-shadow:0 12px 42px #18233c18}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:36px;margin-top:32px}.detail-content,.detail-info{background:#fff;border-radius:22px;padding:30px;box-shadow:0 8px 30px #18233c0d}.detail-content h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.2;margin:10px 0}.detail-summary{font-size:1.12rem;color:#586579;line-height:1.8}.detail-description{line-height:1.9;color:#39465a;margin-top:28px}.source-note{margin-top:30px;font-size:.85rem;color:#687386}.source-note a{color:var(--event-brand)}.cancel-banner{background:#fff0ef;color:#b42318;padding:13px 15px;border-radius:12px;margin:13px 0;font-weight:700}.detail-info{height:max-content;position:sticky;top:100px}.detail-info h3{margin-top:0}.detail-info dl{margin:0}.detail-info dl>div{border-top:1px solid #edf0f4;padding:15px 0}.detail-info dt{font-size:.78rem;color:#7a8595;margin-bottom:3px}.detail-info dd{margin:0;font-weight:700}.detail-info dd small{display:block;font-weight:400;color:#687386;margin-top:3px}.detail-info a{color:inherit}.detail-actions{display:grid;gap:8px;margin-top:15px}.detail-actions>a{border:1px solid #dfe4eb;border-radius:12px;text-decoration:none;text-align:center;padding:11px;font-weight:700}.detail-actions>a.primary{background:var(--event-brand);color:#fff;border-color:var(--event-brand)}
@media(max-width:1000px){.event-list{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.detail-info{position:static}.day-cell{min-height:105px}}
@media(max-width:700px){.event-site-head{height:68px;padding:0 14px}.event-site-head nav a{font-size:0;padding:10px}.event-site-head nav a i{font-size:1.1rem}.event-hero{min-height:240px;padding:42px 20px}.event-container{padding:25px 10px 60px}.event-chips{justify-content:flex-start}.calendar-card{border-radius:16px;overflow:auto}.week-head,.month-grid{min-width:720px}.event-list-section{padding:0 5px}.section-title h2{font-size:1.45rem}.event-card{grid-template-columns:120px 1fr;min-height:220px}.event-card-body{padding:16px}.event-card h3{font-size:1rem}.event-card p{font-size:.8rem}.date-badge{top:8px;left:8px}.detail-wrap{padding:25px 14px 60px}.detail-cover{aspect-ratio:16/10;border-radius:18px}.detail-content,.detail-info{padding:21px}.event-footer{flex-direction:column}.calendar-toolbar{gap:10px}.calendar-toolbar div{min-width:190px}.calendar-toolbar h2{font-size:1.35rem}}
