:root {
	/* Colours aligned with icai.org + existing Himachal branch header */
	--navy: #1e2586;
	--navy-dark: #151a66;
	--navy-bar: #1a237e;
	--red: #c62828;
	--brand-red: #a31919;
	--brand-green: #2e7d32;
	--link-blue: #0088c7;
	--ink: #1f2430;
	--muted: #5c6475;
	--line: #e3e6ef;
	--bg: #f4f6fb;
	--card: #ffffff;
	--radius: 6px;
	--shadow: 0 2px 10px rgba(21, 26, 102, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, "Noto Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.25; color: var(--navy-dark); }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.6em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 0.6em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Header — brand scrolls away; navy menu sticks (legacy pattern) */
.site-header { background: #fff; }
.brand-bar { background: #fff; border-bottom: 1px solid var(--line); }
.brand-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-line1 { color: var(--brand-red); font-weight: 600; font-size: clamp(0.92rem, 1.6vw, 1.12rem); }
.brand-line2 { color: var(--navy-dark); font-weight: 700; font-size: clamp(1rem, 1.9vw, 1.28rem); }
.brand-line3 { color: var(--brand-green); font-weight: 600; font-size: clamp(0.78rem, 1.3vw, 0.95rem); }
.header-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.header-clock { font-size: 0.92rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.social-row { display: flex; gap: 6px; }
.social-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-bar); color: #fff; border-radius: 2px; text-decoration: none; }
.social-icon:hover { background: var(--red); color: #fff; }
.social-icon::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; }
.social-newspaper::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h12a1 1 0 0 1 1 1v11H5a1 1 0 0 1-1-1V5zm14 2h2a1 1 0 0 1 1 1v10a3 3 0 0 1-3 3H6v-2h13a1 1 0 0 0 1-1V7zm-3 2H7v2h8V9zm0 4H7v2h8v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h12a1 1 0 0 1 1 1v11H5a1 1 0 0 1-1-1V5zm14 2h2a1 1 0 0 1 1 1v10a3 3 0 0 1-3 3H6v-2h13a1 1 0 0 0 1-1V7zm-3 2H7v2h8V9zm0 4H7v2h8v-2z'/%3E%3C/svg%3E"); }
.social-facebook::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E"); }
.social-youtube::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M23 12s0-3.6-.5-5.2c-.2-.9-.9-1.6-1.8-1.8C18.6 4.5 12 4.5 12 4.5s-6.6 0-8.7.5c-.9.2-1.6.9-1.8 1.8C1 8.4 1 12 1 12s0 3.6.5 5.2c.2.9.9 1.6 1.8 1.8 2.1.5 8.7.5 8.7.5s6.6 0 8.7-.5c.9-.2 1.6-.9 1.8-1.8.5-1.6.5-5.2.5-5.2zM9.8 15.5v-7l6.2 3.5-6.2 3.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M23 12s0-3.6-.5-5.2c-.2-.9-.9-1.6-1.8-1.8C18.6 4.5 12 4.5 12 4.5s-6.6 0-8.7.5c-.9.2-1.6.9-1.8 1.8C1 8.4 1 12 1 12s0 3.6.5 5.2c.2.9.9 1.6 1.8 1.8 2.1.5 8.7.5 8.7.5s6.6 0 8.7-.5c.9-.2 1.6-.9 1.8-1.8.5-1.6.5-5.2.5-5.2zM9.8 15.5v-7l6.2 3.5-6.2 3.5z'/%3E%3C/svg%3E"); }
.social-x::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.2 2H21l-6.6 7.5L22 22h-6.8l-4.4-6.4L5.4 22H2.6l7-8L2 2h7l4 5.9L18.2 2zm-1.2 18h1.9L7.1 4H5.1l11.9 16z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.2 2H21l-6.6 7.5L22 22h-6.8l-4.4-6.4L5.4 22H2.6l7-8L2 2h7l4 5.9L18.2 2zm-1.2 18h1.9L7.1 4H5.1l11.9 16z'/%3E%3C/svg%3E"); }
.social-instagram::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 0 1 12 7.5zm0 2A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5zM17.5 6.8a1.1 1.1 0 1 1-1.1 1.1 1.1 1.1 0 0 1 1.1-1.1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 0 1 12 7.5zm0 2A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5zM17.5 6.8a1.1 1.1 0 1 1-1.1 1.1 1.1 1.1 0 0 1 1.1-1.1z'/%3E%3C/svg%3E"); }

/* Full-width navy menu bar — sticks under the viewport top on scroll */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--navy-bar);
	box-shadow: 0 2px 8px rgba(21, 26, 102, 0.18);
}
.site-nav .nav-inner {
	display: flex;
	align-items: stretch;
	min-height: 48px;
	padding: 0 40px;
	box-sizing: border-box;
}

/* Menu: up to three levels */
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: stretch; flex-wrap: wrap; width: 100%; gap: 0 6px; }
.menu-item { position: relative; display: flex; align-items: stretch; }
.menu-item > a, .menu-label { display: flex; align-items: center; gap: 6px; padding: 14px 10px; text-decoration: none; color: #fff; font-family: inherit; font-weight: 700; font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; background: none; border: 0; cursor: pointer; text-align: left; white-space: nowrap; }
/* Red highlight on the whole item so dropdown parents keep even 10px side padding */
.menu > .menu-item:hover,
.menu > .menu-item.active,
.menu > .menu-item.open { background: var(--red); color: #fff; }
.menu > .menu-item:hover > a,
.menu > .menu-item:hover > .menu-label,
.menu > .menu-item:hover > .sub-toggle,
.menu > .menu-item.active > a,
.menu > .menu-item.active > .menu-label,
.menu > .menu-item.active > .sub-toggle,
.menu > .menu-item.open > a,
.menu > .menu-item.open > .menu-label,
.menu > .menu-item.open > .sub-toggle { background: transparent; color: #fff; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
.sub-toggle:not(.menu-label) { width: 28px; }
/* menu-label also has .sub-toggle — restore padding that .sub-toggle { padding:0 } would clear */
.menu > .menu-item > .menu-label.sub-toggle { color: #fff; padding: 14px 10px; }
.sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; flex: none; }
.sub-toggle:focus-visible, .menu-item > a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 10px 28px rgba(21, 26, 102, 0.2); padding: 6px 0; z-index: 60; }
.submenu .submenu { top: -3px; left: 100%; margin-left: 0; }
.submenu.flip { left: auto; right: 0; }
.submenu .submenu.flip { right: 100%; margin: 0; }
.submenu .menu-item { width: 100%; }
.submenu .menu-item > a, .submenu .menu-label { flex: 1; padding: 10px 16px; font-weight: 500; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: normal; }
.submenu .menu-label { justify-content: space-between; width: 100%; }
.submenu .menu-item:hover, .submenu .menu-item.active, .submenu .menu-item.open { background: rgba(30, 37, 134, 0.08); }
.submenu .menu-item > a:hover, .submenu .menu-item > a[aria-current] { color: var(--navy); }
.submenu .menu-item > a[aria-current] { font-weight: 700; }
.submenu .sub-toggle { color: var(--ink); }
.submenu .sub-toggle:not(.menu-label) { width: 36px; }
.submenu .sub-toggle svg { transform: rotate(-90deg); }
.submenu .flip-caret svg { transform: rotate(90deg); }
.menu-item.open > .submenu { display: block; }
.menu > .menu-item.open > .sub-toggle svg, .menu > .menu-item.open > .menu-label svg { transform: rotate(180deg); }
@media (min-width: 861px) and (hover: hover) {
	.menu-item:hover > .submenu { display: block; }
	.menu > .menu-item:hover > .sub-toggle svg, .menu > .menu-item:hover > .menu-label svg { transform: rotate(180deg); }
}
@media (min-width: 861px) {
	.menu > .has-children { align-items: stretch; }
	.menu > .has-children > a { padding: 14px 6px 14px 10px; }
	.menu > .has-children > .sub-toggle:not(.menu-label) { width: auto; min-width: 28px; padding: 14px 10px 14px 4px; }
}
.site-menu { display: contents; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; flex: none; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

@media (max-width: 860px) {
	.brand-bar-inner { flex-wrap: wrap; min-height: 0; }
	.brand { flex: 1 1 auto; }
	.header-tools { order: 3; width: 100%; align-items: flex-start; padding-top: 4px; }
	.nav-toggle { display: block; margin-left: auto; }
	.site-menu { display: none; width: 100%; }
	.site-nav.open .site-menu { display: block; }
	.nav-inner { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 12px; min-height: 48px; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
	.submenu .menu-item { border-bottom: 0; }
	.menu-item > a, .menu-label { flex: 1; padding: 12px 14px; white-space: normal; }
	.menu > .has-children > a { padding-right: 8px; }
	.sub-toggle:not(.menu-label) { width: 44px; height: 44px; }
	.submenu, .submenu .submenu, .submenu.flip, .submenu .submenu.flip { position: static; flex-basis: 100%; min-width: 0; margin: 0; padding: 0 0 8px; border: 0; border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, 0.15); }
	.submenu .menu-item > a, .submenu .menu-label { color: #fff; }
	.submenu .sub-toggle { color: #fff; }
	.submenu .sub-toggle svg, .submenu .flip-caret svg { transform: none; }
	.menu-item.open > .sub-toggle svg, .menu-item.open > .menu-label svg { transform: rotate(180deg); }
	.submenu .menu-item:hover, .submenu .menu-item.open { background: rgba(255, 255, 255, 0.08); }
	.brand-logo { width: 56px; height: 56px; }
}

/* Main */
.site-main { min-height: 60vh; padding: 32px 0 56px; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.3em; }
.content-image { margin: 0 0 1.2em; }
.content-image img { border-radius: 8px; display: block; }
.embed { position: relative; margin: 0 0 1.2em; aspect-ratio: 4 / 3; background: #eef0f7; border-radius: 8px; overflow: hidden; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-doc { aspect-ratio: 3 / 4; max-height: 85vh; width: 100%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 8px; }

/* Pages written in the editor */
.page-content { max-width: 900px; overflow-wrap: break-word; }
.page-content::after { content: ""; display: table; clear: both; }
.page-content img { height: auto; border-radius: 6px; }
.page-content .img-left { float: left; margin: 4px 20px 12px 0; max-width: 45%; }
.page-content .img-right { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.page-content .img-full { width: 100%; }
.page-content figure.image { display: table; margin: 0 auto 1.2em; }
.page-content figure.image.img-left, .page-content figure.image.img-right { display: block; }
.page-content figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; padding-top: 4px; }
.page-content blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 4px solid var(--red); background: #f7f8fc; color: var(--navy-dark); }
.page-content table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page-content th { background: #f3f5fa; }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.page-content .content-video { width: 100%; max-height: 80vh; border-radius: 8px; background: #000; margin: 0 0 1.2em; }
.page-content .doc-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 600; }
.page-content .doc-link::before { content: ""; width: 16px; height: 20px; flex: none; background: var(--red); clip-path: polygon(0 0, 70% 0, 100% 28%, 100% 100%, 0 100%); }
.page-content .doc-link:hover { border-color: var(--navy); }
@media (max-width: 640px) {
	.page-content .img-left, .page-content .img-right { float: none; margin: 0 0 12px; max-width: 100%; }
	.embed-doc { aspect-ratio: auto; height: 75vh; }
}

.alert { max-width: 1140px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.site-main > .alert { width: calc(100% - 40px); }
.alert-success { background: #ecf8f0; border-color: #b7e2c4; color: #1d6b37; }
.alert-error { background: #fdeeee; border-color: #f2c0c0; color: #9b1c1c; }
.alert-info { background: #eef2fd; border-color: #c5d0f5; color: #24357f; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: #a50d26; color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--navy); color: var(--navy); }

/* Home */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; margin-top: -32px; padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.hero img { width: 180px; height: auto; background: #fff; border-radius: 50%; padding: 10px; }
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero p { color: #dfe3f7; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 640px) {
	.hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.hero img { width: 130px; }
	.hero-actions { justify-content: center; }
}
.home-welcome { margin-top: 32px; max-width: none; }
.home-welcome > :last-child { margin-bottom: 0; }
.join-info { max-width: none; margin-bottom: 24px; }
.join-info > :first-child { margin-top: 0; }
.join-info > :last-child { margin-bottom: 0; }
.join-form-title { margin: 0 0 16px; color: var(--navy); }
.join-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.join-steps li { padding: 8px 14px; border-radius: 8px; background: #eef0f7; color: var(--muted); font-size: 0.92rem; }
.join-steps li.current { background: rgba(40, 53, 131, 0.1); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(40, 53, 131, 0.35); }
.join-steps li.done { background: #e7f5ec; color: #1d6b3a; }
.join-email { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: 640px; }
.join-email .field { flex: 1 1 280px; }
.join-verified { padding: 10px 12px; border: 1px solid #cfd4e2; border-radius: 8px; background: #f6f7fb; font-weight: 400; }
.join-verified-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #e7f5ec; color: #1d6b3a; font-size: 0.78rem; font-weight: 700; }

/* Home slideshow */
.slideshow { position: relative; margin-top: -32px; background: var(--navy-dark); overflow: hidden; height: clamp(300px, 52vw, 600px); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.has-text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 16, 48, 0.75) 0%, rgba(10, 16, 48, 0.25) 55%, rgba(10, 16, 48, 0) 100%); }
.slide-caption { position: absolute; inset: auto 0 0; z-index: 1; padding: 0 56px 64px; }
.slide-caption .container { padding: 0; }
.slide-text { max-width: 680px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.align-center .slide-text { margin: 0 auto; text-align: center; }
.align-right .slide-text { margin-left: auto; text-align: right; }
.slide-text h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.6rem); margin: 0 0 0.3em; }
.slide-text p { color: #eef0fa; font-size: clamp(0.98rem, 1.6vw, 1.2rem); margin: 0 0 1em; }
.slide-text .btn { text-shadow: none; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.slide-nav:hover, .slide-nav:focus-visible { background: rgba(0, 0, 0, 0.6); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 8px; }
.slide-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slide-dot.active { background: #fff; }
.slide-pause { width: 24px; height: 24px; margin-left: 6px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.35); cursor: pointer; position: relative; }
.slide-pause::before, .slide-pause::after { content: ""; position: absolute; top: 7px; width: 3px; height: 10px; background: #fff; }
.slide-pause::before { left: 8px; }
.slide-pause::after { left: 13px; }
.slideshow.paused .slide-pause::before { left: 9px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.slideshow.paused .slide-pause::after { display: none; }
@media (max-width: 640px) {
	.slideshow { height: clamp(340px, 95vw, 460px); }
	.slide-caption { padding: 0 16px 52px; }
	.slide-nav { width: 36px; height: 36px; font-size: 1.6rem; top: auto; bottom: 8px; transform: none; background: rgba(0, 0, 0, 0.45); }
	.slide-dots { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Hall of Fame scroller */
.hall { margin: 32px 0; }
.hall-box { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 520px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hall-stage { position: relative; min-height: 400px; background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #e6e9f5 70%, #d8dcee 100%); overflow: hidden; }
.hall-track { position: absolute; inset: 0; }
.hall-card { position: absolute; left: 50%; top: 50%; width: 210px; height: 290px; margin: -145px 0 0 -105px; padding: 0; border: 4px solid #fff; border-radius: 8px; background: #c9cee0; box-shadow: 0 10px 28px rgba(27, 36, 98, 0.28); overflow: hidden; cursor: pointer; font: inherit; color: #fff; transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease; opacity: 0; pointer-events: none; transform: scale(0.5); }
.hall-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hall-card[data-pos="0"] { opacity: 1; z-index: 3; transform: none; pointer-events: auto; }
.hall-card[data-pos="1"], .hall-card[data-pos="-1"] { opacity: 1; z-index: 2; pointer-events: auto; filter: brightness(0.82); }
.hall-card[data-pos="1"] { transform: translateX(62%) scale(0.8); }
.hall-card[data-pos="-1"] { transform: translateX(-62%) scale(0.8); }
.hall-card[data-pos="2"], .hall-card[data-pos="-2"] { opacity: 0.55; z-index: 1; filter: brightness(0.7); }
.hall-card[data-pos="2"] { transform: translateX(108%) scale(0.62); }
.hall-card[data-pos="-2"] { transform: translateX(-108%) scale(0.62); }
.hall-card:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hall-card-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(0deg, rgba(10, 16, 48, 0.85), rgba(10, 16, 48, 0)); text-align: center; line-height: 1.25; opacity: 0; transition: opacity 0.4s; }
.hall-card[data-pos="0"] .hall-card-caption { opacity: 1; }
.hall-card-caption strong { display: block; font-size: 0.98rem; }
.hall-card-caption span { display: block; font-size: 0.8rem; color: #dfe3f7; }
.hall-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3.4rem; font-weight: 700; color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); }
.hall-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border: 0; border-radius: 8px; color: #fff; font-size: 1.8rem; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.hall-prev { left: 14px; background: var(--navy); }
.hall-next { right: 14px; background: var(--red); }
.hall-nav:hover, .hall-nav:focus-visible { filter: brightness(1.15); }
.hall-info { padding: 32px 36px; display: flex; flex-direction: column; text-align: center; }
.hall-info h2 { margin: 0; font-size: 1.6rem; }
.hall-subtitle { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.hall-intro { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.hall-divider { height: 1px; margin: 18px auto; width: 60%; background: linear-gradient(90deg, transparent, var(--red), transparent); position: relative; }
.hall-divider::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4px; background: var(--red); transform: rotate(45deg); }
.hall-details { flex: 1; }
.hall-detail { animation: hall-in 0.5s ease; }
.hall-detail h3 { margin: 0; font-size: 1.3rem; color: var(--navy-dark); }
.hall-role { margin: 2px 0 10px; color: var(--red); font-weight: 600; font-size: 0.92rem; }
.hall-desc { text-align: left; max-height: 210px; overflow-y: auto; color: var(--ink); font-size: 0.95rem; }
.hall-desc p { margin: 0 0 0.7em; }
.hall-more { display: inline-block; margin-top: 4px; font-weight: 600; }
.hall-all { align-self: center; margin-top: 16px; }
@keyframes hall-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
	.hall-box { grid-template-columns: 1fr; min-height: 0; }
	.hall-stage { min-height: 340px; }
	.hall-details { min-height: 260px; }
	.hall-card { width: 180px; height: 250px; margin: -125px 0 0 -90px; }
	.hall-info { padding: 24px 20px; }
}
@media (max-width: 420px) {
	.hall-card[data-pos="1"] { transform: translateX(48%) scale(0.78); }
	.hall-card[data-pos="-1"] { transform: translateX(-48%) scale(0.78); }
	.hall-card[data-pos="2"], .hall-card[data-pos="-2"] { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hall-card, .hall-detail { transition: none; animation: none; } }

/* Location map at the bottom of the home page */
.reach { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin: 40px 0 8px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.reach-map { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.reach-info { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.reach-info h2 { margin: 0 0 16px; }
.reach-line { margin: 0 0 12px; padding-left: 30px; position: relative; color: var(--ink); }
.reach-line::before { position: absolute; left: 0; top: 1px; width: 20px; text-align: center; color: var(--red); }
.reach-address::before { content: "\1F4CD"; }
.reach-phone::before { content: "\260E"; }
.reach-email::before { content: "\2709"; }
.reach-extra::before { content: "\1F552"; }
.reach-info .btn { margin-top: 8px; }
@media (max-width: 760px) {
	.reach { grid-template-columns: 1fr; }
	.reach-map { min-height: 300px; height: 300px; }
	.reach-info { padding: 24px 20px; }
}

/* Executive committee page */
.committee-intro { max-width: 760px; color: var(--muted); margin-top: -8px; }
.committee-heading { margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.committee-grid-office { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.committee-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.committee-office { border-top: 4px solid var(--red); }
.committee-photo { aspect-ratio: 4 / 5; background: #c9cee0; }
.committee-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.committee-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.6rem; font-weight: 700; color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); }
.committee-memoriam .committee-photo img { filter: grayscale(1); }
.committee-text { padding: 12px 12px 16px; }
.committee-text h3 { margin: 0; font-size: 1.02rem; color: var(--navy-dark); }
.committee-post { margin: 0 0 4px; color: var(--red); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.committee-batch { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.committee-phone { margin: 6px 0 0; font-size: 0.9rem; }
@media (max-width: 480px) {
	.committee-grid, .committee-grid-office { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Hall of Fame / Past Executives page */
.hall-page-intro { max-width: 760px; color: var(--muted); margin: -8px 0 24px; }

.past-layout {
	display: grid;
	grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
	gap: 28px 36px;
	align-items: start;
	margin: 8px 0 40px;
}
.past-eras-title {
	margin: 0 0 16px;
	font-size: 1.2rem;
	color: var(--navy-dark);
}
.past-era-nav {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.past-era-btn {
	display: block;
	padding: 12px 16px;
	background: var(--navy-bar);
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	border-radius: 2px;
	border: 2px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.past-era-btn:hover { background: var(--navy); color: #fff; }
.past-era-btn.active,
.past-era-btn[aria-current="page"] {
	background: var(--navy-dark);
	border-color: var(--red);
	color: #fff;
}
.past-period-heading {
	margin: 0 0 16px;
	font-size: 1.25rem;
	color: var(--navy-dark);
}
.past-accordion { border: 1px solid #c5c9de; }
.past-term { border-bottom: 1px solid #fff; }
.past-term:last-child { border-bottom: 0; }
.past-term-summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--navy-bar);
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	user-select: none;
}
.past-term-summary::-webkit-details-marker { display: none; }
.past-term-summary::marker { content: ""; }
.past-term-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	position: relative;
}
.past-term-icon::before,
.past-term-icon::after {
	content: "";
	position: absolute;
	background: #fff;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.past-term-icon::before { width: 12px; height: 2px; }
.past-term-icon::after { width: 2px; height: 12px; }
.past-term[open] > .past-term-summary .past-term-icon::after { display: none; }
.past-term-label { flex: 1; }
.past-term-body {
	padding: 22px 16px 10px;
	background: #fff;
}
.past-people {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 18px;
	justify-items: center;
}
.past-person {
	width: 100%;
	max-width: 200px;
	text-align: center;
}
.past-person-post {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--ink);
	font-size: 0.95rem;
	min-height: 1.4em;
}
.past-person-photo {
	width: 130px;
	height: 130px;
	margin: 0 auto 10px;
	border-radius: 50%;
	overflow: hidden;
	background: #d8dcee;
	border: 3px solid #e8ebf5;
}
.past-person-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.past-person-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(160deg, var(--navy), var(--navy-dark));
}
.past-person-name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
}
.past-person-details {
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: left;
}
@media (max-width: 860px) {
	.past-layout { grid-template-columns: 1fr; gap: 20px; }
	.past-era-nav { flex-direction: row; flex-wrap: wrap; }
	.past-era-btn { flex: 1 1 140px; }
}
@media (max-width: 700px) {
	.past-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.past-people { grid-template-columns: 1fr; }
}

.hall-list { display: grid; gap: 20px; }
.hall-person { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.hall-person-photo { width: 170px; height: 220px; border-radius: 8px; overflow: hidden; background: #c9cee0; }
.hall-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hall-person h2 { margin: 0; }
.hall-person .prose { max-width: none; }
@media (max-width: 560px) {
	.hall-person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.hall-person .prose { text-align: left; }
}

/* Home: ICAI Wall + left modules / right content (legacy layout) */
.home-page { padding-bottom: 28px; }
.icai-wall {
	margin: 24px 0 20px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #1a237e;
}
.icai-wall img,
.icai-wall-link img {
	display: block;
	width: 100%;
	height: auto;
}
.icai-wall-link { display: block; }
.icai-wall-link:hover { opacity: 0.96; }

.home-layout {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 24px 28px;
	align-items: start;
	margin: 8px 0 28px;
}
.home-layout-single { grid-template-columns: 1fr; }
.home-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.home-module {
	padding: 16px 16px 14px;
	background: linear-gradient(180deg, #eef1f9 0%, #e4e8f4 100%);
	border: 1px solid #9aa3c7;
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.home-module-title {
	margin: 0 0 12px;
	text-align: center;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--navy-dark);
}
.home-helpline img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.home-tender .tender-link,
.home-tender .tender-heading {
	display: block;
	color: var(--navy-dark);
	text-decoration: none;
}
.home-tender .tender-link:hover { color: var(--red); }
.home-tender .tender-link strong,
.home-tender .tender-heading {
	display: block;
	font-size: 0.95rem;
	line-height: 1.35;
	margin-bottom: 6px;
}
.home-tender .tender-link span,
.home-tender p {
	display: block;
	margin: 0;
	font-size: 0.88rem;
	color: var(--muted);
	line-height: 1.45;
}
.home-exec-label {
	margin: 0 0 12px;
	text-align: center;
	font-weight: 700;
	color: var(--navy-dark);
	font-size: 1.05rem;
}
.home-main .home-welcome { margin-top: 0; }
.home-main .stats { margin-top: 24px; }
.home-main .quick-links { margin-bottom: 24px; }

.notice-board-body { color: var(--navy-dark); font-size: 0.95rem; }
.notice-board-body.prose { max-width: none; }
.notice-board-body p { margin: 0 0 0.7em; }
.notice-board-body p:last-child { margin-bottom: 0; }
.notice-board-note {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(30, 37, 134, 0.15);
	font-size: 0.9rem;
}
.notice-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.notice-events li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.72);
	border-radius: 6px;
	border-left: 3px solid var(--red);
}
.notice-event-date {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--red);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.notice-event-title {
	color: var(--navy-dark);
	font-size: 0.98rem;
}
.notice-event-summary {
	color: var(--muted);
	font-size: 0.88rem;
}
.notice-board-more {
	margin: 12px 0 0;
	text-align: right;
	font-size: 0.9rem;
	font-weight: 600;
}
@media (max-width: 900px) {
	.home-layout { grid-template-columns: 1fr; }
	.home-sidebar { order: -1; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; border-top: 3px solid var(--navy); }
.stat strong { display: block; font-size: 2rem; color: var(--navy); }
.stat span { color: var(--muted); }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 32px; }
.quick-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; border-left: 4px solid var(--navy); color: inherit; }
.quick-link:hover { border-left-color: var(--red); color: inherit; }
.quick-link strong { color: var(--navy-dark); font-size: 1.02rem; }
.quick-link span { color: var(--muted); font-size: 0.9rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (max-width: 900px) { .quick-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quick-links { grid-template-columns: 1fr; } }

/* Members */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filters input, .filters select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.filters input[type="search"] { flex: 1 1 240px; }
.result-count { color: var(--muted); margin: 0 0 16px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.member-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 1 / 1; background: #e8ebf5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font-size: 2.6rem; font-weight: 700; color: var(--navy); opacity: 0.6; }
.member-photo { position: relative; }
.memoriam-badge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; background: rgba(31, 36, 48, 0.82); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 6px 8px; }
.member-memoriam { border-top: 3px solid #5c6475; }
.member-memoriam .member-photo img { filter: grayscale(0.85); }
.memoriam-intro { margin: -8px 0 16px; color: var(--muted); font-style: italic; }
.member-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.member-name { font-weight: 700; color: var(--navy-dark); }
.member-meta { font-size: 0.9rem; color: var(--muted); }
.member-links { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; font-size: 0.9rem; flex-wrap: wrap; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; justify-content: center; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline-year { position: relative; margin: 28px 0 12px -28px; font-size: 1.3rem; font-weight: 700; color: var(--navy); background: var(--bg); padding-left: 0; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.timeline-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.timeline-date { font-size: 0.85rem; color: var(--muted); }
.timeline-title { margin: 2px 0 4px; font-size: 1.1rem; color: var(--navy-dark); }
.timeline-card p { margin: 0 0 6px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(40, 53, 131, 0.1); color: var(--navy); margin-left: 6px; vertical-align: middle; }
.timeline-image { margin-top: 10px; border-radius: 8px; max-height: 260px; object-fit: cover; }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.album-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.album-cover { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e3e7f5, #cfd6ee); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover svg { width: 56px; height: 56px; fill: var(--navy); opacity: 0.45; }
.album-body { padding: 14px 16px 16px; }
.album-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.album-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photo-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #e3e7f5; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo-grid a:hover img { transform: scale(1.04); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.doc-frame { width: 100%; height: 75vh; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 12, 30, 0.92); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd4e2; border-radius: 8px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(40, 53, 131, 0.35); border-color: var(--navy); }
.field .hint, .hint { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.required { color: var(--red); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: 5px; }
.hp-field { position: absolute; left: -5000px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-map { padding: 0; overflow: hidden; min-height: 360px; }
.contact-map-frame { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 760px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-map, .contact-map-frame { min-height: 280px; }
}

/* Footer */
.site-footer { background: var(--navy-dark); color: #cdd3ee; padding: 36px 0 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd7d7; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { margin: 0 0 4px; color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a { font-size: 0.9rem; color: #d5daf3; }
.footer-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding-top: 24px; }
.footer-bottom p { margin: 6px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-copy { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { grid-template-columns: 1fr; }
}
