:root {

  /* =================================
     MAIN THEME
  ================================= */

  --text-main: #1f2937;
  --text-main-dark800: #191919;

  --bg-main: #ffffff;
  --bg-main-800: #ffffff;

  --card-bg: #ffffff;
  --card-hover: #f8f9fa;

  --navbar-hover-bg: #e9ecef;
  --navbar-active-bg: #ddd;

  --event-bg: #ffffff;
  --event-card: #f9fafb;
  --event-border: rgba(0, 0, 0, .08);
  --event-text-muted: #6b7280;
  --event-icon-bg: rgba(59, 130, 246, .1);
  --event-hover-bg: rgba(0, 0, 0, .04);

  --primary: #003366;
  --primary-hover: #0d6efd;

  --shadow: 0 3px 10px rgba(0, 0, 0, .08);

  /* =================================
     GRAY
  ================================= */

  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* =================================
     BLUE
  ================================= */

  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  /* =================================
     RED
  ================================= */

  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;

  /* =================================
     ORANGE
  ================================= */

  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;

  /* =================================
     YELLOW
  ================================= */

  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --yellow-700: #a16207;
  --yellow-800: #854d0e;
  --yellow-900: #713f12;

  /* =================================
     BLACK / SLATE
  ================================= */

  --black-100: #f8fafc;
  --black-200: #e2e8f0;
  --black-300: #cbd5e1;
  --black-400: #94a3b8;
  --black-500: #64748b;
  --black-600: #475569;
  --black-700: #334155;
  --black-800: #1e293b;
  --black-900: #0f172a;
}

/* =====================================
   DARK MODE
===================================== */

[data-bs-theme="dark"] {

  --text-main: #f3f4f6;
  --text-main-dark800: #f3f4f6;
  --text-blue-500: #60a5fa;

  --bg-main: #000000;
  --bg-main-800: #1f2937;

  --card-bg: #1e1e1e;
  --card-hover: #334155;

  --navbar-hover-bg: #2a2a2a;
  --navbar-active-bg: #3a3a3a;

  --event-bg: #111827;
  --event-card: #1f2937;
  --event-border: rgba(255, 255, 255, .08);
  --event-text-muted: #9ca3af;
  --event-icon-bg: rgba(255, 255, 255, .08);
  --event-hover-bg: rgba(255, 255, 255, .06);

  --navbar-toggler-filter: invert(1);

  --primary: #60a5fa;
  --primary-hover: #3b82f6;

  --shadow: 0 3px 12px rgba(0, 0, 0, .3);

  /* Gray */
  --gray-100: #111827;
  --gray-200: #1f2937;
  --gray-300: #374151;
  --gray-400: #4b5563;
  --gray-500: #6b7280;
  --gray-600: #9ca3af;
  --gray-700: #d1d5db;
  --gray-800: #e5e7eb;
  --gray-900: #f3f4f6;

  /* Blue */
  --blue-100: #0c4a6e;
  --blue-200: #075985;
  --blue-300: #0369a1;
  --blue-400: #0284c7;
  --blue-500: #0ea5e9;
  --blue-600: #38bdf8;
  --blue-700: #7dd3fc;
  --blue-800: #bae6fd;
  --blue-900: #e0f2fe;

  /* Red */
  --red-100: #450a0a;
  --red-200: #7f1d1d;
  --red-300: #991b1b;
  --red-400: #b91c1c;
  --red-500: #dc2626;
  --red-600: #ef4444;
  --red-700: #f87171;
  --red-800: #fca5a5;
  --red-900: #fee2e2;

  /* Orange */
  --orange-100: #431407;
  --orange-200: #7c2d12;
  --orange-300: #9a3412;
  --orange-400: #c2410c;
  --orange-500: #ea580c;
  --orange-600: #f97316;
  --orange-700: #fb923c;
  --orange-800: #fdba74;
  --orange-900: #ffedd5;

  /* Yellow */
  --yellow-100: #422006;
  --yellow-200: #713f12;
  --yellow-300: #854d0e;
  --yellow-400: #a16207;
  --yellow-500: #ca8a04;
  --yellow-600: #eab308;
  --yellow-700: #facc15;
  --yellow-800: #fde047;
  --yellow-900: #fef9c3;

  /* Black / Slate */
  --black-100: #020617;
  --black-200: #0f172a;
  --black-300: #1e293b;
  --black-400: #334155;
  --black-500: #475569;
  --black-600: #64748b;
  --black-700: #94a3b8;
  --black-800: #cbd5e1;
  --black-900: #f8fafc;

}

/* Blue */
.blue-100,
.text-blue-100 {
  color: var(--blue-100) !important;
}

.blue-200,
.text-blue-200 {
  color: var(--blue-200) !important;
}

.blue-300,
.text-blue-300 {
  color: var(--blue-300) !important;
}

.blue-400,
.text-blue-400 {
  color: var(--blue-400) !important;
}

.blue-500,
.text-blue-500 {
  color: var(--blue-500) !important;
}

.blue-600,
.text-blue-600 {
  color: var(--blue-600) !important;
}

.blue-700,
.text-blue-700 {
  color: var(--blue-700) !important;
}

.blue-800,
.text-blue-800 {
  color: var(--blue-800) !important;
}

.blue-900,
.text-blue-900 {
  color: var(--blue-900) !important;
}

/* Gray */
.gray-100,
.text-gray-100 {
  color: var(--gray-100) !important;
}

.gray-200,
.text-gray-200 {
  color: var(--gray-200) !important;
}

.gray-300,
.text-gray-300 {
  color: var(--gray-300) !important;
}

.gray-400,
.text-gray-400 {
  color: var(--gray-400) !important;
}

.gray-500,
.text-gray-500 {
  color: var(--gray-500) !important;
}

.gray-600,
.text-gray-600 {
  color: var(--gray-600) !important;
}

.gray-700,
.text-gray-700 {
  color: var(--gray-700) !important;
}

.gray-800,
.text-gray-800 {
  color: var(--gray-800) !important;
}

.gray-900,
.text-gray-900 {
  color: var(--gray-900) !important;
}

/* Red */
.red-100,
.text-red-100 {
  color: var(--red-100) !important;
}

.red-200,
.text-red-200 {
  color: var(--red-200) !important;
}

.red-300,
.text-red-300 {
  color: var(--red-300) !important;
}

.red-400,
.text-red-400 {
  color: var(--red-400) !important;
}

.red-500,
.text-red-500 {
  color: var(--red-500) !important;
}

.red-600,
.text-red-600 {
  color: var(--red-600) !important;
}

.red-700,
.text-red-700 {
  color: var(--red-700) !important;
}

.red-800,
.text-red-800 {
  color: var(--red-800) !important;
}

.red-900,
.text-red-900 {
  color: var(--red-900) !important;
}

/* Orange */
.orange-100,
.text-orange-100 {
  color: var(--orange-100) !important;
}

.orange-200,
.text-orange-200 {
  color: var(--orange-200) !important;
}

.orange-300,
.text-orange-300 {
  color: var(--orange-300) !important;
}

.orange-400,
.text-orange-400 {
  color: var(--orange-400) !important;
}

.orange-500,
.text-orange-500 {
  color: var(--orange-500) !important;
}

.orange-600,
.text-orange-600 {
  color: var(--orange-600) !important;
}

.orange-700,
.text-orange-700 {
  color: var(--orange-700) !important;
}

.orange-800,
.text-orange-800 {
  color: var(--orange-800) !important;
}

.orange-900,
.text-orange-900 {
  color: var(--orange-900) !important;
}

/* Yellow */
.yellow-100,
.text-yellow-100 {
  color: var(--yellow-100) !important;
}

.yellow-200,
.text-yellow-200 {
  color: var(--yellow-200) !important;
}

.yellow-300,
.text-yellow-300 {
  color: var(--yellow-300) !important;
}

.yellow-400,
.text-yellow-400 {
  color: var(--yellow-400) !important;
}

.yellow-500,
.text-yellow-500 {
  color: var(--yellow-500) !important;
}

.yellow-600,
.text-yellow-600 {
  color: var(--yellow-600) !important;
}

.yellow-700,
.text-yellow-700 {
  color: var(--yellow-700) !important;
}

.yellow-800,
.text-yellow-800 {
  color: var(--yellow-800) !important;
}

.yellow-900,
.text-yellow-900 {
  color: var(--yellow-900) !important;
}

/* Black */
.black-100,
.text-black-100 {
  color: var(--black-100) !important;
}

.black-200,
.text-black-200 {
  color: var(--black-200) !important;
}

.black-300,
.text-black-300 {
  color: var(--black-300) !important;
}

.black-400,
.text-black-400 {
  color: var(--black-400) !important;
}

.black-500,
.text-black-500 {
  color: var(--black-500) !important;
}

.black-600,
.text-black-600 {
  color: var(--black-600) !important;
}

.black-700,
.text-black-700 {
  color: var(--black-700) !important;
}

.black-800,
.text-black-800 {
  color: var(--black-800) !important;
}

.black-900,
.text-black-900 {
  color: var(--black-900) !important;
}

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;
}

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

.header-banner {
  position: relative;
  background: #2f73c9 !important;
  color: #000;
  overflow: hidden;
}

/* Main layout */
.header-content {
  position: relative;

  min-height: 110px;

  display: grid;

  grid-template-columns: 1fr 2fr 1fr;

  align-items: center;

  gap: 20px;

  z-index: 2;
}


/* LEFT LOGOS */

.left-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.left-logos img {
  height: 80px;
  width: auto;
  margin-right: 12px;
}


/* CENTER TEXT */

.center-text {
  text-align: center;
}

.center-text h4,
.center-text h6 {
  margin-left: auto;
  margin-right: auto;
}


/* RIGHT SECTION */

.right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-logos img {
  height: 80px;
  width: auto;
  margin-left: 12px;
}


/* CLOCK */

.clock-inline {
  margin-top: 5px;
  white-space: nowrap;
  font-size: 16px;
}


/* MOBILE */

@media (max-width: 768px) {

  .header-banner {
    padding: 15px 10px !important;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-height: auto;
  }

  .left-logos,
  .center-text,
  .right-section {
    width: 100%;
  }

  .left-logos {
    justify-content: center;
    order: 1;
  }

  .center-text {
    order: 2;
  }

  .right-section {
    order: 3;
  }

  .left-logos img,
  .right-logos img {
    height: 45px;
    margin: 0 4px;
  }

  .center-text h6 {
    font-size: 0.65rem;
  }

  .center-text h4 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .clock-inline {
    font-size: 10px;
  }
}

/* LEFT LOGOS */
.left-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.left-logos img {
  height: clamp(45px, 5vw, 80px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-right: clamp(4px, 1vw, 12px);
}


/* RIGHT LOGOS */
.right-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.right-logos img {
  height: clamp(45px, 5vw, 80px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-left: clamp(4px, 1vw, 12px);
}

@media (max-width: 768px) {

  .left-logos,
  .right-logos {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .left-logos img,
  .right-logos img {
    height: clamp(35px, 12vw, 55px);
    width: auto;
    max-width: 25vw;
    margin: 0;
  }
}

[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;
}

@font-face {
  font-family: 'TrajanPro';
  src: url('/assets/fonts/trajan-pro/TrajanPro-Regular.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;
}

.trajan-pro {
  font-family: 'TrajanPro', serif;
}

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

.fs-7 {
  font-size: 0.875rem !important;
}

.fs-8 {
  font-size: 0.75rem !important;
}

.fs-9 {
  font-size: 0.625rem !important;
}

.fs-10 {
  font-size: 0.5rem !important;
}

.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;
  color: white;
}

.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;
}

/* =====================================
   NAVBAR
===================================== */

.navbar {
  z-index: 1050;
}

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

.navbar-menubar {
  white-space: nowrap;
}

.navbar-actions {
  gap: 10px;
}

.navbar-search {
  width: 260px;
}

.navbar-search .form-control {
  width: 100%;
}

.easy-link {
  white-space: nowrap;
}

.theme-toggle {
  flex-shrink: 0;
}

.accessibility-icon {
  flex-shrink: 0;
}

/* MOBILE NAVIGATION */
@media (max-width: 991.98px) {

  .navbar-collapse {
    background: #fff;
    padding: 10px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-nav {
    width: 100%;
    text-align: left !important;
  }

  .navbar-menubar {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid #e9ecef;
  }

  .navbar-menubar>.nav-link,
  .navbar-menubar>a {
    padding: 14px 16px;
    display: block;
    text-align: left;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    border: none;
    box-shadow: none;
    background: #f8f9fa;
    margin-left: 12px;
  }

  .dropdown-item {
    padding: 12px 16px;
    white-space: normal;
  }

  /* Remove side-opening submenu */
  .dropend .dropdown-menu {
    margin-left: 0;
  }

  .dropdown-submenu>.dropdown-menu {
    padding-left: 10px;
  }

  .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }
}

/* =====================================
   NAVBAR DARK MODE
===================================== */

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

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-text {
  color: var(--text-main) !important;
}


/* Mobile menu background */
@media (max-width: 991.98px) {

  .navbar-collapse {
    background-color: var(--bg-main);
    color: var(--text-main);

    padding: 15px;

    border-top: 1px solid var(--event-border);
  }

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

  /* Hover */
  .navbar-nav .nav-link:hover {
    background-color: var(--navbar-hover-bg);
    color: var(--text-main) !important;
  }

  /* Active menu */
  .navbar-nav .active>.nav-link,
  .navbar-nav .nav-link.active {
    background-color: var(--navbar-active-bg);
    color: var(--text-main) !important;
  }


  /* Dropdown menu */
  .navbar-nav .dropdown-menu {
    background-color: var(--card-bg);
  }

  .navbar-nav .dropdown-item {
    color: var(--text-main);
  }

  .navbar-nav .dropdown-item:hover {
    background-color: var(--navbar-hover-bg);
    color: var(--text-main);
  }

  .navbar-nav .dropdown-item.active {
    background-color: var(--navbar-active-bg);
    color: var(--text-main) !important;
  }


  /* Search input */
  .navbar-search .form-control {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-color: var(--event-border);
  }

  .navbar-search .form-control::placeholder {
    color: var(--event-text-muted);
  }


  /* Hamburger button */
  .navbar-toggler {
    border-color: var(--event-border);
  }

  .navbar-toggler-icon {
    filter: var(--navbar-toggler-filter, none);
  }
}

/* Hamburger button */
.navbar-toggler {
  border: 1px solid var(--text-main) !important;
  background-color: transparent !important;
  padding: 6px 8px;
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25px;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-main) !important;
  border-radius: 3px;
}

.deped-3d-csm-section {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
}

.deped-3d-csm-section::before {
  content: '';

  position: absolute;
  width: 350px;
  height: 350px;
  top: -100px;
  left: -100px;
}

.deped-3d-csm-section::after {
  content: '';

  position: absolute;
  width: 400px;
  height: 400px;

  background: rgba(0, 51, 102, .08);

  border-radius: 50%;

  filter: blur(100px);

  bottom: -150px;
  right: -150px;
}


.deped-3d-csm-header {
  text-align: center;
  margin-bottom: 60px;
}

.deped-3d-csm-header h2 {
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.deped-3d-csm-header h2 i {
  margin-right: 10px;
}

.deped-3d-csm-header p {
  color: #6c757d;
  max-width: 700px;
  margin: auto;
}

.deped-3d-csm-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 20px;

  background: #e8f1ff;

  border-radius: 999px;

  font-weight: 600;
  color: #003366;

  margin-bottom: 20px;
}

/* ===================================================
   MAIN CARD
=================================================== */

.deped-3d-csm-card {
  position: relative;

  background: rgba(255, 255, 255, .88);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, .8);

  border-radius: 28px;

  padding: 35px;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, .04),
    0 25px 50px rgba(0, 0, 0, .08);

  overflow: hidden;

  transition: all .35s ease;
}

.deped-3d-csm-card:hover {

  transform:
    translateY(-10px);

  box-shadow:
    0 20px 30px rgba(0, 0, 0, .08),
    0 40px 80px rgba(0, 0, 0, .12);
}

.deped-3d-csm-card::before {

  content: '';

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 5px;

  background:
    linear-gradient(90deg,
      #003366,
      #0d6efd,
      #87cefa);
}

/* ===================================================
   TITLE
=================================================== */

.deped-3d-csm-title {

  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 25px;

  font-size: 1.35rem;
  font-weight: 700;

  color: #003366;
}

.deped-3d-csm-title i {

  width: 55px;
  height: 55px;

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

  border-radius: 16px;

  color: #fff;

  font-size: 1.5rem;

  background:
    linear-gradient(135deg,
      #003366,
      #0d6efd);

  box-shadow:
    0 10px 25px rgba(13, 110, 253, .30);
}

/* ===================================================
   CONTENT
=================================================== */

.deped-3d-csm-content p {

  margin-bottom: 15px;
  line-height: 1.8;

  color: #495057;
}

.deped-3d-csm-content strong {
  color: #003366;
}

.deped-3d-csm-content a {

  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.deped-3d-csm-content a:hover {
  text-decoration: underline;
}

/* ===================================================
   QR IMAGE
=================================================== */

.deped-3d-csm-qr {

  max-width: 240px;

  padding: 12px;

  background: #fff;

  border-radius: 20px;

  box-shadow:
    0 15px 35px rgba(0, 0, 0, .08);

  transition: .3s ease;
}

.deped-3d-csm-qr:hover {

  transform: scale(1.05);
}

.deped-3d-csm-info-box {

  margin-top: 15px;

  padding: 18px;

  border-radius: 18px;

  background: #f4f8ff;

  border-left: 5px solid #0d6efd;
}

.deped-3d-csm-info-box p {
  margin-bottom: 8px;
}

@media (max-width: 576px) {
  .deped-3d-csm-section {
    padding: 60px 15px;
  }

  .deped-3d-csm-header h2 {
    font-size: 1.5rem;
  }

  .deped-3d-csm-card {
    padding: 20px;
    border-radius: 20px;
  }

  .deped-3d-csm-title {
    flex-direction: row;
    align-items: center;
  }

  .deped-3d-csm-content p {
    font-size: .95rem;
  }
}

.ts-wrapper .accordion-button::after {
  display: none !important;
}

.ts-wrapper .accordion-item {
  border: 0;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: var(--shadow);
}

.ts-wrapper .accordion-button {
  background: var(--card-bg);
  color: var(--text-main);
  font-weight: 600;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  box-shadow: none;
}

.ts-wrapper .accordion-button:hover {
  background: var(--primary);
  color: #fff;
}

.ts-wrapper .accordion-button:not(.collapsed) {
  background: var(--primary);
  color: #fff;
}

.ts-wrapper .accordion-body {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 1.25rem;
}

.ts-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: all .3s ease;
}

.ts-link-item:hover {
  background: var(--primary);
  color: #fff;
}

.ts-file-link {
  display: inline-block;
  padding: 8px 14px;
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: .3s ease;
}

.ts-file-link:hover {
  opacity: 0.9;
  color: #fff;
}

.ts-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.ts-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

[data-bs-theme="dark"] .accordion-item {
  border: 1px solid rgba(255, 255, 255, .08);
}

[data-bs-theme="dark"] .accordion-button {
  border: none;
}

[data-bs-theme="dark"] .accordion-body {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

[data-bs-theme="dark"] .ts-link-item:hover,
[data-bs-theme="dark"] .accordion-button:hover,
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background: var(--primary-hover);
}

[data-bs-theme="dark"] .ts-file-link {
  background: #2563eb;
}

[data-bs-theme="dark"] .ts-file-link:hover {
  background: #3b82f6;
}

[data-bs-theme="dark"] .ts-icon {
  color: #60a5fa;
}

#csmModal .modal-dialog {
    width: fit-content !important;
    max-width: 95vw !important;
    margin: auto !important;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 1rem);
}

#csmModal .modal-content {
    width: fit-content !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    overflow: hidden !important;
}

#csmModal .modal-body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

/* IMPORTANT: wrapper has the exact same size as the image */
#csmModal .csm-image-wrapper {
    position: relative;
    display: block;
    width: max-content;
    max-width: 95vw;
    max-height: calc(95vh - 55px);
    margin: 0 auto;
    line-height: 0;
}

#csmModal .csm-image-wrapper img {
    display: block;

    width: auto;
    height: auto;

    max-width: 95vw;
    max-height: calc(95vh - 55px);

    object-fit: contain;
}

/* Overlay covers ONLY the image */
#csmModal .csm-image-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#csmModal .csm-image-wrapper:hover .csm-image-overlay {
    opacity: 1;
    visibility: visible;
}

#csmModal .csm-image-overlay .btn {
    line-height: normal;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
}