/* Reset and base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif; color: #0b132b; background: #f7f8fb; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Colors */
:root {
	--bg: #f7f8fb;
	--text: #0b132b;
	--muted: #6b7280;
	--primary: #1e90ff;
	--primary-600: #1177da;
	--accent: #10b981;
	--border: #e5e7eb;
	--card: #ffffff;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left img { height: 36px; }
.brand { font-weight: 700; letter-spacing: 0.2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; box-shadow: 0 6px 14px rgba(30,144,255,.25); }
.btn-primary:hover { filter: brightness(1.03); }
.btn-ghost { background: #e9faff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: #f3f4f6; }

.header-bottom { border-top: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 0; }
.navbar a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.navbar a:hover, .navbar a.active { color: var(--text); background: #eef4ff; }

/* Burger */
.burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.burger .bar { width: 20px; height: 2px; background: var(--text); position: relative; }
.burger .bar::before, .burger .bar::after { content: ""; position: absolute; width: 20px; height: 2px; background: var(--text); left: 0; }
.burger .bar::before { top: -6px; }
.burger .bar::after { top: 6px; }

/* Fullscreen menu */
.menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(11,19,43,.72); backdrop-filter: blur(6px); z-index: 100; display: none; }
.menu-panel { position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: var(--card); display: flex; flex-direction: column; }
.menu-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.menu-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.menu-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; }
.menu-close span { position: relative; width: 20px; height: 20px; }
.menu-close span::before, .menu-close span::after { content: ""; position: absolute; top: 9px; left: 0; width: 20px; height: 2px; background: var(--text); }
.menu-close span::before { transform: rotate(45deg); }
.menu-close span::after { transform: rotate(-45deg); }
.menu-links { display: grid; gap: 8px; padding: 18px 16px; }
.menu-links a { padding: 14px 12px; border-radius: 12px; font-weight: 700; background: #f3f4f6; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.menu-actions { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

.menu-open .menu-overlay { display: block; }

/* Hero section */
.section { padding: 56px 0; }
.section.light { background: var(--card); }
.section.muted { background: #f2f6ff; }
.section .section-head { text-align: center; margin-bottom: 20px; }
.section h1 { font-size: 34px; line-height: 1.15; margin: 0 0 16px 0; }
.section h2 { font-size: 26px; line-height: 1.2; margin: 28px 0 10px 0; }
.section p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 10px 0; }

.hero { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.hero .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero img { border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.08); }

/* Alternating media/text */
.media { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.media .media-img img { border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.media .media-text { }

/* Cards and tables */
.cards { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 4px 10px rgba(0,0,0,.04); }
.card h3 { margin: 0 0 8px 0; font-size: 18px; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; background: var(--card); box-shadow: 0 4px 10px rgba(0,0,0,.04); }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.table th { background: #f3f4f6; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* Responsive: enable horizontal scroll for tables on small screens */
@media (max-width: 768px) {
	.table { display: block; overflow-x: auto; white-space: nowrap; }
	/* Ensure parent card allows horizontal scroll and smooth touch scrolling */
	.card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	/* Make inner table wider than viewport so scrollbar appears */
	.card .table { display: inline-block; min-width: 720px; }
}

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Responsive */
@media (min-width: 768px) {
	.header-left img { height: 40px; }
	.section h1 { font-size: 40px; }
	.section h2 { font-size: 28px; }
	.hero { grid-template-columns: 1fr; }
	.media { grid-template-columns: 1.1fr 1fr; }
	.media.reverse { grid-template-columns: 1fr 1.1fr; }
	.media.reverse .media-img { order: 1; }
	.media.reverse .media-text { order: 2; padding-left: 20px; }
	.cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
	.hero { grid-template-columns: 1fr; }
	.cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Mobile nav visibility */
@media (max-width: 960px) {
	.navbar { display: none; }
	.burger { display: inline-flex; }
}
