/* ============================================================
   AIMTECH AEM - Public Theme (matches WordPress design)
   ============================================================ */

:root {
  --navy: #1a1a2e;
  --dark: #1a1a2e;
  --maroon: #8b0000;
  --maroon-dk: #670000;
  --maroon-light: #a52a2a;
  --blue: #1565c0;
  --green: #16a34a;
  --red: #c62828;
  --yellow: #ffd54f;
  --yellow-soft: #ffe082;
  --white: #ffffff;
  --light-bg: #f0f0f0;
  --bg-soft: #f2f2f7;
  --text: #1e293b;
  --mut: #777777;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 12px rgba(26, 26, 46, 0.07);
  --card-shadow-lg: 0 8px 28px rgba(26, 26, 46, 0.10);
  --border: #e5e7eb;
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Malayalam', 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Top date bar --- */
.top-bar {
  background: var(--navy);
  color: #ccc;
  font-size: 14px;
  padding: 0 0;
  border-top: 3px solid var(--maroon);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
}
.top-home a { color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.top-home a i { font-size: 12px; }
.top-home a:hover { color: var(--yellow); text-decoration: none; }
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-phone-item {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.top-phone-item i { color: #4caf50; font-size: 11px; }
.top-date { color: #aaa; font-size: 12px; }
.nav-user-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.nav-user-name { color: #fff; font-weight: 600; font-size: 13px; }
.nav-user-role { color: #aaa; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Header / Brand --- */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.site-header {
  background: #fff;
  border-top: 1.5px solid var(--maroon);
  border-bottom: 3px solid var(--maroon);
  padding: 0;
}
.site-header.text-mode .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.site-header.image-mode { background: var(--bg-soft); border-top: none; border-bottom: none; }
.site-header.image-mode .header-inner { max-width: 100%; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.site-header.image-mode .brand-logo-link { display: flex; justify-content: center; flex: 1 1 100%; }
.site-header.image-mode .brand-logo-img { width: auto; height: auto; max-width: 100vw; max-height: 100px; border-radius: 0; object-fit: contain; display: block; }
.site-header.image-mode .brand-sub-btn { position: absolute; right: 20px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; background: #dc2626; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.site-header.image-mode .brand-sub-btn i { font-size: 18px; color: #fff; }
.header-banner { width: 100%; background: #fff; }
.header-banner img { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; }
.hdr-mobile { display: none !important; }
.hdr-mobile-wrap { display: none !important; }
.hdr-pc { display: block !important; }
.hdr-mobile.site-header { border-bottom: 3px solid var(--maroon); }
.hdr-mobile .header-inner { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; max-width: 100%; flex-wrap: wrap; }
.hdr-mobile .brand-logo-img { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; }
.hdr-mobile .brand-text { align-items: center; text-align: center; flex: 1 1 100%; order: 0; min-width: 0; }
.hdr-mobile .site-title { font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hdr-mobile .brand-slug { font-size: 7px; letter-spacing: 1.5px; }
.hdr-mobile .brand-phones { gap: 4px; }
.hdr-mobile .brand-phone { font-size: 10px; padding: 2px 6px; }
.hdr-mobile .brand-phone i { font-size: 9px; }
.hdr-mobile .brand-phone-sep { font-size: 10px; }
.hdr-mobile .brand-right-group { order: 1; flex: 0 0 auto; }
.hdr-mobile .brand-sub-btn { padding: 3px 8px; font-size: 8px; gap: 2px; flex: 0 0 auto; flex-direction: column; align-items: center; }
.hdr-mobile .brand-sub-btn i { font-size: 16px; }
.hdr-mobile-banner { width: 100%; background: var(--bg-soft); }
.hdr-mobile-banner img { width: 100%; height: auto; object-fit: contain; display: block; background: var(--bg-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2px; max-width: 1200px; margin: 0 auto; padding: 5px 20px; }
.brand-logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo-link .brand-logo-img { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; object-fit: cover; }
.hdr-left-logo, .hdr-right-logo { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo-img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.brand-text { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.15; min-width: 0; flex: 1; }
.site-title {
  font-size: 30px;
  font-weight: 900;
  color: #1565c0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.brand-slug {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.brand-phones { display: flex; align-items: center; gap: 8px; justify-content: center; }
.brand-phone { background: transparent; border: none; color: #374151; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 20px; transition: .2s; font-family: inherit; }
.brand-phone:hover { background: rgba(0,0,0,.05); }
.brand-phone-sep { color: #d1d5db; font-weight: 300; }
.brand-contact { display: flex; flex-direction: column; gap: 3px; }
.brand-logo-right {
  display: none;
}
.brand-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
@media (min-width: 769px) {
  .brand-logo-right {
    display: flex;
    align-items: center;
  }
  .brand-logo-right .brand-logo-img {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }
}
.brand-sub-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.brand-sub-btn i {
  font-size: 20px;
  color: #dc2626;
}
.brand-sub-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); text-decoration: none; color: #000; }
.brand-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  width: 100%;
}
.brand-phone {
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}
.brand-phone i { font-size: 14px; }
.brand-phone.green { color: #2e7d32; }
.brand-phone.red { color: #c62828; }
.brand-phone:hover { opacity: 0.8; }
.brand-phone-sep { color: #f9a825; font-size: 20px; font-weight: 900; }

/* Phone popup */
.phone-popup {
  position: fixed;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.phone-popup.open { display: flex; opacity: 1; }
.phone-popup-head {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.phone-popup-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}
.phone-popup-opt i { font-size: 16px; width: 20px; text-align: center; }
.phone-popup-wa { background: #25d366; }
.phone-popup-wa:hover { background: #1da851; text-decoration: none; color: #fff; }
.phone-popup-call { background: #1565c0; }
.phone-popup-call:hover { background: #0d47a1; text-decoration: none; color: #fff; }
.phone-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.phone-popup-close:hover { color: #333; }
.header-hero {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 0;
}
.header-hero img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* --- Navigation --- */
.site-nav {
  background: linear-gradient(90deg, #4a0e1c 0%, #6b1020 35%, #8b0000 65%, #a51212 100%);
  border-bottom: 2px solid #3d0000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 50;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav-links li a:hover {
  background: #7a0000;
  border-bottom-color: #ffd54f;
  text-decoration: none;
}
.nav-links li a.active {
  background: #5d0000;
  border-bottom-color: #ffd54f;
  text-decoration: none;
}
/* Event filter buttons inside the site nav (single menu bar) */
.nav-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 16px;
}
.nav-filter-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.nav-filter-btn:hover { background: #ffe082; color: #1a1a2e; text-decoration: none; }
.nav-filter-btn.active { background: #1565c0; color: #fff; border-color: #fff; }
.nav-filter-all { background: transparent; color: #fff; }
.nav-filter-all:hover { background: #ffe082; color: #1a1a2e; }
.nav-filter-refresh { background: #16a34a; color: #fff; }
.nav-filter-refresh:hover { background: #15803d; }
.nav-filter-search {
  display: inline-flex;
  align-items: center;
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 0 12px;
  height: 32px;
  background: #fff;
  margin-left: 4px;
}
.nav-filter-search input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 110px;
  background: transparent;
  color: #333;
}
.nav-filter-search input::placeholder { color: #999; }
.nav-auth-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-auth-btn.login {
  background: var(--maroon);
  color: #fff;
}
.nav-auth-btn.login:hover {
  background: #a52a2a;
  text-decoration: none;
}
.nav-auth-btn.admin {
  background: var(--blue);
  color: #fff;
}
.nav-auth-btn.admin:hover {
  background: #1e88e5;
  text-decoration: none;
}
.nav-auth-btn.public-site {
  background: #2e7d32;
  color: #fff;
}
.nav-auth-btn.public-site:hover {
  background: #43a047;
  text-decoration: none;
}
.nav-auth-btn.logout {
  background: #555;
  color: #fff;
}
.nav-auth-btn.logout:hover {
  background: #777;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-toggle i { font-size: 16px; }
.nav-toggle.active { background: #5d0000; }

/* --- Body (content + sidebar) --- */
.site-body {
  padding: 5px 0 20px;
}
.site-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.site-body-inner.no-sidebar {
  grid-template-columns: 1fr;
}

/* --- Content area --- */
.site-content { min-width: 0; }

/* Blog card style (news items) */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.post-card-body {
  padding: 14px 16px;
}
.post-card-body h3 {
  font-size: 18px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--blue); }
.post-card-meta {
  font-size: 12px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card-meta i { margin-right: 4px; }

/* Comment count badge */
.comment-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.post-card-thumb { position: relative; display: block; overflow: hidden; border-radius: 8px 8px 0 0; }
.post-card-thumb img { transition: transform .2s; width: 100%; object-fit: cover; }
.post-card-thumb:hover img { transform: scale(1.03); }
/* News list grid: 2 cards per line on PC, 1 on mobile */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-grid .post-card { margin-bottom: 0; }
.news-grid .post-card img { height: 210px; }
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-grid .post-card img { height: 180px; }
}

/* --- Sidebar --- */
.site-sidebar {
  min-width: 0;
}
.sidebar-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.sb-heading {
  background: #333;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.sb-news-list,
.sb-events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.sb-news-list li,
.sb-events-list li {
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
}
.sb-news-list li:last-child { border-bottom: none; }

/* RECENT POSTS: meta row */
.sb-news-list .sidebar-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.sb-news-list .sb-date { font-weight: 600; color: #555; }
.sb-news-list .sb-cat {
  background: var(--navy);
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
.sb-news-list .sb-author { color: #888; }
.sb-news-list li a {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}
.sb-news-list li a:hover { color: var(--blue); text-decoration: none; }

/* UPCOMING EVENTS: date + venue row */
.sb-events-list li { display: flex; justify-content: space-between; align-items: center; }
.sb-ev-date { font-weight: 700; font-size: 13px; color: var(--maroon); }
.sb-ev-venue { font-size: 12px; color: #666; text-align: right; }
.sidebar-contact .contact-info {
  padding: 12px 16px;
}
.sidebar-contact .contact-info p {
  margin: 6px 0;
  font-size: 13px;
  color: #555;
}
.sidebar-contact .contact-info i {
  color: var(--maroon);
  margin-right: 6px;
  width: 16px;
}

/* --- Article (single news/event) --- */
.article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.article h1 {
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.article .content {
  line-height: 1.7;
  font-size: 15px;
}
.article-category {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mut);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.article-meta i { margin-right: 4px; }

/* --- Social Sharing --- */
.social-share {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; text-decoration: none; }
.share-facebook { background: #3b5998; }
.share-whatsapp { background: #25d366; }
.share-email { background: #777; }
.share-telegram { background: #0088cc; }

/* --- Comments --- */
.comments-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.comments-section h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.comments-list {
  margin-bottom: 24px;
}
.comment-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child { border-bottom: none; }
.comment-meta {
  margin-bottom: 6px;
  font-size: 13px;
}
.comment-meta strong { color: var(--text); }
.comment-meta span { color: var(--mut); font-size: 12px; margin-left: 8px; }
.comment-text {
  font-size: 14px;
  line-height: 1.6;
}
.comment-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}
.comment-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}
.comment-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 4px;
  font-family: inherit;
}
.comment-form textarea { resize: vertical; }

/* --- Video --- */
.video-wrap { position: relative; padding-top: 56.25%; margin: 14px 0; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.video-card { margin-bottom: 20px; }
.video-card h3 { font-size: 16px; margin: 0 0 8px; }

/* --- Event page --- */
.event-header {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.event-header h1 { font-size: 22px; margin: 0 0 8px; }
.event-meta { font-size: 13px; color: var(--mut); margin-bottom: 12px; }
.event-sections { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
/* Desktop: exactly 5 cards per row */
@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}
.gthumb {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gthumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}
.gthumb img:hover { transform: scale(1.03); }
.gthumb figcaption {
  padding: 8px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gthumb figcaption b { display: block; font-size: 12.5px; line-height: 1.35; margin-bottom: 3px; }
.gthumb-meta { display: block; font-size: 11px; color: var(--yellow-soft); margin-bottom: 6px; }
.gthumb-name { font-size: 11px; font-weight: 600; color: #475569; margin-bottom: 5px; padding: 3px 6px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; line-height: 1.3; word-break: break-word; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gthumb-actions { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; margin-top: auto; justify-content: space-between; }
.gthumb-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; font-size: 11px; font-weight: 600; color: #fff; background: var(--maroon);
  text-decoration: none; white-space: nowrap; transition: background .2s;
  flex: 0 1 auto; min-width: 0;
}
.gthumb-btn:hover { background: var(--maroon-dk); text-decoration: none; }
.gthumb-stats {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 7px; font-size: 11px; font-weight: 600; color: #555; background: #f5f5f5;
  border-left: 1px solid #e5e7eb; white-space: nowrap;
  flex: 1 1 auto; min-width: 0; justify-content: center;
}
.gthumb-stats i { font-size: 10px; color: #888; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 44px 16px; color: #888; font-size: 14px; border: 1px dashed var(--border); border-radius: 10px; background: var(--card-bg); }
.empty-state i { display: block; font-size: 26px; margin-bottom: 8px; color: #bbb; }
.empty-state p { margin: 0; }
.gthumb.video-thumb { position: relative; cursor: pointer; background: #1e293b; }
.gthumb.video-thumb figcaption { color: #e2e8f0; }
.gthumb.video-thumb figcaption b { color: #fff; }
.gthumb.video-thumb video { width: 100%; height: 160px; object-fit: cover; display: block; }
.gthumb.video-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; background: #1e293b; }
.gthumb.video-thumb .play-badge {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; background: rgba(93,0,0,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
  transition: background 0.2s;
}
.gthumb.video-thumb:hover .play-badge { background: var(--maroon); }
.gthumb.is-missing { cursor: default; }
.gthumb.is-missing .vm-missing { height: 160px; display: flex; align-items: center; justify-content: center; background: #1e293b; color: #64748b; font-size: 40px; }
.modal-close {
  position: absolute; top: -38px; right: 0; width: 34px; height: 34px;
  background: none; border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: #f0f0f0; text-decoration: none; }
.btn.primary { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn.primary:hover { background: var(--maroon-light); }
.btn.small { padding: 5px 10px; font-size: 12px; }

/* --- Footer --- */
.site-footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 24px 16px;
  margin-top: 30px;
}
.footer-icons {
  margin-bottom: 12px;
}
.footer-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-size: 16px;
  margin: 0 4px;
  transition: background 0.2s;
}
.footer-icons a:hover { background: var(--blue); text-decoration: none; }
.site-footer p { margin: 4px 0; font-size: 13px; }
.footer-credit { color: #888; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-credit .mtk-link { color: var(--yellow); text-decoration: none; font-weight: 600; }
.footer-credit .mtk-link:hover { text-decoration: underline; color: #fff; }
.credit-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.credit-ic:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.3); }
.credit-ic.wa { background: #25d366; }
.credit-ic:not(.wa) { background: var(--yellow); }
.credit-ic:not(.wa) i { color: #333; }

/* --- Pager --- */
.pager {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.pager a, .pager span {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}
.pager a:hover { background: #f0f0f0; text-decoration: none; }

/* --- Utility --- */
.muted { color: var(--mut); }
.error { color: var(--red); font-weight: 600; }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 1100; padding: 10px; }
.lightbox img { max-width: 92%; max-height: 92%; border-radius: 4px; }
.lightbox.open { display: flex; }
.lightbox iframe, .lightbox video { width: 100%; height: 56vw; max-height: 70vh; border: 0; border-radius: 4px; }
.lightbox .modal-close { position: fixed; top: 10px; right: 14px; width: 38px; height: 38px; background: rgba(255,255,255,0.2); border: none; color: #fff; font-size: 26px; line-height: 38px; text-align: center; border-radius: 50%; cursor: pointer; z-index: 1101; }
.lb-close { position: fixed; top: 12px; right: 16px; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 28px; line-height: 40px; text-align: center; border-radius: 50%; cursor: pointer; z-index: 1101; }
.lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-download { position: fixed; bottom: 80px; right: 20px; width: 44px; height: 44px; background: #1565c0; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 1101; text-decoration: none; }
.lb-download:hover { background: #0d47a1; }
.lb-spinner { display: none; }
.lb-spinner div {
  width: 40px; height: 40px;
  border: 4px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hdr-pc { display: none !important; }
  .hdr-mobile-wrap { display: block !important; }
  .hdr-mobile { display: block !important; }
  .site-body-inner {
    grid-template-columns: 1fr;
  }
  .site-sidebar { order: 2; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--maroon-dk);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.1); display: block; font-size: 13px; }
  .nav-links li a:hover { background: rgba(255,255,255,.08); }
  .nav-filter {
    margin-left: 0;
    padding: 10px 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .header-banner { max-height: 130px; }
  .header-inner { flex-wrap: nowrap; gap: 4px; padding: 5px 5px; }
  .brand-text { align-items: center; text-align: center; flex: 1; min-width: 0; }
  .site-title { font-size: 17px; white-space: nowrap; }
  .brand-phones { justify-content: center; gap: 8px; }
  .brand-phone { font-size: 14px; }
  .brand-phone i { font-size: 12px; }
  .brand-phone-sep { font-size: 14px; }
  .site-title { font-size: 17px; }
  .brand-logo-img { width: 36px; height: 36px; flex: 0 0 36px; }
  .brand-sub-btn { display: inline-flex !important; padding: 3px 8px; font-size: 9px; gap: 2px; flex: 0 0 auto; flex-direction: column; }
  .brand-sub-btn i { font-size: 20px; }
  .brand-logo-right { display: none !important; }
  .site-header.image-mode .brand-logo-img { max-height: 80px; }
  .site-header.image-mode .brand-sub-btn { right: 10px; bottom: 4px; }
  .site-header.image-mode .brand-sub-btn i { font-size: 22px; }
  .site-header.image-mode .brand-sub-btn span { font-size: 10px; }
  .site-header.text-mode .header-inner { flex-wrap: wrap; justify-content: center; padding: 4px 8px; gap: 4px; }
  .site-header.text-mode .brand-text { align-items: center; order: 1; flex: 1 1 100%; }
  .site-header.text-mode .hdr-left-logo, .site-header.text-mode .hdr-right-logo { order: 0; }
  .site-header.text-mode .hdr-left-logo .brand-logo-img, .site-header.text-mode .hdr-right-logo .brand-logo-img { width: 36px; height: 36px; flex: 0 0 36px; }
  .site-header.text-mode .brand-right-group { order: 2; justify-content: center; flex: 1 1 100%; }
  .site-title { font-size: 17px; white-space: nowrap; }
  .brand-sub-btn { padding: 3px 8px; font-size: 10px; gap: 2px; }
  .brand-sub-btn i { font-size: 14px; }
}

@media (max-width: 480px) {
  .top-bar-inner { font-size: 11px; height: 15px; }
  .top-right { gap: 6px; }
  .header-banner { max-height: 120px; }
  .nav-links li a { font-size: 13px; padding: 10px 14px; }
}

/* --- Event sections --- */
.event-sections { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.event-sections .btn { display: inline-flex; align-items: center; gap: 6px; }
.event-sections .btn:hover { text-decoration: none; opacity: 0.9; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--maroon); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.back-link:hover { text-decoration: none; color: var(--maroon-light); }

/* --- Page header (listing pages) --- */
.page-head {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #faf7f2 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--maroon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page-head-titles { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.page-title-locale {
  display: inline-block;
  color: var(--maroon);
  font-size: 15px;
  font-weight: 700;
}
.page-sub {
  margin: 0 0 0 auto;
  color: var(--mut);
  font-size: 13px;
  max-width: 320px;
  text-align: right;
}

/* --- Events Grid --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.events-live-section { margin-bottom: 28px; }
.events-live-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dc2626;
}
.ev-card-live { border: 2px solid #dc2626 !important; background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important; }
.ev-card-live:hover { box-shadow: 0 6px 22px rgba(220,38,38,0.25) !important; }
.ev-live-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  animation: liveGlow 1.5s ease-in-out infinite;
}
.ev-card-live-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ev-card-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  animation: liveGlow 1.5s ease-in-out infinite;
}
.ev-card-live-btn:hover { background: #b91c1c; text-decoration: none; color: #fff; }
.ev-card-live-btn .hm-live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: hmLivePulse 1s ease-in-out infinite;
}
.ev-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); text-decoration: none; }
.ev-card.ev-today { border: 2px solid #16a34a; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.ev-card-thumb { height: 180px; overflow: hidden; background: #e2e8f0; display: flex; align-items: center; justify-content: center; position: relative; }
.ev-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-card-thumb.ev-no-cover { background: linear-gradient(135deg, var(--maroon), #b71c1c); color: rgba(255,255,255,0.3); font-size: 48px; }
.ev-card-body { padding: 14px; }
.ev-card-body h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.ev-card-meta { font-size: 12px; color: var(--mut); }
.ev-today-badge { display: inline-block; background: #16a34a; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; letter-spacing: 0.5px; }
.ev-today-badge i { font-size: 8px; margin-right: 3px; }

/* --- Event Detail --- */
.ev-detail-today { background: #16a34a; color: #fff; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 16px; border-radius: 6px; }
.ev-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin: 16px 0; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.ev-filter-btn { padding: 8px 16px; border: 2px solid #1565c0; border-radius: 20px; background: #1565c0; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.ev-filter-btn:hover { background: #0d47a1; border-color: #0d47a1; text-decoration: none; }
.ev-filter-btn.ev-filter-all { background: #fff; color: #1565c0; }
.ev-filter-btn.ev-filter-all:hover { background: #e3f2fd; }
.ev-filter-btn.ev-filter-refresh { background: #16a34a; border-color: #16a34a; color: #fff; }
.ev-filter-btn.ev-filter-refresh:hover { background: #15803d; border-color: #15803d; }
.ev-filter-search { display: inline-flex; align-items: center; border: 2px solid #1565c0; border-radius: 20px; padding: 0 14px; background: #fff; height: 40px; }
.ev-filter-search input { border: none; outline: none; font-size: 13px; width: 120px; background: transparent; color: #333; }
.ev-filter-search input::placeholder { color: #999; }
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
  .page-sub { margin-left: 0; text-align: left; max-width: none; }
  .ev-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ev-filter-bar::-webkit-scrollbar { display: none; }
  .ev-filter-btn, .ev-filter-search { flex-shrink: 0; }
  .ev-filter-search input { width: 100px; }
}

/* --- Category / Programs Cards (reference: gallery.html) --- */
.ev-subtitle-bar {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  animation: none;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.ev-subtitle-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
  white-space: nowrap;
}
  align-items: center;
  gap: 5px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}
.live-badge i { font-size: 8px; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
/* --- Live stream buttons (event bar + home) --- */
.ev-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 7px 16px;
  border-radius: 24px;
  border: 2px solid #fff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(198,40,40,0);
  cursor: pointer;
  /* No animation by default. Animation only when .live-active (currently live). */
  animation: none;
}
.ev-live-btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(198,40,40,.5); }
.ev-live-btn i { animation: none; }
.ev-live-btn.live-active .ev-live-dot { animation: liveBlink 1.2s infinite; }
.ev-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4cff88;
  box-shadow: 0 0 8px #4cff88;
  flex: 0 0 9px;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.55); }
  70% { box-shadow: 0 0 0 12px rgba(229,57,53,0); }
}
@keyframes liveBlink {
  0%, 100% { background: #4cff88; box-shadow: 0 0 8px #4cff88; }
  50% { background: #94ffb8; box-shadow: 0 0 2px #94ffb8; }
}
@keyframes liveOsc {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}
/* --- Live selection popup (multiple lives) --- */
.ev-live-wrap { position: relative; display: inline-block; }
.ev-live-pop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
}
.ev-live-pop.open { display: flex; }
.ev-live-pop-box {
  background: #fff;
  color: #1a1a2e;
  width: min(92vw, 380px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.ev-live-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg,#1565c0,#0d47a1);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.ev-live-pop-close {
  background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.ev-live-pop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f1f4;
  transition: background .15s;
}
.ev-live-pop-item:hover { background: #f6f7ff; text-decoration: none; }
.ev-live-pop-ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%;
  background: #fbeaea;
  color: #c62828;
  display: flex; align-items: center; justify-content: center;
}
.ev-live-pop-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-live-pop-name { font-weight: 700; font-size: 13.5px; }
.ev-live-pop-time { font-size: 11.5px; color: #666; }
.ev-live-pop-dot {
  width: 11px; height: 11px; flex: 0 0 11px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 6px #dc2626;
  animation: livePopPulse 1.2s infinite;
}
@keyframes livePopPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.6); transform: scale(1); }
  70% { box-shadow: 0 0 0 9px rgba(220,38,38,0); transform: scale(1.08); }
}
.hm-live-btn { font-size: 12.5px; animation-duration: 2s; }
.hm-live-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-live-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform .2s, box-shadow .2s;
}
.hm-live-card-upcoming { opacity: 0.75; }
.hm-live-card-upcoming:hover { opacity: 0.9; }
.hm-live-card-completed { opacity: 0.65; }
.hm-live-card-completed:hover { opacity: 0.85; }
.completed-badge { background: #6b7280 !important; }
.upcoming-badge {
  background: #f59e0b !important;
  animation: none !important;
}
.upcoming-badge i { margin-right: 4px; }
.ev-live-btn.upcoming {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: default;
}
.hm-live-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.hm-live-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.hm-live-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: liveGlow 1.5s ease-in-out infinite;
}
.hm-live-badge .hm-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: hmLivePulse 1s ease-in-out infinite;
}
@keyframes hmLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hm-live-event {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hm-live-event:hover { color: #f0f0f0; text-decoration: none; }
.hm-live-event i { margin-right: 5px; color: #fbbf24; font-size: 13px; }
.hm-live-card-timer {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.hm-live-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #fbbf24);
  border-radius: 2px;
  animation: timerGrow 60s linear infinite;
  width: 0%;
}
@keyframes timerGrow { from { width: 0%; } to { width: 100%; } }
.hm-live-card-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}
.hm-live-card-stats i { margin-right: 4px; }
.hm-live-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ev-live-btn-active { animation: liveGlow 1.5s ease-in-out infinite; }
.ev-live-btn-upcoming { opacity: 0.75; }
.ev-live-btn-upcoming:hover { opacity: 1; }
.hm-live-card-bottom {
  margin-top: auto;
}
.hm-live-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hm-live-card-title a { color: #fff; text-decoration: none; }
.hm-live-card-title a:hover { color: #fbbf24; text-decoration: none; }
.hm-live-card-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 14px;
}
.hm-live-card-meta i { margin-right: 4px; }
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}
.hm-live-empty {
  text-align: center;
  color: #888;
  padding: 26px 0;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.hm-live-empty i { font-size: 30px; color: #ccc; display: block; margin-bottom: 8px; }
.ev-action-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.ev-action-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.ev-action-link:hover { background: #0d47a1; text-decoration: none; }

.cat-section { margin: 20px 0; }
.cat-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 16px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 80px;
  justify-content: center;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
  text-decoration: none;
}
.cat-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.cat-card p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.ev-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #999;
}
.ev-empty-state i.fa-images {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}
.ev-empty-state h3 {
  font-size: 18px;
  color: #555;
  margin: 0 0 8px;
}
.ev-empty-state p {
  font-size: 14px;
  color: #999;
  margin: 0 0 16px;
}
.ev-empty-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}
.ev-empty-meta span { white-space: nowrap; }
.ev-empty-meta i { color: var(--green); margin-right: 4px; }
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 16px 12px; }
}

/* ============================================================
   AIMTECH PREMIUM THEME (homepage + site-wide polish)
   ============================================================ */

body {
  font-family: 'Manrope', 'Noto Sans Malayalam', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-soft);
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-bottom: 1px solid #e6e6ef;
}
.site-title { color: #1565c0; }
.site-subtitle { color: var(--maroon); letter-spacing: 2px; }
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Logged-in avatar + profile dropdown */
.user-menu { position: relative; margin-left: auto; order: 3; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid #e3e3ec;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.user-menu-btn:hover { border-color: var(--navy); box-shadow: 0 4px 12px rgba(26,26,46,.08); }
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
.user-menu-name { font-size: 12px; font-weight: 700; color: var(--navy); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { color: var(--maroon); font-size: 12px; transition: transform .2s; }
.user-menu.open .user-caret { transform: rotate(180deg); }
.user-menu.open .user-menu-btn { border-color: var(--navy); }
.user-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 4px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e9e9f2;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26,26,46,.18);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 100;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ud-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #f0f0f6;
}
.ud-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  color: #fff; font-weight: 800; text-transform: uppercase; font-size: 14px;
}
.ud-name { display: flex; flex-direction: column; font-weight: 700; color: var(--navy); font-size: 13px; }
.ud-name small { color: #8a8aa3; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.user-dropdown > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.user-dropdown > a i { width: 14px; color: var(--maroon); }
.user-dropdown > a:hover { background: #f4f4fa; color: var(--maroon); text-decoration: none; }
.user-dropdown > a:last-child { border-top: 1px solid #f0f0f6; border-radius: 0 0 8px 8px; }
.header-user {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.hm-login-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #2b2b4a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.hm-login-btn:hover {
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(139, 0, 0, 0.25);
  transform: translateY(-1px);
}
.hm-login-btn.is-logout { background: #444; }
.hm-login-btn.is-logout:hover { background: var(--red); }
/* Banner replaces text brand */
.brand-banner { display: block; width: 100%; }
.header-banner-img { display: block; width: 100%; height: auto; border-radius: 6px; }
/* LOGIN button in the menu bar (shown when logged out) */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  padding: 5px 18px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-login-btn i { font-size: 11px; }
.nav-login-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); text-decoration: none; }

.top-bar { background: var(--navy); }
.top-login {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.top-login:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  text-decoration: none;
}
.top-user { color: #ffd54f; font-weight: 600; font-size: 12px; }
.top-phone {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.top-phone i { color: var(--green); font-size: 12px; }
.top-phone:hover { color: var(--yellow); text-decoration: none; }
.phone-trigger { position: relative; display: inline-block; }
.phone-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  z-index: 200;
}
.phone-pop.open { display: flex; animation: popIn .15s ease; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.phone-pop .pp {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}
.phone-pop .pp:hover { text-decoration: none; background: #f1f5f9; }
.phone-pop .pp-wa i { color: #25d366; font-size: 15px; }
.phone-pop .pp-call i { color: var(--maroon); font-size: 15px; }
.top-user {
  color: var(--yellow);
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
}

.site-nav {
  background: linear-gradient(90deg, var(--maroon-dk) 0%, var(--maroon) 55%, #a51212 100%);
}
.nav-toggle {
  order: 1;
}
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 22px;
  padding: 1px 3px 1px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.nav-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  width: 150px;
  color: var(--navy);
  font-family: inherit;
}
.nav-search input::placeholder { color: #999; }
.nav-search button {
  border: 0;
  background: var(--maroon);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  transition: background .2s;
}
.nav-search button:hover { background: var(--yellow); color: var(--navy); }

.hm-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section headers */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.sec-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sec-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}
.sec-view-all {
  color: var(--maroon);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.sec-view-all:hover { color: var(--maroon-dk); text-decoration: underline; }

.btn { border-radius: 10px; font-weight: 700; }
.btn.red {
  background: linear-gradient(135deg, var(--red), var(--maroon));
  color: #fff;
  border: 0;
}
.btn.red:hover { background: linear-gradient(135deg, var(--maroon-dk), #9b0808); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 12px; }

/* --- Featured news (static, no slider) --- */
.hm-hero {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 26px;
  padding: 30px;
  overflow: hidden;
}
.hm-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
}
.hm-cat-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hm-cat-badge.sm { font-size: 10px; padding: 3px 10px; }
.hm-hero-title {
  font-size: 30px;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 800;
}
.hm-hero-title a { color: var(--navy); }
.hm-hero-title a:hover { color: var(--maroon); text-decoration: none; }
.hm-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mut);
  font-size: 13px;
  flex-wrap: wrap;
}
.hm-hero-meta .dot { color: #ccc; }
.hm-hero-meta i { color: var(--green); }
.hm-hero-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 4px 0 6px;
}
.hm-hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
}
.hm-hero-media-link { display: block; }
.hm-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.feat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hm-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: rgba(255,255,255,0.85);
  font-size: 46px;
}
.hm-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform .2s;
}
.hm-hero-media:hover .hm-play,
.hm-media-item:hover .hm-play { transform: translate(-50%, -50%) scale(1.1); }

/* --- Top cards (below nav: EVENTS / NEWS / LIVE) --- */
.hm-topcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.hm-topcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hm-topcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  text-decoration: none;
  filter: brightness(1.1);
}
.hm-topcard.ev { background: linear-gradient(135deg, #7b1111, #a52020); }
.hm-topcard.news { background: linear-gradient(135deg, #1a1a5e, #2a2a8e); }
.hm-topcard.live { background: linear-gradient(135deg, #cc1100, #ee3300); }
.hm-topcard-icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.hm-topcard-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-topcard-label {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hm-topcard-text {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

/* --- Quick grid (2x2 cards after ALL LIVE) --- */
.hm-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hm-qcard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--card-shadow);
  min-height: 70px;
}
.hm-qcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-lg);
  text-decoration: none;
}
.hm-qcard-icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.hm-qcard-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hm-qcard-text strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hm-qcard-text span {
  font-size: 11px;
  color: var(--mut);
  font-weight: 500;
}
.hm-qcard-arrow {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
}
.hm-qcard:hover .hm-qcard-arrow {
  color: var(--maroon);
}

/* --- Latest news --- */
.hm-section { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); padding: 20px; }
.hm-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.hm-latest-big {
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
}
.hm-latest-big .hm-latest-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  margin-bottom: 20px;
  line-height: 0;
  flex: 1;
  min-height: 0;
}
.hm-latest-big .hm-latest-thumb img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hm-latest-big .hm-latest-thumb:hover img {
  transform: scale(1.02);
}
.hm-latest-big .hm-latest-thumb > i {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: rgba(255,255,255,0.85);
  font-size: 40px;
}
.hm-latest-big .hm-latest-body { padding: 0 4px; }
.hm-latest-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
}
.hm-latest-item {
  display: grid;
  gap: 0;
  padding: 12px 0;
  border-bottom: 0;
  align-items: flex-start;
}
.hm-latest-item:last-child { border-bottom: 0; }
.hm-latest-item-thumb {
  position: relative;
  margin-bottom: 8px;
}
.hm-latest-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.hm-latest-item-body h4 { margin: 4px 0 0; padding: 0; font-size: 14px; line-height: 1.35; font-weight: 700; }
.hm-latest-item-body h4 a { color: var(--navy); text-decoration: none; }
.hm-latest-item-body h4 a:hover { color: var(--maroon); text-decoration: none; }
.hm-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mut);
  font-size: 12px;
  margin-top: 6px;
}
.hm-item-meta i { color: var(--green); font-size: 11px; }
.hm-item-meta .dot { color: #ccc; }

.hm-item-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mut);
  font-size: 12px;
  margin-bottom: 6px;
}
.hm-meta-date { font-weight: 600; padding-left: 0; padding-right: 4px; }
.hm-meta-sep { color: #ccc; }
.hm-meta-cat { background: var(--navy); color: #fff; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.hm-meta-author { color: var(--mut); }
.hm-meta-author i { color: var(--green); font-size: 11px; margin-right: 2px; }

/* --- Upcoming events --- */
.hm-events-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.hm-event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}
.hm-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-lg);
  text-decoration: none;
}
.hm-event-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--maroon) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 34px;
  overflow: hidden;
}
.hm-event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-event-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 2;
}
.hm-event-live {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  animation: livePulse 1.5s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hm-event-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.hm-event-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.hm-event-body h3 { font-size: 14px; color: var(--text); line-height: 1.35; margin: 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-event-body p { font-size: 11px; color: var(--mut); display: flex; align-items: center; gap: 5px; margin: 0; }
.hm-event-body p i { color: var(--green); font-size: 11px; }
.hm-event-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.hm-event-btn {
  display: inline-block;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid var(--maroon);
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
  transition: background .18s, color .18s;
}
.hm-event-btn:hover { background: var(--maroon); color: #fff; }
.hm-event-card:hover .hm-event-btn { color: #fff; background: var(--maroon); }
.hm-event-views {
  font-size: 11px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 4px;
}
.hm-event-views i { font-size: 11px; }
.hm-events-empty {
  text-align: center;
  color: var(--mut);
  padding: 26px 10px;
}
.hm-events-empty i { font-size: 34px; color: #ccc; }
.hm-events-empty p { margin: 10px 0 16px; }

/* --- All Live section --- */
.hm-section-alllive { background: linear-gradient(180deg, #fff8f8 0%, #fff 100%); }
.hm-alllive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hm-alllive-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--card-shadow);
}
.hm-alllive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-lg);
  text-decoration: none;
}
.hm-alllive-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 28px;
  overflow: hidden;
}
.hm-alllive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-live-pulse {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c62828;
  color: #fff;
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  z-index: 2;
}
.hm-live-pulse .hm-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
.hm-live-badge-static {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c62828;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  z-index: 2;
}
.hm-live-badge-static.completed { background: #6b7280; }
.hm-live-badge-static.upcoming { background: #f59e0b; }
.hm-alllive-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.hm-alllive-body h4 { font-size: 13.5px; color: var(--navy); line-height: 1.35; margin: 0; }
.hm-alllive-body h4 a { color: inherit; }
.hm-alllive-body h4 a:hover { color: var(--red); }
.hm-alllive-empty { text-align: center; color: var(--mut); padding: 26px 10px; }
.hm-alllive-empty i { font-size: 34px; color: #ccc; }
.hm-alllive-empty p { margin: 10px 0 16px; }

/* --- Event media selector popup --- */
.evm-popup-overlay{position:fixed;inset:0;background:rgba(20,20,40,.6);display:none;align-items:center;justify-content:center;z-index:9999;backdrop-filter:blur(2px)}
.evm-popup-overlay.open{display:flex}
.evm-popup{background:#dc2626;color:#fff;border-radius:18px;padding:32px 28px;max-width:380px;width:90%;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.4);position:relative;animation:evmFade .25s ease}
@keyframes evmFade{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
.evm-close{position:absolute;top:10px;right:14px;background:rgba(255,255,255,.2);border:none;color:#fff;font-size:24px;line-height:1;width:34px;height:34px;border-radius:50%;cursor:pointer}
.evm-close:hover{background:rgba(255,255,255,.35)}
.evm-icon{font-size:40px;margin-bottom:10px}
.evm-popup h3{margin:0 0 8px;font-size:20px;color:#fff}
.evm-msg{font-size:14px;color:rgba(255,255,255,.9);margin:0 0 18px;line-height:1.5}
.evm-popup select{width:100%;padding:12px 14px;border-radius:10px;border:2px solid rgba(255,255,255,.4);background:#fff;color:#1e293b;font-size:14px;margin-bottom:16px}
.evm-go{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#dc2626;padding:11px 26px;border-radius:10px;font-weight:800;text-decoration:none;font-size:14px}
.evm-go:hover{background:#fef2f2;text-decoration:none}
@media(max-width:480px){.evm-popup{padding:26px 18px}}

/* --- Event media --- */
.hm-media-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.hm-tab {
  border: 2px solid #e2e2ee;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 24px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all .18s;
  font-family: inherit;
}
.hm-tab i { margin-right: 6px; }
.hm-tab:hover { border-color: var(--maroon); color: var(--maroon); }
.hm-tab.active {
  background: linear-gradient(135deg, var(--maroon), var(--red));
  border-color: var(--maroon);
  color: #fff;
}
.hm-media-body { display: none; }
.hm-media-body.active { display: block; }
.hm-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hm-media-grid-video { grid-template-columns: repeat(4, 1fr); }
.hm-media-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  line-height: 0;
}
.hm-media-item a { display: block; }
.hm-media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s;
}
.hm-media-grid-video .hm-media-item img { aspect-ratio: 16 / 10; }
.hm-media-item:hover img { transform: scale(1.05); }
.hm-media-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.hm-media-item figcaption strong { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.hm-media-item figcaption small { font-size: 11px; color: var(--yellow-soft); }
.hm-view-icon {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity .2s;
}
.hm-media-item:hover .hm-view-icon { opacity: 1; }
.hm-media-empty { padding: 20px; text-align: center; color: var(--mut); }

/* --- Notice / Subscribe bar --- */
.hm-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--maroon) 0%, #a51212 100%);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(139, 0, 0, 0.18);
  flex-wrap: wrap;
}
.hm-notice-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: bellShake 2s ease-in-out infinite;
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(4deg); }
}
.hm-notice p { flex: 1; min-width: 200px; font-size: 13.5px; font-weight: 600; margin: 0; }
.hm-notice-btn {
  background: #fff;
  color: var(--maroon);
  font-weight: 800;
  font-size: 12px;
  padding: 9px 20px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.hm-notice-btn:hover { background: var(--yellow); color: var(--navy); text-decoration: none; transform: translateY(-1px); }

/* --- Community features --- */
.hm-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hm-feature {
  background: linear-gradient(160deg, var(--navy) 0%, #242447 100%);
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.hm-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 213, 79, 0.14);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hm-feature h3 { font-size: 14px; font-weight: 800; margin: 0; }
.hm-feature p { font-size: 12px; color: #b8b8d0; margin: 0; }

/* --- Premium footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #12122a 100%);
  color: #cfcfdd;
  padding: 44px 0 0;
  margin-top: 20px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 30px;
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.25fr;
  gap: 34px;
}
.footer-col h4 {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 1.6px;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.footer-brand {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.footer-about p { font-size: 13px; line-height: 1.8; margin: 10px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #cfcfdd; font-size: 13px; }
.footer-links a:hover { color: var(--yellow); text-decoration: none; padding-left: 3px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: transform .18s, box-shadow .18s;
}
.social-circle:hover { color: #fff; transform: translateY(-3px); text-decoration: none; }
.social-circle.facebook { background: #1877f2; }
.social-circle.facebook:hover { box-shadow: 0 8px 16px rgba(24,119,242,0.4); }
.social-circle.youtube { background: #ff0000; }
.social-circle.youtube:hover { box-shadow: 0 8px 16px rgba(255,0,0,0.4); }
.social-circle.whatsapp { background: #25d366; }
.social-circle.whatsapp:hover { box-shadow: 0 8px 16px rgba(37,211,102,0.4); }
.social-circle.website { background: #1565c0; }
.social-circle.website:hover { box-shadow: 0 8px 16px rgba(21,101,192,0.4); }
.social-circle.mobile { background: #2e7d32; }
.social-circle.mobile:hover { box-shadow: 0 8px 16px rgba(46,125,50,0.4); }
.social-circle.email { background: #ea4335; }
.social-circle.email:hover { box-shadow: 0 8px 16px rgba(234,67,53,0.4); }
.footer-person { color: var(--yellow); font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.footer-person i { margin-right: 6px; }
.footer-contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.footer-contact { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; }
.fc-name { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.fc-design { color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin: 0 0 10px; }
.fc-design-empty { margin: 0; }
.fc-actions { display: flex; gap: 8px; }
.fc-a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 14px; transition: transform .18s, box-shadow .18s; }
.fc-a:hover { color: #fff; transform: translateY(-2px); text-decoration: none; }
.fc-call { background: #2e7d32; }
.fc-call:hover { box-shadow: 0 4px 10px rgba(46,125,50,0.45); }
.fc-wa { background: #25d366; }
.fc-wa:hover { box-shadow: 0 4px 10px rgba(37,211,102,0.45); }
.fc-mail { background: #ea4335; }
.fc-mail:hover { box-shadow: 0 4px 10px rgba(234,67,53,0.45); }
.footer-phone { font-size: 13px; margin: 8px 0; }
.footer-phone i { color: var(--yellow); margin-right: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}
.footer-bottom .footer-credit { color: #99a; }
.footer-credit strong { color: var(--yellow); }

/* --- Search page --- */
.search-page { max-width: 900px; margin: 0 auto; }
.search-title { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.search-title span { color: var(--maroon); }
.search-sub {
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.search-page .hm-latest-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(26,26,46,0.06); }
.search-ev {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(26,26,46,0.06);
}
.search-ev:hover { border-color: var(--maroon); text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hm-quick { grid-template-columns: repeat(2, 1fr); }
  .hm-events-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-alllive-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-live-wrap { grid-template-columns: repeat(3, 1fr); }
  .hm-media-grid, .hm-media-grid-video { grid-template-columns: repeat(2, 1fr); }
  .hm-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
    order: 1;
    flex: 1;
    width: auto;
    margin: 4px 0;
  padding: 1px 3px 1px 14px;
  }
  .nav-links.open + .nav-search { display: flex; }
  .nav-search input { width: 100%; }
  .nav-toggle { order: 0; }
  .hm-hero { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .hm-hero-title { font-size: 22px; }
  .hm-latest-grid { grid-template-columns: 1fr; }
  .hm-events-grid { grid-template-columns: 1fr; }
  .hm-alllive-grid { grid-template-columns: 1fr; }
  .hm-live-wrap { grid-template-columns: 1fr; }
  .hm-media-grid, .hm-media-grid-video { grid-template-columns: repeat(2, 1fr); }
  .hm-features { grid-template-columns: repeat(2, 1fr); }
  .hm-section { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .top-right { flex-wrap: wrap; justify-content: flex-end; }
  .hm-topcards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hm-topcard { padding: 10px 8px; min-height: 52px; gap: 8px; border-radius: 10px; justify-content: center; flex-direction: row; }
  .hm-topcard-icon { flex: 0 0 30px; height: 30px; border-radius: 8px; font-size: 14px; }
  .hm-topcard-label { font-size: 12px; }
  .hm-topcard-text { display: none; }
  .hm-latest-big .hm-latest-thumb img { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .hm-main { padding: 14px 12px 28px; gap: 16px; }
  .hm-section { padding: 14px; border-radius: 16px; }
  .hm-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hm-qcard { padding: 14px 12px; gap: 10px; }
  .hm-qcard-icon { flex: 0 0 40px; height: 40px; font-size: 17px; border-radius: 10px; }
  .hm-qcard-text strong { font-size: 13px; }
  .hm-qcard-text span { font-size: 11px; }
  .hm-latest-item-thumb { flex: 0 0 88px; height: 64px; }
  .hm-alllive-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-alllive-body { padding: 8px 10px 10px; }
  .hm-alllive-body h4 { font-size: 12px; }
  .hm-media-grid, .hm-media-grid-video { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-features { grid-template-columns: 1fr; gap: 0; }
  .hm-feature { padding: 16px 14px; }
  .sec-head { align-items: center; gap: 8px; }
  .sec-title { font-size: 16px; }
  .sec-title::after { width: 36px; height: 3px; margin-top: 5px; }
  .hm-notice { padding: 14px; border-radius: 14px; gap: 12px; }
  .hm-notice p { font-size: 13px; }
  .hm-notice-btn { width: 100%; text-align: center; padding: 10px 16px; }
  .hm-overlay h3 { font-size: 13px; }
  .hm-overlay p { font-size: 11px; }
  .hm-latest-grid { gap: 16px; }
  .hm-latest-big .hm-latest-thumb img { aspect-ratio: 16/9; }
  .hm-latest-body h3 { font-size: 16px; }
  .hm-item-meta-row { font-size: 11px; }
  .top-phone { font-size: 12px; }
  .top-date { display: none; }
  .hm-live-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hm-live-event { font-size: 13px; }
  .hm-live-btns { width: 100%; }
  .hm-live-btn { flex: 1; text-align: center; }
  .hm-events-grid { grid-template-columns: 1fr; gap: 12px; }
  .hm-event-body { padding: 10px 12px 12px; }
  .hm-event-body h3 { font-size: 13px; }
  .hm-event-btn { font-size: 12px; padding: 6px 12px; margin-top: 6px; }
  .hm-event-chip { font-size: 10px; padding: 3px 8px; }
}

@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .user-menu { order: 2; margin-left: auto; margin-top: 1px; margin-bottom: 1px; }
  .user-avatar { width: 20px; height: 20px; border-radius: 750%; font-size: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-subtitle-bar { font-size: 14px; padding: 12px 14px; flex-wrap: wrap; }
  .ev-action-links { flex-direction: column; }
  .ev-action-link { padding: 11px; }
  .article { padding: 14px; }
  .article h1 { font-size: 19px; }
  .gallery-grid, .gallery-grid.three-col { grid-template-columns: repeat(2, 1fr); }
  .social-share { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .hm-hero { padding: 18px; }
  .site-body { padding: 14px 0; }
  .site-body-inner { gap: 18px; }
  .hm-latest-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
  .hm-latest-big { grid-row: auto; }
  .hm-latest-big .hm-latest-thumb img { aspect-ratio: 16/9; height: auto; }
  .hm-latest-side { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hm-latest-item img { height: 90px; }
  .hm-latest-item-body h4 { font-size: 13px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid.three-col { grid-template-columns: 1fr; }
  .gthumb img { height: 200px; }
  .gthumb-btn { font-size: 11px; padding: 5px 8px; }
  .gthumb-stats { font-size: 11px; padding: 5px 6px; }
  .lightbox iframe, .lightbox video { width: 100%; height: 56vw; max-height: 60vh; }
  .lightbox .modal-close { top: 6px; right: 8px; width: 34px; height: 34px; font-size: 22px; line-height: 34px; }
  .post-card img { height: 170px; }
  .post-card-body h3 { font-size: 16px; }
  .hm-latest-side { grid-template-columns: 1fr; gap: 10px; }
  .hm-latest-item { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
  .hm-latest-item img { height: 70px; border-radius: 8px; }
  .hm-latest-item-thumb { margin-bottom: 0; }
  .hm-latest-item-body h4 { font-size: 13px; }
  .ev-subtitle-bar { font-size: 13px; padding: 11px 12px; }
  .article { padding: 12px; }
  .article h1 { font-size: 18px; }
  .site-body-inner { padding: 0 12px; }
  .hm-main { padding: 16px 12px 30px; }
}

/* Nav LOGIN on mobile: sits after search, same slot as the avatar */
@media (max-width: 768px) {
  .nav-login-btn { order: 3; margin-left: auto; margin-top: 0; margin-bottom: 0; padding: 1px 5px; font-size: 11px; gap: 10px; }
  .nav-inner { height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .nav-toggle { display: inline-flex; order: 0; flex: 0 0 auto; }
  .nav-links { order: 1; }
  .user-menu { order: 3; margin-left: auto; }
}

/* Event filter bar (ഫോട്ടോ / വീഡിയോ / എല്ലാം / Face / പുതുക്കുക + Search): PC + Mobile */
.ev-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; padding: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.ev-filter-bar .ev-filter-btn { flex: none; justify-content: center; font-size: 13px; padding: 8px 16px; }
.ev-filter-bar .ev-filter-search { flex: 0 0 auto; height: 38px; width: auto; min-width: 150px; }
.ev-filter-bar .ev-filter-search input { width: 150px; }
.ev-filter-btn.active { background: #0d47a1; color: #fff; border-color: #0d47a1; }
@media (max-width: 768px) {
  .ev-filter-bar { flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; padding: 8px; }
  .ev-filter-bar .ev-filter-btn { flex: 1 1 calc(33.333% - 6px); min-width: 0; font-size: 11px; padding: 9px 6px; white-space: nowrap; justify-content: center; }
  .ev-filter-bar .ev-filter-btn i { display: none; }
  .ev-filter-bar .ev-filter-search { flex: 1 0 100%; width: 100%; height: 36px; padding: 0 10px; }
  .ev-filter-bar .ev-filter-search i { display: none; }
  .ev-filter-bar .ev-filter-search input { font-size: 12px; }
}

/* Mobile nav: search lives inside the dropdown menu, top row = ☰ (left) + LOGIN (right) */
@media (max-width: 768px) {
  .nav-links .nav-search { display: flex; margin: 10px 12px; padding: 4px 4px 4px 14px; }
  .nav-links .nav-search input { width: 100%; font-size: 13px; }
}

/* Mobile footer QUICK LINKS: compact pills that fit on one/two lines */
@media (max-width: 768px) {
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .footer-links li { margin-bottom: 0; }
  .footer-links a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #f0f0f5;
    font-size: 12px;
    white-space: nowrap;
  }
  .footer-links a:hover { background: rgba(255,255,255,.14); padding-left: 14px; color: var(--yellow); }
}
/* --- Secret Event Gate --- */
.ev-secret-badge { position:absolute; top:10px; left:10px; z-index:2; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--maroon); color:#fff; font-size:11px; }
.secret-gate { max-width:560px; margin:28px auto; background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:32px 24px; text-align:center; box-shadow:0 4px 18px rgba(0,0,0,.05); }
.secret-gate .sg-icon { width:60px; height:60px; border-radius:50%; background:var(--maroon); color:#fff; font-size:24px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:14px; }
.secret-gate .sg-icon.ok { background:#16a34a; }
.secret-gate h2 { margin:0 0 8px; font-size:20px; color:var(--ink); }
.secret-gate p { color:#5b6472; font-size:14px; margin:0 0 20px; line-height:1.6; }
.sg-form { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.sg-form input[type=text], .sg-form input[type=tel] { flex:1 1 220px; padding:8px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; }
.sg-form input:focus { outline:none; border-color:var(--maroon); }
.sg-request { margin-top:14px; background:transparent; color:var(--maroon); border:1px solid var(--maroon); width:100%; }
.sg-request:hover { background:var(--maroon); color:#fff; }
.sg-form-wrap form { flex-direction:column; gap:8px; }
.sg-form-wrap form input { width:100%; padding:8px 12px; height:auto; }
.sg-form-wrap .btn { width:100%; }

/* --- Sticky public sidebar --- */
.site-sidebar{position:sticky;top:70px;align-self:flex-start}

/* --- Footer: uniform centred quick-link buttons + centred columns --- */
.footer-col{display:flex;flex-direction:column;align-items:center;text-align:center}
.footer-col h4{text-align:center;width:100%}
.footer-brand{text-align:center}
.footer-about p{text-align:center}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;width:100%}
.footer-links li{margin-bottom:0}
.footer-links a{display:flex;align-items:center;justify-content:center;min-width:130px;min-height:42px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#f0f0f5;font-size:13px;text-align:center;white-space:nowrap}
.footer-links a:hover{background:rgba(255,255,255,.14);color:var(--yellow);padding-left:14px;text-decoration:none}
.footer-social{justify-content:center;margin:0 auto 16px}
.footer-phone{text-align:center;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
/* Quick-upload floating action button (public, logged-in only) */
.aem-fab{position:fixed;right:20px;bottom:20px;z-index:95}
.aem-fab-toggle{width:56px;height:56px;border-radius:50%;border:none;background:var(--maroon);color:#fff;font-size:24px;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;transition:transform .2s}
.aem-fab-toggle:hover{filter:brightness(1.08)}
.aem-fab.open .aem-fab-toggle{transform:rotate(45deg)}
.aem-fab-menu{position:absolute;right:0;bottom:64px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18);padding:6px;min-width:240px;display:none}
.aem-fab.open .aem-fab-menu{display:block}
.aem-fab-title{font-size:12px;color:#64748b;padding:8px 10px;border-bottom:1px solid #f1f5f9;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.aem-fab-title i{margin-right:6px;color:var(--maroon)}
.aem-fab-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#1e293b;font-size:14px;font-weight:500}
.aem-fab-menu a i{width:18px;text-align:center;color:var(--maroon)}
.aem-fab-menu a:hover{background:#f1f5f9;text-decoration:none}
@media (max-width:768px){.aem-fab{right:14px;bottom:14px}}

/* Public upload FAB (event pages when public_upload enabled) */
.ev-upload-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fabPulse 2s ease-in-out infinite;
}
.ev-upload-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(22,163,74,0.5);
  text-decoration: none;
  color: #fff;
}
.ev-upload-fab i { font-size: 20px; }
.ev-upload-fab-admin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  animation: fabAdminPulse 2s ease-in-out infinite;
}
.ev-upload-fab-admin:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,0.5);
  transform: translateY(-3px) scale(1.05);
}
.ev-upload-fab-admin i { font-size: 22px; }
@keyframes fabAdminPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
  50% { box-shadow: 0 4px 24px rgba(124,58,237,0.6), 0 0 0 6px rgba(124,58,237,0.15); }
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(22,163,74,0.4); }
  50% { box-shadow: 0 4px 24px rgba(22,163,74,0.6), 0 0 0 6px rgba(22,163,74,0.15); }
}
@media (max-width: 600px) {
  .ev-upload-fab {
    bottom: 80px;
    right: 16px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* --- Mobile bottom navigation bar --- */
.m-bottom-nav{display:none}
@media (max-width:768px){
  .m-bottom-nav{
    display:flex;
    position:fixed;
    bottom:0;left:0;right:0;
    z-index:999;
    background:#1a1a2e;
    border-top:1px solid rgba(255,255,255,.1);
    padding:6px 0 env(safe-area-inset-bottom,6px);
    justify-content:space-around;
    align-items:center;
    box-shadow:0 -2px 12px rgba(0,0,0,.3);
  }
  .m-bnav-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-decoration:none;
    color:#9ca3af;
    font-size:10px;
    font-weight:500;
    padding:4px 8px;
    border-radius:8px;
    transition:color .2s;
    min-width:0;
    flex:1;
  }
  .m-bnav-item i{font-size:20px;line-height:1}
  .m-bnav-item span{line-height:1;white-space:nowrap}
  .m-bnav-item:active,.m-bnav-item.active{color:var(--yellow)}
  body{padding-bottom:70px}
}

/* --- Footer LIVE section --- */
.ftr-live-col h4{display:flex;align-items:center;gap:8px}
.ftr-live-dot{width:10px;height:10px;border-radius:50%;background:#dc2626;display:inline-block;animation:ftrLivePulse 1.5s ease-in-out infinite}
@keyframes ftrLivePulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(220,38,38,.6)}50%{opacity:.8;box-shadow:0 0 0 8px rgba(220,38,38,0)}}
.ftr-live-list{list-style:none;margin:0;padding:0}
.ftr-live-list li{margin-bottom:10px}
.ftr-live-list li a{color:#cfcfdd;font-size:13px;display:block;line-height:1.5;text-decoration:none;transition:color .15s}
.ftr-live-list li a:hover{color:var(--yellow);padding-left:3px}
.ftr-live-date{display:block;font-size:11px;color:#888;margin-top:2px}

/* --- Event live clock --- */
.ev-live-clock{font-family:'Courier New',monospace;font-size:13px;font-weight:700;color:var(--maroon);background:#f8f0f0;padding:2px 8px;border-radius:4px;margin-right:8px;white-space:nowrap}