@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Colours */
  --dhsk-primary: #1a237e;
  --dhsk-secondary: #0d47a1;
  --dhsk-accent: #ff4081;
  --dhsk-dark: #121212;
  --dhsk-light: #f8f9fa;
  --dhsk-white: #ffffff;
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(26, 35, 126, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.85);
}

/* Smooth dark mode transition on HTML */
html {
  transition: background-color 0.3s ease;
}


/* =========================================
   Global & Typography
========================================= */
body {
  font-family: 'Inter', sans-serif !important;
  color: #333;
  background-color: var(--dhsk-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  color: var(--dhsk-primary);
  letter-spacing: -0.5px;
}

a {
  color: var(--dhsk-secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--dhsk-accent);
  text-decoration: none;
}

/* =========================================
   Top Bar & Header
========================================= */
.toparea {
  background: var(--dhsk-primary) !important;
  color: var(--dhsk-white) !important;
  padding: 8px 0 !important;
  font-size: 14px;
}

.toparea a {
  color: var(--dhsk-white) !important;
  opacity: 0.9;
  transition: var(--transition);
}

.toparea a:hover {
  opacity: 1;
  color: var(--dhsk-accent) !important;
}

/* Navbar */
.navbar-default {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none !important;
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
  transition: var(--transition);
}

.navbar-default .navbar-nav > li > a {
  color: var(--dhsk-dark) !important;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 20px;
  transition: var(--transition);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: var(--dhsk-primary) !important;
  background: transparent !important;
}

/* Navbar active line indicator */
.navbar-default .navbar-nav > li > a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--dhsk-accent);
  transition: width 0.3s;
  margin-top: 5px;
  border-radius: 2px;
}

.navbar-default .navbar-nav > li:hover > a::after,
.navbar-default .navbar-nav > li.active > a::after {
  width: 100%;
}

/* Logo */
.navbar-brand img {
  max-height: 60px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* =========================================
   Slider / Hero Section
========================================= */
.bs-slider {
  height: 550px !important;
  max-height: 550px !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bs-slider .carousel-inner,
.bs-slider .carousel-inner .item {
  height: 550px !important;
}

.bs-slider .carousel-inner .item img {
  width: 100% !important;
  height: 550px !important;
  object-fit: cover !important;
}

.carousel-inner .item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(26, 35, 126, 0.6) 100%);
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  bottom: 20%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carousel-caption h3 {
  color: var(--dhsk-white) !important;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease;
}

.carousel-caption p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

/* =========================================
   Buttons
========================================= */
.btn-primary {
  background: linear-gradient(135deg, var(--dhsk-secondary), var(--dhsk-primary));
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background: linear-gradient(135deg, var(--dhsk-primary), var(--dhsk-secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
}

.btn-success {
  background: var(--dhsk-accent);
  border: none;
  border-radius: var(--radius-sm);
}

/* =========================================
   Cards and Content Blocks
========================================= */
.newscontent, .complain, .sidebar .catetab {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.newscontent:hover, .complain:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sidebar .catetab {
  background: var(--dhsk-primary);
  color: var(--dhsk-white);
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
}

.newscontent {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 15px;
}

.newscontent .newsticker li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  transition: var(--transition);
}

.newscontent .newsticker li:hover {
  padding-left: 5px;
  background: #f8f9ff;
}

.datenews {
  background: var(--dhsk-primary);
  color: var(--dhsk-white);
  border-radius: var(--radius-sm);
  padding: 5px;
  text-align: center;
  width: 50px;
  display: inline-block;
  margin-right: 15px;
  float: left;
}

.datenews span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.2);
  margin-top: 3px;
  border-radius: 3px;
}

/* =========================================
   Footer
========================================= */
footer {
  background: var(--dhsk-dark) !important;
  color: #bbb !important;
  padding: 60px 0 30px;
  margin-top: 50px;
}

footer h3 {
  color: var(--dhsk-white) !important;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--dhsk-accent);
}

footer a {
  color: #bbb;
}

footer a:hover {
  color: var(--dhsk-accent);
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--dhsk-white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--dhsk-accent);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================================
   Multi-level Dropdowns
========================================= */
.dropdown-submenu {
  position: relative;
}

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

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

.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-radius: 6px 0 6px 6px;
}

/* =========================================
   Homepage & Layout Overrides
========================================= */

.homepage-modern-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Make topbar slightly more compact and glass-like */
.modern-toparea {
  background: var(--dhsk-primary) !important;
  color: var(--dhsk-white) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-toparea .top-right a, .modern-toparea .top-list a, .modern-toparea .top-list li {
  font-weight: 500;
  font-size: 14px;
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* True Glassmorphism for Navbar */
.modern-navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.4s ease;
  padding: 0 !important;
}

.modern-navbar .navbar-brand img {
  max-height: 55px;
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
  margin-top: -5px;
}

.modern-navbar .navbar-nav > li > a {
  padding: 12px 18px !important;
  color: #2c3e50 !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.modern-navbar .navbar-nav > li > a:hover {
  color: var(--dhsk-primary) !important;
  transform: translateY(-2px);
}

.modern-navbar .navbar-nav > li > a::after {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--dhsk-primary), var(--dhsk-accent));
}

/* Sidebar and Widgets */
.homepage-sidebar-footer .modern-horizontal-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.homepage-sidebar-footer .modern-horizontal-sidebar > div {
  flex: 1;
  min-width: 300px;
}

/* Card Hover Micro-animations */
.owl-carousel .fclts-news-grid {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.owl-carousel .fclts-news-grid:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--dhsk-primary), var(--dhsk-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   Internal Page Styling
========================================= */
.page-header-banner {
  background: linear-gradient(135deg, var(--dhsk-primary) 0%, #0d47a1 100%);
  padding: 35px 0;
  color: var(--dhsk-white);
  border-bottom: 4px solid var(--dhsk-accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.page-banner-title {
  color: var(--dhsk-white) !important;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-banner-breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px;
}

.page-banner-breadcrumb li, 
.page-banner-breadcrumb li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  text-decoration: none;
}

.page-banner-breadcrumb li a:hover {
  color: var(--dhsk-accent) !important;
}

.page-banner-breadcrumb li.active {
  color: var(--dhsk-white) !important;
}

.page-banner-breadcrumb > li + li:before {
  color: rgba(255, 255, 255, 0.4) !important;
  content: "/" !important;
  padding: 0 8px;
}

.internal-page-card {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.internal-page-card p {
  margin-bottom: 20px;
  color: #333;
}

.internal-page-card strong {
  color: var(--dhsk-primary);
  font-weight: 600;
}

.modern-sidebar .catetab {
  background: var(--dhsk-primary) !important;
  color: var(--dhsk-white) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 12px 15px !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  margin-bottom: 0 !important;
}

.modern-sidebar .newscontent {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  border: 1px solid #f0f0f0 !important;
  border-top: none !important;
  background: var(--dhsk-white) !important;
  padding: 15px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.internal-page-card a {
  color: var(--dhsk-primary);
  font-weight: 600;
  text-decoration: underline;
}

.internal-page-card a:hover {
  color: var(--dhsk-accent);
}

.internal-page-card .latestevent {
  margin-bottom: 15px;
}

.internal-page-card .alert-message-default {
  background: #f8f9ff;
  border-left: 4px solid var(--dhsk-primary);
  padding: 15px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.internal-page-card .alert-message-default h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.internal-page-card .alert-message-default h4 a {
  color: var(--dhsk-primary);
  text-decoration: none;
}

.internal-page-card .alert-message-default h4 a:hover {
  color: var(--dhsk-accent);
}

/* =========================================
   Homepage Welcome Section
========================================= */
.homepage-welcome-section {
  padding: 40px 0;
}

.welcome-heading {
  font-size: 2.5rem;
  color: var(--dhsk-primary);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
}

.welcome-heading .highlight-text {
  color: var(--dhsk-accent);
}

.heading-line {
  width: 80px;
  height: 4px;
  background: var(--dhsk-accent);
  margin-bottom: 25px;
  border-radius: 2px;
}

.welcome-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 20px;
}

.welcome-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.welcome-stats-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.stat-card {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--dhsk-primary);
}

.stat-icon {
  font-size: 32px;
  color: var(--dhsk-primary);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--dhsk-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================================
   Full-Width Layout Override
========================================= */
.container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* =========================================
   Mobile Navigation Nested Submenus Fix
========================================= */
@media (max-width: 767px) {
  .dropdown-submenu > .dropdown-menu {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin-top: 0 !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 20px !important;
    display: none;
  }
  .dropdown-submenu.open > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
  }
  .dropdown-submenu > a:after {
    display: none !important;
  }
}

/* =========================================
   Dibrugarh University Layout Inspired Styles
========================================= */

/* Hero Sidebar Quick Links */
.hero-quick-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: space-between;
}

.quick-link-item {
  display: flex;
  align-items: center;
  background: var(--dhsk-white);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--dhsk-primary);
  transition: var(--transition);
  height: calc((550px - 48px) / 5); /* calculated height based on slider height minus gap */
}

.quick-link-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--dhsk-primary) 0%, var(--dhsk-secondary) 100%);
  color: var(--dhsk-white) !important;
  border-left-color: var(--dhsk-accent);
}

.quick-link-item .ql-icon {
  font-size: 26px;
  color: var(--dhsk-primary);
  margin-right: 20px;
  transition: var(--transition);
}

.quick-link-item:hover .ql-icon {
  color: var(--dhsk-white);
  transform: scale(1.1);
}

.quick-link-item .ql-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  transition: var(--transition);
}

.quick-link-item:hover .ql-text h4 {
  color: var(--dhsk-white) !important;
}

.quick-link-item .ql-text p {
  margin: 0;
  font-size: 12px;
  color: #777;
  transition: var(--transition);
}

.quick-link-item:hover .ql-text p {
  color: rgba(255, 255, 255, 0.8);
}

/* Updates Marquee Ticker */
.updates-ticker-bar {
  background: linear-gradient(135deg, #005b41 0%, #004d40 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 3px solid var(--dhsk-accent);
  padding: 12px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
}

.ticker-badge {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: var(--dhsk-white);
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(183, 28, 28, 0.3);
}

.ticker-content {
  flex-grow: 1;
  padding: 0 20px;
  overflow: hidden;
}

.ticker-content marquee {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ticker-content marquee a {
  color: #ffffff;
  text-decoration: none;
}

.ticker-content marquee a:hover {
  color: #ffeb3b;
}

.ticker-btn-all {
  background: var(--dhsk-accent);
  color: var(--dhsk-white) !important;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
}

.ticker-btn-all:hover {
  background: #ffffff;
  color: var(--dhsk-primary) !important;
  transform: translateY(-1px);
}

/* Admission Call To Action Banner */
.admission-cta-banner {
  background: linear-gradient(135deg, #311b92 0%, #1a237e 100%);
  color: var(--dhsk-white);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--dhsk-accent);
}

.admission-cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admission-text h3 {
  color: var(--dhsk-white) !important;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.admission-text p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.admission-action {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-admission-apply {
  background: #ff9800;
  color: var(--dhsk-white) !important;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
  transition: var(--transition);
}

.btn-admission-apply:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.5);
}

.btn-admission-info {
  background: rgba(255, 255, 255, 0.15);
  color: var(--dhsk-white) !important;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.3);
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-admission-info:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Three Column Panels */
.info-columns-section {
  margin-bottom: 50px;
}

.info-card {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 0;
  height: 490px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
}

/* Info Card DHSK Campus Banner */
.info-card-banner {
  height: 110px;
  overflow: hidden;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.info-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card:hover .info-card-banner img {
  transform: scale(1.06);
}

/* Section Wise Card Colors */
.info-card.notif-card {
  border: 2px solid #1e88e5;
  border-top: 5px solid #1565c0;
}
.info-card.notif-card:hover {
  box-shadow: 0 10px 25px rgba(30, 136, 229, 0.18);
}

.info-card.results-card {
  border: 2px solid #8e24aa;
  border-top: 5px solid #6a1b9a;
}
.info-card.results-card:hover {
  box-shadow: 0 10px 25px rgba(142, 36, 170, 0.18);
}

.info-card.links-card {
  border: 2px solid #00897b;
  border-top: 5px solid #00695c;
}
.info-card.links-card:hover {
  box-shadow: 0 10px 25px rgba(0, 137, 123, 0.18);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.info-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.info-card-header h3 i {
  color: #ffffff;
}

.bg-blue-header { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); }
.bg-purple-header { background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%); }
.bg-teal-header { background: linear-gradient(135deg, #00897b 0%, #00695c 100%); }

.btn-card-viewall {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-card-viewall:hover {
  background: #ffffff;
  color: var(--dhsk-primary) !important;
  border-color: #ffffff;
}

.info-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li a {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition: var(--transition);
}

.info-list li a:hover {
  color: var(--dhsk-accent);
}

.info-date {
  font-size: 11px;
  color: #999;
}

.info-date i {
  margin-right: 4px;
}

/* Badges */
.badge-new-alert {
  background-color: #f44336;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 5px;
}

.badge-result-alert {
  background-color: #4caf50;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 5px;
}

.badge-exam-alert {
  background-color: #ff9800;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 5px;
}

/* Column 3 Links list */
.info-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-links-list li a {
  display: flex;
  align-items: center;
  color: #444;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition);
}

.info-links-list li a i {
  font-size: 16px;
  margin-right: 15px;
  width: 20px;
  text-align: center;
  color: var(--dhsk-primary);
  transition: var(--transition);
}

.info-links-list li a:hover {
  background: linear-gradient(135deg, var(--dhsk-primary) 0%, var(--dhsk-secondary) 100%);
  color: var(--dhsk-white) !important;
  transform: translateX(5px);
  border-color: transparent;
}

.info-links-list li a:hover i {
  color: var(--dhsk-white);
}

/* Quick Access Section */
.quick-access-grid-section {
  background: #ffffff;
  padding: 15px 0;
  margin-bottom: 30px;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.quick-access-wrapper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

@media (max-width: 991px) {
  .quick-access-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .quick-access-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 20px 10px;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
}

.qa-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--dhsk-white);
}

.qa-icon {
  font-size: 32px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.qa-item span {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}

.qa-item:hover span {
  color: var(--dhsk-primary);
}

.icon-red .qa-icon { color: #e53935; }
.icon-blue .qa-icon { color: #1e88e5; }
.icon-pink .qa-icon { color: #d81b60; }
.icon-purple .qa-icon { color: #8e24aa; }
.icon-green .qa-icon { color: #43a047; }
.icon-teal .qa-icon { color: #00897b; }
.icon-orange .qa-icon { color: #fb8c00; }

.qa-item:hover .qa-icon {
  transform: scale(1.1) translateY(-2px);
}

/* Events & News Split Section */
.events-news-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dhsk-primary);
  margin-top: 0;
  margin-bottom: 10px;
}

.news-events-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-underline {
  width: 50px;
  height: 4px;
  background: var(--dhsk-accent);
  margin-bottom: 30px;
  border-radius: 2px;
}

.title-underline.left-align {
  margin-left: 0;
}

/* Featured Event Card */
.featured-event-wrapper {
  min-height: 350px;
}

.featured-event-card {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid #ff5722;
  border-top: 5px solid #d84315;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-event-card:hover {
  box-shadow: 0 12px 30px rgba(255, 87, 34, 0.18);
  transform: translateY(-5px);
}

.fe-image-wrapper {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.fe-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-event-card:hover .fe-image-wrapper img {
  transform: scale(1.1);
  filter: grayscale(100%);
}

.fe-date-badge {
  position: absolute;
  top: 15px;
  left: -80px;
  background: #26ccca;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
  z-index: 10;
}

.featured-event-card:hover .fe-date-badge {
  left: 15px;
}

.fe-day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
}

.fe-month {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.fe-year {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.fe-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fe-body h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 15px;
}

.fe-body h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.fe-body h4 a:hover {
  color: var(--dhsk-primary);
}

.btn-fe-read {
  display: inline-block;
  color: var(--dhsk-accent) !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
}

.btn-fe-read:hover {
  color: var(--dhsk-primary) !important;
}

/* Ensure Owl Carousel items stretch to equal height */
.featured-event-wrapper .owl-stage {
  display: flex;
}
.featured-event-wrapper .owl-item {
  display: flex;
  flex: 1 0 auto;
}
.featured-event-wrapper .item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* News List Item (Right side) */
.news-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-list-item {
  display: flex;
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffb300;
  border-left: 5px solid #ff8f00;
  overflow: hidden;
  transition: var(--transition);
}

.news-list-item:hover {
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.15);
  transform: translateY(-3px);
}

.ni-img {
  width: 150px;
  min-width: 150px;
  height: 120px;
  overflow: hidden;
}

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

.news-list-item:hover .ni-img img {
  transform: scale(1.05);
}

.ni-details {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.ni-date {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.ni-details h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 5px 0 10px 0;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ni-details h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.ni-readmore {
  font-size: 12px;
  font-weight: 700;
  color: var(--dhsk-accent) !important;
  text-transform: uppercase;
}

.ni-readmore:hover {
  color: var(--dhsk-primary) !important;
}

/* Authorities Section */
.authorities-section {
  background: #f8f9fa;
  padding: 30px 0;
  margin-bottom: 30px;
  border-top: 1px solid rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

.authority-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid #3f51b5;
  border-top: 5px solid #1a237e;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dhsk-white);
  transition: var(--transition);
  height: 100%;
}

.authority-card:hover {
  box-shadow: 0 12px 30px rgba(63, 81, 181, 0.18);
  transform: translateY(-5px);
}

.authority-cover {
  height: 140px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

.authority-card:hover .authority-cover img {
  transform: scale(1.05);
}

.authority-content-wrapper {
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  margin-top: -65px;
  width: 100%;
}

.authority-image {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--dhsk-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 0;
}

.authority-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authority-details {
  flex-grow: 1;
  margin-top: 55px;
}

@media (max-width: 575px) {
  .authority-content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -75px;
  }
  .authority-details {
    margin-top: 15px;
  }
  .auth-divider {
    margin: 10px auto !important;
  }
}

.authority-details h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dhsk-primary);
  margin-top: 0;
  margin-bottom: 5px;
}

.authority-details h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dhsk-accent);
  margin: 0;
}

.auth-divider {
  width: 30px;
  height: 3px;
  background: var(--dhsk-accent);
  margin: 12px 0;
  border-radius: 2px;
}

.authority-details p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-auth-readmore {
  font-size: 12px;
  font-weight: 700;
  color: var(--dhsk-primary) !important;
  text-transform: uppercase;
}

.btn-auth-readmore:hover {
  color: var(--dhsk-accent) !important;
}

@media (max-width: 767px) {
  .authority-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .auth-divider {
    margin: 12px auto;
  }
}

/* Facilities Split Section */
.facilities-split-section {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 15px;
  color: #777;
  margin-top: 0;
  margin-bottom: 30px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 575px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facility-grid-item {
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  padding: 30px 15px;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 145px;
}

/* Colorful modifiers */
.facility-red { background: #ffebee; border-color: #ffcdd2; }
.facility-red .fi-icon { color: #d32f2f; }
.facility-red span { color: #b71c1c; }

.facility-blue { background: #e3f2fd; border-color: #bbdefb; }
.facility-blue .fi-icon { color: #1976d2; }
.facility-blue span { color: #0d47a1; }

.facility-green { background: #e8f5e9; border-color: #c8e6c9; }
.facility-green .fi-icon { color: #388e3c; }
.facility-green span { color: #1b5e20; }

.facility-purple { background: #f3e5f5; border-color: #e1bee7; }
.facility-purple .fi-icon { color: #7b1fa2; }
.facility-purple span { color: #4a148c; }

.facility-orange { background: #fff3e0; border-color: #ffe0b2; }
.facility-orange .fi-icon { color: #f57c00; }
.facility-orange span { color: #e65100; }

.facility-teal { background: #e0f2f1; border-color: #b2dfdb; }
.facility-teal .fi-icon { color: #00796b; }
.facility-teal span { color: #004d40; }

.facility-grid-item:hover {
  background: linear-gradient(135deg, var(--dhsk-primary) 0%, var(--dhsk-secondary) 100%);
  color: var(--dhsk-white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.facility-grid-item .fi-icon {
  font-size: 32px;
  color: var(--dhsk-primary);
  margin-bottom: 12px;
  transition: var(--transition);
}

.facility-grid-item:hover .fi-icon {
  color: var(--dhsk-white);
  transform: scale(1.1);
}

.facility-grid-item span {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  transition: var(--transition);
}

.facility-grid-item:hover span {
  color: var(--dhsk-white) !important;
}

/* Featured Facility Box */
.featured-facility-card {
  background: var(--dhsk-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid #4caf50;
  border-top: 5px solid #2e7d32;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.featured-facility-card:hover {
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.15);
  transform: translateY(-3px);
}

.ff-image {
  height: 200px;
  overflow: hidden;
}

.ff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-facility-card:hover .ff-image img {
  transform: scale(1.05);
}

.ff-txt {
  padding: 25px;
}

.ff-txt h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dhsk-primary);
  margin-top: 0;
  margin-bottom: 10px;
}

.ff-txt p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-ff-more {
  display: inline-block;
  background: var(--dhsk-primary);
  color: var(--dhsk-white) !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
  transition: var(--transition);
}

.btn-ff-more:hover {
  background: var(--dhsk-accent);
  box-shadow: 0 6px 15px rgba(26, 35, 126, 0.3);
  transform: translateY(-2px);
}

/* Academic stats banner */
.academic-stats-banner {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  padding: 60px 0;
  margin-bottom: 60px;
  border-bottom: 4px solid var(--dhsk-accent);
}

.text-white-header h2 {
  color: var(--dhsk-white) !important;
  font-size: 28px;
  font-weight: 800;
  margin-top: 0;
}

.text-white-header p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.title-underline.white-bg {
  background: var(--dhsk-white);
  margin: 15px auto;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  color: var(--dhsk-white);
}

.stat-item .stat-icon {
  font-size: 40px;
  color: var(--dhsk-accent);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-item .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--dhsk-white) !important;
  margin-bottom: 5px;
}

.stat-item .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Gallery */
.bottom-gallery-section {
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  margin: 10px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gi-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26, 35, 126, 0.9) 0%, rgba(26, 35, 126, 0) 100%);
  padding: 30px 15px 15px 15px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gi-overlay {
  opacity: 1;
}

.gi-overlay span {
  color: var(--dhsk-white);
  font-weight: 700;
  font-size: 14px;
}

/* =========================================
   Top Utility Bar Styles
========================================= */
.top-bar {
  background: var(--dhsk-primary); /* Changed from #004d40 to match college theme */
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-bar-ticker {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
}

.ticker-label {
  font-weight: 800;
  color: #ffeb3b; /* yellow */
  margin-right: 15px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

#top-bar-marquee {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

#top-bar-marquee a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

#top-bar-marquee a:hover {
  color: #ffeb3b;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-info a {
  color: #ffffff !important;
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transition);
}

.top-bar-info a:hover {
  opacity: 1;
  color: #ffeb3b !important;
}

.top-bar-info span {
  opacity: 0.9;
}

.top-bar-info i {
  margin-right: 4px;
  color: #ffeb3b;
}

.top-bar-links {
  display: flex;
  align-items: center;
}

.top-bar-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.top-bar-btn:hover {
  background: #ffffff;
  color: #004d40 !important;
  border-color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .top-bar-info {
    display: none;
  }
}

@media (max-width: 767px) {
  .top-bar-ticker {
    display: flex !important;
  }
  .top-bar-content {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
  }
}

/* =========================================
   Dark Mode Toggle Button
========================================= */
.top-bar-theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffeb3b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 10px;
  flex-shrink: 0;
}

.top-bar-theme-toggle:hover {
  background: #ffeb3b;
  color: #004d40;
  border-color: #ffeb3b;
  transform: rotate(20deg) scale(1.1);
}

.top-bar-theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.5);
}

/* =========================================
   DARK MODE — [data-theme="dark"]
========================================= */
[data-theme="dark"] {
  --dhsk-dark: #0a0f1e;
  --dhsk-light: #0f172a;
  --dhsk-white: #1e293b;
  --glass-bg: rgba(30, 41, 59, 0.9);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
  background-color: #0f172a;
  color: #cbd5e1;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] a {
  color: #93c5fd;
}

/* Dark Navbar */
[data-theme="dark"] .modern-header {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .modern-navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .modern-navbar .navbar-nav > li > a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .modern-navbar .navbar-nav > li > a:hover {
  color: #93c5fd !important;
}

[data-theme="dark"] .dropdown-menu {
  background-color: #1e293b !important;
  border-color: rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .dropdown-menu li a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .dropdown-menu li a:hover {
  background-color: rgba(255,255,255,0.07) !important;
  color: #93c5fd !important;
}

/* Dark hero quick links */
[data-theme="dark"] .quick-link-item {
  background: #1e293b;
  border-left-color: #3b82f6;
}

[data-theme="dark"] .quick-link-item .ql-icon {
  color: #93c5fd;
}

[data-theme="dark"] .quick-link-item .ql-text h4 {
  color: #e2e8f0;
}

[data-theme="dark"] .quick-link-item .ql-text p {
  color: #94a3b8;
}

/* Dark info cards */
[data-theme="dark"] .info-card {
  background: #1e293b;
}
[data-theme="dark"] .info-card.notif-card {
  border-color: rgba(30, 136, 229, 0.4);
  border-top-color: #1e88e5;
}
[data-theme="dark"] .info-card.results-card {
  border-color: rgba(142, 36, 170, 0.4);
  border-top-color: #8e24aa;
}
[data-theme="dark"] .info-card.links-card {
  border-color: rgba(0, 137, 123, 0.4);
  border-top-color: #00897b;
}

[data-theme="dark"] .info-list li {
  border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .info-list li a {
  color: #cbd5e1;
}

[data-theme="dark"] .info-links-list li a {
  background: #263450;
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .info-links-list li a i {
  color: #93c5fd;
}

/* Dark quick access */
[data-theme="dark"] .quick-access-grid-section {
  background: #1a2540;
  border-top-color: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .qa-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .qa-item span {
  color: #cbd5e1;
}

/* Dark news and events */
[data-theme="dark"] .featured-event-card {
  background: #1e293b;
  border-color: rgba(255, 87, 34, 0.4);
  border-top-color: #ff5722;
}

[data-theme="dark"] .fe-body h4 a {
  color: #e2e8f0;
}

[data-theme="dark"] .news-list-item {
  background: #1e293b;
  border-color: rgba(255, 179, 0, 0.4);
  border-left-color: #ffb300;
}

[data-theme="dark"] .ni-details h4 a {
  color: #e2e8f0;
}

/* Dark welcome section */
[data-theme="dark"] .welcome-box {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .welcome-box .section-title {
  color: #93c5fd !important;
}

[data-theme="dark"] .welcome-box p,
[data-theme="dark"] .welcome-box div {
  color: #94a3b8 !important;
}

/* Dark authorities section */
[data-theme="dark"] .authorities-section {
  background: #1a2540;
}

[data-theme="dark"] .authority-card {
  background: #1e293b;
  border-color: rgba(63, 81, 181, 0.4);
  border-top-color: #3f51b5;
}

[data-theme="dark"] .authority-image {
  border-color: #1e293b;
}

[data-theme="dark"] .authority-details h4 {
  color: #93c5fd !important;
}

[data-theme="dark"] .authority-details h5 {
  color: #f472b6 !important;
}

[data-theme="dark"] .authority-details p {
  color: #94a3b8;
}

/* Dark facilities */
[data-theme="dark"] .facility-grid-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .facility-grid-item .fi-icon {
  color: #93c5fd;
}

[data-theme="dark"] .facility-grid-item span {
  color: #cbd5e1;
}

[data-theme="dark"] .featured-facility-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .ff-txt h4 {
  color: #93c5fd !important;
}

[data-theme="dark"] .ff-txt p {
  color: #94a3b8;
}

/* Dark gallery */
[data-theme="dark"] .bottom-gallery-section .section-title {
  color: #e2e8f0 !important;
}

/* Dark internal pages */
[data-theme="dark"] .internal-page-card {
  background: #1e293b;
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .internal-page-card p {
  color: #94a3b8;
}

[data-theme="dark"] .internal-page-card strong {
  color: #93c5fd;
}

[data-theme="dark"] .internal-page-card a {
  color: #93c5fd;
}

[data-theme="dark"] .modern-sidebar .newscontent {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.07) !important;
}

/* Dark scrollToTop */
[data-theme="dark"] .scrollToTop {
  background: #3b82f6 !important;
}

/* Dark footer */
[data-theme="dark"] footer {
  background: #060d1f !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] footer h3 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] footer a {
  color: #94a3b8;
}

[data-theme="dark"] footer a:hover {
  color: #f472b6;
}

[data-theme="dark"] .copy-right {
  border-top-color: rgba(255,255,255,0.06) !important;
}

/* Dark page header banner */
[data-theme="dark"] .page-header-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

/* Dark section titles globally */
[data-theme="dark"] .section-title {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .section-subtitle {
  color: #94a3b8 !important;
}

/* Dark mobile nav */
[data-theme="dark"] .navbar-collapse {
  background: #0f172a;
}

/* Smooth transitions for dark mode */
body,
.modern-header,
.modern-navbar,
.info-card,
.quick-link-item,
.qa-item,
.authority-card,
.featured-event-card,
.news-list-item,
.facility-grid-item,
.featured-facility-card,
.internal-page-card,
.modern-sidebar .newscontent,
footer,
.welcome-box {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Page Header Banner Override */
.page-header-banner {
  background: linear-gradient(135deg, #1e3a8a, #312e81) !important;
  padding: 60px 0 !important;
  text-align: center !important;
  color: white !important;
  margin-bottom: 40px !important;
}
.page-header-banner .page-banner-title {
  font-size: 36px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: white !important;
}
.page-header-banner .page-banner-breadcrumb {
  display: none !important;
}
html[data-theme='dark'] .page-header-banner {
  background: linear-gradient(135deg, #0f172a, #020617) !important;
  border-bottom: 1px solid #1e293b !important;
}
/* Staff Card Styles */
.staff-card-item {
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #3b82f6 !important;
  border-right: 4px solid #3b82f6 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  height: 220px !important;
  background: #ffffff !important;
  color: #334155 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}
.staff-card-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  transform: translateY(-2px) !important;
}
.staff-card-item p {
  color: #475569 !important;
}
html[data-theme='dark'] .staff-card-item {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-left: 4px solid #3b82f6 !important;
  border-right: 4px solid #3b82f6 !important;
  color: #e2e8f0 !important;
}
html[data-theme='dark'] .staff-card-item p {
  color: #cbd5e1 !important;
}


@media (max-width: 767px) {
    /* Instant Menu Open (Quick Open) */
    .collapsing {
        transition: none !important;
    }
    
    /* Fix Hero Slider Height for Mobile */
    .bs-slider,
    .bs-slider .carousel-inner, 
    .bs-slider .item {
        height: auto !important;
        max-height: none !important;
        padding-bottom: 0 !important; /* Remove theme's default .item padding-bottom */
    }
    
    .bs-slider .carousel-inner .item img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .hero-quick-links {
        margin-top: 20px;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 10px;
    }


    .quick-link-item {
        height: auto !important;
        width: calc(50% - 5px);
        padding: 15px 10px !important;
        margin: 0 !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none !important;
        border-top: 4px solid var(--dhsk-primary);
    }
    
    .quick-link-item .ql-icon {
        margin-bottom: 8px;
        margin-right: 0 !important;
        font-size: 24px !important;
    }
    
    /* Hide Stats Banner on Mobile */
    .home-stats-wrapper {
        display: none !important;
    }
    
    /* Full width for Principal Desk, Welcome, Student Corner */
    .home-3col-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .home-3col-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .home-3col-section .col-sm-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .home-3col-section .home-card-col {
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid #eee;
        padding: 30px 15px !important;
    }
    
    /* Reduce footer height & padding on mobile */
    footer {
        padding: 30px 0 20px !important;
    }
    
    .footer-logo-area {
        text-align: center;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }

    /* Footer Collapse toggles for mobile */
    .footer-toggle {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    .footer-toggle i {
        transition: transform 0.3s;
    }
    .footer-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
}

/* Force open footer collapse on desktop */
@media (min-width: 768px) {
    .mobile-collapse.collapse {
        display: block !important;
        height: auto !important;
    }
    .footer-toggle {
        cursor: default !important;
        pointer-events: none;
    }
}

/* Center Align Logo only on mobile views */
@media (max-width: 767px) {
    .modern-navbar .navbar-header {
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }
    .modern-navbar .logo {
        float: none !important;
        display: inline-block !important;
        margin: 10px auto !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (FAB) SYSTEM
   ========================================================================== */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: none;
    outline: none !important;
    color: #ffffff;
    font-size: 24px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main-btn:hover {
    transform: scale(1.08);
}

.fab-main-btn.active {
    background: transparent;
}

/* Jumping Girl Animation */
@keyframes jumpAuto {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.jumping-girl {
    animation: jumpAuto 1.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.fab-sub-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto open menu on hover as well as click */
.fab-wrapper:hover .fab-sub-buttons,
.fab-wrapper.active .fab-sub-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-sub-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    outline: none !important;
    color: #ffffff !important;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative; /* For tooltips */
}

/* Tooltips for FAB items with moving arrow */
@keyframes arrowMoveRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
}

.fab-sub-btn::after {
    content: attr(title) " \2192"; /* Title + Right Arrow */
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: var(--dhsk-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    transition: opacity 0.3s, right 0.3s;
    pointer-events: none;
}

@media (max-width: 767px) {
    .fab-sub-btn::after {
        font-size: 11px;
        padding: 4px 8px;
        background: rgba(0, 0, 0, 0.75);
        color: #ffffff;
        border: none;
        backdrop-filter: blur(4px);
        right: 52px;
    }
    
    /* Adjust animation for mobile right spacing */
    .fab-wrapper:hover .fab-sub-btn::after,
    .fab-wrapper.active .fab-sub-btn::after {
        right: 48px;
    }
}

.fab-wrapper:hover .fab-sub-btn::after,
.fab-wrapper.active .fab-sub-btn::after {
    opacity: 1;
    visibility: visible;
    right: 55px; /* slight slide-in animation */
    animation: arrowMoveRight 1.5s infinite ease-in-out;
}

.fab-sub-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.fab-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.fab-menu {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}


/* ==========================================================================
   AI ASSISTANT SLIDE-IN PANEL
   ========================================================================== */
.ai-chat-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--dhsk-white);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

html[data-theme="dark"] .ai-chat-panel {
    background: #1e293b;
    border-left: 1px solid #334155;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

.ai-chat-panel.active {
    right: 0;
}

@media (max-width: 767px) {
    .ai-chat-panel {
        width: 100%;
        right: -100%;
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--dhsk-primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ai-chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.ai-chat-title span {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-title span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
}

.ai-chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    outline: none !important;
}

.ai-chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
}

.ai-message.incoming {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

html[data-theme="dark"] .ai-message.incoming {
    background: #334155;
    color: #f1f5f9;
}

.ai-message.outgoing {
    align-self: flex-end;
    background: var(--dhsk-primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.ai-chat-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--dhsk-white);
}

html[data-theme="dark"] .ai-chat-footer {
    border-top: 1px solid #334155;
    background: #1e293b;
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background: var(--dhsk-white);
    color: var(--text-color);
    border-radius: 30px;
    padding: 10px 18px;
    outline: none !important;
    font-size: 13.5px;
    resize: none;
    height: 40px;
}

html[data-theme="dark"] .ai-chat-input {
    border: 1px solid #334155;
    background: #0f172a;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dhsk-primary);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none !important;
}

.ai-chat-send:hover {
    background: #1e3a8a;
}


/* ==========================================================================
   TABLET GRID POPUP MENU
   ========================================================================== */
.tablet-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tablet-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tablet-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="dark"] .tablet-container {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255,255,255,0.05);
}

.tablet-menu-overlay.active .tablet-container {
    transform: scale(1);
}

.tablet-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    outline: none !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tablet-close-btn:hover {
    opacity: 1;
}

.tablet-header {
    text-align: center;
    margin-bottom: 35px;
}

.tablet-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.tablet-header p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

.tablet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .tablet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .tablet-container {
        padding: 30px 15px;
    }
}

.tablet-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
}

.tablet-app-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tablet-app-item:hover .tablet-app-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.tablet-app-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/* ==========================================================================
   SUBMENU FOLDER PANELS (iOS Folder style expand)
   ========================================================================== */
.submenu-folder-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    z-index: 100007;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

html[data-theme="dark"] .submenu-folder-panel {
    background: rgba(30, 41, 59, 0.98);
}

.submenu-folder-panel.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.submenu-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

html[data-theme="dark"] .submenu-folder-header {
    border-bottom: 1px solid #334155;
}

.submenu-folder-back {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--dhsk-primary);
    cursor: pointer;
    outline: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

html[data-theme="dark"] .submenu-folder-back {
    color: #93c5fd;
}

.submenu-folder-back:hover {
    transform: translateX(-3px);
}

.submenu-folder-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.submenu-folder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .submenu-folder-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .submenu-folder-panel {
        padding: 30px 15px;
    }
}

/* Mobile Logo Padding & Welcome Note Scrolling */
@media (max-width: 767px) {
    .logo, .navbar-brand.logo {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    header, .header {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

@media (min-width: 992px) {
    .welcome-note-text {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Full width slider on mobile */
@media (max-width: 767px) {
    .modern-hero-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    .modern-hero-container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .modern-hero-container .col-sm-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #bootstrap-touch-slider .item img {
        border-radius: 0 !important;
        width: 100% !important;
    }
}
/* CSS for Activity Cards and Pagination */
.modern-activity-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
html[data-theme="dark"] .modern-activity-card { background: #1e293b; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.modern-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
html[data-theme="dark"] .modern-activity-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.activity-card-link { text-decoration: none; display: block; height: 100%; color: inherit; }
.activity-card-link:hover, .activity-card-link:focus { text-decoration: none; color: inherit; }
.activity-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.modern-activity-card:hover .activity-img-wrapper img { transform: scale(1.05); }
.activity-date-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    z-index: 2;
}
.activity-date-badge .day { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.activity-date-badge .month { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.activity-date-badge .year { display: block; font-size: 10px; opacity: 0.8; }
.activity-content { padding: 25px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.activity-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-theme="dark"] .activity-title { color: #f8fafc; }
.activity-desc {
    color: #64748b;
    font-size: 14px;
    padding: 10px 18px;
    color: #475569;
}
/* CSS for Activity Cards and Pagination */
.modern-activity-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
html[data-theme="dark"] .modern-activity-card { background: #1e293b; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.modern-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
html[data-theme="dark"] .modern-activity-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.activity-card-link { text-decoration: none; display: block; height: 100%; color: inherit; }
.activity-card-link:hover, .activity-card-link:focus { text-decoration: none; color: inherit; }
.activity-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.modern-activity-card:hover .activity-img-wrapper img { transform: scale(1.05); }
.activity-date-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    z-index: 2;
}
.activity-date-badge .day { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.activity-date-badge .month { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.activity-date-badge .year { display: block; font-size: 10px; opacity: 0.8; }
.activity-content { padding: 25px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.activity-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-theme="dark"] .activity-title { color: #f8fafc; }
.activity-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
html[data-theme="dark"] .activity-desc { color: #94a3b8; }
.activity-read-more {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}
.activity-read-more i { margin-left: 5px; font-size: 12px; transition: transform 0.3s; }
.modern-activity-card:hover .activity-read-more i { transform: translateX(5px); }
html[data-theme="dark"] .activity-read-more { color: #60a5fa; }

/* Modern Pagination */
.modern-pagination-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 30px;
    margin-bottom: 50px;
}
.modern-pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 0;
}
html[data-theme="dark"] .modern-pagination { background: #1e293b; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.modern-pagination .page-item { margin: 0; border-right: 1px solid #e2e8f0; }
html[data-theme="dark"] .modern-pagination .page-item { border-right-color: #334155; }
.modern-pagination .page-item:last-child { border-right: none; }
.modern-pagination .page-link {
    padding: 10px 18px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
html[data-theme="dark"] .modern-pagination .page-link { color: #cbd5e1; }
.modern-pagination .page-link:hover { background-color: #f1f5f9; color: #3b82f6; }
html[data-theme="dark"] .modern-pagination .page-link:hover { background-color: #334155; color: #60a5fa; }
.modern-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
.modern-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: transparent;
    cursor: not-allowed;
}
html[data-theme="dark"] .modern-pagination .page-item.disabled .page-link { color: #64748b; }
.modern-pagination .page-link i { font-size: 16px; font-weight: bold; }
.modern-pagination .page-link.prev-next i { margin: 0 5px; }

/* Grid Flexbox to make all columns/cards equal height */
.modern-activities-page #activities {
    display: flex;
    flex-wrap: wrap;
}
.modern-activities-page #activities > [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
.modern-activities-page .modern-activity-card {
    margin-bottom: 0; /* Override margin-bottom since column handles it */
    height: 100%;
}
.modern-activities-page .activity-title {
    height: 52px;
    overflow: hidden;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.modern-activities-page .activity-desc {
    height: 72px;
    overflow: hidden;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}