*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563EB; --primary-d: #1D4ED8; --secondary: #F59E0B;
  --dark: #0F172A; --gray: #64748B; --gray-l: #94A3B8;
  --border: #E2E8F0; --light: #F8FAFC; --white: #FFFFFF;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.08); --shadow-h: 0 8px 32px rgba(0,0,0,.14);
  --transition: .25s ease;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter','Noto Sans Thai',sans-serif; background: var(--light); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 6px 14px; border-radius: 8px; font-weight: 500; color: var(--gray); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: #EFF6FF; }
.nav-btn { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 8px; background: var(--primary); color: var(--white); font-weight: 600; font-size: .875rem; transition: var(--transition); }
.nav-btn:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ── Hero Swiper ── */
.hero-section { background: var(--dark); }
.hero-swiper { width: 100%; height: 520px; }
.swiper-slide { position: relative; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 8s ease; }
.swiper-slide-active .slide-bg { transform: scale(1.05); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, transparent 100%); }
.slide-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide-content { display: flex; flex-direction: column; max-width: 600px; }
.slide-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--secondary); color: var(--dark); padding: 4px 14px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; width: fit-content; margin-bottom: 16px; }
.slide-title { font-size: 2.25rem; font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.slide-excerpt { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: 24px; }
.slide-meta i { color: var(--secondary); }
.slide-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-weight: 700; transition: var(--transition); width: fit-content; }
.slide-btn:hover { background: var(--primary-d); transform: translateY(-2px); }
.swiper-button-prev, .swiper-button-next { width: 44px !important; height: 44px !important; background: rgba(255,255,255,.15); border-radius: 50%; backdrop-filter: blur(6px); transition: background var(--transition); }
.swiper-button-prev:hover, .swiper-button-next:hover { background: rgba(255,255,255,.3); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 14px !important; color: white; }
.swiper-pagination-bullet { background: white !important; opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1 !important; width: 24px !important; border-radius: 4px !important; }

/* ── Posts Section ── */
.posts-section { padding: 80px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: var(--gray); font-size: 1.05rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.card-img-wrap { overflow: hidden; }
.card-img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 20px; background: #EFF6FF; color: var(--primary); }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; transition: color var(--transition); }
.post-card:hover .card-title { color: var(--primary); }
.card-excerpt { color: var(--gray); font-size: .9rem; line-height: 1.6; flex: 1; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.6em * 2); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gray-l); }
.card-read { font-size: .85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.post-card:hover .card-read { gap: 8px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: .4; display: block; }

/* ── Pagination ── */
.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pg-btn { min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; border: 1px solid var(--border); background: white; color: var(--gray); transition: var(--transition); cursor: pointer; }
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-ellipsis { padding: 0 4px; color: var(--gray-l); line-height: 36px; }
.pg-info { margin-left: 12px; font-size: .8rem; color: var(--gray); white-space: nowrap; }

/* ── Single Post ── */
.post-hero { height: 420px; position: relative; overflow: hidden; background: var(--dark); }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%); display: flex; align-items: flex-end; }
.post-hero-content { padding: 40px 0; color: white; width: 100%; }
.post-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); font-size: .875rem; margin-bottom: 16px; transition: color var(--transition); }
.post-back:hover { color: white; }
.post-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; gap: 20px; font-size: .875rem; color: rgba(255,255,255,.7); }
.post-meta i { color: var(--secondary); }
.post-body { max-width: 1200px; margin: 60px auto; padding: 0 24px; }
.post-content { background: white; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); font-size: 1.05rem; line-height: 1.8; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; }
.post-content p { margin-bottom: 16px; color: #334155; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 8px; color: #334155; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; background: #EFF6FF; border-radius: 0 8px 8px 0; margin: 20px 0; }
.ql-syntax { background-color: #23241f; color: #f8f8f2; font-family: monospace; font-size: 14px; padding: 1rem 1.25rem; border-radius: 6px; overflow-x: auto; white-space: pre; display: block; margin: 1rem 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .nav-logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; }
.footer-links h4, .footer-social h4 { color: white; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.social-links a:hover { background: var(--primary); color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; }

/* ── Admin layout ── */
.admin-body { display: flex; height: 100vh; overflow: hidden; background: #F1F5F9; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--dark); color: white; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.sidebar-brand i { color: var(--secondary); }
.sidebar-user { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 12px; }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.sidebar-username { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-role { font-size: .75rem; color: var(--secondary); text-transform: uppercase; letter-spacing: .04em; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-section { padding: 8px 20px 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.65); transition: var(--transition); cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.sidebar-link:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-link.active { color: white; background: var(--primary); }
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-logout { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: .875rem; padding: 8px 0; transition: color var(--transition); cursor: pointer; background: none; border: none; width: 100%; }
.sidebar-logout:hover { color: #EF4444; }

.admin-main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.admin-topbar { height: 64px; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; flex-shrink: 0; }
.admin-page-title { font-size: 1.2rem; font-weight: 700; }
.admin-breadcrumb { font-size: .8rem; color: var(--gray); margin-top: 2px; }
.admin-content { flex: 1; padding: 32px; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.section-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.section-search { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; flex: 1; max-width: 320px; }
.section-search input { border: none; outline: none; width: 100%; font-family: inherit; font-size: .9rem; }
.section-search i { color: var(--gray-l); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn-danger { background: #EF4444; color: white; }
.btn-danger:hover { background: #DC2626; }
.btn-outline { background: transparent; color: var(--gray); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 12px; font-size: .8rem; }

.table-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #F8FAFC; padding: 12px 16px; text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFC; }
.table-img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.table-title { font-weight: 600; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-excerpt { color: var(--gray); font-size: .8rem; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-highlight { background: #FEF3C7; color: #D97706; }
.badge-normal { background: #F1F5F9; color: var(--gray); }
.badge-superadmin { background: #EDE9FE; color: #7C3AED; }
.badge-admin { background: #DBEAFE; color: var(--primary); }
.action-btns { display: flex; gap: 6px; }
.table-empty { text-align: center; padding: 48px 16px; color: var(--gray); }
.table-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: .4; }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: var(--radius); width: 100%; max-width: 680px; transform: translateY(-20px); transition: transform .25s ease; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray); transition: background var(--transition); background: none; border: none; cursor: pointer; font-size: 1rem; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem; transition: border-color var(--transition); outline: none; background: white; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; appearance: none; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-hint { font-size: .78rem; color: var(--gray); margin-top: 4px; }

.banner-preview { width: 100%; height: 160px; border-radius: var(--radius-sm); background: var(--light); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview-placeholder { text-align: center; color: var(--gray-l); }
.banner-preview-placeholder i { font-size: 2rem; display: block; margin-bottom: 8px; }
.banner-preview-placeholder span { font-size: .85rem; }

.ql-container { font-family: inherit !important; font-size: .9rem !important; min-height: 260px; border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; }
.ql-toolbar { border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; flex-wrap: wrap !important; }
.ql-container, .ql-toolbar { border-color: var(--border) !important; }
.ql-toolbar .ql-formats { margin-bottom: 4px; }
.ql-snow .ql-picker.ql-font .ql-picker-label, .ql-snow .ql-picker.ql-size .ql-picker-label { width: 90px; }
.ql-snow .ql-picker.ql-header .ql-picker-label { width: 100px; }

/* ── Login ── */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #3B82F6 100%); padding: 20px; }
.login-card { background: white; border-radius: 20px; width: 100%; max-width: 420px; box-shadow: 0 24px 80px rgba(0,0,0,.25); overflow: hidden; }
.login-header { background: linear-gradient(135deg, var(--primary-d), var(--primary)); padding: 36px; text-align: center; color: white; }
.login-icon { font-size: 2.5rem; margin-bottom: 12px; }
.login-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.login-header p { opacity: .8; font-size: .9rem; }
.login-body-inner { padding: 36px; }
.login-hint { background: #EFF6FF; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: .82rem; color: var(--primary); }
.login-btn { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: inherit; }
.login-btn:hover { background: var(--primary-d); }
.login-error { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: #DC2626; margin-top: 16px; display: none; }
.login-error.show { display: block; }
.login-back { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--gray); }
.login-back a { color: var(--primary); font-weight: 600; }

/* ── Articles page ── */
.articles-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.articles-search-form { flex: 1; min-width: 220px; }
.articles-search { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; }
.articles-search i { color: var(--gray-l); flex-shrink: 0; }
.articles-search input { border: none; outline: none; width: 100%; font-family: inherit; font-size: .9rem; background: transparent; }
.articles-clear { color: var(--gray-l); transition: color var(--transition); flex-shrink: 0; display: flex; align-items: center; }
.articles-clear:hover { color: var(--dark); }
.articles-sort select { padding: 10px 36px 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem; background: white; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.articles-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.articles-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: white; font-size: .8rem; font-weight: 600; color: var(--gray); transition: var(--transition); }
.articles-tag:hover { border-color: var(--primary); color: var(--primary); }
.articles-tag.active { background: var(--primary); border-color: var(--primary); color: white; }
.articles-tag span { font-size: .7rem; opacity: .7; }

/* ── Confirm ── */
.confirm-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.confirm-backdrop.open { opacity: 1; pointer-events: all; }
.confirm-box { background: white; border-radius: var(--radius); padding: 32px; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: scale(.95); transition: transform .2s; }
.confirm-backdrop.open .confirm-box { transform: scale(1); }
.confirm-icon { font-size: 2.5rem; margin-bottom: 16px; }
.confirm-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.confirm-msg { color: var(--gray); font-size: .9rem; margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--dark); color: white; padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-h); font-size: .875rem; font-weight: 500; animation: slideInToast .3s ease; min-width: 260px; }
.toast.success { background: #059669; }
.toast.error   { background: #DC2626; }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
  .hero-swiper { height: 380px; }
  .slide-title { font-size: 1.6rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { width: 220px; }
  .admin-content { padding: 20px; }
  .post-content { padding: 28px; }
}
