/* ==========================================================================
   WAYAMBA JANAKALA KENDRAYA - COMPONENTS STYLESHEET (PROFESSIONAL EDITION)
   Specific components: Org Chart, Projects Cards, Outlets Showcase,
   Filterable Gallery, Lightbox Modal, Interactive Map Locator, Roadmaps
   ========================================================================== */

/* ==========================================================================
/* ==========================================================================
   1. ORGANIZATION STRUCTURE (SECTION 6) - EXACT PDF HIERARCHY
   ========================================================================== */
.org-chart-wrapper {
  background: #FFFDF9;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--parchment-border);
  position: relative;
}

.org-header-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--gold-400);
}

.org-tools-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.org-tools-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.org-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: #FFF;
  color: var(--maroon-800);
  border: 1.5px solid var(--gold-600);
}

.org-action-btn:hover {
  background: var(--gold-600);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.org-action-btn.btn-primary {
  background: var(--maroon-800);
  color: #FFF;
  border-color: var(--maroon-800);
}

.org-action-btn.btn-primary:hover {
  background: var(--maroon-900);
}

.org-scroll-area {
  overflow-x: auto;
  padding: 20px 10px 30px;
  -webkit-overflow-scrolling: touch;
}

.org-pdf-tree {
  min-width: 980px;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* Nodes Styling directly reflecting the PDF colors */
.pdf-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
  color: #FFF;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 1.35;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Color Themes */
.pdf-box.blue {
  background: #0E4369;
  border-color: #175785;
}

.pdf-box.brown {
  background: #A8522D;
  border-color: #C06138;
}

.pdf-box.dark-brown {
  background: #5A3723;
  border-color: #72462D;
}

/* Vertical Stems */
.pdf-stem-v {
  width: 3px;
  height: 24px;
  background: #0E4369;
  margin: 0 auto;
}

.pdf-stem-v.brown {
  background: #A8522D;
}

.pdf-stem-v.dark-brown {
  background: #5A3723;
}

.pdf-stem-v.short {
  height: 16px;
}

/* Specific Tiers */
.tier-board {
  min-width: 240px;
  font-size: 1.08rem;
  padding: 14px 24px;
}

.tier-md {
  min-width: 250px;
  font-size: 1.08rem;
  padding: 14px 24px;
}

/* Horizontal Split between Wings */
.wings-split-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wings-h-bar {
  width: 66%;
  height: 3px;
  background: #0E4369;
  position: relative;
  display: flex;
}

.wings-h-bar-left {
  width: 50%;
  height: 100%;
  background: #0E4369;
}

.wings-h-bar-right {
  width: 50%;
  height: 100%;
  background: #A8522D;
}

.wings-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 40px;
  margin-top: 0;
}

/* Left Wing: Finance (Blue) */
.wing-finance {
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wing-finance .fin-top-box {
  width: 100%;
  max-width: 260px;
}

.wing-finance .fin-h-bar {
  width: 80%;
  height: 3px;
  background: #0E4369;
}

.wing-finance .fin-sub-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.wing-finance .fin-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wing-finance .fin-sub-box {
  width: 100%;
  min-width: 125px;
  font-size: 0.88rem;
  padding: 10px 8px;
}

/* Right Wing: Administration (Brown) */
.wing-admin {
  flex: 0 0 62%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wing-admin .admin-top-box {
  width: 100%;
  max-width: 260px;
}

.wing-admin .ao-box {
  width: 100%;
  max-width: 220px;
}

.admin-4cols-h-bar {
  width: 88%;
  height: 3px;
  background: #A8522D;
}

.admin-4cols-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.admin-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 115px;
}

.admin-col .pdf-box {
  width: 100%;
  font-size: 0.86rem;
  padding: 10px 6px;
}

/* Bottom Staff Section */
.staff-full-section {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-h-bar {
  width: 90%;
  height: 3px;
  background: #5A3723;
}

.staff-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

.staff-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staff-col .pdf-box {
  width: 100%;
  font-size: 0.92rem;
  padding: 12px 6px;
}

/* Official PDF Image Expand Panel */
.org-image-expand-panel {
  display: none;
  margin-top: 30px;
  padding: 24px;
  background: #FFF;
  border: 2px dashed var(--gold-500);
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.org-image-expand-panel.active {
  display: block;
}

.org-image-expand-panel img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--parchment-border);
}

.org-image-expand-panel h5 {
  font-size: 1.15rem;
  color: var(--maroon-900);
  margin-bottom: 16px;
  font-weight: 700;
}

/* ==========================================================================
   2. KEY INCOME-GENERATING PROJECTS (SECTION 8)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-category-card {
  background: var(--parchment-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--parchment-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card-header {
  padding: 30px 26px 24px;
  position: relative;
  color: #FFF;
}

.project-category-card:nth-child(1) .project-card-header {
  background: linear-gradient(135deg, var(--terracotta-700), var(--maroon-800));
}

.project-category-card:nth-child(2) .project-card-header {
  background: linear-gradient(135deg, var(--green-700), var(--maroon-900));
}

.project-category-card:nth-child(3) .project-card-header {
  background: linear-gradient(135deg, var(--gold-700), var(--maroon-800));
}

.project-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-card-header h3 {
  color: #FFF;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.project-card-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.project-item-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--gold-400);
}

.project-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--parchment-border);
}

.project-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maroon-800);
  transition: var(--transition);
}

.project-cta-link:hover {
  color: var(--terracotta-600);
  gap: 10px;
}

/* ==========================================================================
   3. OUR OUTLETS (SECTION 9)
   ========================================================================== */
.outlets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.outlet-card {
  background: var(--parchment-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--parchment-border);
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: var(--transition);
}

.outlet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-600);
}

.outlet-img-col {
  position: relative;
  overflow: hidden;
}

.outlet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.outlet-card:hover .outlet-img {
  transform: scale(1.08);
}

.outlet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--maroon-900);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-500);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.outlet-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.outlet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.outlet-name {
  font-size: 1.25rem;
  color: var(--maroon-800);
  line-height: 1.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-badge.open {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.status-badge.closed {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.outlet-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta-700);
  margin-bottom: 12px;
}

.outlet-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.outlet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--parchment-border);
  padding-top: 14px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.outlet-hours {
  color: var(--green-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.outlet-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.outlet-call-btn {
  color: var(--maroon-800);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--parchment-alt);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--parchment-border);
}

.outlet-call-btn:hover {
  background: var(--gold-100);
  border-color: var(--gold-600);
}

.outlet-map-link {
  color: var(--terracotta-600);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.outlet-map-link:hover {
  color: var(--maroon-800);
}

/* Interactive Map Overview Box */
.map-overview-box {
  background: linear-gradient(135deg, var(--maroon-950), var(--maroon-800));
  border-radius: var(--radius-lg);
  padding: 38px;
  color: #FFF;
  border: 2px solid var(--gold-600);
  box-shadow: var(--shadow-lg);
}

.map-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.map-overview-header h3 {
  color: var(--gold-300);
  font-size: 1.55rem;
}

.map-pins-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.map-pin-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 155, 43, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
  cursor: pointer;
}

.map-pin-card:hover, .map-pin-card.active {
  background: rgba(216, 155, 43, 0.22);
  border-color: var(--gold-400);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.pin-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--maroon-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.pin-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.pin-loc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   4. GALLERY & LIGHTBOX (SECTION 10)
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--parchment-card);
  border: 1.5px solid var(--parchment-border);
  color: var(--text-dark);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--gold-100);
  border-color: var(--gold-600);
  color: var(--maroon-800);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-900));
  color: var(--gold-300);
  border-color: var(--gold-500);
  box-shadow: 0 4px 14px rgba(79, 14, 22, 0.28);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.gallery-item {
  background: var(--parchment-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--parchment-border);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-600);
}

.gallery-thumb-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #200508;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.1);
}

.gallery-overlay-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(30, 7, 10, 0.8);
  backdrop-filter: blur(4px);
  color: var(--gold-300);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 155, 43, 0.45);
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(216, 155, 43, 0.92);
  color: var(--maroon-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-meta {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--maroon-800);
  margin-bottom: 6px;
  line-height: 1.35;
}

.gallery-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.gallery-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--parchment-alt);
  color: var(--maroon-900);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--parchment-border);
  transition: var(--transition);
  margin-top: auto;
}

.gallery-book-btn:hover {
  background: var(--gold-600);
  color: #FFF;
  border-color: var(--gold-700);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 2, 4, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--gold-400);
  transform: scale(1.15);
}

.lightbox-image-box {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--gold-600);
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  margin-top: 18px;
  color: #FFF;
  text-align: center;
}

.lightbox-caption-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.lightbox-caption-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(30, 7, 10, 0.8);
  color: var(--gold-300);
  border: 1px solid var(--gold-500);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn:hover {
  background: var(--gold-600);
  color: var(--maroon-900);
}

.lightbox-prev {
  left: -65px;
}

.lightbox-next {
  right: -65px;
}

/* ==========================================================================
   5. INSTITUTIONAL NEWS & SPECIAL EVENTS COMPONENT
   Featuring: Wayamba Abhiman Art & Craft Fest 2026
   ========================================================================== */

/* Navigation Badge */
.nav-news-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-news-badge {
  background: linear-gradient(135deg, #E63946, #D89B2B);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s infinite ease-in-out;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; box-shadow: 0 0 12px rgba(216, 155, 43, 0.8); }
}

/* Floating Side News Widget (Right Side Protruding Tab) */
.side-news-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1090;
}

.side-news-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--maroon-900), var(--maroon-700));
  color: var(--gold-300);
  border: 1.5px solid var(--gold-500);
  border-right: none;
  padding: 13px 18px;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  box-shadow: -4px 6px 25px rgba(52, 7, 12, 0.35);
  transition: var(--transition);
  font-family: var(--font-sinhala);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.side-news-tab:hover {
  background: linear-gradient(135deg, var(--maroon-800), var(--terracotta-700));
  color: #FFF;
  transform: translateX(-6px);
  box-shadow: -8px 8px 30px rgba(168, 44, 57, 0.45);
}

.side-tab-pulse {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  background-color: #48BB78;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
  animation: pulseDot 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
  to {
    box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
  }
}

.side-tab-icon {
  font-size: 1.25rem;
  animation: wiggleBell 3s infinite ease-in-out;
}

@keyframes wiggleBell {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-15deg); }
  90% { transform: rotate(15deg); }
  95% { transform: rotate(-10deg); }
}

.side-tab-text {
  letter-spacing: 0.3px;
}

.side-tab-badge {
  background: var(--gold-500);
  color: var(--maroon-950);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Side Drawer Overlay Backdrop */
.side-news-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 4, 7, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1091;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.side-news-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Side Drawer Panel */
.side-news-drawer {
  position: fixed;
  top: 0;
  right: -490px;
  width: 460px;
  max-width: 92vw;
  height: 100vh;
  background: #FFFDF9;
  z-index: 1092;
  box-shadow: -10px 0 40px rgba(32, 4, 7, 0.35);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 2px solid var(--gold-500);
}

.side-news-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--maroon-900), var(--maroon-800));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-500);
  flex-shrink: 0;
}

.drawer-header-info {
  display: flex;
  flex-direction: column;
}

.drawer-tag {
  font-size: 0.75rem;
  color: var(--gold-400);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin: 0;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(216, 155, 43, 0.4);
  color: var(--gold-300);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: var(--gold-500);
  color: var(--maroon-950);
  transform: rotate(90deg);
}

.drawer-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Event Card inside Drawer */
.drawer-event-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.drawer-event-banner {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--gold-400);
}

.drawer-event-content {
  padding: 16px 18px;
}

.drawer-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: var(--text-body);
}

.drawer-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.drawer-meta-icon {
  font-size: 1.1rem;
  color: var(--terracotta-600);
  flex-shrink: 0;
}

/* Drawer Countdown Pill */
.drawer-countdown-box {
  background: linear-gradient(135deg, var(--maroon-950), var(--maroon-800));
  color: #FFF;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--gold-600);
  margin-bottom: 16px;
}

.drawer-cd-title {
  font-size: 0.78rem;
  color: var(--gold-300);
  margin-bottom: 6px;
}

.drawer-cd-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.drawer-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drawer-cd-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-sans);
  line-height: 1.1;
}

.drawer-cd-lbl {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Drawer Bands Lineup list */
.drawer-lineup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maroon-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-lineup-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.drawer-lineup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--parchment-base);
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 4px solid var(--gold-600);
  transition: var(--transition);
}

.drawer-lineup-item:hover {
  transform: translateX(4px);
  background: #FFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.drawer-lineup-item.b1 { border-left-color: #E63946; }
.drawer-lineup-item.b2 { border-left-color: #0096C7; }
.drawer-lineup-item.b3 { border-left-color: #F77F00; }
.drawer-lineup-item.b4 { border-left-color: #2A9D8F; }
.drawer-lineup-item.b5 { border-left-color: #D90429; }
.drawer-lineup-item.b6 { border-left-color: #7209B7; }
.drawer-lineup-item.b7 { border-left-color: #D4AF37; }

.drawer-poster-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-500);
  cursor: pointer;
  margin-bottom: 18px;
}

.drawer-poster-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.drawer-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 4, 7, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFF;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-poster-preview:hover .drawer-poster-img {
  transform: scale(1.03);
}

.drawer-poster-preview:hover .drawer-poster-overlay {
  opacity: 1;
}

/* ==========================================================================
   IN-PAGE SECTION: LATEST NEWS & MEGA EVENT (SECTION #news)
   ========================================================================== */
.news-section-wrapper {
  background: linear-gradient(180deg, #FAF7F0 0%, #F5EFE3 100%);
  position: relative;
  overflow: hidden;
}

.news-section-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 155, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  align-items: start;
}

/* Left Column: Details & Schedule */
.news-main-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--parchment-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-banner-wrapper {
  position: relative;
  overflow: hidden;
  background: #111;
}

.news-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.news-main-card:hover .news-banner-img {
  transform: scale(1.02);
}

.news-body-content {
  padding: 32px 36px;
}

.news-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta-100);
  color: var(--terracotta-700);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(194, 84, 45, 0.3);
}

.news-fest-title {
  font-size: 1.75rem;
  color: var(--maroon-950);
  font-family: var(--font-sinhala);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.news-fest-theme {
  font-size: 1.05rem;
  color: var(--terracotta-700);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
}

.news-organizer-pill {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-600);
  margin-bottom: 22px;
}

/* Key Info Boxes Row */
.news-info-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.news-info-tile {
  background: var(--parchment-base);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.news-tile-icon {
  font-size: 1.5rem;
  color: var(--maroon-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.news-tile-text h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.news-tile-text p {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
}

/* In-Page Countdown Card */
.news-countdown-strip {
  background: linear-gradient(135deg, var(--maroon-950), var(--maroon-800));
  border: 1px solid var(--gold-600);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(32, 4, 7, 0.2);
}

.countdown-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-300);
  font-size: 0.95rem;
  font-weight: 700;
}

.countdown-digits {
  display: flex;
  gap: 12px;
}

.cd-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 155, 43, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 58px;
  text-align: center;
}

.cd-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-sans);
  display: block;
  line-height: 1.1;
}

.cd-lbl {
  font-size: 0.65rem;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bands Schedule Grid */
.news-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.news-schedule-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.band-card {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--parchment-base);
  border: 1px solid var(--parchment-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.band-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.band-card:hover {
  transform: translateY(-2px);
  background: #FFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.band-card.b1::before { background: #E63946; }
.band-card.b2::before { background: #0096C7; }
.band-card.b3::before { background: #F77F00; }
.band-card.b4::before { background: #2A9D8F; }
.band-card.b5::before { background: #D90429; }
.band-card.b6::before { background: #7209B7; }
.band-card.b7::before { background: #D4AF37; }

.band-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.band-name {
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: 0.3px;
}

.news-notice-callout {
  background: var(--green-100);
  border: 1px solid rgba(79, 134, 99, 0.3);
  border-left: 4px solid var(--green-600);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--green-800);
  line-height: 1.6;
}

/* Right Column: Official Poster Showcase */
.news-poster-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poster-frame-outer {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-600);
  box-shadow: 0 8px 30px rgba(52, 7, 12, 0.15);
  cursor: pointer;
  background: #200407;
}

.poster-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.poster-frame-outer:hover .poster-showcase-img {
  transform: scale(1.03);
}

.poster-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 4, 7, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-frame-outer:hover .poster-zoom-overlay {
  opacity: 1;
}

.poster-zoom-icon {
  font-size: 2.2rem;
  color: var(--gold-300);
}

.poster-zoom-label {
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-400);
}

.poster-caption-info {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

.poster-actions-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.poster-actions-row .btn-primary,
.poster-actions-row .btn-secondary {
  flex: 1;
  justify-content: center;
  font-size: 0.88rem;
  padding: 10px 14px;
}

/* ==========================================================================
   POSTER LIGHTBOX MODAL (HIGH-RES ZOOM)
   ========================================================================== */
.poster-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 2, 4, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.poster-modal.active {
  opacity: 1;
  visibility: visible;
}

.poster-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
}

.poster-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--gold-500);
  color: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.poster-modal-close:hover {
  background: var(--gold-500);
  color: var(--maroon-950);
  transform: rotate(90deg);
}

.poster-modal-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--gold-500);
}

.poster-modal-footer {
  margin-top: 10px;
  color: var(--gold-300);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   6. GOVERNMENT PORTAL STYLE LATEST NEWS CARD WIDGET (HERO RIGHT COLUMN)
   Exact match to institutional reference design
   ========================================================================== */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 50px 0 30px;
}

.hero-news-widget-wrapper {
  position: relative;
  z-index: 12;
}

.gov-news-card {
  background: #FFFFFF;
  border-radius: 16px;
  border-top: 4.5px solid var(--maroon-700);
  box-shadow: 0 16px 45px rgba(25, 3, 6, 0.35);
  padding: 24px 22px;
  position: relative;
  transition: var(--transition);
  color: var(--text-body);
}

.gov-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.gov-news-title-wrap {
  display: flex;
  flex-direction: column;
}

.gov-news-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--maroon-800);
  margin: 0;
  font-family: var(--font-sinhala);
  letter-spacing: 0.2px;
}

.gov-news-title-bar {
  display: block;
  width: 58px;
  height: 3.5px;
  background: var(--terracotta-500);
  margin-top: 6px;
  border-radius: 2px;
}

.gov-news-header-icon {
  font-size: 1.55rem;
  color: var(--maroon-800);
  line-height: 1;
}

/* Pill Tabs Switcher */
.gov-news-tabs {
  display: flex;
  background: #F1ECE3;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.gov-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #55657E;
  transition: all 0.25s ease;
  font-family: var(--font-sinhala);
  text-align: center;
}

.gov-tab-btn.active {
  background: #FFFFFF;
  color: var(--maroon-800);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gov-tab-btn:hover:not(.active) {
  color: var(--maroon-800);
}

/* Tab Panels & News Items */
.gov-tab-content {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: 375px;
  overflow-y: auto;
  padding-right: 4px;
}

.gov-tab-content.active {
  display: flex;
}

/* Custom Scrollbar */
.gov-tab-content::-webkit-scrollbar {
  width: 5px;
}

.gov-tab-content::-webkit-scrollbar-track {
  background: #F5F1EB;
  border-radius: 4px;
}

.gov-tab-content::-webkit-scrollbar-thumb {
  background: #D9CFC4;
  border-radius: 4px;
}

.gov-tab-content::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

/* Individual News Card */
.gov-news-item {
  background: #FFFDF9;
  border: 1px solid var(--parchment-border);
  border-radius: 10px;
  padding: 13px 15px;
  transition: all 0.25s ease;
  position: relative;
}

.gov-news-item:hover {
  background: #FFFFFF;
  border-color: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(52, 7, 12, 0.08);
}

.gov-item-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1A1211;
  margin-bottom: 5px;
  line-height: 1.38;
}

.gov-item-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #C2542D;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.gov-item-date-icon {
  font-size: 0.85rem;
}

.gov-item-snippet {
  font-size: 0.82rem;
  color: #4A3E3D;
  line-height: 1.55;
  margin-bottom: 7px;
}

.gov-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--maroon-800);
  font-weight: 800;
  font-size: 0.76rem;
  text-decoration: none;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: var(--transition);
}

.gov-item-link:hover {
  color: var(--terracotta-600);
  transform: translateX(4px);
}

/* Special Badge for Festival Item */
.gov-item-badge-featured {
  display: inline-block;
  background: linear-gradient(135deg, var(--maroon-800), var(--terracotta-600));
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}


