
:root {
  --text-main: #1f2937;
  --text-main-dark800: #191919;
  --bg-main: #ffffff;
  --card-bg: #ffffff;
  --bg-main-800: #ffffff;
  --navbar-hover-bg: #e9ecef;
  --navbar-active-bg: #ddd;
  --event-bg: #ffffff;
  --event-card: #f9fafb;
  --event-border: rgba(0,0,0,0.08);
  --event-text-muted: #6b7280;
  --event-icon-bg: rgba(59,130,246,0.1);
  --event-hover-bg: rgba(0,0,0,0.04);
}

[data-bs-theme="dark"] {
  --text-main: #f3f4f6;
  --bg-main: #000000;
  --bg-main-800: #1f2937;
  --text-main-dark800: #1f2937;
  --card-bg: #1e1e1e;
  --navbar-hover-bg: #2a2a2a;
  --navbar-active-bg: #3a3a3a;
  --event-bg: #111827;
  --event-card: #1f2937;
  --event-border: rgba(255,255,255,0.08);
  --event-text-muted: #9ca3af;
  --event-icon-bg: rgba(255,255,255,0.08);
  --event-hover-bg: rgba(255,255,255,0.06);
}

body {
  background: var(--bg-main) !important;
  color: var(--text-main);
}

body {
  overflow-x: hidden;
}

.bg-main {
  background: var(--bg-main) !important;
}

.bg-main-800 {
  background: var(--bg-main-800) !important;
}

.card-custom {
  background: var(--card-bg) !important;
  color: var(--text-main);
}

.text-main {
  color: var(--text-main) !important;
}

.text-main-dark800 {
  color: var(--text-main-dark800) !important;
}

.header-banner {
  background: #3b5998 !important;
  color: #000;
}

[data-bs-theme="dark"] .header-banner {
  background: linear-gradient(to bottom, #343a40, #212529) !important;
  color: #f1f5f9;
}

[data-bs-theme="dark"] .table-3d td {
  background:#212529 !important;
  color: #f1f5f9 !important;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: auto;
}

@font-face {
  font-family: 'OldEnglish';
  src: url('/assets/fonts/oldenglish-style/oldenglishtextmt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.btn-offwhiteheader-3d {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  box-shadow: 0 2px 0 #c0c0c0;
  color: #343a40;
  border: 1px solid #dee2e6;
  transition: all 0.15s ease;
}

.btn-offwhiteheader-3d:hover {
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.12);
}

.btn-offwhiteheader-3d:active {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .btn-offwhiteheader-3d {
  background: linear-gradient(to bottom, #f8f9fa, #155ba1);
  color: #fff;
  border: 1px solid #dee2e6;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.10),
    0 6px 10px rgba(0, 0, 0, 0.01);
  transition: all 0.15s ease;
}

 [data-bs-theme="dark"] .btn-offwhiteheader-3d:hover {
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .btn-offwhiteheader-3d:active {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.1);
}

.old-english {
  font-family: 'OldEnglish', serif;
}

.sans-serif {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.header-banner {
  background-color: #3b5998;
  padding: 10px;
}

.container>.border {
  background: linear-gradient(145deg, #ffffff, #f3f6ff);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.cube-wrapper {
  perspective: 1400px;
  width: 100%;
}

.cube-container {
  position: relative;
  width: 100%;
  height: 420px;
  transform-style: preserve-3d;
}

.cube-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.cube-item {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.cube-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.cube-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 28px;

  width: 45px;
  height: 45px;
  border-radius: 50%;

  cursor: pointer;
  transition: 0.3s;
}

.cube-nav.left {
  left: 10px;
}

.cube-nav.right {
  right: 10px;
}

.cube-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .cube-container {
    height: 260px;
  }

  .cube-item img {
    height: 260px;
  }
}

.btn-3d {
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease-in-out;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
}

.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.btn-offwhite-3d {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  box-shadow: 0 5px 0 #c0c0c0;
  color: #343a40;
  border: 1px solid #dee2e6;
}

.btn-offwhite-3d:hover {
  color: #000;
}

.btn-primary-3d {
  background: linear-gradient(to bottom, #0d6efd, #0a58ca);
  box-shadow: 0 5px 0 #084298;
  color: white;
}

.btn-primary-3d:hover {
  color: white;
}

.btn-success-3d {
  background: linear-gradient(to bottom, #66bb6a, #43a047);
  box-shadow: 0 5px 0 #2e7d32;
  color: white;
}

.btn-success-3d:hover {
  color: white;
}

.btn-danger-3d {
  background: linear-gradient(to bottom, #dc3545, #bb2d3b);
  box-shadow: 0 5px 0 #842029;
  color: white;
}

.btn-danger-3d:hover {
  color: white;
}

.btn-warning-3d {
  background: linear-gradient(to bottom, #ffc107, #e0a800);
  box-shadow: 0 5px 0 #997404;
  color: black;
}

.btn-warning-3d:hover {
  color: black;
}

.btn-info-3d {
  background: linear-gradient(to bottom, #0dcaf0, #31d2f2);
  box-shadow: 0 5px 0 #0aa2c0;
  color: black;
}

.btn-info-3d:hover {
  color: black;
}

.btn-secondary-3d {
  background: linear-gradient(to bottom, #6c757d, #5a6268);
  box-shadow: 0 5px 0 #343a40;
  color: white;
}

.btn-secondary-3d:hover {
  color: white;
}

.btn-gray-3d {
  background: linear-gradient(to bottom, #adb5bd, #6c757d);
  box-shadow: 0 5px 0 #495057;
  color: white;
}

.btn-gray-3d:hover {
  color: black;
}

.btn-purple-3d {
  background: linear-gradient(to bottom, #6f42c1, #5a32a3);
  box-shadow: 0 5px 0 #43237b;
  color: white;
}

.btn-purple-3d:hover {
  color: white;
}

.btn-black-3d {
  background: linear-gradient(to bottom, #343a40, #212529);
  box-shadow: 0 5px 0 #121416;
  color: white;
}

.btn-black-3d:hover {
  color: white;
}

.btn-yellow-3d {
  background: linear-gradient(to bottom, #fcd307, #d4b100);
  box-shadow: 0 5px 0 #b29400;
  color: black;
}

.btn-yellow-3d:hover {
  color: black;
}

.btn-3d:active,
.btn-3d.active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  color: inherit !important;
}

.btn-gray-3d:active,
.btn-gray-3d.active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #495057;
  color: white !important;
}

.btn-warning-3d:active,
.btn-warning-3d.active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #997404;
  color: black !important;
}

.navbar {
  margin: 0 !important;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  gap: 0 !important;
  padding: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar .nav-item {
  position: relative;
}

.navbar .nav-item .nav-link {
  display: block;
  padding: 10px 18px;
  color: #333;
}

.navbar .nav-item:first-child .nav-link {
  border-left: none;
}

.navbar .nav-item:hover {
  background: var(--navbar-hover-bg);
}

.navbar .nav-item:hover .nav-link {
  color: #000;
}

.navbar .nav-item.active {
  background: var(--navbar-active-bg);
}

.navbar .nav-item.active .nav-link {
  font-weight: 600;
}

.navbar .nav-item {
  margin: 0;
}

.navbar .nav-link {
  text-align: center;
}

.navbar .nav-link {
  display: block;
  padding: 10px 18px;
  margin: 0;
}

.navbar {
  padding: 0;
}

.navbar .nav-link {
  border-radius: 0;
}

.navbar-brandfont {
  font-weight: bold;
  font-size: var(--bs-navbar-brand-font-size) 3.25rem;
}

.navbar-menubar {
  padding-top: var(--bs-navbar-brand-padding-y);
  padding-bottom: var(--bs-navbar-brand-padding-y);
  color: var(--bs-navbar-brand-color);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #c0c0c0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #007bff;
  color: white;
  transition: all 0.3s ease;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.dropdown-menu .dropdown-menu {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: -1px;
  position: absolute;
}

.dropdown-menu>li:hover>.dropdown-menu {
  display: block;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu:hover>a,
.dropdown-submenu:focus-within>a {
  background-color: #007bff;
  color: white;
}

.dropdown-submenu .dropdown-menu a:hover {
  background-color: #0056b3;
  color: white;
}

.news-card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* NEWS AND ANNOUNCEMENT */
.news-card-3d:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.news-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.news-card-3d img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}


.news-thumbnail {
  height: 100px;
  object-fit: cover;
  width: 100%;
}

.news-description {
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-title {
  font-weight: bold;
  font-size: 1.25rem;
}

.modal-body p {
  text-align: justify;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border: none;
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  color: #fff;
}

.object-fit-cover {
  object-fit: cover;
}

/* -------------------FOOTER ---------------------*/

footer h6 {
  color: #212529;
}

footer ul li a:hover {
  text-decoration: underline;
}

.gov-link {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.gov-link:hover {
  color: #0d6efd;
  /* Bootstrap primary color */
  padding-left: 5px;
  text-decoration: underline;
}


.carousel-indicators [data-bs-target] {
  background-color: #eef1ec;
  /* Dark dot */
  opacity: 0.8;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 6px;
}

.carousel-indicators .active {
  background-color: #0d6efd;
  /* Bootstrap primary */
  opacity: 1;
}

/* Style prev/next buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  /* Dark background */
  border-radius: 50%;
  padding: 15px;
  background-size: 60% auto;
}

/* Optional: Increase contrast on hover */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: #0d6efd;
}

.play-button {
  font-size: 2rem;
  color: #fff;
  width: 60px;
  height: 60px;
  line-height: 40px;
  background: rgba(174, 39, 39, 0.8);
  border: none;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd, #3f8efc);
}

/* 3D Table Container */
.table-3d {
  background: #fff;
  border: 2px solid #adb5bd;
  /* outer border */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* 3D shadow */
  border-collapse: collapse;
  width: 100%;
}

.table-3d thead th {
  background: linear-gradient(to bottom, #426487, #212529);
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #a6b5c4;
  /* visible borders */
  color: white;
}

.table-3d tbody td {
  padding: 0.9rem;
  background: #ffffff;
  border: 2px solid #adb5bd;
}

.table-3d tbody tr:hover td {
  background: #f8f9fa;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Active row style */
.table-3d tbody tr.tr-active td {
  background: #daeaf6 !important;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2);
}

.scroll-container700 {
  height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
}

.info-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: 0.3s;
  height: 100%;
}

.info-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.info-card img {
  width: 100px;
  margin-bottom: 15px;
}

.section-title {
  font-weight: bold;
}

.pagination-3d {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.pagination-3d a {
  padding: 6px 12px;
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
}

.pagination-3d a:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.pagination-3d a.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  transform: translateY(-2px);
}

.communications-scroll {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  /* prevent scrollbar overlap */
}

/* Loader Container */
.loading-bar-3d-container {
  width: 100%;
  max-width: 300px;
  height: 15px;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  border-radius: 8px;
  margin: 0 auto;
  padding: 3px;
  box-shadow: 4px 4px 8px #bebebe,
    -4px -4px 8px #ffffff,
    inset 2px 2px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

/* 3D Animated Bar */
.loading-bar-3d {
  width: 30%;
  height: 100%;
  background: linear-gradient(45deg, #3498db, #4a9ff5, #1d6ff2);
  border-radius: 6px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.3);
  animation: loadingBar3D 1.3s ease-in-out infinite;
}

@keyframes loadingBar3D {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* 3D Table Container */
.table-3d {
  background: #fff;
  border: 2px solid #adb5bd;
  /* outer border */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* 3D shadow */
  border-collapse: collapse;
  width: 100%;
}

.table-3d thead th {
  background: linear-gradient(to bottom, #426487, #212529);
  font-weight: bold;
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #a6b5c4;
  /* visible borders */
  color: white;
}

.table-3d tbody td {
  padding: 0.9rem;
  background: #ffffff;
  border: 2px solid #adb5bd;
}

.table-3d tbody tr:hover td {
  background: #f8f9fa;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Active row style */
.table-3d tbody tr.tr-active td {
  background: #daeaf6 !important;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2);
}

/* 3D container */
#sliderCarousel {
  perspective: 1200px;
}

/* slide animation upgrade */
.carousel-inner {
  transform-style: preserve-3d;
}

/* each item */
.carousel-item {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* active slide 3D pop */
.carousel-item.active {
  transform: scale(1.02) rotateY(0deg);
}

/* image styling */
.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;

  /* glow + depth */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15);

  transition: transform 0.6s ease;
}

/* controls glow */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 3D CARD EFFECT */
.news-card {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: perspective(1000px) rotateX(0deg);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

/* hover 3D tilt */
.news-card:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* IMAGE */
.news-img {
  width: 35%;
  min-height: 160px;
  object-fit: cover;
}

/* CONTENT */
.news-body {
  padding: 16px;
  width: 65%;
}

/* TITLE */
.news-title {
  font-size: 18px;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

/* DESC */
.news-desc {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

/* BUTTON */
.news-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border: none;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.news-btn:hover {
  transform: scale(1.05);
}

.news-card img {
  transition: transform 0.4s ease;
}

.news-card:hover img {
  transform: scale(1.1);
}

/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  /* smaller gap for small column */
  font-size: 11px;
}

/* Each day box becomes compact */
.day-box {
  background: #fff;
  min-height: 70px;
  /* smaller height */
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Day number smaller */
.day-number {
  font-weight: 600;
  font-size: 11px;
  color: #333;
}

/* Event becomes compact pill */
.event {
  font-size: 10px;
  background: #0d6efd;
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.event {
  background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

/* Month title smaller for compact card */
#monthLabel {
  font-size: 16px;
  margin: 0;
}

.video-card {
  cursor: pointer;
  perspective: 1000px;
}



/* 3D BOX */
.video-box {
  position: relative;
  transform-style: preserve-3d;

  border-radius: 14px;
  overflow: hidden;

  transition: transform 0.5s ease, box-shadow 0.5s ease;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.10);
}

/* 3D hover effect */
.video-card:hover .video-box {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.15);
}

/* thumbnail fills box */
.video-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* PLAY BUTTON */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

  transition: 0.3s;
}

.video-card:hover .play-overlay {
  background: rgba(220, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.15);
}

/* title */
.video-title {
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
}

.video-3d-section {
  background: linear-gradient(145deg, #ffffff, #f3f5f9);
  border-radius: 18px;
  padding: 20px;


  transform: perspective(1200px) rotateX(0deg);
  transition: all 0.4s ease;
}

/* hover "lift" effect */
.video-3d-section:hover {
  transform: perspective(1200px) rotateX(2deg) translateY(-4px);
}

/* optional: smooth heading glow */
.video-3d-section h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-card {
  transform: perspective(800px) translateZ(0);
  transition: 0.3s ease;
}

.video-card:hover {
  transform: perspective(800px) translateZ(20px) scale(1.03);
}

/* PAGE BACKGROUND */
.news-details-page {
  background: #ffffff;
}

/* =========================
   MAIN CARD
========================= */
.news-details-page .news-details-card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.05);

  transition: 0.3s ease;
  overflow: hidden;
  /* ✅ important for clean edges */
}

.news-details-page .news-details-card:hover {
  transform: translateY(-3px);
}

/* =========================
   TITLE + META
========================= */
.news-details-page .news-title {
  font-size: 30px;
  font-weight: 700;
}

.news-details-page .news-meta {
  color: #666;
  margin-bottom: 15px;
}

/* =========================
   ✅ FULL WIDTH IMAGE FIX
========================= */

/* wrapper cancels padding */
.news-details-page .news-image-wrapper {
  margin-left: -25px;
  margin-right: -25px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* MAIN IMAGE - FINAL FIX */
.news-details-page .main-image {
  width: 100%;
  height: auto;
  /* ✅ FIX cropping issue */
  max-height: 500px;
  /* ✅ prevents too tall images */
  object-fit: contain;
  /* ✅ show FULL image */
  display: block;

  border-radius: 0;
  /* ✅ full-width look */
  background: #fff;
  /* ✅ no gray bleed */

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.10);
}

/* =========================
   THUMBNAILS
========================= */
.news-details-page .thumbnail-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.news-details-page .thumbnail-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: 0.2s ease;
}

.news-details-page .thumbnail-img:hover {
  transform: scale(1.08);
}

/* =========================
   CONTENT
========================= */
.news-details-page .news-content {
  font-size: 16px;
  margin-top: 15px;
  line-height: 1.8;
  word-wrap: break-word;
}

/* =========================
   SIDEBAR
========================= */
.news-details-page .sidebar-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;

  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.08);
}

.news-details-page .sidebar-title {
  font-weight: bold;
  margin-bottom: 15px;
}

/* =========================
   SIDEBAR ITEMS
========================= */
.news-details-page .latest-news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 7px;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  transition: 0.25s ease;
}

.news-details-page .latest-news-item:hover {
  background: #73a7de;
  transform: translateY(-2px);
}

.news-details-page .latest-news-img {
  width: 90px;
  height: 70px;
  min-width: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.news-details-page .latest-news-text {
  flex: 1;
}

.news-details-page .latest-news-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .news-details-page .main-image {
    max-height: 250px;
  }

  .news-details-page .latest-news-img {
    width: 70px;
    height: 55px;
  }

}
/* =========================
   EVENT MODAL UI (THEMED)
========================= */

.event-modal-ui .modal-content {
  transform: scale(0.92);
  opacity: 0;
  transition: all 0.25s ease;
}

.event-modal-ui.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.event-modal-ui .premium-modal {
  background: var(--event-bg);
  border-radius: 14px;
  border: 1px solid var(--event-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  color: var(--text-main);
  overflow: hidden;
}

.event-modal-ui .premium-header {
  background: var(--event-card);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--event-border);
  padding: 18px 20px;
}

.event-modal-ui .header-icon {
  font-size: 22px;
  color: #3b82f6;
}

.event-modal-ui .modal-body {
  padding: 22px;
}

.event-modal-ui .event-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--event-card);
  transition: 0.2s;
}

.event-modal-ui .event-row i {
  font-size: 20px;
  color: #3b82f6;
  background: var(--event-icon-bg);
  padding: 10px;
  border-radius: 8px;
}

.event-modal-ui .label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--event-text-muted);
}

.event-modal-ui .event-row span:last-child {
  font-weight: 500;
}

.event-modal-ui .event-row:hover {
  background: var(--event-hover-bg);
  transform: translateY(-2px);
}

.event-modal-ui .event-desc {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.event-modal-ui .event-desc i {
  color: #10b981;
  font-size: 20px;
}

.event-modal-ui .event-desc p {
  margin: 5px 0 0;
  color: var(--text-main);
  line-height: 1.6;
}

.event-modal-ui .btn-close-white {
  filter: invert(0);
}

[data-bs-theme="dark"] .event-modal-ui .btn-close-white {
  filter: invert(1);
}

/* 3D BOX */
.allvideo-box {
  position: relative;
  transform-style: preserve-3d;

  border-radius: 14px;
  overflow: hidden;

  transition: transform 0.5s ease, box-shadow 0.5s ease;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.10);
}

/* 3D hover effect */
.allvideo-card:hover .allvideo-box {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.15);
}

/* thumbnail fills box */
.allvideo-thumb {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.citizencharter-pdf-frame {
    width: 100%;
    height: 80vh;
    border: none;
}
.minwidth-dataprivacy {
 width: 100%;
 max-width: 300px;
}
