/* ==========================================================================
   ha-ui.css — Central UI stylesheet for the public site (Bangladesh Itihas Samiti)
   --------------------------------------------------------------------------
   - Loaded LAST in application/views/header/header_top.php, so it overrides
     theme.css / skins / custom.css.
   - Public site only. The admin panel (/admin) does not load this file.
   - All reusable classes use the "ha-" prefix to avoid clashes with
     Bootstrap 3 and the old theme.
   - Mobile-first. Breakpoints follow Bootstrap 3:
       sm >= 768px, md >= 992px, lg >= 1200px
   --------------------------------------------------------------------------
   Sections:
     1. Design tokens (CSS variables)
     2. Base / typography
     3. Layout helpers (container, section, grid)
     4. Section titles & page banner
     5. Buttons & links
     6. Cards (generic, news, event, feature/CTA)
     7. Lists (PDF / document / link lists)
     8. Tables (responsive)
     9. Forms
    10. Gallery grid
    11. Utilities
    12. Header (top bar + one-row sticky header)    — Phase 2
    13. Footer + back-to-top button                 — Phase 3
    14. Home hero slider (+ pill buttons)           — Phase 4
    15. Home sections: welcome, featured strip, panels,
        notice list, media list, events grid,
        notice board                                — Phase 4
    16. Inner pages: page banner, reading card,
        CMS content, link grid, empty state         — Phase 5
    17. Gallery & video: toolbar, album cards,
        photo grid, video category tiles, video cards — Phase 8
    18. Events page: pill tabs with counts, pagination
    19. Event details page: image, chips, date, body, related
    20. Member Directory: search wizard, member table
    21. Member profile page: identity card, detail panels
    22. Journal issue archive (bangladesh-historical-studies[-bangla])
    23. Journal issue table of contents (publication/journal/{slug})
    24. Journal article page (publication/journal/details/{id})
   ========================================================================== */


/* 1. DESIGN TOKENS
   ========================================================================== */
:root {
	/* Brand — primary is the logo indigo (#2E3192) */
	--ha-primary:        #2E3192;
	--ha-primary-dark:   #1F2166;
	--ha-primary-light:  #4A4DB0;
	--ha-ink:            #15173F;   /* deepest navy: footer / top bar */
	--ha-accent:         #B08D57;   /* antique gold */
	--ha-accent-dark:    #8E6F3E;

	/* Neutrals */
	--ha-cream:          #F7F3EA;   /* warm section background */
	--ha-cream-dark:     #EFE8D8;
	--ha-white:          #FFFFFF;
	--ha-text:           #2B2B2B;
	--ha-text-muted:     #6B6B6B;
	--ha-border:         #E4DED1;

	/* Feedback */
	--ha-success:        #2F7D4F;
	--ha-danger:         #B23A3A;

	/* Typography — Hind Siliguri covers Latin + Bangla for body text;
	   headings use a serif with a Bangla serif fallback. */
	--ha-font-body:      'Hind Siliguri', 'Noto Sans Bengali', 'Helvetica Neue', Arial, sans-serif;
	--ha-font-heading:   'Playfair Display', 'Noto Serif Bengali', Georgia, serif;
	--ha-font-size:      16px;
	--ha-line-height:    1.7;

	/* Spacing scale */
	--ha-space-1: 4px;
	--ha-space-2: 8px;
	--ha-space-3: 16px;
	--ha-space-4: 24px;
	--ha-space-5: 32px;
	--ha-space-6: 48px;
	--ha-space-7: 64px;
	--ha-space-8: 96px;

	/* Shape & depth */
	--ha-radius:         4px;
	--ha-radius-lg:      8px;
	--ha-shadow-sm:      0 1px 3px rgba(21, 23, 63, .08);
	--ha-shadow:         0 6px 20px rgba(21, 23, 63, .10);
	--ha-shadow-lg:      0 12px 32px rgba(21, 23, 63, .16);
	--ha-transition:     all .25s ease-in-out;

	--ha-container:      1200px;
}


/* 2. BASE / TYPOGRAPHY
   ========================================================================== */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--ha-font-body);
	font-size: var(--ha-font-size);
	line-height: var(--ha-line-height);
	color: var(--ha-text);
	background-color: var(--ha-white);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ha-font-heading);
	color: var(--ha-primary-dark);
	font-weight: 600;
	line-height: 1.3;
}

/* Fluid heading sizes (replace the very large fixed sizes in theme.css) */
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2;  margin: 0 0 var(--ha-space-4); }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; margin: 0 0 var(--ha-space-4); }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3;  margin: 0 0 var(--ha-space-3); }
h4 { font-size: clamp(18px, 2vw, 21px);   line-height: 1.35; margin: 0 0 var(--ha-space-3); }
h5 { font-size: 18px; line-height: 1.4; margin: 0 0 var(--ha-space-2); }
h6 { font-size: 15px; line-height: 1.4; margin: 0 0 var(--ha-space-2); }

p {
	line-height: var(--ha-line-height);
	margin: 0 0 var(--ha-space-3);
}

a {
	color: var(--ha-primary);
	transition: var(--ha-transition);
}
a:hover,
a:focus {
	color: var(--ha-accent-dark);
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

::selection {
	background: var(--ha-primary);
	color: var(--ha-white);
}


/* 3. LAYOUT HELPERS
   ========================================================================== */
.ha-container {
	width: 100%;
	max-width: var(--ha-container);
	margin: 0 auto;
	padding: 0 var(--ha-space-3);
}

.ha-section {
	padding: var(--ha-space-6) 0;
}
.ha-section--cream { background-color: var(--ha-cream); }
.ha-section--dark  { background-color: var(--ha-ink); color: rgba(255,255,255,.85); }
.ha-section--dark h1, .ha-section--dark h2, .ha-section--dark h3,
.ha-section--dark h4, .ha-section--dark h5, .ha-section--dark h6 { color: var(--ha-white); }
.ha-section--tight { padding: var(--ha-space-5) 0; }

/* Simple CSS grid (works alongside Bootstrap 3 rows/cols) */
.ha-grid {
	display: grid;
	gap: var(--ha-space-4);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ha-section { padding: var(--ha-space-7) 0; }
	.ha-container { padding: 0 var(--ha-space-4); }
	.ha-grid--2, .ha-grid--3, .ha-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
	.ha-section { padding: 72px 0; }
	.ha-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ha-grid--4 { grid-template-columns: repeat(4, 1fr); }
}


/* 4. SECTION TITLES & PAGE BANNER
   ========================================================================== */
.ha-eyebrow {
	display: inline-block;
	font-family: var(--ha-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ha-accent-dark);
	margin-bottom: var(--ha-space-2);
}

.ha-section-title {
	position: relative;
	margin-bottom: var(--ha-space-5);
	padding-bottom: var(--ha-space-3);
}
.ha-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	background: var(--ha-accent);
}
.ha-section-title--center { text-align: center; }
.ha-section-title--center::after { left: 50%; transform: translateX(-50%); }

.ha-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ha-space-3);
	margin-bottom: var(--ha-space-5);
}
.ha-section-head .ha-section-title { margin-bottom: 0; }

/* Inner-page banner (title strip under the header) */
.ha-page-banner {
	background: var(--ha-primary-dark) linear-gradient(135deg, var(--ha-primary-dark) 0%, var(--ha-primary) 100%);
	color: var(--ha-white);
	padding: var(--ha-space-5) 0;
}
.ha-page-banner h1,
.ha-page-banner .ha-page-title {
	color: var(--ha-white);
	margin: 0;
}
@media (min-width: 768px) {
	.ha-page-banner { padding: var(--ha-space-6) 0; }
}

.ha-breadcrumb {
	list-style: none;
	margin: var(--ha-space-2) 0 0;
	padding: 0;
	font-size: 14px;
	color: rgba(255,255,255,.75);
}
.ha-breadcrumb li { display: inline; }
.ha-breadcrumb li + li::before { content: "/"; padding: 0 var(--ha-space-2); opacity: .6; }
.ha-breadcrumb a { color: rgba(255,255,255,.9); }
.ha-breadcrumb a:hover { color: var(--ha-accent); }


/* 5. BUTTONS & LINKS
   ========================================================================== */
.ha-btn {
	display: inline-block;
	padding: 12px 26px;
	font-family: var(--ha-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
	color: var(--ha-white);
	background-color: var(--ha-primary);
	border: 2px solid var(--ha-primary);
	border-radius: var(--ha-radius);
	cursor: pointer;
	transition: var(--ha-transition);
}
.ha-btn:hover,
.ha-btn:focus {
	color: var(--ha-white);
	background-color: var(--ha-primary-dark);
	border-color: var(--ha-primary-dark);
}

.ha-btn--accent { background-color: var(--ha-accent); border-color: var(--ha-accent); }
.ha-btn--accent:hover,
.ha-btn--accent:focus { background-color: var(--ha-accent-dark); border-color: var(--ha-accent-dark); }

.ha-btn--outline { background-color: transparent; color: var(--ha-primary); }
.ha-btn--outline:hover,
.ha-btn--outline:focus { background-color: var(--ha-primary); color: var(--ha-white); }

.ha-btn--light { background-color: transparent; color: var(--ha-white); border-color: var(--ha-white); }
.ha-btn--light:hover,
.ha-btn--light:focus { background-color: var(--ha-white); color: var(--ha-primary-dark); border-color: var(--ha-white); }

.ha-btn--sm    { padding: 8px 16px; font-size: 12px; }
.ha-btn--block { display: block; width: 100%; }

/* Uppercase text link with arrow: "READ MORE →" */
.ha-link-more {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ha-primary);
}
.ha-link-more::after { content: " \2192"; transition: var(--ha-transition); }
.ha-link-more:hover { color: var(--ha-accent-dark); }
.ha-link-more:hover::after { padding-left: 4px; }


/* 6. CARDS
   ========================================================================== */
.ha-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	overflow: hidden;
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-card:hover {
	box-shadow: var(--ha-shadow);
	transform: translateY(-3px);
}

.ha-card-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ha-cream-dark);
}
.ha-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.ha-card:hover .ha-card-img img { transform: scale(1.04); }
.ha-card-img--square   { aspect-ratio: 1 / 1; }
.ha-card-img--portrait { aspect-ratio: 3 / 4; }

.ha-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: var(--ha-space-4);
}
.ha-card-title {
	font-size: 19px;
	line-height: 1.4;
	margin: 0 0 var(--ha-space-2);
}
.ha-card-title a { color: var(--ha-primary-dark); }
.ha-card-title a:hover { color: var(--ha-accent-dark); }
.ha-card-text { color: var(--ha-text-muted); font-size: 15px; }
.ha-card-meta {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ha-accent-dark);
	margin-bottom: var(--ha-space-2);
}
.ha-card-footer { margin-top: auto; padding-top: var(--ha-space-3); }

/* Event card with date badge */
.ha-event-card {
	display: flex;
	gap: var(--ha-space-3);
	align-items: flex-start;
	padding: var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius);
	transition: var(--ha-transition);
}
.ha-event-card:hover { box-shadow: var(--ha-shadow); }

.ha-date-badge {
	flex: 0 0 64px;
	width: 64px;
	padding: var(--ha-space-2) 0;
	text-align: center;
	color: var(--ha-white);
	background: var(--ha-primary);
	border-radius: var(--ha-radius);
	line-height: 1.1;
}
.ha-date-badge .ha-date-day   { display: block; font-family: var(--ha-font-heading); font-size: 26px; font-weight: 700; }
.ha-date-badge .ha-date-month { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ha-date-badge .ha-date-year  { display: block; font-size: 11px; opacity: .8; }

/* Feature / CTA tile (e.g. Lectures, Books, Souvenir, Journal) */
.ha-feature {
	position: relative;
	display: block;
	height: 100%;
	padding: var(--ha-space-5) var(--ha-space-4);
	text-align: center;
	color: var(--ha-text);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-top: 4px solid var(--ha-primary);
	border-radius: var(--ha-radius-lg);
	transition: var(--ha-transition);
}
.ha-feature:hover {
	color: var(--ha-text);
	border-top-color: var(--ha-accent);
	box-shadow: var(--ha-shadow);
	transform: translateY(-3px);
}
.ha-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--ha-space-3);
	font-size: 26px;
	color: var(--ha-primary);
	background: var(--ha-cream);
	border-radius: 50%;
}
.ha-feature-title { font-size: 20px; margin-bottom: var(--ha-space-2); }
.ha-feature-text  { font-size: 15px; color: var(--ha-text-muted); margin: 0; }


/* 7. LISTS (PDF / document / link lists)
   ========================================================================== */
.ha-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ha-list > li {
	display: flex;
	align-items: flex-start;
	gap: var(--ha-space-3);
	padding: var(--ha-space-3) 0;
	border-bottom: 1px solid var(--ha-border);
}
.ha-list > li:last-child { border-bottom: 0; }
.ha-list-icon { flex: 0 0 auto; color: var(--ha-accent-dark); font-size: 18px; line-height: 1.5; }
.ha-list-body { flex: 1 1 auto; min-width: 0; }
.ha-list-title { display: block; font-weight: 600; color: var(--ha-primary-dark); }
.ha-list-meta  { display: block; font-size: 13px; color: var(--ha-text-muted); }


/* 8. TABLES (responsive)
   ========================================================================== */
/* Wrap any table in .ha-table-wrap so it scrolls horizontally on small screens */
.ha-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	margin-bottom: var(--ha-space-4);
}
.ha-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--ha-white);
}
.ha-table th,
.ha-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--ha-border);
}
.ha-table thead th {
	font-weight: 600;
	color: var(--ha-white);
	background: var(--ha-primary);
	white-space: nowrap;
}
.ha-table tbody tr:nth-child(even) { background: var(--ha-cream); }
.ha-table tbody tr:hover { background: var(--ha-cream-dark); }


/* 9. FORMS
   ========================================================================== */
.ha-form {
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	padding: var(--ha-space-4);
}
@media (min-width: 768px) {
	.ha-form { padding: var(--ha-space-5); }
}
.ha-form label,
.ha-form .control-label {
	font-weight: 600;
	color: var(--ha-primary-dark);
	margin-bottom: var(--ha-space-1);
}
.ha-form .form-control {
	height: auto;
	min-height: 44px;
	padding: 10px 12px;
	font-size: 15px;
	color: var(--ha-text);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	box-shadow: none;
}
.ha-form textarea.form-control { min-height: 120px; }
.ha-form .form-control:focus {
	border-color: var(--ha-primary);
	box-shadow: 0 0 0 3px rgba(46, 49, 146, .15);
}
.ha-form .help-block { font-size: 13px; }
.ha-form .has-error .form-control   { border-color: var(--ha-danger); }
.ha-form .has-success .form-control { border-color: var(--ha-success); }
.ha-form-section-title {
	font-size: 18px;
	margin: var(--ha-space-4) 0 var(--ha-space-3);
	padding-bottom: var(--ha-space-2);
	border-bottom: 1px solid var(--ha-border);
}


/* 10. GALLERY GRID
   ========================================================================== */
.ha-gallery-grid {
	display: grid;
	gap: var(--ha-space-3);
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .ha-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .ha-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.ha-gallery-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--ha-radius);
	background: var(--ha-cream-dark);
}
.ha-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.ha-gallery-item:hover img { transform: scale(1.06); }
.ha-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: var(--ha-space-4) var(--ha-space-3) var(--ha-space-2);
	font-size: 14px;
	color: var(--ha-white);
	background: linear-gradient(to top, rgba(21, 23, 63, .85), rgba(21, 23, 63, 0));
}


/* 11. UTILITIES
   ========================================================================== */
.ha-text-center  { text-align: center; }
.ha-text-muted   { color: var(--ha-text-muted); }
.ha-text-primary { color: var(--ha-primary); }
.ha-text-accent  { color: var(--ha-accent-dark); }
.ha-bg-cream     { background-color: var(--ha-cream); }
.ha-bg-primary   { background-color: var(--ha-primary); color: var(--ha-white); }

.ha-mt-0 { margin-top: 0; }               .ha-mb-0 { margin-bottom: 0; }
.ha-mt-3 { margin-top: var(--ha-space-3); } .ha-mb-3 { margin-bottom: var(--ha-space-3); }
.ha-mt-5 { margin-top: var(--ha-space-5); } .ha-mb-5 { margin-bottom: var(--ha-space-5); }

.ha-divider {
	height: 1px;
	margin: var(--ha-space-5) 0;
	border: 0;
	background: var(--ha-border);
}

/* Rich text from the CMS (page / news / event body) */
.ha-content { font-size: 16px; }
.ha-content img   { border-radius: var(--ha-radius); margin: var(--ha-space-2) 0; }
.ha-content table { max-width: 100%; }
.ha-content iframe { max-width: 100%; }
.ha-content ul,
.ha-content ol { padding-left: 1.4em; margin-bottom: var(--ha-space-3); }

/* Accessibility helper */
.ha-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}


/* 12. HEADER — top bar + sticky header (logo, name, menu in one row)
   --------------------------------------------------------------------------
   Markup: application/views/header/header.php
   Keeps the theme hooks used by js/lib/menu.js (#header, #mainMenu,
   .nav-main-collapse, .btn-responsive-nav, li.dropdown, .resp-active).
   Desktop menu  >= 992px (hover dropdowns; one row from 1200px)
   Mobile menu   <  992px (toggle button, tap-to-open submenus)
   ========================================================================== */

/* --- 12.1 Top bar --- */
.ha-topbar {
	background: var(--ha-ink);
	color: rgba(255, 255, 255, .8);
	font-size: 13px;
	line-height: 1.4;
}
.ha-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ha-space-3);
	padding-top: var(--ha-space-2);
	padding-bottom: var(--ha-space-2);
}
.ha-topbar-inner::before,
.ha-topbar-inner::after { display: none; }   /* cancel Bootstrap .container clearfix inside flex */

.ha-topbar-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ha-space-1) var(--ha-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.ha-topbar-contact li { white-space: nowrap; }
.ha-topbar-contact .fa { color: var(--ha-accent); margin-right: 6px; }
.ha-topbar a { color: rgba(255, 255, 255, .85); }
.ha-topbar a:hover,
.ha-topbar a:focus { color: var(--ha-accent); }
.ha-topbar-address { display: none; }        /* shown from md up */

.ha-social {
	display: flex;
	align-items: center;
	gap: var(--ha-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}
.ha-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 14px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
}
.ha-social a:hover,
.ha-social a:focus {
	color: var(--ha-ink);
	background: var(--ha-accent);
	border-color: var(--ha-accent);
}

/* Small phones: hide the e-mail item, keep phone + social on one line */
@media (max-width: 479px) {
	.ha-topbar-contact li:nth-child(3) { display: none; }
}
@media (min-width: 992px) {
	.ha-topbar-address { display: list-item; }
}

/* --- 12.2 Header bar (sticky): logo + name + menu in one row ---
   >= 1200px : logo + name left, menu right (one row)
   992-1199px: logo + name on top, menu as a full-width row below
   <  992px  : logo + name left, toggle button right, menu drops down */

/* Neutralise the old theme's JS-driven sticky header (menu.js adds
   body.sticky-menu-active + inline body padding). CSS sticky is used instead. */
body.sticky-menu-active { padding-top: 0 !important; }

#header.ha-header,
body.sticky-menu-active #header.ha-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1001;
	width: 100%;
	min-height: 0;
	background: var(--ha-white);
	border-top: 0;
	border-bottom: 1px solid var(--ha-border);
	box-shadow: none;
	filter: none;
}
body.sticky-menu-active #header.ha-header { box-shadow: var(--ha-shadow); }

/* "#header > .container" prefix beats menu.css (display:table; height:100px; margin-bottom:-35px) */
#header > .container.ha-header-inner,
.ha-header-inner {
	position: relative;
	height: auto;
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 var(--ha-space-4);
	padding-top: var(--ha-space-2);
	padding-bottom: var(--ha-space-2);
}
.ha-header-inner::before,
.ha-header-inner::after { display: none; }   /* cancel Bootstrap .container clearfix inside flex */

/* Brand */
.ha-brand-link {
	display: flex;
	align-items: center;
	gap: var(--ha-space-3);
	min-width: 0;
	flex: 0 1 auto;
	color: var(--ha-primary);
}
.ha-brand-link:hover,
.ha-brand-link:focus { color: var(--ha-primary-dark); }

.ha-brand-logo {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
}
.ha-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.ha-brand-name-bn {
	font-family: 'Noto Serif Bengali', var(--ha-font-heading);
	font-size: 19px;
	font-weight: 700;
	color: var(--ha-primary);
}
.ha-brand-name-en {
	margin-top: 2px;
	font-family: var(--ha-font-heading);
	font-size: 13px;
	font-style: italic;
	font-weight: 500;
	color: var(--ha-ink);
}

@media (min-width: 768px) {
	.ha-brand-logo    { width: 64px; height: 64px; }
	.ha-brand-name-bn { font-size: 24px; }
	.ha-brand-name-en { font-size: 15px; }
}
@media (min-width: 1200px) {
	.ha-brand-logo    { width: 76px; height: 76px; }
	.ha-brand-name-bn { font-size: 27px; }
	.ha-brand-name-en { font-size: 16px; }
}

/* Toggle button (mobile only) */
#header .btn-responsive-nav.ha-nav-toggle,
body.sticky-menu-active #header .btn-responsive-nav.ha-nav-toggle {
	position: static;
	top: auto;
	right: auto;
	transform: none;
	-webkit-transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: var(--ha-primary);
	background: transparent;
	border: 1px solid var(--ha-primary);
	border-radius: var(--ha-radius);
}
#header .btn-responsive-nav.ha-nav-toggle:hover,
#header .btn-responsive-nav.ha-nav-toggle:focus {
	color: var(--ha-white);
	background: var(--ha-primary);
	outline: none;
}

/* Menu container */
#header.ha-header .nav-main-collapse {
	position: static;
	top: auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}
#header .ha-nav { float: none; padding: 0; margin: 0; }
/* menu.css shifts the list while scrolling (body.sticky-menu-active #header nav ul.nav-main) */
body.sticky-menu-active #header .ha-nav ul.nav-main { margin: 0; }

/* Top-level links (shared) */
#header .ha-nav ul.nav-main > li > a {
	font-family: var(--ha-font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: capitalize;
	color: var(--ha-ink);
	background: transparent;
	border: 0;
	border-radius: 0;
}
#header .ha-nav ul.nav-main > li > a .fa-caret-down { margin-left: 4px; font-size: 12px; opacity: .6; }
#header .ha-nav ul.nav-main ul.dropdown-menu > li > a {
	font-family: var(--ha-font-body);
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
}

/* ---- Mobile / tablet menu (< 992px) ---- */
@media (max-width: 991px) {
	#header.ha-header .nav-main-collapse {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		max-height: 70vh;
		overflow-y: auto !important;
		margin-top: var(--ha-space-2);
		border-top: 1px solid var(--ha-border);
	}
	#header.ha-header .nav-main-collapse.collapse:not(.in) { display: none !important; }
	#header.ha-header .nav-main-collapse.in { display: block !important; }
	body.sticky-menu-active #header.ha-header .nav-main-collapse { max-height: 70vh; }

	#header .ha-nav ul.nav-main { margin: 0; padding: var(--ha-space-1) 0 var(--ha-space-2); }
	#header .ha-nav ul.nav-main li { border-bottom: 1px solid var(--ha-border); }
	#header .ha-nav ul.nav-main li:last-child { border-bottom: 0; }

	#header .ha-nav ul.nav-main > li > a,
	#header .ha-nav ul.nav-main li.dropdown:hover > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 4px !important;
		color: var(--ha-ink);
	}
	#header .ha-nav ul.nav-main li.resp-active > a { color: var(--ha-primary) !important; }
	#header .ha-nav ul.nav-main li.resp-active > a .fa-caret-down { transform: rotate(180deg); }

	#header .ha-nav ul.nav-main ul.dropdown-menu {
		width: auto !important;
		margin: 0 0 var(--ha-space-2) !important;
		padding: 0 0 0 var(--ha-space-3);
		border-left: 2px solid var(--ha-accent);
	}
	#header .ha-nav ul.nav-main ul.dropdown-menu li { border-bottom: 0; }
	body #header .ha-nav ul.nav-main ul.dropdown-menu > li > a,
	body #header .ha-nav ul.nav-main li.dropdown:hover ul.dropdown-menu li > a:hover {
		padding: 8px 4px !important;
		font-size: 15px;
		text-transform: none;
		color: var(--ha-text);
	}
	body #header .ha-nav ul.nav-main ul.dropdown-menu > li > a:hover { color: var(--ha-primary); }

	/* Submenu arrows (Committees, Journals, Books): menu.css floats them with
	   margin-right:-8px, so they were cut off at the menu edge. Align them like
	   the top-level carets and flip them when the submenu is open. */
	body #header .ha-nav ul.nav-main .dropdown-submenu > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	#header .ha-nav ul.nav-main .dropdown-submenu > a:after,
	#header .ha-nav ul.nav-main .dropdown-submenu:hover > a:after {
		content: "\f0d7";
		float: none;
		margin: 0 0 0 8px;
		font-size: 12px;
		opacity: .6;
		transform: none;
		-webkit-transform: none;
	}
	#header .ha-nav ul.nav-main .dropdown-submenu.resp-active > a:after {
		transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
	}
}

/* ---- Desktop menu (>= 992px) ---- */
@media (min-width: 992px) {
	/* Must match the sticky-state selector above, otherwise the button reappears on scroll */
	#header .btn-responsive-nav.ha-nav-toggle,
	body.sticky-menu-active #header .btn-responsive-nav.ha-nav-toggle { display: none; }

	#header.ha-header .nav-main-collapse.collapse {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
	}

	#header .ha-nav ul.nav-main {
		display: flex;
		flex-wrap: wrap;
		float: none;
		margin: 0;
	}
	#header .ha-nav ul.nav-main > li { float: none; margin: 0; }
	#header .ha-nav ul.nav-main > li > a,
	#header .ha-nav ul.nav-main li.dropdown:hover > a {
		margin: 0;
		padding: 14px 12px;
	}
	#header .ha-nav ul.nav-main > li > a:hover,
	#header .ha-nav ul.nav-main > li > a:focus-visible,
	#header .ha-nav ul.nav-main li.dropdown:hover > a,
	#header .ha-nav ul.nav-main li.active > a {
		color: var(--ha-primary);
		background: transparent;
		box-shadow: inset 0 -3px 0 var(--ha-accent);
	}

	/* Dropdown panel */
	#header .ha-nav ul.nav-main ul.dropdown-menu {
		min-width: 240px;
		margin: 0;
		padding: var(--ha-space-2) 0;
		background: var(--ha-white);
		border: 0;
		border-top: 3px solid var(--ha-accent);
		border-radius: 0 0 var(--ha-radius) var(--ha-radius);
		box-shadow: var(--ha-shadow-lg);
	}
	#header .ha-nav ul.nav-main ul.dropdown-menu > li > a,
	#header .ha-nav ul.nav-main li.dropdown:hover ul.dropdown-menu li > a {
		padding: 10px 20px;
		color: var(--ha-text);
		background: transparent;
		border: 0;
	}
	#header .ha-nav ul.nav-main ul.dropdown-menu > li > a:hover,
	#header .ha-nav ul.nav-main li.dropdown:hover ul.dropdown-menu li > a:hover {
		padding: 10px 20px 10px 24px;
		color: var(--ha-primary);
		background: var(--ha-cream) !important;
		text-transform: none;
	}
	/* Open the last dropdowns to the left so they stay inside the viewport */
	#header .ha-nav ul.nav-main > li:nth-last-child(-n+2) > ul.dropdown-menu { left: auto; right: 0; }
}

/* 992-1199px: menu on its own full-width row under the brand */
@media (min-width: 992px) and (max-width: 1199px) {
	#header.ha-header .nav-main-collapse {
		flex: 0 0 100%;
		width: 100%;
		margin-top: var(--ha-space-2);
		border-top: 1px solid var(--ha-border);
	}
	#header .ha-nav ul.nav-main { justify-content: center; }
	#header .ha-nav ul.nav-main > li > a,
	#header .ha-nav ul.nav-main li.dropdown:hover > a { padding: 12px 14px; }
}

/* >= 1200px: one row — brand left, menu right */
@media (min-width: 1200px) {
	.ha-header-inner { flex-wrap: nowrap; padding-top: var(--ha-space-3); padding-bottom: var(--ha-space-3); }
	#header.ha-header .nav-main-collapse { flex: 1 1 auto; width: auto; }
	#header .ha-nav ul.nav-main { justify-content: flex-end; flex-wrap: nowrap; }
	#header .ha-nav ul.nav-main > li > a,
	#header .ha-nav ul.nav-main li.dropdown:hover > a { padding: 28px 11px; white-space: nowrap; }
}


/* 13. FOOTER + BACK-TO-TOP
   --------------------------------------------------------------------------
   Markup: application/views/footer/footer.php
   Columns: 1 (phone) → 2 (>= 768px) → 4 (>= 992px)
   ========================================================================== */
#footer.ha-footer {
	color: rgba(255, 255, 255, .75);
	background: var(--ha-ink);
	font-size: 15px;
	line-height: 1.7;
}
#footer.ha-footer p { text-align: inherit; }   /* theme justifies <p> text */
#footer.ha-footer a { color: rgba(255, 255, 255, .8); }
#footer.ha-footer a:hover,
#footer.ha-footer a:focus { color: var(--ha-accent); }

/* --- 13.1 Main area --- */
.ha-footer-main {
	padding: var(--ha-space-6) 0 var(--ha-space-5);
	border-top: 4px solid var(--ha-accent);
}
.ha-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-5) var(--ha-space-4);
}
@media (min-width: 768px) {
	.ha-footer-main { padding: var(--ha-space-7) 0 var(--ha-space-6); }
	.ha-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
	.ha-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--ha-space-5); }
}

.ha-footer-title {
	position: relative;
	margin: 0 0 var(--ha-space-4);
	padding-bottom: var(--ha-space-2);
	font-family: var(--ha-font-heading);
	font-size: 19px;
	font-weight: 600;
	color: var(--ha-white);
}
.ha-footer-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background: var(--ha-accent);
}
.ha-footer-text { margin: 0 0 var(--ha-space-3); color: rgba(255, 255, 255, .7); }

/* Brand block */
#footer.ha-footer .ha-footer-brand {
	display: flex;
	align-items: center;
	gap: var(--ha-space-3);
	margin-bottom: var(--ha-space-4);
	color: var(--ha-white);
}
.ha-footer-logo {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	padding: 4px;
	object-fit: contain;
	background: var(--ha-white);
	border-radius: 50%;
}
.ha-footer-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.ha-footer-name-bn {
	font-family: 'Noto Serif Bengali', var(--ha-font-heading);
	font-size: 21px;
	font-weight: 700;
	color: var(--ha-white);
}
.ha-footer-name-en {
	font-family: var(--ha-font-heading);
	font-size: 14px;
	font-style: italic;
	color: var(--ha-accent);
}

/* Contact list */
.ha-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ha-footer-contact li {
	display: flex;
	gap: var(--ha-space-3);
	margin-bottom: var(--ha-space-3);
}
.ha-footer-contact .fa {
	flex: 0 0 18px;
	margin-top: 5px;
	text-align: center;
	color: var(--ha-accent);
}

/* Link lists */
.ha-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ha-footer-links li { margin-bottom: var(--ha-space-2); }
#footer.ha-footer .ha-footer-links a {
	position: relative;
	display: inline-block;
	padding-left: 16px;
}
#footer.ha-footer .ha-footer-links a::before {
	content: "\203A";                     /* › */
	position: absolute;
	left: 0;
	top: -1px;
	color: var(--ha-accent);
	transition: var(--ha-transition);
}
#footer.ha-footer .ha-footer-links a:hover::before { left: 4px; }

/* Larger social icons in the footer (base styles in 12.1) */
.ha-social--lg { gap: var(--ha-space-3); }
.ha-social--lg a {
	width: 40px;
	height: 40px;
	font-size: 17px;
}
#footer.ha-footer .ha-social a:hover,
#footer.ha-footer .ha-social a:focus { color: var(--ha-ink); }

/* --- 13.2 Bottom bar --- */
.ha-footer-bottom {
	background: #0E1030;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 14px;
}
.ha-footer-bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--ha-space-2);
	padding-top: var(--ha-space-3);
	padding-bottom: var(--ha-space-3);
	text-align: center;
}
.ha-footer-bottom-inner::before,
.ha-footer-bottom-inner::after { display: none; }
.ha-footer-copy { margin: 0; color: rgba(255, 255, 255, .6); }
.ha-footer-nav {
	display: flex;
	gap: var(--ha-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 992px) {
	.ha-footer-bottom-inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

/* --- 13.3 Back-to-top button (.cd-top, toggled by js/theme.js) --- */
.cd-top,
.cd-top:focus,
.cd-top:hover {
	width: 44px;
	height: 44px;
	right: 20px;
	bottom: 20px;
	color: transparent;
	background: var(--ha-primary);
	border: 2px solid var(--ha-accent);
	border-radius: 50%;
	box-shadow: var(--ha-shadow);
	overflow: hidden;
}
.cd-top:hover { background: var(--ha-accent); }
.cd-top::after {
	content: "\f106";                     /* Font Awesome angle-up */
	font-family: "FontAwesome";
	font-size: 24px;
	font-weight: normal;
	line-height: 40px;
	top: 0;
	color: var(--ha-white);
}
@media (max-width: 767px) {
	.cd-top,
	.cd-top:focus,
	.cd-top:hover { width: 40px; height: 40px; right: 12px; bottom: 12px; }
	.cd-top::after { font-size: 22px; line-height: 36px; }
}


/* 14. HOME HERO SLIDER
   --------------------------------------------------------------------------
   Markup: application/views/home/view_home.php (section[data-ha-hero])
   Script: js/ha-ui.js (initHero)
   Full width, fade transition, caption bottom-left, dots bottom-centre.
   ========================================================================== */

/* Pill buttons (used in the hero; reusable anywhere) */
.ha-btn--pill {
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: .1em;
}
.ha-btn--ghost {
	color: var(--ha-white);
	background-color: rgba(21, 23, 63, .45);
	border-color: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.ha-btn--ghost:hover,
.ha-btn--ghost:focus {
	color: var(--ha-primary-dark);
	background-color: var(--ha-white);
	border-color: var(--ha-white);
}

.ha-hero {
	position: relative;
	width: 100%;
	height: clamp(340px, 40vw, 640px);
	overflow: hidden;
	background: var(--ha-ink);
	color: var(--ha-white);
}

/* Slides */
.ha-hero-track,
.ha-hero-slide {
	position: absolute;
	inset: 0;
}
.ha-hero-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.ha-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease, visibility 0s linear 0s;
}
.ha-hero-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: scale(1.06);
	transition: transform 7s ease-out;
}
.ha-hero-slide.is-active .ha-hero-img { transform: scale(1); }

/* Readability overlay: darker on the left (behind the caption) and bottom (dots) */
.ha-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(21, 23, 63, .78) 0%, rgba(21, 23, 63, .45) 45%, rgba(21, 23, 63, .05) 80%),
		linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 35%);
}

/* Caption */
.ha-hero-caption {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
	padding-bottom: 48px;          /* keep clear of the dots */
	pointer-events: none;          /* clicks pass through, except links */
}
.ha-hero-caption::before,
.ha-hero-caption::after { display: none; }
.ha-hero-caption a { pointer-events: auto; }

.ha-hero-eyebrow {
	display: inline-block;
	margin-bottom: var(--ha-space-3);
	padding-left: var(--ha-space-3);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ha-accent);
	border-left: 3px solid var(--ha-accent);
}
.ha-hero-title {
	max-width: 640px;
	margin: 0 0 var(--ha-space-4);
	font-family: var(--ha-font-heading);
	font-size: clamp(26px, 3.6vw, 50px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ha-white);
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.ha-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ha-space-3);
}
.ha-hero-actions .ha-btn:not(.ha-btn--ghost) {
	background-color: var(--ha-accent);
	border-color: var(--ha-accent);
}
.ha-hero-actions .ha-btn:not(.ha-btn--ghost):hover,
.ha-hero-actions .ha-btn:not(.ha-btn--ghost):focus {
	background-color: var(--ha-accent-dark);
	border-color: var(--ha-accent-dark);
}

/* Dots */
.ha-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0 var(--ha-space-3);
}
.ha-hero-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	cursor: pointer;
	transition: var(--ha-transition);
}
.ha-hero-dot:hover { background: rgba(255, 255, 255, .5); }
.ha-hero-dot.is-active { background: var(--ha-white); transform: scale(1.15); }
.ha-hero-dot:focus-visible { outline: 2px solid var(--ha-accent); outline-offset: 2px; }

/* Prev / next arrows (hidden on phones — swipe instead) */
.ha-hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--ha-white);
	background: rgba(21, 23, 63, .35);
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: var(--ha-transition);
}
.ha-hero-prev { left: 20px; }
.ha-hero-next { right: 20px; }
.ha-hero:hover .ha-hero-arrow,
.ha-hero-arrow:focus-visible { opacity: 1; }
.ha-hero-arrow:hover { color: var(--ha-ink); background: var(--ha-accent); border-color: var(--ha-accent); }
.ha-hero--single .ha-hero-arrow,
.ha-hero--single .ha-hero-dots { display: none; }

@media (min-width: 768px) {
	.ha-hero-arrow { display: inline-flex; }
}
/* Narrow phones: smaller dots, stack buttons */
@media (max-width: 479px) {
	.ha-hero-dot { width: 10px; height: 10px; }
	.ha-hero-eyebrow { font-size: 11px; }
	.ha-btn--pill { padding: 10px 20px; font-size: 12px; }
}

/* Respect reduced motion: no zoom, instant fades */
@media (prefers-reduced-motion: reduce) {
	.ha-hero-img,
	.ha-hero-slide.is-active .ha-hero-img { transform: none; transition: none; }
	.ha-hero-slide,
	.ha-hero-slide.is-active { transition: none; }
}


/* 15. HOME SECTIONS — featured strip, panels, notice list, media list
   --------------------------------------------------------------------------
   Markup: application/views/home/view_home.php
   .ha-panel / .ha-notice-list / .ha-media-list are generic and can be reused
   on other pages (news, events, notices).
   ========================================================================== */

/* --- 15.0 Welcome block (centred heading + excerpt + pill button) --- */
.ha-welcome {
	text-align: center;
	background: var(--ha-white);
}
.ha-welcome-title {
	max-width: 960px;
	margin: 0 auto var(--ha-space-4);
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ha-ink);
}
.ha-welcome-text {
	max-width: none;   /* full content width (was 900px) */
	margin: 0 auto var(--ha-space-5);
	font-family: var(--ha-font-heading);
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.7;
	color: var(--ha-text);
	text-align: center;
}
.ha-welcome-btn {
	color: var(--ha-ink);
	border-color: var(--ha-ink);
	border-width: 1.5px;
	font-weight: 500;
}
.ha-welcome-btn .fa { margin-left: 8px; transition: var(--ha-transition); }
.ha-welcome-btn:hover,
.ha-welcome-btn:focus { color: var(--ha-white); background: var(--ha-primary); border-color: var(--ha-primary); }
.ha-welcome-btn:hover .fa { transform: translateX(4px); }

/* --- 15.1 Featured strip: cover | conference | cover --- */
@media (min-width: 992px) {
	.ha-featured-section { padding-top: var(--ha-space-6); }
}

.ha-featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-4);
}
.ha-featured .ha-conf-card { order: -1; }   /* phones/tablets: conference first */
@media (min-width: 768px) {
	.ha-featured { grid-template-columns: 1fr 1fr; }
	.ha-featured .ha-conf-card { grid-column: 1 / -1; order: -1; }   /* conference full width on top */
}
@media (min-width: 992px) {
	.ha-featured { grid-template-columns: 1fr 1.6fr 1fr; align-items: stretch; }
	.ha-featured .ha-conf-card { grid-column: auto; order: 0; }
}

/* Book / souvenir cover card */
.ha-cover-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--ha-space-4) var(--ha-space-4) 0;
	background: var(--ha-cream-dark);
	background: linear-gradient(180deg, var(--ha-cream-dark) 0%, var(--ha-white) 100%);
}
.ha-cover-card-img img {
	height: 220px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	box-shadow: 0 8px 20px rgba(21, 23, 63, .25);
	transition: transform .4s ease;
}
.ha-cover-card:hover .ha-cover-card-img img { transform: translateY(-4px) rotate(-1deg); }
.ha-cover-card .ha-card-body { text-align: center; align-items: center; }

/* Conference highlight card */
.ha-conf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: var(--ha-space-5) var(--ha-space-4);
	color: rgba(255, 255, 255, .85);
	background: var(--ha-primary) linear-gradient(135deg, var(--ha-primary-dark) 0%, var(--ha-primary) 100%);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow);
	overflow: hidden;
}
.ha-conf-card::after {                    /* faint logo watermark */
	content: "";
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 220px;
	height: 220px;
	border: 18px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
	pointer-events: none;
}
.ha-conf-eyebrow { color: var(--ha-accent); }
.ha-conf-title {
	margin: 0 0 var(--ha-space-3);
	font-size: clamp(24px, 2.8vw, 32px);
	line-height: 1.25;
}
.ha-conf-title a { color: var(--ha-white); }
.ha-conf-title a:hover { color: var(--ha-accent); }
.ha-conf-date {
	margin: 0 0 var(--ha-space-4);
	font-size: 16px;
	color: rgba(255, 255, 255, .85);
}
.ha-conf-date .fa { margin-right: 6px; color: var(--ha-accent); }
.ha-conf-actions {
	position: relative;
	z-index: 1;
	align-self: stretch;                  /* full card width so buttons sit side by side */
	display: flex;
	flex-wrap: wrap;
	gap: var(--ha-space-3);
}
.ha-conf-actions .ha-btn { padding: 12px 20px; letter-spacing: .06em; }
@media (min-width: 768px) {
	.ha-conf-card { padding: var(--ha-space-6) var(--ha-space-5); }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.ha-conf-card { padding: var(--ha-space-5) var(--ha-space-4); }
}

/* --- 15.2 Panel (card with header + scrollable list) --- */
.ha-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-top: 4px solid var(--ha-primary);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ha-space-3);
	padding: var(--ha-space-3) var(--ha-space-4);
	border-bottom: 1px solid var(--ha-border);
}
.ha-panel-title {
	margin: 0;
	font-size: 22px;
	color: var(--ha-primary-dark);
}
.ha-panel-title .fa { margin-right: 8px; font-size: .85em; color: var(--ha-accent); }
/* "ul." prefix matches theme.css ".main ul { padding: 0 }" specificity (this file loads last) */
ul.ha-panel-body,
.ha-panel-body {
	list-style: none;
	margin: 0;
	padding: var(--ha-space-2) var(--ha-space-4);
	max-height: 440px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--ha-border) transparent;
}
.ha-panel-body::-webkit-scrollbar { width: 6px; }
.ha-panel-body::-webkit-scrollbar-thumb { background: var(--ha-border); border-radius: 3px; }

/* --- 15.3 Notice list --- */
.ha-notice-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--ha-space-3) 0;
	border-bottom: 1px solid var(--ha-border);
}
.ha-notice-item:last-child { border-bottom: 0; }
.ha-notice-date {
	font-size: 13px;
	font-weight: 600;
	color: var(--ha-accent-dark);
}
.ha-notice-date .fa { margin-right: 4px; }
.ha-notice-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ha-text);
}
.ha-notice-title:hover { color: var(--ha-primary); }
.ha-notice-item .ha-link-more,
.ha-media-item .ha-link-more { align-self: flex-start; font-size: 12px; }

/* --- 15.4 Media list (thumbnail + text) --- */
.ha-media-item {
	display: flex;
	align-items: flex-start;
	gap: var(--ha-space-3);
	padding: var(--ha-space-3) 0;
	border-bottom: 1px solid var(--ha-border);
}
.ha-media-item:last-child { border-bottom: 0; }
.ha-media-thumb {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	overflow: hidden;
	background: var(--ha-cream-dark);
	border-radius: var(--ha-radius);
}
.ha-media-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.ha-media-item:hover .ha-media-thumb img { transform: scale(1.06); }
.ha-media-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.ha-media-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ha-text);
}
.ha-media-title:hover { color: var(--ha-primary); }
@media (max-width: 479px) {
	.ha-media-thumb { flex-basis: 72px; width: 72px; height: 72px; }
}

/* --- 15.5 Events & Activities (full width) ---
   Grid: event tiles + "explore all" tile.
   1 col (phone) → 2 cols (>= 768px) → 3 cols (>= 992px) */
.ha-events-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-4);
}
@media (min-width: 768px) {
	.ha-events-grid { grid-template-columns: repeat(2, 1fr); }
	.ha-events-cta { grid-column: 1 / -1; }            /* full-width tile under the cards */
}
@media (min-width: 992px) {
	.ha-events-grid { grid-template-columns: repeat(3, 1fr); }
	.ha-events-cta { grid-column: auto; }
}

.ha-event-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	overflow: hidden;
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-event-tile:hover { box-shadow: var(--ha-shadow-lg); transform: translateY(-4px); }
.ha-event-tile::after {                                   /* gold bar grows on hover */
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	background: var(--ha-accent);
	transition: width .35s ease;
}
.ha-event-tile:hover::after { width: 100%; }

.ha-event-tile-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ha-cream-dark) linear-gradient(135deg, var(--ha-cream-dark), var(--ha-cream));
}
.ha-event-tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.ha-event-tile:hover .ha-event-tile-img img { transform: scale(1.06); }
.ha-event-tile-img::after {                               /* soft shade for the date badge */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 23, 63, .35) 0%, rgba(21, 23, 63, 0) 40%);
	pointer-events: none;
}
.ha-event-tile-date {
	position: absolute;
	top: var(--ha-space-3);
	left: var(--ha-space-3);
	z-index: 1;
	box-shadow: var(--ha-shadow);
	border-bottom: 3px solid var(--ha-accent);
}

.ha-event-tile-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--ha-space-2);
	padding: var(--ha-space-4);
}
.ha-event-tile-body .ha-card-meta { margin: 0; }
.ha-event-tile-body .ha-card-meta .fa { margin-right: 4px; }
.ha-event-tile-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
}
.ha-event-tile-title a { color: var(--ha-ink); }
.ha-event-tile-title a:hover { color: var(--ha-primary); }
.ha-event-tile-body .ha-link-more { margin-top: auto; padding-top: var(--ha-space-2); align-self: flex-start; }

/* "Explore all events" tile */
.ha-events-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: var(--ha-space-2);
	min-height: 220px;
	padding: var(--ha-space-5) var(--ha-space-4);
	color: rgba(255, 255, 255, .85);
	background: var(--ha-primary) linear-gradient(140deg, var(--ha-primary-dark) 0%, var(--ha-primary) 100%);
	border-radius: var(--ha-radius-lg);
	overflow: hidden;
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-events-cta::before {                                  /* decorative rings */
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 220px;
	height: 220px;
	border: 22px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
}
.ha-events-cta:hover,
.ha-events-cta:focus { color: var(--ha-white); box-shadow: var(--ha-shadow-lg); transform: translateY(-4px); }
.ha-events-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--ha-space-2);
	font-size: 28px;
	color: var(--ha-ink);
	background: var(--ha-accent);
	border-radius: 50%;
}
.ha-events-cta-title {
	font-family: var(--ha-font-heading);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ha-white);
}
.ha-events-cta-text { font-size: 15px; max-width: 360px; }
.ha-events-cta-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: var(--ha-space-2);
	font-size: 18px;
	color: var(--ha-white);
	border: 1.5px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	transition: var(--ha-transition);
}
.ha-events-cta:hover .ha-events-cta-arrow { color: var(--ha-ink); background: var(--ha-accent); border-color: var(--ha-accent); transform: translateX(6px); }

/* Section-head pill buttons with arrow */
.ha-section-head .ha-btn .fa,
.ha-notices-intro .ha-btn .fa { margin-left: 8px; transition: var(--ha-transition); }
.ha-section-head .ha-btn:hover .fa,
.ha-notices-intro .ha-btn:hover .fa { transform: translateX(4px); }

/* --- 15.6 Notice board (full width) ---
   Intro column + list of notice rows.
   Stacked (< 992px) → 1 : 2 columns (>= 992px) */
.ha-notices { position: relative; overflow: hidden; }
.ha-notices::before {                                     /* large faint watermark icon */
	content: "\f0a1";                                       /* fa-bullhorn */
	position: absolute;
	right: -30px;
	bottom: -60px;
	font-family: "FontAwesome";
	font-size: 300px;
	line-height: 1;
	color: rgba(46, 49, 146, .04);
	transform: rotate(-12deg);
	pointer-events: none;
}
.ha-notices-layout {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-4);
	align-items: stretch;                 /* left card and right list share the same height */
}
@media (min-width: 992px) {
	.ha-notices-layout { grid-template-columns: 1fr 2fr; gap: var(--ha-space-5); }
}

/* Left intro card */
.ha-notices-intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--ha-space-5) var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-top: 4px solid var(--ha-primary);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-notices-intro .ha-btn { margin-top: auto; }  /* button sits at the bottom of the card */

.ha-notices-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: var(--ha-space-4);
	font-size: 30px;
	color: var(--ha-white);
	background: var(--ha-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 8px rgba(46, 49, 146, .12), var(--ha-shadow);
}
.ha-notices-text { color: var(--ha-text-muted); margin-bottom: var(--ha-space-4); max-width: 380px; text-align: left; }

ul.ha-notice-board,
.ha-notice-board {
	display: flex;
	flex-direction: column;
	gap: var(--ha-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Rows share the column height equally, so the list always matches the left card */
.ha-notice-board > li { display: flex; flex: 1 1 0; }
.ha-notice-row {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: var(--ha-space-4);
	padding: var(--ha-space-3);
	color: var(--ha-text);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-notice-row:hover,
.ha-notice-row:focus {
	color: var(--ha-text);
	border-left-color: var(--ha-primary);
	box-shadow: var(--ha-shadow);
	transform: translateX(4px);
}
.ha-notice-row-date { flex: 0 0 72px; width: 72px; }
.ha-notice-row:hover .ha-notice-row-date { background: var(--ha-accent); }
.ha-notice-row-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}
.ha-notice-row-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ha-accent-dark);
}
.ha-notice-row-label .fa { margin-right: 4px; }
.ha-notice-row-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ha-ink);
}
.ha-notice-row:hover .ha-notice-row-title { color: var(--ha-primary); }
.ha-notice-row-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	font-size: 22px;
	color: var(--ha-primary);
	background: var(--ha-cream);
	border-radius: 50%;
	transition: var(--ha-transition);
}
.ha-notice-row:hover .ha-notice-row-arrow { color: var(--ha-white); background: var(--ha-primary); }

@media (min-width: 768px) {
	.ha-notice-row { padding: var(--ha-space-4); }
}
@media (max-width: 479px) {
	.ha-notice-row { gap: var(--ha-space-3); }
	.ha-notice-row-date { flex-basis: 60px; width: 60px; }
	.ha-notice-row-arrow { display: none; }
	.ha-notice-row-title { font-size: 16px; }
}


/* 16. INNER PAGES
   --------------------------------------------------------------------------
   Re-styles the theme's shared inner-page markup, so every page using it
   gets the new look without markup changes:
     .page-header.bg-dark > .container ... .page-header-wrapper
         > h3.title + ol.breadcrumb                 (page banner)
     .page-default > .container ... .news-single-details   (reading card)
   ========================================================================== */

/* --- 16.1 Page banner --- */
.page-header,
.page-header.bg-dark {
	position: relative;
	height: auto;
	margin: 0;
	padding: var(--ha-space-5) 0;
	overflow: hidden;
	color: var(--ha-white);
	background: var(--ha-primary-dark) linear-gradient(120deg, var(--ha-ink) 0%, var(--ha-primary-dark) 45%, var(--ha-primary) 100%);
	border: 0;
	border-bottom: 3px solid var(--ha-accent);
	box-shadow: none;
}
.page-header::before,
.page-header::after {                          /* decorative rings (logo motif) */
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.page-header::before {
	right: -80px;
	top: -120px;
	width: 320px;
	height: 320px;
	border: 28px solid rgba(255, 255, 255, .05);
}
.page-header::after {
	right: 180px;
	bottom: -90px;
	width: 160px;
	height: 160px;
	border: 14px solid rgba(176, 141, 87, .12);
}
@media (min-width: 768px) {
	.page-header,
	.page-header.bg-dark { padding: var(--ha-space-6) 0; }
}

.page-header .page-header-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--ha-space-2);
}
.page-header .title,
.page-header.bg-dark .title {
	display: block;
	margin: 0;
	padding: 0;
	font-family: var(--ha-font-heading);
	font-size: clamp(26px, 3.4vw, 42px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ha-white);
}
.page-header .title::before,
.page-header .title::after,
.page-header.bg-dark .title::before,
.page-header.bg-dark .title::after { display: none; }

.page-header .breadcrumb,
.page-header.bg-dark .breadcrumb {
	position: static;
	top: auto;
	right: auto;
	transform: none;
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 14px;
}
.page-header.bg-dark .breadcrumb li,
.page-header.bg-dark .breadcrumb li a {
	font-family: var(--ha-font-body);
	font-size: 14px;
	color: rgba(255, 255, 255, .8);
}
.page-header.bg-dark .breadcrumb li a:hover,
.page-header.bg-dark .breadcrumb li a:focus { color: var(--ha-accent); text-decoration: none; }
.page-header.bg-dark .breadcrumb > li + li::before {
	content: "/";
	padding: 0 var(--ha-space-2);
	color: var(--ha-accent);
}
.page-header.bg-dark .breadcrumb > .active { color: var(--ha-accent); }

/* --- 16.2 Page body + reading card --- */
.page-default,
.page-default.bg-grey {
	padding: var(--ha-space-5) 0 var(--ha-space-6);
	background: var(--ha-cream);
}
@media (min-width: 992px) {
	.page-default,
	.page-default.bg-grey { padding: var(--ha-space-6) 0 var(--ha-space-7); }
}

.news-single-details,
.ha-reading-card {
	max-width: none;   /* full container width, same as home/member_list (was 960px; user request 2026-11-28) */
	margin: 0 auto;
	padding: var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-top: 4px solid var(--ha-primary);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
@media (min-width: 768px) {
	.news-single-details,
	.ha-reading-card { padding: var(--ha-space-6) var(--ha-space-6); }
}
.news-single-details .title-simple,
.ha-reading-card .ha-reading-title {
	margin: 0 0 var(--ha-space-4);
	padding-bottom: var(--ha-space-3);
	font-family: var(--ha-font-heading);
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.3;
	color: var(--ha-ink);
	border-bottom: 1px solid var(--ha-border);
}

/* --- 16.3 CMS (admin editor) content inside the reading card --- */
.news-single-details,
.ha-reading-card {
	font-size: 17px;
	line-height: 1.85;
	color: var(--ha-text);
	overflow-wrap: anywhere;
}
.news-single-details p,
.ha-reading-card p { margin: 0 0 var(--ha-space-3); }
.news-single-details h1, .news-single-details h2, .news-single-details h3,
.news-single-details h4, .news-single-details h5, .news-single-details h6,
.ha-reading-card h1, .ha-reading-card h2, .ha-reading-card h3,
.ha-reading-card h4, .ha-reading-card h5, .ha-reading-card h6 {
	margin: var(--ha-space-4) 0 var(--ha-space-2);
	line-height: 1.35;
}
.news-single-details a,
.ha-reading-card a { color: var(--ha-primary); text-decoration: underline; text-underline-offset: 2px; }
.news-single-details a:hover,
.ha-reading-card a:hover { color: var(--ha-accent-dark); }
.news-single-details img,
.ha-reading-card img {
	max-width: 100%;
	height: auto;
	margin: var(--ha-space-2) 0;
	border-radius: var(--ha-radius);
}
.news-single-details ul, .news-single-details ol,
.ha-reading-card ul, .ha-reading-card ol { margin: 0 0 var(--ha-space-3); padding-left: 1.4em; }
.main .news-single-details ul,
.main .ha-reading-card ul { list-style: disc; padding-left: 1.4em; }
.main .news-single-details ol,
.main .ha-reading-card ol { list-style: decimal; padding-left: 1.4em; }
.news-single-details iframe,
.ha-reading-card iframe { max-width: 100%; }
/* Wide tables pasted from the editor scroll sideways instead of breaking the layout */
.news-single-details table,
.ha-reading-card table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 var(--ha-space-3);
	border-collapse: collapse;
	font-size: 15px;
}
.news-single-details table td, .news-single-details table th,
.ha-reading-card table td, .ha-reading-card table th {
	padding: 8px 12px;
	border: 1px solid var(--ha-border);
	vertical-align: top;
}
.news-single-details blockquote,
.ha-reading-card blockquote {
	margin: var(--ha-space-4) 0;
	padding: var(--ha-space-3) var(--ha-space-4);
	font-family: var(--ha-font-heading);
	font-style: italic;
	background: var(--ha-cream);
	border-left: 4px solid var(--ha-accent);
}

/* Actions row at the bottom of a reading card (e.g. Download) */
.ha-reading-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ha-space-3);
	margin-top: var(--ha-space-4);
	padding-top: var(--ha-space-4);
	border-top: 1px solid var(--ha-border);
}
.ha-reading-actions .ha-btn { text-decoration: none; }
.ha-reading-actions .ha-btn .fa { margin-right: 8px; }

/* --- 16.4 Link grid (e.g. list of biennials) --- */
.ha-link-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.ha-link-grid { padding: 0; }
@media (min-width: 576px) { .ha-link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ha-link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ha-link-grid { grid-template-columns: repeat(4, 1fr); } }

.ha-link-card {
	display: flex;
	align-items: center;
	gap: var(--ha-space-3);
	height: 100%;
	padding: var(--ha-space-3);
	color: var(--ha-ink);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-link-card:hover,
.ha-link-card:focus {
	color: var(--ha-primary);
	border-left-color: var(--ha-primary);
	box-shadow: var(--ha-shadow);
	transform: translateY(-3px);
}
.ha-link-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	font-size: 18px;
	color: var(--ha-primary);
	background: var(--ha-cream);
	border-radius: 50%;
	transition: var(--ha-transition);
}
.ha-link-card:hover .ha-link-card-icon { color: var(--ha-white); background: var(--ha-primary); }
.ha-link-card-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.ha-link-card-arrow { flex: 0 0 auto; color: var(--ha-accent-dark); font-size: 20px; }

/* --- 16.5 Page section heading (inside .page-default) + empty state --- */
.ha-page-head { margin-bottom: var(--ha-space-5); }
.ha-page-head .ha-section-title { margin-bottom: 0; }

.ha-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: var(--ha-space-6) var(--ha-space-4);
	text-align: center;
	color: var(--ha-text-muted);
	background: var(--ha-white);
	border: 1px dashed var(--ha-border);
	border-radius: var(--ha-radius-lg);
}
.ha-empty .fa { display: block; margin-bottom: var(--ha-space-3); font-size: 36px; color: var(--ha-accent); }

/* Lists that reuse home components on inner pages */
.page-default .ha-notice-board { max-width: 960px; margin: 0 auto; }
.page-default .ha-notice-board > li { flex: 0 0 auto; }   /* natural row height on list pages */
.ha-notice-row-time { margin-left: 6px; font-weight: 400; color: var(--ha-text-muted); letter-spacing: 0; text-transform: none; }


/* 17. GALLERY & VIDEO
   --------------------------------------------------------------------------
   Markup: application/views/gallery/*.php, application/views/video/*.php
   Photos still open in the existing prettyPhoto lightbox (data-rel="prettyPhoto[...]").
   ========================================================================== */

/* --- 17.1 Page toolbar (count + Back button) --- */
.ha-page-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ha-space-3);
	margin-bottom: var(--ha-space-4);
}
.ha-page-toolbar-info {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ha-accent-dark);
}
.ha-page-toolbar-info .fa { margin-right: 6px; }
.ha-btn .fa-long-arrow-left { margin-right: 8px; transition: var(--ha-transition); }
.ha-btn:hover .fa-long-arrow-left { transform: translateX(-4px); }

/* --- 17.2 Album grid + album card (cover image with overlaid title) --- */
.ha-album-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-4);
}
@media (min-width: 576px)  { .ha-album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .ha-album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ha-album-grid { grid-template-columns: repeat(4, 1fr); } }

.ha-album-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	color: var(--ha-white);
	background: var(--ha-cream-dark) linear-gradient(135deg, var(--ha-cream-dark), var(--ha-cream));
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-album-card:hover { box-shadow: var(--ha-shadow-lg); transform: translateY(-4px); }
.ha-album-card > a.ha-album-card-link {
	position: absolute;
	inset: 0;
	display: block;
	color: var(--ha-white);
}
.ha-album-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.ha-album-card:hover img { transform: scale(1.07); }
.ha-album-card img { position: relative; }            /* sits above the placeholder */
/* Album placeholder (no cover / cover failed to load): reuses the event placeholder
   (.ha-event-ph, §18); icon sits higher so the album title at the bottom stays clear */
.ha-album-card .ha-album-ph { justify-content: flex-start; padding-top: 9%; }   /* beats .ha-event-ph (later in the file) */
.ha-album-card .ha-album-ph .ha-event-ph-icon { width: 54px; height: 54px; font-size: 22px; }
.ha-album-card:hover .ha-album-ph { transform: scale(1.04); }
.ha-album-card-link::after {                          /* readability gradient */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(21, 23, 63, .9) 0%, rgba(21, 23, 63, .35) 45%, rgba(21, 23, 63, 0) 70%);
	transition: var(--ha-transition);
}
.ha-album-card:hover .ha-album-card-link::after { background: linear-gradient(0deg, rgba(21, 23, 63, .95) 0%, rgba(46, 49, 146, .45) 60%, rgba(46, 49, 146, .1) 100%); }
.ha-album-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	gap: var(--ha-space-3);
	padding: var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);
}
.ha-album-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	font-size: 16px;
	color: var(--ha-ink);
	background: var(--ha-accent);
	border-radius: 50%;
}
.ha-album-card-title {
	min-width: 0;
	font-family: var(--ha-font-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ha-white);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.ha-album-card::before {                              /* gold bar grows on hover */
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	width: 0;
	height: 3px;
	background: var(--ha-accent);
	transition: width .35s ease;
}
.ha-album-card:hover::before { width: 100%; }
/* Small "full screen" button (top-right) */
.ha-album-card-zoom {
	position: absolute;
	top: var(--ha-space-3);
	right: var(--ha-space-3);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 15px;
	color: var(--ha-white);
	background: rgba(21, 23, 63, .55);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	opacity: .85;
	transition: var(--ha-transition);
}
.ha-album-card-zoom:hover,
.ha-album-card-zoom:focus { color: var(--ha-ink); background: var(--ha-accent); border-color: var(--ha-accent); opacity: 1; }

/* --- 17.3 Photo grid (final level) — extends .ha-gallery-grid (§10) --- */
.ha-gallery-item { box-shadow: var(--ha-shadow-sm); transition: var(--ha-transition); }
.ha-gallery-item:hover { box-shadow: var(--ha-shadow-lg); }
.ha-gallery-item::after {                             /* magnifier overlay */
	content: "\f00e";                                   /* fa-search-plus */
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "FontAwesome";
	font-size: 28px;
	color: var(--ha-white);
	background: rgba(21, 23, 63, .45);
	opacity: 0;
	transition: var(--ha-transition);
}
.ha-gallery-item:hover::after,
.ha-gallery-item:focus::after { opacity: 1; }
/* Photo placeholder (no photo / thumbnail failed to load): reuses .ha-event-ph (§18) */
.ha-gallery-item img { position: relative; }          /* sits above the placeholder */
.ha-gallery-item .ha-photo-ph .ha-event-ph-icon { width: 54px; height: 54px; font-size: 22px; }
.ha-gallery-item--empty { cursor: default; }
.ha-gallery-item--empty::after { display: none; }     /* no magnifier: nothing to enlarge */

/* --- 17.4 Video category tiles --- */
.ha-video-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--ha-space-3);
	aspect-ratio: 16 / 10;
	padding: var(--ha-space-4);
	overflow: hidden;
	text-align: center;
	color: var(--ha-white);
	background: var(--ha-primary) linear-gradient(140deg, var(--ha-ink) 0%, var(--ha-primary-dark) 45%, var(--ha-primary) 100%);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-video-cat::before {                               /* decorative ring */
	content: "";
	position: absolute;
	right: -50px;
	top: -50px;
	width: 180px;
	height: 180px;
	border: 18px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
}
.ha-video-cat:hover,
.ha-video-cat:focus { color: var(--ha-white); box-shadow: var(--ha-shadow-lg); transform: translateY(-4px); }
.ha-video-cat-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding-left: 5px;                                  /* optical centring of the play triangle */
	font-size: 28px;
	color: var(--ha-ink);
	background: var(--ha-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(176, 141, 87, .2);
	transition: var(--ha-transition);
}
.ha-video-cat:hover .ha-video-cat-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(176, 141, 87, .25); }
.ha-video-cat-title {
	position: relative;
	font-family: var(--ha-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

/* --- 17.5 Video cards (player + caption) --- */
.ha-video-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ha-space-4);
}
@media (min-width: 768px) { .ha-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ha-video-grid { grid-template-columns: repeat(3, 1fr); } }

.ha-video-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.ha-video-frame video,
.ha-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}
.ha-video-caption {
	display: flex;
	align-items: flex-start;
	gap: var(--ha-space-2);
	margin: 0;
	padding: var(--ha-space-3) var(--ha-space-4);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ha-ink);
	border-top: 3px solid var(--ha-accent);
}
.ha-video-caption .fa { margin-top: 4px; color: var(--ha-accent-dark); }


/* ==========================================================================
   18. EVENTS PAGE — category tabs + pagination (home/event_category/{type})
   ========================================================================== */
.ha-events-page { padding-top: var(--ha-space-5); }

/* Tabs: pill segmented control in a cream track. Each pill carries a count badge.
   Active pill = indigo with a gold count badge. Wraps on tablet/desktop,
   scrolls sideways on small screens. */
.ha-tabs {
	margin-bottom: var(--ha-space-4);
	padding: 6px;
	background: var(--ha-cream);
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.ha-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.ha-tabs { display: inline-block; max-width: 100%; }
}
.main ul.ha-tabs-list,
ul.ha-tabs-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ha-tabs-list li { margin: 0; flex: 0 0 auto; }
.ha-tabs-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px 9px 20px;
	font-family: var(--ha-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--ha-ink);
	background: transparent;
	border-radius: 999px;
	transition: var(--ha-transition);
}
.ha-tabs-list a:hover,
.ha-tabs-list a:focus {
	color: var(--ha-primary);
	background: var(--ha-white);
	text-decoration: none;
	box-shadow: var(--ha-shadow-sm);
}
.ha-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ha-primary);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	transition: var(--ha-transition);
}
.ha-tabs-list li.active a,
.ha-tabs-list li.active a:hover,
.ha-tabs-list li.active a:focus {
	color: var(--ha-white);
	background: var(--ha-primary);
	box-shadow: 0 6px 16px rgba(46, 49, 146, .35);
}
.ha-tabs-list li.active .ha-tab-count {
	color: var(--ha-ink);
	background: var(--ha-accent);
	border-color: var(--ha-accent);
}
@media (max-width: 767px) {
	.ha-tabs { border-radius: var(--ha-radius-lg); }
	.ha-tabs-list a { padding: 8px 8px 8px 14px; font-size: 14px; }
	.ha-tab-count { min-width: 24px; height: 24px; font-size: 12px; }
}

/* Event card: From – To date line */
.ha-event-dates {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ha-ink);
	background: var(--ha-cream);
	border-left: 3px solid var(--ha-accent);
	border-radius: var(--ha-radius);
}
.ha-event-dates .fa { margin-top: 3px; color: var(--ha-accent-dark); }
.ha-event-dates-sep { margin: 0 4px; font-weight: 400; color: var(--ha-text-muted); }

/* Event card placeholder (no image uploaded): indigo panel, white logo watermark,
   gold-ringed calendar icon + event type name */
.ha-event-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: var(--ha-space-4) var(--ha-space-3) var(--ha-space-3);
	overflow: hidden;
	color: var(--ha-white);
	background:
		radial-gradient(circle at 85% 15%, rgba(176, 141, 87, .28) 0, rgba(176, 141, 87, 0) 45%),
		linear-gradient(135deg, var(--ha-ink) 0%, var(--ha-primary) 100%);
	transition: transform .5s ease;
}
.ha-event-ph::before {                                    /* logo watermark */
	content: "";
	position: absolute;
	right: -12%;
	bottom: -22%;
	width: 62%;
	aspect-ratio: 1;
	background: url("../images/banner/itihas_logo.png") center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: .08;
	pointer-events: none;
}
.ha-event-ph-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	font-size: 26px;
	color: var(--ha-accent);
	background: rgba(255, 255, 255, .06);
	border: 2px solid var(--ha-accent);
	border-radius: 50%;
}
.ha-event-ph-label {
	position: relative;
	max-width: 90%;
	font-family: var(--ha-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: rgba(255, 255, 255, .92);
}
.ha-event-ph-label::after {                              /* small gold rule */
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin: 10px auto 0;
	background: var(--ha-accent);
}
.ha-event-tile:hover .ha-event-ph { transform: scale(1.04); }

/* Pagination (CI pagination markup inside Bootstrap .pagination) */
.ha-pagination { margin-top: var(--ha-space-5); text-align: center; }
.ha-pagination .pagination { margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ha-pagination .pagination > li > a,
.ha-pagination .pagination > li > span {
	float: none;
	margin: 0;
	min-width: 42px;
	padding: 9px 14px;
	color: var(--ha-primary);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	box-shadow: none;
	transition: var(--ha-transition);
}
.ha-pagination .pagination > li > a:hover,
.ha-pagination .pagination > li > a:focus {
	color: var(--ha-white);
	background: var(--ha-primary);
	border-color: var(--ha-primary);
}
.ha-pagination .pagination > li.active > a,
.ha-pagination .pagination > li.active > a:hover {
	color: var(--ha-white);
	background: var(--ha-primary);
	border-color: var(--ha-primary);
	cursor: default;
}


/* ==========================================================================
   19. EVENT DETAILS PAGE (home/biennials_detail/{id})
   ========================================================================== */
.ha-event-detail { padding-top: var(--ha-space-6); background: var(--ha-cream); }

/* Main article card */
.ha-event-article {
	overflow: hidden;
	margin-bottom: var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-event-article-inner { padding: var(--ha-space-4); }
@media (min-width: 768px) { .ha-event-article-inner { padding: var(--ha-space-5) var(--ha-space-6); } }

/* Feature image */
.ha-event-hero { position: relative; margin: 0; background: var(--ha-ink); }
.ha-event-hero a { display: block; position: relative; }
.ha-event-hero img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: contain;
	background: var(--ha-ink);
}
.ha-event-hero-zoom {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ha-white);
	background: rgba(21, 23, 63, .75);
	border-radius: 999px;
	opacity: 0;
	transform: translateY(6px);
	transition: var(--ha-transition);
}
.ha-event-hero a:hover .ha-event-hero-zoom,
.ha-event-hero a:focus .ha-event-hero-zoom { opacity: 1; transform: none; }
@media (hover: none) { .ha-event-hero-zoom { opacity: 1; transform: none; } }

/* Chips: type + status */
.ha-event-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--ha-space-3); }
.ha-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.6;
	border-radius: 999px;
	border: 1px solid transparent;
}
a.ha-chip:hover, a.ha-chip:focus { text-decoration: none; filter: brightness(.95); }
.ha-chip--type      { color: var(--ha-accent-dark); background: var(--ha-cream); border-color: var(--ha-cream-dark); }
.ha-chip--upcoming  { color: var(--ha-white); background: var(--ha-primary); }
.ha-chip--ongoing   { color: var(--ha-white); background: var(--ha-success); }

.ha-event-article-title {
	margin: 0 0 var(--ha-space-3);
	font-family: var(--ha-font-heading);
	font-size: 28px;
	line-height: 1.3;
	color: var(--ha-ink);
}
@media (min-width: 768px) { .ha-event-article-title { font-size: 34px; } }

.ha-event-when {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: var(--ha-space-4);
	padding: 12px 16px;
	font-weight: 600;
	color: var(--ha-ink);
	background: var(--ha-cream);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius);
}
.ha-event-when .fa { margin-top: 4px; color: var(--ha-accent-dark); }
.ha-event-when-sep { margin: 0 6px; font-weight: 400; color: var(--ha-text-muted); }

.ha-event-section-title {
	margin: 0 0 var(--ha-space-3);
	padding-bottom: var(--ha-space-2);
	font-family: var(--ha-font-heading);
	font-size: 20px;
	color: var(--ha-primary);
	border-bottom: 1px solid var(--ha-border);
}

/* CMS body (admin editor HTML) */
.ha-event-body { font-size: 17px; line-height: 1.85; color: var(--ha-text); overflow-wrap: break-word; }
.ha-event-body p { margin: 0 0 var(--ha-space-3); }
.ha-event-body img { max-width: 100%; height: auto !important; border-radius: var(--ha-radius); }
.ha-event-body table { max-width: 100%; display: block; overflow-x: auto; }
.ha-event-body iframe { max-width: 100%; }
.ha-event-body a { color: var(--ha-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Related events */
.ha-event-related { margin-top: var(--ha-space-5); padding-top: var(--ha-space-5); border-top: 1px solid var(--ha-border); }


/* ==========================================================================
   20. MEMBER DIRECTORY (home/member_list)
   ========================================================================== */
.ha-members { padding-top: var(--ha-space-5); background: var(--ha-cream); }

/* Search wizard card */
.ha-member-search {
	margin-bottom: var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-top: 4px solid var(--ha-primary);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	padding: var(--ha-space-4);
}
@media (min-width: 768px) { .ha-member-search { padding: var(--ha-space-4) var(--ha-space-5) var(--ha-space-5); } }

.ha-member-search-head { margin-bottom: var(--ha-space-4); padding-bottom: var(--ha-space-3); border-bottom: 1px solid var(--ha-border); }
.ha-member-search-title { margin: 0 0 4px; font-size: 22px; color: var(--ha-primary-dark); }
.ha-member-search-title .fa { margin-right: 6px; font-size: 18px; color: var(--ha-accent); }
.ha-member-search-sub { margin: 0; font-size: 14px; color: var(--ha-text-muted); }

.ha-member-search-grid { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-3) var(--ha-space-4); }
@media (min-width: 768px)  { .ha-member-search-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ha-member-search-grid { grid-template-columns: 0.7fr 1.2fr 1.2fr 0.9fr; } }

.ha-field { min-width: 0; }
.ha-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ha-primary-dark);
}
.ha-field .form-control {
	height: auto;
	min-height: 44px;
	padding: 10px 12px;
	font-size: 15px;
	color: var(--ha-text);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	box-shadow: none;
	transition: var(--ha-transition);
}
.ha-field .form-control:focus { border-color: var(--ha-primary); box-shadow: 0 0 0 3px rgba(46, 49, 146, .15); }
.ha-field-note { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ha-danger); }

.ha-member-search-actions { display: flex; flex-wrap: wrap; gap: var(--ha-space-2); margin-top: var(--ha-space-4); }
.ha-member-search-actions .ha-btn .fa { margin-right: 6px; }

/* Result summary */
.ha-member-summary p { margin: 0 0 var(--ha-space-3); font-size: 15px; color: var(--ha-text-muted); }
.ha-member-summary strong { color: var(--ha-primary-dark); }

/* Member table */
.ha-member-table-wrap { background: var(--ha-white); border-radius: var(--ha-radius-lg); box-shadow: var(--ha-shadow-sm); }
.ha-member-table th, .ha-member-table td { vertical-align: middle; }
.ha-member-table thead th { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ha-member-table tbody tr { transition: background .2s ease; }
/* Cool indigo tints (logo colour) instead of the global cream/gold rows */
.ha-member-table tbody tr:nth-child(odd)  { background: var(--ha-white); }
.ha-member-table tbody tr:nth-child(even) { background: #F5F6FB; }
.ha-member-table tbody tr:hover          { background: #E9EBF7; }
.ha-member-table tbody tr:last-child td { border-bottom: 0; }
.ha-member-table .ha-col-no     { width: 130px; white-space: nowrap; }
.ha-member-table .ha-col-phone  { width: 180px; white-space: nowrap; }
.ha-member-table .ha-col-desig  { width: 24%; }
.ha-member-table td.ha-col-desig { font-size: 15px; color: var(--ha-text); }
.ha-member-table .ha-member-job { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.5; word-break: break-word; } /* Job Profile: max 3 lines, full text in the title tooltip + on the profile page */
.ha-member-table .ha-col-action { width: 160px; text-align: center; white-space: nowrap; }

.ha-member-no {
	display: inline-block;
	min-width: 48px;
	padding: 3px 10px;
	font-weight: 600;
	text-align: center;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .08);
	border-radius: 999px;
}
.ha-member-name    { display: block; font-size: 16px; font-weight: 600; color: var(--ha-ink); }
.ha-member-name-en { display: block; margin-top: 2px; font-size: 14px; color: var(--ha-text-muted); }

.ha-btn-profile {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ha-primary);
	border: 1px solid var(--ha-primary);
	border-radius: var(--ha-radius);
	transition: var(--ha-transition);
}
.ha-btn-profile .fa { margin-right: 4px; }
.ha-btn-profile:hover,
.ha-btn-profile:focus { color: var(--ha-white); background: var(--ha-primary); text-decoration: none; }

/* Small screens: each row becomes a stacked card with inline labels */
@media (max-width: 767px) {
	.ha-member-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
	.ha-member-table, .ha-member-table tbody, .ha-member-table tr, .ha-member-table td { display: block; width: 100%; }
	.ha-member-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ha-member-table { background: transparent; }
	.ha-member-table tbody tr {
		margin-bottom: var(--ha-space-3);
		padding: var(--ha-space-2) var(--ha-space-3);
		background: var(--ha-white) !important;
		border: 1px solid var(--ha-border);
		border-radius: var(--ha-radius-lg);
		box-shadow: var(--ha-shadow-sm);
	}
	.ha-member-table td,
	.ha-member-table .ha-col-no,
	.ha-member-table .ha-col-desig,
	.ha-member-table .ha-col-phone,
	.ha-member-table .ha-col-action {
		display: flex;
		align-items: baseline;
		gap: var(--ha-space-3);
		width: 100%;
		padding: 8px 0;
		text-align: left;
		white-space: normal;
		border-bottom: 1px dashed var(--ha-border);
	}
	.ha-member-table td::before {
		content: attr(data-label);
		flex: 0 0 96px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: var(--ha-text-muted);
	}
	.ha-member-names { min-width: 0; }
	.ha-member-table td:last-child { border-bottom: 0; }
	.ha-member-table .ha-col-action::before { content: none; }
	.ha-member-table .ha-btn-profile { display: block; width: 100%; text-align: center; }
}


/* ==========================================================================
   21. MEMBER PROFILE (home/member_profile/{id})
   ========================================================================== */
.ha-profile { padding-top: var(--ha-space-5); background: var(--ha-cream); }

.ha-profile-back {
	display: inline-block;
	margin-bottom: var(--ha-space-4);
	font-size: 14px;
	font-weight: 600;
	color: var(--ha-primary);
}
.ha-profile-back .fa { margin-right: 6px; transition: var(--ha-transition); }
.ha-profile-back:hover, .ha-profile-back:focus { color: var(--ha-accent-dark); text-decoration: none; }
.ha-profile-back:hover .fa { margin-right: 10px; }

/* Two columns from 992px: identity card (sticky) + details */
.ha-profile-layout { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-4); align-items: start; }
@media (min-width: 992px) {
	.ha-profile-layout { grid-template-columns: 320px 1fr; gap: var(--ha-space-5); }
	.ha-profile-card { position: sticky; top: 110px; }
}
@media (min-width: 1200px) { .ha-profile-layout { grid-template-columns: 360px 1fr; } }

/* Identity card */
.ha-profile-card {
	overflow: hidden;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow);
	text-align: center;
}
.ha-profile-card-top {
	position: relative;
	height: 110px;
	background: linear-gradient(135deg, var(--ha-ink) 0%, var(--ha-primary) 100%);
	border-bottom: 3px solid var(--ha-accent);
}
.ha-profile-photo {
	position: absolute;
	left: 50%;
	bottom: -70px;
	width: 140px;
	height: 140px;
	margin-left: -70px;
	overflow: hidden;
	background: var(--ha-cream);
	border: 5px solid var(--ha-white);
	border-radius: 50%;
	box-shadow: var(--ha-shadow);
}
.ha-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-profile-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 64px;
	color: var(--ha-primary-light);
	background: linear-gradient(180deg, #EEF0FA 0%, #DDE0F3 100%);
}
.ha-profile-card-body { padding: 86px var(--ha-space-4) var(--ha-space-4); }

.ha-profile-badge {
	display: inline-block;
	margin-bottom: var(--ha-space-2);
	padding: 4px 14px;
	font-size: 13px;
	letter-spacing: .03em;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .08);
	border-radius: 999px;
}
.ha-profile-badge strong { font-weight: 700; }
.ha-profile-name { text-align: center; margin: 0 0 4px; font-size: 24px; line-height: 1.35; color: var(--ha-ink); }
.ha-profile-card .ha-profile-name-en { text-align: center; margin: 0 0 4px; font-size: 16px; color: var(--ha-text-muted); }
.ha-profile-card .ha-profile-desig { text-align: center; margin: var(--ha-space-2) 0 0; font-size: 14px; font-weight: 600; color: var(--ha-accent-dark); }

/* Quick contact list inside the card */
ul.ha-profile-contact { margin: var(--ha-space-4) 0 0; padding: var(--ha-space-3) 0 0; list-style: none; text-align: left; border-top: 1px solid var(--ha-border); }
.ha-profile-contact li { display: flex; align-items: center; gap: var(--ha-space-3); padding: 10px 0; }
.ha-profile-contact li + li { border-top: 1px dashed var(--ha-border); }
.ha-profile-contact-icon {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 16px;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .08);
	border-radius: 50%;
}
.ha-profile-contact-text { min-width: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ha-profile-contact-text small {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ha-text-muted);
}
.ha-profile-contact-text a { color: var(--ha-ink); }
.ha-profile-contact-text a:hover { color: var(--ha-primary); }

/* Detail panels */
.ha-profile-main { display: grid; gap: var(--ha-space-4); min-width: 0; }
.ha-profile-panel {
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	padding: var(--ha-space-4);
}
@media (min-width: 768px) { .ha-profile-panel { padding: var(--ha-space-4) var(--ha-space-5); } }
.ha-profile-panel-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--ha-space-3);
	padding-bottom: var(--ha-space-3);
	font-size: 20px;
	color: var(--ha-primary-dark);
	border-bottom: 1px solid var(--ha-border);
}
.ha-profile-panel-title .fa { width: 20px; font-size: 18px; text-align: center; color: var(--ha-accent); }

/* Label / value grid: stacked on phones, two columns of pairs from 768px */
.ha-profile-dl { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-3) var(--ha-space-5); margin: 0; }
@media (min-width: 768px) { .ha-profile-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ha-profile-dl > div { min-width: 0; padding-bottom: var(--ha-space-3); border-bottom: 1px dashed var(--ha-border); }
.ha-profile-dl dt {
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ha-text-muted);
}
.ha-profile-dl dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ha-ink); }
.ha-break { overflow-wrap: anywhere; }

.ha-profile-prose { font-size: 16px; line-height: 1.8; color: var(--ha-text); }
.ha-profile-empty { font-size: 14px; font-style: italic; color: #9A9A9A; }


/* ==========================================================================
   22. JOURNAL ISSUE ARCHIVE (bangladesh-historical-studies, -bangla)
   ========================================================================== */
.ha-journal { padding-top: var(--ha-space-5); background: var(--ha-cream); }

/* Intro bar: journal name + issue count, and a link to the other-language journal */
.ha-journal-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ha-space-4);
	margin-bottom: var(--ha-space-5);
	padding: var(--ha-space-4);
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
@media (min-width: 768px) { .ha-journal-intro { padding: var(--ha-space-4) var(--ha-space-5); } }
.ha-journal-title { margin: 4px 0 8px; font-size: 28px; line-height: 1.3; color: var(--ha-ink); }
@media (min-width: 768px) { .ha-journal-title { font-size: 34px; } }
.ha-journal-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 14px; color: var(--ha-text-muted); }
.ha-journal-meta .fa { margin-right: 5px; color: var(--ha-accent); }

.ha-journal-switch {
	display: inline-grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 14px;
	padding: 12px 18px;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .05);
	border: 1px solid rgba(46, 49, 146, .2);
	border-radius: var(--ha-radius);
	transition: var(--ha-transition);
}
.ha-journal-switch-label { grid-column: 1; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-text-muted); }
.ha-journal-switch-name { grid-column: 1; font-weight: 600; }
.ha-journal-switch .fa { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; transition: var(--ha-transition); }
.ha-journal-switch:hover, .ha-journal-switch:focus { color: var(--ha-white); background: var(--ha-primary); border-color: var(--ha-primary); text-decoration: none; }
.ha-journal-switch:hover .ha-journal-switch-label, .ha-journal-switch:focus .ha-journal-switch-label { color: rgba(255, 255, 255, .75); }
.ha-journal-switch:hover .fa { transform: translateX(3px); }

/* Issue cards */
.ha-issue-grid { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-4); }
@media (min-width: 600px)  { .ha-issue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .ha-issue-grid { grid-template-columns: repeat(3, 1fr); } }

.ha-issue-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	transition: var(--ha-transition);
}
.ha-issue-card:hover { box-shadow: var(--ha-shadow-lg); transform: translateY(-4px); }
.ha-issue-card.is-latest { border-color: var(--ha-accent); }
.ha-issue-flag {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ha-white);
	background: var(--ha-accent);
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* Cover: the book stands on a soft gradient shelf */
.ha-issue-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	padding: var(--ha-space-4);
	background: linear-gradient(180deg, var(--ha-cream-dark) 0%, var(--ha-cream) 100%);
}
.ha-issue-cover img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 10px 24px rgba(21, 23, 63, .28);
	transition: transform .3s ease;
}
.ha-issue-card:hover .ha-issue-cover img { transform: scale(1.03); }
.ha-issue-cover-ph { font-size: 60px; color: var(--ha-primary-light); opacity: .5; }

.ha-issue-body { display: flex; flex: 1; flex-direction: column; padding: var(--ha-space-4); border-top: 3px solid var(--ha-primary); }
.ha-issue-title { margin: 0 0 var(--ha-space-2); font-size: 19px; line-height: 1.45; color: var(--ha-ink); }
.ha-issue-title a { color: inherit; }
.ha-issue-title a:hover { color: var(--ha-primary); }
.ha-issue-count { margin: 0 0 var(--ha-space-3); font-size: 14px; color: var(--ha-text-muted); }
.ha-issue-count .fa { margin-right: 5px; color: var(--ha-accent); }
.ha-issue-body .ha-link-more, .ha-issue-soon { margin-top: auto; }
.ha-issue-soon { font-size: 13px; font-style: italic; color: var(--ha-text-muted); }


/* ==========================================================================
   23. JOURNAL ISSUE — TABLE OF CONTENTS (publication/journal/{slug})
   ========================================================================== */
.ha-toc-page { padding-top: var(--ha-space-5); background: var(--ha-cream); }
.ha-toc-layout { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-4); align-items: start; }
@media (min-width: 992px) {
	.ha-toc-layout { grid-template-columns: 320px 1fr; gap: var(--ha-space-5); }
	.ha-toc-issue { position: sticky; top: 110px; }
}

/* Issue card */
.ha-toc-issue {
	overflow: hidden;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-toc-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 360px;
	padding: var(--ha-space-4);
	background: linear-gradient(180deg, var(--ha-cream-dark) 0%, var(--ha-cream) 100%);
	border-bottom: 3px solid var(--ha-primary);
}
.ha-toc-cover img { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 12px 28px rgba(21, 23, 63, .3); }
@media (max-width: 991px) { .ha-toc-cover { height: 300px; } }
.ha-toc-issue-body { padding: var(--ha-space-4); }
.ha-toc-issue-title { margin: 6px 0 var(--ha-space-2); font-size: 22px; line-height: 1.4; color: var(--ha-ink); }
.ha-toc-issue-meta { margin: 0 0 var(--ha-space-3); font-size: 14px; color: var(--ha-text-muted); }
.ha-toc-issue-meta .fa { margin-right: 5px; color: var(--ha-accent); }
.ha-toc-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ha-primary); }
.ha-toc-back .fa { margin-right: 6px; transition: var(--ha-transition); }
.ha-toc-back:hover, .ha-toc-back:focus { color: var(--ha-accent-dark); text-decoration: none; }
.ha-toc-back:hover .fa { margin-right: 10px; }

/* Contents list */
.ha-toc {
	min-width: 0;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
	padding: var(--ha-space-4);
}
@media (min-width: 768px) { .ha-toc { padding: var(--ha-space-4) var(--ha-space-5); } }
.ha-toc-heading {
	margin: 0 0 var(--ha-space-2);
	padding-bottom: var(--ha-space-3);
	font-size: 24px;
	color: var(--ha-primary-dark);
	border-bottom: 2px solid var(--ha-border);
}
ol.ha-toc-list { margin: 0; padding: 0; list-style: none; }
.ha-toc-item {
	display: flex;
	gap: var(--ha-space-3);
	padding: var(--ha-space-3) 0;
	border-bottom: 1px dashed var(--ha-border);
}
.ha-toc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ha-toc-no {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-family: var(--ha-font-heading);
	font-size: 17px;
	font-weight: 700;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .08);
	border-radius: 50%;
}
.ha-toc-item.is-front .ha-toc-no { color: var(--ha-accent-dark); background: rgba(176, 141, 87, .14); font-size: 15px; }
.ha-toc-main { flex: 1; min-width: 0; }
.ha-toc-title { margin: 6px 0 8px; font-family: var(--ha-font-body); font-size: 17px; font-weight: 600; line-height: 1.5; }
.ha-toc-title a { color: var(--ha-ink); }
.ha-toc-title a:hover, .ha-toc-title a:focus { color: var(--ha-primary); }
.ha-toc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ha-toc-pages { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--ha-text-muted); }
.ha-toc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ha-primary);
	border: 1px solid rgba(46, 49, 146, .3);
	border-radius: 999px;
	transition: var(--ha-transition);
}
.ha-toc-btn:hover, .ha-toc-btn:focus { color: var(--ha-white); background: var(--ha-primary); border-color: var(--ha-primary); text-decoration: none; }
.ha-toc-btn--pdf { color: var(--ha-danger); border-color: rgba(178, 58, 58, .35); }
.ha-toc-btn--pdf:hover, .ha-toc-btn--pdf:focus { color: var(--ha-white); background: var(--ha-danger); border-color: var(--ha-danger); }
/* Bangla text in an eyebrow: no wide letter-spacing / uppercase (they are meant for Latin capitals) */
.ha-eyebrow[lang="bn"] { letter-spacing: 0; text-transform: none; font-size: 14px; }


/* ==========================================================================
   24. JOURNAL ARTICLE PAGE (publication/journal/details/{id})
   Reuses the §23 layout + issue card (.ha-toc-layout, .ha-toc-issue).
   ========================================================================== */
a.ha-toc-cover { text-decoration: none; }
.ha-art-issue { margin: 6px 0 var(--ha-space-3); font-family: var(--ha-font-heading); font-size: 19px; line-height: 1.4; }
.ha-art-issue a { color: var(--ha-ink); }
.ha-art-issue a:hover { color: var(--ha-primary); }

.ha-art {
	min-width: 0;
	overflow: hidden;
	background: var(--ha-white);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-art-head { padding: var(--ha-space-4); border-bottom: 1px solid var(--ha-border); }
@media (min-width: 768px) { .ha-art-head { padding: var(--ha-space-5) var(--ha-space-6) var(--ha-space-4); } }
.ha-art-label {
	display: inline-block;
	margin-bottom: var(--ha-space-2);
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ha-primary);
	background: rgba(46, 49, 146, .08);
	border-radius: 999px;
}
.ha-art-title { margin: 0 0 var(--ha-space-3); font-size: 26px; line-height: 1.35; color: var(--ha-ink); }
@media (min-width: 768px) { .ha-art-title { font-size: 32px; } }
.ha-art-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 var(--ha-space-4); font-size: 14px; color: var(--ha-text-muted); }
.ha-art-meta .fa { margin-right: 5px; color: var(--ha-accent); }
.ha-art-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ha-art-actions .ha-btn { padding: 11px 20px; letter-spacing: .04em; }
.ha-art-actions .ha-btn .fa { margin-right: 6px; }

/* Abstract body: HTML from the admin editor, normalised */
.ha-art-body { padding: var(--ha-space-4); font-size: 16px; line-height: 1.85; color: var(--ha-text); }
@media (min-width: 768px) { .ha-art-body { padding: var(--ha-space-5) var(--ha-space-6); } }
.ha-art-body, .ha-art-body * { font-family: var(--ha-font-body) !important; }
.ha-art-body p, .ha-art-body div { margin: 0 0 var(--ha-space-3); text-align: left !important; }
.ha-art-body span { font-size: inherit !important; color: inherit; }
.ha-art-body strong, .ha-art-body b { color: var(--ha-ink); }
/* Title / author / affiliation block at the top of the abstract -> byline */
.ha-art-body h1, .ha-art-body h2, .ha-art-body h3, .ha-art-body h4, .ha-art-body h5, .ha-art-body h6 {
	margin: 0 0 var(--ha-space-4);
	padding: var(--ha-space-3) var(--ha-space-4);
	font-size: 15px !important;
	font-weight: 500;
	line-height: 1.8;
	text-align: left !important;
	color: var(--ha-text-muted);
	background: var(--ha-cream);
	border-left: 3px solid var(--ha-accent);
	border-radius: 0 var(--ha-radius) var(--ha-radius) 0;
}
.ha-art-body a { color: var(--ha-primary); word-break: break-word; }
.ha-art-body a[href*="doi.org"] { display: inline-block; margin-bottom: var(--ha-space-3); font-weight: 600; }
.ha-art-body img { max-width: 100%; height: auto; }
.ha-art-empty { font-style: italic; color: var(--ha-text-muted); }

/* Previous / next article */
.ha-art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ha-space-3); padding: var(--ha-space-4); background: var(--ha-cream); border-top: 1px solid var(--ha-border); }
@media (min-width: 768px) { .ha-art-nav { padding: var(--ha-space-4) var(--ha-space-6); } }
.ha-art-nav-link { display: block; padding: 12px 16px; background: var(--ha-white); border: 1px solid var(--ha-border); border-radius: var(--ha-radius); transition: var(--ha-transition); }
.ha-art-nav-link:hover, .ha-art-nav-link:focus { border-color: var(--ha-primary); box-shadow: var(--ha-shadow-sm); text-decoration: none; }
.ha-art-nav-link small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-accent-dark); }
.ha-art-nav-link span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ha-ink); }
.ha-art-nav-next { grid-column: 2; text-align: right; }
@media (max-width: 599px) { .ha-art-nav { grid-template-columns: 1fr; } .ha-art-nav-next { grid-column: 1; } }
.ha-toc-issue-body, .ha-toc-issue-body p { text-align: left; }
.ha-art-body a, .ha-art-body a * { color: var(--ha-primary) !important; }

/* §23 addition: page range label in the buttons row, after the PDF button */
.ha-toc-range {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 4px 12px;
	white-space: nowrap;
	background: var(--ha-cream);
	border: 1px solid var(--ha-cream-dark);
	border-radius: 999px;
}
.ha-toc-range small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-text-muted); }
.ha-toc-range[lang="bn"] small { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.ha-toc-range strong { font-size: 14px; font-weight: 700; color: var(--ha-accent-dark); }

/* ==========================================================================
   25. AWARDS (awards/gold-medalists, awards/others, awards/trust-fund/{id}, awards/awardee/{id})
   Views: application/views/awards/. Cards = Option A mockup (user choice 2026-11-28).
   ========================================================================== */
.ha-award { padding-top: var(--ha-space-5); }
.ha-award-count { margin: 0 0 var(--ha-space-3); color: var(--ha-text-muted); font-size: 14px; }
.ha-award-count strong { color: var(--ha-ink); }
.page-header.bg-dark .breadcrumb > li.ha-crumb-plain { color: rgba(255, 255, 255, .8); } /* a crumb without its own page (Awards) */
.ha-award-card-text, .ha-fund-text, .ha-fund-intro-text, .ha-award-about { text-align: left; } /* theme justifies <p> */

/* Awardee cards */
ul.ha-award-grid,
ul.ha-fund-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
ul.ha-award-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ha-award-card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--ha-white);
	border: 1px solid var(--ha-border); border-radius: var(--ha-radius-lg); box-shadow: var(--ha-shadow-sm);
	transition: box-shadow .2s ease, transform .2s ease;
}
.ha-award-card:hover { box-shadow: var(--ha-shadow); transform: translateY(-2px); }
.ha-award-card-photo { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: #EEF0F8; }
.ha-award-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ha-award-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #B5B8D6; font-size: 56px; background: #EEF0F8; }
.ha-award-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
.ha-award-card-name { margin: 2px 0 0; font-family: var(--ha-font-heading); font-size: 18px; line-height: 1.3; }
.ha-award-card-name a { color: var(--ha-ink); }
.ha-award-card-name a:hover { color: var(--ha-primary); text-decoration: none; }
.ha-award-card-text {
	margin: 0; color: var(--ha-text-muted); font-size: 13.5px; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ha-award-card .ha-award-btn { margin-top: auto; }
.ha-award-card-text + .ha-award-btn,
.ha-award-card-name + .ha-award-btn { margin-top: 8px; }

/* Badges + buttons */
.ha-award-medal, .ha-award-year {
	display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 20px;
	font-size: 12px; font-weight: 600; line-height: 1.8;
}
.ha-award-medal { background: #FBF3DF; color: var(--ha-accent-dark); border: 1px solid #EAD9B0; }
.ha-award-year { background: #EEF0F8; color: var(--ha-primary); }
.ha-award-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--ha-radius);
	border: 1px solid var(--ha-primary); color: var(--ha-primary); background: var(--ha-white);
	font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s;
}
.ha-award-btn:hover, .ha-award-btn:focus { background: var(--ha-primary); color: var(--ha-white); text-decoration: none; }
.ha-award-btn--solid { background: var(--ha-primary); color: var(--ha-white); }
.ha-award-btn--solid:hover, .ha-award-btn--solid:focus { background: var(--ha-primary-dark); border-color: var(--ha-primary-dark); }
.ha-award-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ha-primary); font-weight: 600; font-size: 14px; }
.ha-award-back:hover { color: var(--ha-primary-dark); }
.ha-award-empty { text-align: center; padding: var(--ha-space-6) var(--ha-space-3); color: var(--ha-text-muted); background: var(--ha-cream); border-radius: var(--ha-radius-lg); }
.ha-award-empty .fa { font-size: 40px; color: var(--ha-accent); margin-bottom: 10px; }
.ha-award-empty p { margin: 0; }

/* Trust Fund cards (awards/others) */
ul.ha-fund-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ha-fund-card {
	display: flex; gap: 18px; padding: 20px 22px; background: var(--ha-white);
	border: 1px solid var(--ha-border); border-left: 4px solid var(--ha-accent); border-radius: var(--ha-radius-lg);
	box-shadow: var(--ha-shadow-sm);
}
.ha-fund-icon {
	flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; background: var(--ha-cream); color: var(--ha-accent);
	display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ha-fund-icon--lg { flex-basis: 64px; width: 64px; height: 64px; font-size: 26px; background: var(--ha-white); border: 1px solid var(--ha-border); }
.ha-fund-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ha-fund-name { margin: 0 0 6px; font-family: var(--ha-font-heading); font-size: 20px; line-height: 1.35; }
.ha-fund-name a { color: var(--ha-ink); }
.ha-fund-name a:hover { color: var(--ha-primary); text-decoration: none; }
.ha-fund-text {
	margin: 0 0 12px; color: var(--ha-text-muted); font-size: 14px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ha-fund-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ha-fund-n { color: var(--ha-text-muted); font-size: 13px; }

/* Trust Fund intro (awards/trust-fund/{id}) */
.ha-fund-intro {
	display: flex; gap: 20px; margin-bottom: var(--ha-space-4); padding: 22px 26px;
	background: var(--ha-cream); border: 1px solid var(--ha-border); border-radius: var(--ha-radius-lg);
}
.ha-fund-intro-body { flex: 1; min-width: 0; }
.ha-fund-intro-title { margin: 2px 0 8px; font-family: var(--ha-font-heading); font-size: 26px; color: var(--ha-ink); line-height: 1.3; }
.ha-fund-intro-text { margin: 0 0 10px; color: #444; }
.ha-fund-intro-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ha-fund-intro-foot .ha-award-count { margin: 0; }

/* Awardee profile (awards/awardee/{id}) */
.ha-award-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.ha-award-idcard { overflow: hidden; text-align: center; background: var(--ha-white); border: 1px solid var(--ha-border); border-radius: var(--ha-radius-lg); box-shadow: var(--ha-shadow); }
.ha-award-idcard-photo { aspect-ratio: 1 / 1.05; background: #EEF0F8; }
.ha-award-idcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ha-award-idcard-photo .ha-award-noimg { font-size: 90px; }
.ha-award-idcard-body { padding: 18px; }
.ha-award-idcard-name { margin: 0 0 8px; font-family: var(--ha-font-heading); font-size: 24px; line-height: 1.3; color: var(--ha-ink); }
.ha-award-facts { margin: 14px 0 0; text-align: left; border-top: 1px solid var(--ha-border); }
.ha-award-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ha-border); font-size: 14px; }
.ha-award-facts dt { font-weight: 400; color: var(--ha-text-muted); white-space: nowrap; }
.ha-award-facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--ha-ink); }
.ha-award-facts dd a { color: var(--ha-primary); }
.ha-award-main { min-width: 0; }
.ha-award-panel { padding: 22px 26px; margin-bottom: 18px; background: var(--ha-white); border: 1px solid var(--ha-border); border-radius: var(--ha-radius-lg); }
.ha-award-panel-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ha-cream); font-family: var(--ha-font-heading); font-size: 20px; color: var(--ha-primary); }
.ha-award-about { line-height: 1.8; overflow-wrap: anywhere; }
.ha-award-none { margin: 0; color: var(--ha-text-muted); font-style: italic; }

@media (max-width: 1199px) {
	ul.ha-award-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	ul.ha-award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ul.ha-fund-grid { grid-template-columns: minmax(0, 1fr); }
	.ha-award-profile { grid-template-columns: minmax(0, 1fr); }
	.ha-award-idcard { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
	ul.ha-award-grid { grid-template-columns: minmax(0, 1fr); }
	.ha-fund-card, .ha-fund-intro { flex-direction: column; gap: 12px; padding: 18px; }
}


/* ==========================================================================
   26. MEMBERSHIP APPLICATION FORM (menu_category/membership-application-form)
   View: application/views/member/member_registration.php (posts to home/save_register_data).
   Fields mirror the admin "Add Registered Member" form; uses .ha-field from §20.
   ========================================================================== */
.ha-apply { padding-top: var(--ha-space-5); background: var(--ha-cream); }

.ha-apply-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ha-space-3); margin-bottom: var(--ha-space-4); }
.ha-apply-title { margin: 0 0 4px; font-size: 28px; color: var(--ha-primary-dark); }
.ha-apply-sub { margin: 0; font-size: 15px; color: var(--ha-text-muted); text-align: left; }
.ha-apply-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ha-primary); background: var(--ha-white); border: 1px solid var(--ha-border); border-radius: var(--ha-radius); transition: var(--ha-transition); }
.ha-apply-pdf .fa { color: var(--ha-danger); }
.ha-apply-pdf:hover, .ha-apply-pdf:focus { color: var(--ha-primary-dark); border-color: var(--ha-primary); text-decoration: none; }

.ha-apply-alert { margin-bottom: var(--ha-space-3); padding: 12px 16px; font-size: 15px; color: var(--ha-danger); background: #FBEDED; border: 1px solid #EFC9C9; border-left: 4px solid var(--ha-danger); border-radius: var(--ha-radius); }
.ha-apply-alert .fa { margin-right: 6px; }

.ha-apply-card { margin-bottom: var(--ha-space-6); padding: var(--ha-space-4); background: var(--ha-white); border: 1px solid var(--ha-border); border-top: 4px solid var(--ha-primary); border-radius: var(--ha-radius-lg); box-shadow: var(--ha-shadow-sm); }
@media (min-width: 768px) { .ha-apply-card { padding: var(--ha-space-5); } }

.ha-apply-note { margin: 0 0 var(--ha-space-2); font-size: 14px; color: var(--ha-text-muted); text-align: left; }
.ha-apply-req { color: var(--ha-danger); font-weight: 700; }

.ha-apply-section { margin: var(--ha-space-4) 0 var(--ha-space-3); padding-bottom: 8px; font-family: var(--ha-font-body); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-primary); border-bottom: 1px solid var(--ha-border); }
.ha-apply-section .fa { width: 18px; margin-right: 6px; color: var(--ha-accent); text-align: center; }

.ha-apply-grid { display: grid; grid-template-columns: 1fr; gap: var(--ha-space-3) var(--ha-space-4); }
@media (min-width: 768px) { .ha-apply-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ha-apply-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.ha-apply-field textarea.form-control { min-height: 90px; resize: vertical; }
.ha-apply-field.has-error .form-control { border-color: var(--ha-danger); box-shadow: 0 0 0 3px rgba(178, 58, 58, .12); }
.ha-apply-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ha-danger); }
.ha-apply-error:empty { display: none; }

.ha-apply-help { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--ha-text-muted); }
.ha-apply-help .fa { margin-right: 3px; color: var(--ha-primary); }
.ha-apply-help strong { color: var(--ha-text); }
.ha-apply-count { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.ha-apply-count.is-near { color: #B36B00; }
.ha-apply-count.is-over { color: var(--ha-danger); }

/* Photo */
.ha-apply-photo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ha-space-4); }
.ha-apply-photo-box { flex: 0 0 140px; display: flex; align-items: center; justify-content: center; width: 140px; height: 160px; overflow: hidden; color: #9AA3C7; background: #F5F6FB; border: 2px dashed #B9C0E4; border-radius: var(--ha-radius-lg); }
.ha-apply-photo-box .fa { font-size: 54px; }
.ha-apply-photo-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-apply-photo-box.has-img { border-style: solid; border-color: var(--ha-primary); }
.ha-apply-photo-side { flex: 1 1 240px; min-width: 0; }
.ha-apply-photo-side input[type="file"] { max-width: 100%; font-size: 14px; }
.ha-apply-photo-help { display: block; margin-top: 8px; font-size: 13px; color: var(--ha-text-muted); }
.ha-apply-photo-help strong { color: var(--ha-text); }
.ha-apply-photo-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--ha-primary); word-break: break-all; }
.ha-apply-photo-clear { margin-top: 8px; padding: 4px 10px; font-size: 13px; color: var(--ha-text); background: var(--ha-white); border: 1px solid var(--ha-border); border-radius: var(--ha-radius); }
.ha-apply-photo-clear:hover { border-color: var(--ha-danger); color: var(--ha-danger); }

/* Declaration */
.ha-apply-agree { padding: var(--ha-space-3); background: var(--ha-cream); border: 1px solid var(--ha-border); border-radius: var(--ha-radius); }
.ha-apply-agree.has-error { border-color: var(--ha-danger); }
.ha-apply-agree-label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--ha-text); cursor: pointer; text-align: left; }
.ha-apply-agree-label input { flex: 0 0 auto; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ha-primary); }

.ha-apply-actions { margin-top: var(--ha-space-4); }
.ha-apply-actions .ha-btn .fa { margin-right: 6px; }
.ha-apply-actions .ha-btn[disabled] { opacity: .7; cursor: wait; }

/* Spam trap: off-screen for people, still in the form for bots. */
.ha-apply-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sent */
.ha-apply-done { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; border-top-color: var(--ha-success); }
.ha-apply-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: var(--ha-space-3); font-size: 30px; color: var(--ha-white); background: var(--ha-success); border-radius: 50%; }
.ha-apply-done-title { margin: 0 0 var(--ha-space-2); font-size: 26px; color: var(--ha-primary-dark); }
.ha-apply-done p { margin: 0 auto var(--ha-space-4); max-width: 560px; color: var(--ha-text-muted); text-align: center; }

/* ==========================================================================
   27. PAGE / NOTICE UPLOADED FILE (admin Content "File Upload", 2026-11-29)
   Notice Board rows (home + home/notice_all, partial news/_notice_row.php): the row is a div and
   its title link covers the whole row, so a PDF Download button can sit inside it.
   Reading card (news/_content_file.php): image figure, or an attachment box with Download.
   ========================================================================== */
.ha-notice-row { position: relative; }
.ha-notice-row:focus-within {
	border-left-color: var(--ha-primary);
	box-shadow: var(--ha-shadow);
}
a.ha-notice-row-link { color: var(--ha-ink); text-decoration: none; }
a.ha-notice-row-link:hover,
a.ha-notice-row-link:focus { color: var(--ha-primary); text-decoration: none; outline: none; }
a.ha-notice-row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* Download icon beside the "Notice" label (PDF and image notices; no thumbnail, user request 2026-11-29) */
.ha-notice-dl {
	position: relative;
	z-index: 2;   /* above the row link */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 24px;
	height: 24px;
	margin: -3px 0 0 10px;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--ha-white);
	background: var(--ha-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(46, 49, 146, .12);
	transition: var(--ha-transition);
}
.ha-notice-row-label .ha-notice-dl .fa { margin: 0; }
.ha-notice-dl--pdf { background: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.ha-notice-dl:hover,
.ha-notice-dl:focus { color: var(--ha-white); background: var(--ha-accent-dark); box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); text-decoration: none; }

/* Reading card: uploaded image (Page images are resized to 1600 px wide on upload) */
.news-single-details .ha-content-figure { margin: 0 0 var(--ha-space-4); }
.news-single-details .ha-content-figure a { display: block; text-decoration: none; }
.news-single-details .ha-content-figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: var(--ha-radius);
}
/* Attachment box with the Download button */
.ha-attach {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ha-space-3);
	margin: 0 0 var(--ha-space-4);
	padding: var(--ha-space-3);
	line-height: 1.4;
	background: var(--ha-cream);
	border: 1px solid var(--ha-border);
	border-left: 4px solid var(--ha-accent);
	border-radius: var(--ha-radius-lg);
}
.ha-attach-icon { flex: 0 0 auto; font-size: 34px; line-height: 1; color: #B3261E; }
.ha-attach-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.ha-attach-title { font-size: 16px; color: var(--ha-ink); }
.ha-attach-name { font-size: 13px; color: var(--ha-text-muted); overflow-wrap: anywhere; }
.ha-attach-actions { display: flex; flex-wrap: wrap; gap: var(--ha-space-2); }
/* The reading card link colour (.news-single-details a) must not repaint the buttons */
.news-single-details .ha-attach a.ha-btn,
.news-single-details .ha-attach a.ha-btn:hover,
.news-single-details .ha-attach a.ha-btn:focus,
.news-single-details .ha-attach a.ha-btn--outline:hover,
.news-single-details .ha-attach a.ha-btn--outline:focus { color: var(--ha-white); text-decoration: none; }
.news-single-details .ha-attach a.ha-btn--outline { color: var(--ha-primary); }
.ha-attach .ha-btn .fa { margin-right: 6px; }

/* Notice list (home/notice_all): result summary lines up with the 960px list */
.page-default .ha-notice-summary { max-width: 960px; margin: 0 auto; }
