/* Responsive Styles */

/* Large screens - desktop optimization */
@media (min-width: 1200px) {
  .carousel-wrapper {
    max-width: 1100px;
    height: 480px;
  }

  .power-item {
    width: 400px;
    height: 400px;
    padding: 35px;
  }

  .power-item .count {
    font-size: 28px;
  }

  .power-item .label {
    font-size: 14px;
  }

  .power-item.active {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 100;
  }

  .power-item.active .count {
    font-size: 36px;
  }

  .power-item.active .label {
    font-size: 16px;
  }

  .power-item.left1 {
    transform: translate(-170%, -50%) scale(0.9);
    z-index: 50;
  }

  .power-item.right1 {
    transform: translate(70%, -50%) scale(0.9);
    z-index: 50;
  }

  .power-item.left2 {
    transform: translate(-290%, -50%) scale(0.7);
    z-index: 10;
  }

  .power-item.right2 {
    transform: translate(190%, -50%) scale(0.7);
    z-index: 10;
  }

  .carousel-button {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
}

/* Extra large screens - ultra-wide optimization */
@media (min-width: 1600px) {
  .carousel-wrapper {
    max-width: 1400px;
    height: 520px;
  }

  .power-item {
    width: 450px;
    height: 450px;
    padding: 40px;
  }

  .power-item .count {
    font-size: 30px;
  }

  .power-item .label {
    font-size: 15px;
  }

  .power-item.active {
    transform: translate(-50%, -50%) scale(1.45);
    z-index: 100;
  }

  .power-item.active .count {
    font-size: 40px;
  }

  .power-item.active .label {
    font-size: 17px;
  }

  .power-item.left1 {
    transform: translate(-160%, -50%) scale(1.1);
    z-index: 50;
  }

  .power-item.right1 {
    transform: translate(60%, -50%) scale(1.1);
    z-index: 50;
  }

  .power-item.left2 {
    transform: translate(-260%, -50%) scale(0.9);
    z-index: 10;
  }

  .power-item.right2 {
    transform: translate(160%, -50%) scale(0.9);
    z-index: 10;
  }

  .carousel-button {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

/* Medium screens - tablet optimization */
@media (max-width: 992px) and (min-width: 769px) {
  .top-bar {
    padding: 6px 12px;
  }

  .top-bar .middle-logs img {
    height: 30px;
  }

  .top-bar .right-links {
    font-size: 0.8rem;
  }

  .theme-inline .theme-color {
    width: 14px;
    height: 14px;
  }

  /* About Grid Tablet Optimization - 4 items per row */
  .about-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
  }

  /* Tablet Content Optimizations */
  .hero-carousel {
    height: 40vh;
    min-height: 300px;
  }

  .about-section {
    padding: 25px 30px;
  }

  .about-section h3 {
    font-size: 28px;
  }

  .power-station-section {
    padding: 25px 20px !important;
  }

  .power-station-section .carousel-wrapper {
    height: 300px !important;
    max-width: 800px !important;
  }

  .power-station-section .power-item {
    width: 250px !important;
    height: 250px !important;
    padding: 20px !important;
  }

  .power-station-section .power-item .count {
    font-size: 26px !important;
  }

  .power-station-section .power-item .label {
    font-size: 13px !important;
  }

  .power-station-section .power-item.active {
    transform: translate(-50%, -50%) scale(1.3) !important;
    z-index: 100 !important;
  }

  .power-station-section .power-item.active .count {
    font-size: 32px !important;
  }

  .power-station-section .power-item.active .label {
    font-size: 15px !important;
  }

  .power-station-section .power-item.left1 {
    transform: translate(-150%, -50%) scale(1.05) !important;
    z-index: 50 !important;
  }

  .power-station-section .power-item.right1 {
    transform: translate(50%, -50%) scale(1.05) !important;
    z-index: 50 !important;
  }

  .power-station-section .power-item.left2 {
    transform: translate(-200%, -50%) scale(0.85) !important;
    z-index: 10 !important;
  }

  .power-station-section .power-item.right2 {
    transform: translate(200%, -50%) scale(0.85) !important;
    z-index: 10 !important;
  }

  .power-station-section .carousel-button,
  .power-station-section .power-station-carousel-button {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    top: 55% !important;
  }

  .power-station-section .carousel-button.left,
  .power-station-section .power-station-carousel-button.left {
    left: 10px !important;
  }

  .power-station-section .carousel-button.right,
  .power-station-section .power-station-carousel-button.right {
    right: 10px !important;
  }

  .news-alert-section {
    padding: 30px 25px;
  }

  .our-business-section,
  .quick-links-section,
  .photo-gallery-section {
    padding: 25px 20px;
  }

  .quick-links-wrapper .quick-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  /* .photo-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  } */



  .carousel-track img {
    height: 90px;
    margin: 0 18px;
  }

  /* Chairman Section Tablet Optimization */
  .chairman-section {
    padding: 35px 25px;
  }

  /* .section-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
  } */

  .chairman-card {
    padding: 20px 4%;
    gap: 28px;
    min-height: 280px;
  }

  .chairman-image img {
    max-width: 350px;
  }

  .chairman-content {
    padding: 0 18px;
  }

  .chairman-content blockquote {
    font-size: 1.05rem;
    margin: 14px 0 10px 0;
  }

  .chairman-name {
    font-size: 0.88rem;
    margin: 4px 0 13px;
  }

  .see-more-btn {
    padding: 7px 22px;
    font-size: 0.88rem;
  }
}

/* ============================================
   MOBILE HAMBURGER MENU - ONLY FOR MOBILE
   Bootstrap navbar-expand-sm (< 576px)
   ============================================ */

/* ============================================
   DESKTOP - NEUTRALIZE BOOTSTRAP, KEEP ORIGINAL DESIGN
   ============================================ */
@media (min-width: 992px) {

  /* Hide hamburger completely */
  .navbar-toggler {
    display: none !important;
  }

  /* Reset all Bootstrap navbar classes - don't interfere with desktop */
  .navbar,
  .navbar-expand-sm,
  .navbar-light,
  nav.navbar,
  nav.navbar-expand-sm,
  nav.main-nav-inner {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
    background: var(--primary-color) !important;
    height: 50px !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Reset navbar-collapse - make it behave normally */
  .navbar-collapse,
  .navbar-collapse.collapse,
  .navbar-collapse.collapse,
  .navbar-collapse.show {
    /* display: block !important; */
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: 50px !important;
    overflow: visible !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    width: 100% !important;
  }

  /* Ensure main-nav and main-nav-inner keep original styles */
  .main-nav,
  nav.main-nav,
  nav.navbar {
    display: flex !important;
    align-items: center !important;
    padding: 4px !important;
    height: 50px !important;
    position: relative !important;
    overflow: visible !important;
    overflow-y: hidden !important;
    background: var(--primary-color) !important;
  }

  .main-nav-inner,
  nav.main-nav-inner {
    display: flex !important;
    align-items: center !important;
    padding: 4px !important;
    height: 50px !important;
    position: relative !important;
    overflow: visible !important;
    overflow-y: hidden !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--primary-light) !important;
  }

  /* Keep #nav-list original desktop layout - SCROLLABLE */
  #nav-list {
    display: flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    margin-left: 60px !important;
    margin-right: 100px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    position: relative !important;
    height: 42px !important;
    max-height: 42px !important;
    flex: 1 !important;
    list-style: none !important;
    padding: 0 !important;
    color: #f8fcff !important;
  }

  #nav-list::-webkit-scrollbar {
    display: none !important;
  }

  /* Superfish menu inside nav-list */
  #superfish-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100% !important;
    height: 42px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    position: relative !important;
    padding-right: 0 !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #superfish-main::-webkit-scrollbar {
    display: none !important;
  }

  #superfish-main>li {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
    justify-content: space-between !important;
    position: relative !important;
    flex-shrink: 0 !important;
    height: 42px !important;
    max-height: 42px !important;
  }

  #superfish-main a {
    /* color: white !important; */
    text-decoration: none !important;
    white-space: nowrap !important;
    padding: 2px 16px !important;
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
    box-sizing: border-box !important;
  }

  /* Keep original home link position */
  .home-link {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 101 !important;
    flex-shrink: 0 !important;
  }

  /* Keep scroll controls in original position */
  .nav-scroll-controls {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    gap: 5px !important;
    z-index: 101 !important;
  }

  /* Hide mobile menu header on desktop */
  .mobile-menu-header {
    display: none !important;
  }
}


.about-section {
  padding: 10px 15px;
  margin: 5px;
}

.about-section h3 {
  font-size: 20px;
}

.about-card {
  padding: 12px;
}


.power-station-section .carousel-wrapper {
  height: 250px !important;
  max-width: 100% !important;
}

.power-station-section .power-item {
  width: 160px !important;
  height: 160px !important;
  padding: 12px !important;
}

.power-station-section .power-item .count {
  font-size: 18px !important;
}

.power-station-section .power-item .label {
  font-size: 10px !important;
}

.power-station-section .power-item.active {
  transform: translate(-50%, -50%) scale(1.2) !important;
  z-index: 99 !important;
}

.power-station-section .power-item.active .count {
  font-size: 24px !important;
}

.power-station-section .power-item.active .label {
  font-size: 12px !important;
}

.power-station-section .power-item.left1 {
  transform: translate(-130%, -50%) scale(0.95) !important;
  z-index: 50 !important;
}

.power-station-section .power-item.right1 {
  transform: translate(30%, -50%) scale(0.95) !important;
  z-index: 50 !important;
}

.power-station-section .power-item.left2 {
  transform: translate(-190%, -50%) scale(0.75) !important;
  z-index: 10 !important;
}

.power-station-section .power-item.right2 {
  transform: translate(95%, -50%) scale(0.75) !important;
  z-index: 10 !important;
}

.power-station-section .carousel-button,
.power-station-section .power-station-carousel-button {
  width: 30px !important;
  height: 30px !important;
  font-size: 16px !important;
  top: 50% !important;
}

.power-station-section .carousel-button.left,
.power-station-section .power-station-carousel-button.left {
  left: 3px !important;
}

.power-station-section .carousel-button.right,
.power-station-section .power-station-carousel-button.right {
  right: 3px !important;
}

.section-heading,
/* .section-title, */
/* .gallery-section-heading,
.quick-action-section-heading {
  font-size: 18px;
} */

/* .quick-links-wrapper .quick-arrow {
  width: 30px !important;
  height: 30px !important;
  font-size: 14px !important;
} */
table.views-table.views-view-table.cols-0 {
  width: 100%;
}

.quick-links-wrapper .quick-arrow.left {
  margin-right: 8px !important;
}

.quick-links-wrapper .quick-arrow.right {
  margin-left: 8px !important;
}

/* .photo-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
} */

.gallery-item {
  height: 200px;
}

.photo-gallery-grid-slider {
  gap: 10px;
}

.gallery-overlay,
.video-title {
  font-size: 0.8rem;
  padding: 10px 6px;
}


.carousel-track img {
  height: 100px;
  object-fit: contain;
  margin: 0px 20px;
}

.see-more-btn {
  font-size: 12px;
  padding: 6px 12px;
}

.power-item .label {
  font-size: 12px;
  line-height: 12px;
}

/* Chairman Section Extra Small Screen Optimization */
/* .chairman-section {
  padding: 20px 0px;
} */

.chairman-card {
  padding: 20px 6%;
  gap: 15px;
  border-radius: 8px;
}
.chairman-content p:first-child {
    font-size: 20px;
    font-weight: 700;
}
.chairman-content blockquote {
  font-size: 0.9rem;
  margin: 8px 0 6px 0;
  line-height: 1.4;
}

.chairman-name {
  font-size: 17px !important;
  margin: 2px 0 8px;
}

.see-more-btn {
  padding: 5px 15px;
  font-size: 0.75rem;
}

#render_orgchart .desktop {
  margin: 20px 0px !important;
}

@media (max-width: 1200px) {
  #render_orgchart .desktop {
    display: block !important;
  }
}

/* Mobile menu styles - ONLY below 992px */
@media (max-width: 991.98px) {

  /* Ensure header container is above footer and main content on mobile */
  .header {
    position: relative;
    z-index: 2000;
  }

  /* Hamburger Toggle Button */
  .navbar-toggler {
    display: block !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 20px;
    filter: invert(1);
  }

  /* SIDE DRAWER (SIDEBAR) CORE */
  .navbar-collapse {
    position: fixed !important;
    top: 0;
    left: -100%;
    /* Fully hidden by default */
    width: 300px !important;
    max-width: 300px !important;
    height: 100vh;
    background: linear-gradient(180deg, #007cb1 0%, #004b88 100%) !important;
    z-index: 2147483647 !important;
    /* Maximum Z-Index to stay above everything (Back to top button, headers, etc.) */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Inner Page Version - Unified Dark Sidebar for High Contrast */
  body:not(.path-frontpage) .navbar-collapse {
    background: linear-gradient(180deg, #007cb1 0%, #004b88 100%) !important;

  }

  .navbar-collapse.show {
    left: 0 !important;
  }

  /* Backdrop Overlay - Ensure it blocks all clicks */
  .navbar-collapse.show::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly darker for better focus */
    z-index: -1;
    animation: fadeIn 0.4s ease forwards;
    pointer-events: all;
    /* Ensure it catches all clicks */
    cursor: default;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Prevent Scroll when Menu Open */
  body:has(.navbar-collapse.show) {
    overflow: hidden !important;
  }


  body:not(.path-frontpage) .mobile-menu-header {
    background: #004b88 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #004b88 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 999999;
  }

  body:not(.path-frontpage) #superfish-main ul {
    background-color: #004b88 !important;
    border-left: 4px solid #F6AD0A !important;
    max-height: 400px !important;
    overflow: auto !important;
  }

  .mobile-menu-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  body:not(.path-frontpage) .mobile-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  /* NAVIGATION LIST */
  #nav-list,
  #superfish-main {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    list-style: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  #superfish-main {
    flex-direction: column !important;
  }

  /* Menu Items - Neutralize Desktop Layout */
  #superfish-main>li,
  #nav-list li,
  #superfish-main li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    float: none !important;
    overflow: visible !important;
    margin: 0 !important;
  }

  body:not(.path-frontpage) #superfish-main>li,
  body:not(.path-frontpage) #superfish-main li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  #superfish-main a,
  #nav-list li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.3s;
    height: auto !important;
    line-height: normal !important;
    white-space: normal !important;
    word-break: break-word;
  }

  body:not(.path-frontpage) #superfish-main a {
    color: #fff !important;
  }

  /* FULLY DISABLE ALL HOVER EFFECTS */
  #superfish-main a:hover,
  #superfish-main a:focus,
  #superfish-main a:active,
  #nav-list li a:hover,
  #superfish-main li:hover>a,
  #superfish-main li.sfHover>a {
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Transition for accordion sliding effect */
  #superfish-main ul {
    transition: max-height 0.4s ease-out, opacity 0.3s ease !important;
  }

  /* Keep active/open state distinct without relying on hover - THEME COLORS */
  #superfish-main li.is-open>a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #F6AD0A !important;
    /* Secondary Yellow Highlight for active parent */
  }

  body:not(.path-frontpage) #superfish-main li.is-open>a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #F6AD0A !important;
    font-weight: 600 !important;
  }

  /* SUBMENUS (STRICT VERTICAL ACCORDION - NO SIDE OPENING) */
  #superfish-main ul,
  #superfish-main ul ul,
  #superfish-main ul ul ul,
  #superfish-main ul ul ul ul,
  #superfish-main .sf-mega {
    display: block !important;
    position: static !important;
    /* Force vertical flow */
    width: 100% !important;
    min-width: 100% !important;
    background-color: #004b88 !important;
    /* Branded Primary Dark Blue */
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-height: 0;
    overflow: hidden !important;
    opacity: 0;
    visibility: hidden;
    list-style: none !important;
    border-left: 4px solid #F6AD0A !important;
    /* Secondary Yellow Highlight */
    float: none !important;
    /* Neutralize Superfish JS positioning */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: 0 !important;
  }

  /* Inner Page Version - Submenu Background (Unified Dark Theme for Mobile) */
  body:not(.path-frontpage) #superfish-main ul {
    background-color: #004b88 !important;
    border-left: 4px solid #F6AD0A !important;
  }

  /* Level 3 (Nested Submenu) Background - Higher Distinction */
  #superfish-main ul ul {
    background-color: #002a4d !important;
    /* Deeper Darker Blue */
    border-left: 3px solid #aaddff !important;
    /* Distinct Light Blue Border for Level 3 */
  }

  body:not(.path-frontpage) #superfish-main ul ul {
    background-color: #002a4d !important;
    border-left: 3px solid #aaddff !important;
  }

  #superfish-main li.is-open>ul {
    max-height: 400px !important;
    /* Confined height for scrolling */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px 0 !important;
    /* Spacing only when open */
  }

  #superfish-main>li>ul {
    width: 295px !important;
    max-height: 400px !important;
    overflow: auto !important;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Submenu Links - FORCED WHITE ON DARK BG */
  #superfish-main ul a {
    padding: 12px 20px 12px 35px !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .main-nav-inner #superfish-main ul li {
    width: 295px !important;
    max-height: none;
  }

  #superfish-main ul ul a {
    padding-left: 50px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  #superfish-main>li>ul {
    width: 295px !important;
  }

  #superfish-main ul ul a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  #superfish-main ul li,
  .main-nav-inner #superfish-main ul li,
  #superfish-main li {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-nav-inner #superfish-main ul ul a {
    color: #ffffff !important;
    background: #0dcaf0 !important;
  }

  .main-nav-inner #nav-list {
    display: block !important;
  }

  /* Expand/Collapse Indicator */
  #superfish-main li.menuparent>a::after {
    /* content: '\f107' !important; */
    /* FontAwesome Down Arrow */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 14px;
    transition: transform 0.3s;
    margin-left: 10px;
    display: inline-block;
  }

  #superfish-main li.menuparent.is-open>a::after {
    transform: rotate(180deg);
  }

  /* Active states */
  #superfish-main li.active>a {
    color: #fdb913 !important;
    font-weight: 700 !important;
  }

  /* Hide scroll controls and desktop home link */
  .nav-scroll-controls,
  .main-nav .home-link,
  .main-nav-inner .home-link {
    display: none !important;
  }

  /* Container adjustment for both Navbars - ENSURE SCROLLING */
  .main-nav,
  .main-nav-inner,
  #nav-list,
  #superfish-main,
  #superfish-main li,
  #nav-list li {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 50px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    /* Critical to allow submenu scroll */
    overflow-y: visible !important;
  }

  /* Consolidated Accordion Open State - STRICTLY VERTICAL & SCROLLABLE */
  #superfish-main li.is-open>ul,
  #superfish-main li.is-open>ul ul,
  #superfish-main li.is-open>ul ul ul,
  .main-nav-inner #superfish-main li.is-open>ul,
  .main-nav-inner #superfish-main li.is-open>ul ul,
  .main-nav-inner #superfish-main li.is-open>ul ul ul {
    position: static !important;
    max-height: 350px !important;
    /* Reduced for better mobile trigger */
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px 0 !important;
    overflow-y: auto !important;
    /* Forces scrollbar */
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(255, 255, 255, 0.1);
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  #superfish-main li.is-open>ul::-webkit-scrollbar {
    width: 5px;
  }

  #superfish-main li.is-open>ul::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
  }

  #superfish-main li.is-open>ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 992px) {

    .top-bar .left-links,
    .top-bar .middle-logs,
    .top-bar .right-links {
      gap: 4px;
    }
  }
}


@media (max-width: 768px) {
  .org-text p {
    margin: 0.7px 0;
    font-size: 0.7rem;
  }

  .logo-bar-inner {
    text-align: left !important;
  }

  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 5px 0;
  }

  /* Top bar responsive adjustments */
  .top-bar {
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
    min-height: auto;
  }

  /* Stack left and right sections vertically */
  .top-bar .left-links,
  .top-bar .right-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  /* Optimize right section for mobile */
  .top-bar .right-links {
    order: 2;
    font-size: 0.8rem;
  }

  .top-bar .left-links {
    order: 1;
  }

  /* Hide less important elements on small screens */
  .top-bar .right-links .skiptomain {
    display: none;
  }

  /* Adjust language toggle for mobile */
  .language-switch {
    padding: 2px 8px;
    font-size: 0.8rem;
    min-width: auto;
  }

  /* Optimize theme selector for mobile */
  .theme-inline {
    gap: 4px;
    margin-left: 4px;
  }

  .theme-inline .theme-color {
    width: 12px;
    height: 12px;
  }

  /* Adjust search icon for mobile */
  .search_icons_mobile {
    margin-left: 4px;
  }

  .search_icons_mobile .search-btn a {
    font-size: 0.9rem;
  }

  /* Hero/Banner Section Optimization */
  .hero-carousel {
    height: 40vh !important;
    min-height: 250px;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .carousel-dots button {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }

  .hero-text {
    width: 95%;
    font-size: 0.85rem;
    padding: 10px;
  }

  /* Mobile navigation adjustments */
  .main-nav,
  .main-nav-inner {
    height: auto;
    min-height: 50px;
  }

  .main-nav .home-link,
  .main-nav-inner .home-link {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
  }

  .main-nav .home-link a,
  .main-nav-inner .home-link a {
    width: 35px;
    height: 35px;
  }

  .main-nav .home-link svg,
  .main-nav-inner .home-link svg {
    width: 18px;
    height: 18px;
  }

  #nav-list {
    margin-left: 50px;
    /* Reduced space for home icon on mobile */
    padding-right: 0;
    /* Remove padding on mobile */
  }


  /* Announcement Bar Optimization */
  .announcement-bar {
    padding: 10px;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    font-size: 0.8rem;
    overflow: visible;
  }

  .announcement-left {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 8px 15px !important;
    border-radius: 4px;
    white-space: normal;
    background: #fdb913;
  }

  .announcement-title {
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .announcement-controls {
    display: flex !important;
    justify-content: flex-end;
    margin-top: 0;
    gap: 8px;
  }

  .announcement-track-wrapper {
    width: 100% !important;
    margin-top: 0;
    border-radius: 4px;
    padding: 8px;
    background: var(--primary-color);
  }

  /* About Section Optimization */
  .about-section {
    padding: 0px;
    margin: 0px;
  }

  .about-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .about-section-main {
    flex-direction: column;
    gap: 0px;
  }

  .about-section-main p {
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0px;
  }

  .about-card {
    font-weight: 500;
  }

  .about-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .about-card p {
    font-size: 13px;
  }

  .power-station-section {
    padding: 20px 15px !important;
  }

  .power-station-section h3 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  .power-station-section .carousel-wrapper {
    height: 160px !important;
    margin: 15px auto !important;
    max-width: 100% !important;
  }

  .power-station-section .power-item {
    width: 110px !important;
    height: 110px !important;
    padding: 15px !important;
  }

  .power-station-section .power-item .count {
    font-size: 22px !important;
  }

  .power-station-section .power-item .label {
    font-size: 12px !important;
  }

  .power-station-section .power-item.active {
    transform: translate(-50%, -50%) scale(1.25) !important;
  }

  .power-station-section .power-item.active .count {
    font-size: 28px !important;
  }

  .power-station-section .power-item.left1 {
    transform: translate(-110%, -50%) scale(1.0) !important;
  }

  .power-station-section .power-item.right1 {
    transform: translate(10%, -50%) scale(1.0) !important;
  }

  .power-station-section .power-item.left2 {
    transform: translate(-180%, -50%) scale(0.8) !important;
  }

  .power-station-section .power-item.right2 {
    transform: translate(80%, -50%) scale(0.8) !important;
  }

  .power-station-section .carousel-button,
  .power-station-section .power-station-carousel-button {
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
    top: 55% !important;
  }

  .power-station-section .carousel-button.left,
  .power-station-section .power-station-carousel-button.left {
    left: 5px !important;
  }

  .power-station-section .carousel-button.right,
  .power-station-section .power-station-carousel-button.right {
    right: 5px !important;
  }

  /* Chairman Section Optimization */
  .chairman-section {
    padding: 25px 15px;
  }

  /* .section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  } */

  .chairman-card {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    gap: 20px;
    min-height: auto;
  }

  .chairman-image {
    align-self: center;
  }

  .chairman-image img {
    max-width: 200px;
    width: 100%;
  }

  .chairman-content {
    text-align: center;
    padding: 0;
  }

  /* Business Grid Mobile Optimization - 2 items per row */
  .business-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0px !important;
  }

  .business-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* About Grid Mobile Optimization - ensure full width */
  .about-grid {
    width: 100% !important;
  }

  .chairman-content blockquote {
    font-size: 0.95rem;
    margin: 10px 0 8px 0;
    line-height: 1.5;
  }

  .chairman-name {
    font-size: 0.8rem;
    margin: 3px 0 10px;
    text-align: center;
  }

  .see-more-btn {
    align-self: center;
    padding: 6px 18px;
    font-size: 0.8rem;
  }

  /* News & Alert Section Optimization */
  .news-alert-section {
    padding: 25px 15px;
  }

  .news-alert-container {
    flex-direction: column;
    gap: 5px;
  }

  .news-column,
  .alert-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 10px 20px !important;
  }

  /* Ensure internal content takes 100% width */
  .news-column>*,
  .alert-column>*,
  .news-column .region,
  .news-column .view,
  .alert-column .region,
  .alert-column .view {
    width: 100% !important;
  }

  .section-heading {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  /* Quick Links Section Optimization */
  .quick-links-section {
    padding: 20px 15px;
  }

  .quick-action-section-heading {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .quick-links-wrapper .quick-arrow {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }

  .quick-links-wrapper .quick-arrow.left {
    margin-right: 5px !important;
  }

  .quick-links-wrapper .quick-arrow.right {
    margin-left: 5px !important;
  }

  .quick-links-container {
    padding-top: 80px !important;
    gap: 15px !important;
    scroll-snap-type: x mandatory !important;
  }

  .quick-card {
    min-width: 250px !important;
    max-width: 250px !important;
    flex: 0 0 250px !important;
    scroll-snap-align: center !important;
  }

  /* Photo Gallery Section Optimization */
  .photo-gallery-section {
    padding: 20px 15px;
  }

  .gallery-section-heading {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .gallery-item {
    border-radius: 4px;
    height: 180px;
  }

  .gallery-overlay {
    font-size: 0.85rem;
    padding: 12px 8px;
  }

  /* Logo Carousel Optimization */
  .logo-carousel {
    padding: 15px 0;
    /* height: 60px; */
  }

  .carousel-track img {
    height: 80px;
    margin: 0 15px;
  }

  .see-more-wrapper {
    margin-top: 10px;
  }

  .see-more-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Additional responsive breakpoints for better top bar optimization */
@media (max-width: 480px) {
  #superfish-main ul li {
    display: block !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 300px !important;
    float: none !important;
    clear: both !important;
    /* Critical: Parent li must expand to fit nested ul children */
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* Extra small screens - further optimize top bar */
  .top-bar {
    padding: 6px 8px;
    gap: 6px;
  }

  .top-bar .right-links {
    font-size: 0.75rem;
    gap: 6px;
    justify-content: right;
  }

  /* Make language toggle more compact */
  .language-switch {
    padding: 1px 6px;
    font-size: 0.75rem;
  }

  /* Make theme selectors smaller */
  .theme-inline .theme-color {
    width: 10px;
    height: 10px;
  }

  /* Adjust left links for very small screens */
  .top-bar .left-links img {
    height: 16px;
  }

  /* Extra Small Screen Content Optimizations */
  .hero-carousel {
    height: 18vh !important;
    min-height: 155px;
  }
}

@media (max-width: 360px) {

  /* Very small screens - minimal top bar */
  .top-bar {
    padding: 4px 6px;
    gap: 4px;
  }

  .top-bar .right-links {
    font-size: 0.7rem;
    gap: 4px;
  }

  /* Hide theme selectors on very small screens */
  .theme-inline {
    display: none;
  }

  /* Keep only essential elements */
  .language-switch {
    padding: 1px 4px;
    font-size: 0.7rem;
  }

  /* Very Small Screen Content Optimizations */
  .hero-carousel {
    height: 30vh !important;
    min-height: 180px;
  }

  .about-section {
    padding: 8px 10px;
    margin: 3px;
  }

  .about-section h3 {
    font-size: 18px;
  }

  .about-section-main p {
    font-size: 13px;
  }

  .about-card h4 {
    font-size: 14px;
  }

  .about-card p {
    font-size: 12px;
  }

  .power-station-section {
    padding: 15px 10px !important;
  }

  .power-station-section .carousel-wrapper {
    height: 110px !important;
    max-width: 100% !important;
  }

  .power-station-section .power-item {
    width: 80px !important;
    height: 80px !important;
    padding: 10px !important;
  }

  .power-station-section .power-item .count {
    font-size: 16px !important;
  }

  .power-station-section .power-item .label {
    font-size: 9px !important;
  }

  .power-station-section .power-item.active {
    transform: translate(-50%, -50%) scale(1.15) !important;
  }

  .power-station-section .power-item.active .count {
    font-size: 20px !important;
  }

  .power-station-section .power-item.active .label {
    font-size: 11px !important;
  }

  .power-station-section .power-item.left1 {
    transform: translate(-90%, -50%) scale(0.9) !important;
  }

  .power-station-section .power-item.right1 {
    transform: translate(-10%, -50%) scale(0.9) !important;
  }

  .power-station-section .power-item.left2 {
    transform: translate(-140%, -50%) scale(0.7) !important;
  }

  .power-station-section .power-item.right2 {
    transform: translate(40%, -50%) scale(0.7) !important;
  }

  .power-station-section .carousel-button,
  .power-station-section .power-station-carousel-button {
    width: 25px !important;
    height: 25px !important;
    font-size: 14px !important;
    top: 55% !important;
  }

  .power-station-section .carousel-button.left,
  .power-station-section .power-station-carousel-button.left {
    left: 3px !important;
  }

  .power-station-section .carousel-button.right,
  .power-station-section .power-station-carousel-button.right {
    right: 3px !important;
  }

  .news-alert-section {
    padding: 20px 10px;
  }

  .our-business-section,
  .quick-links-section,
  .photo-gallery-section {
    padding: 15px 10px;
  }

  .section-heading,
  .section-title,
  .gallery-section-heading,
  .quick-action-section-heading {
    font-size: 16px;
  }

  .quick-links-wrapper .quick-arrow {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  .quick-links-wrapper .quick-arrow.left {
    margin-right: 6px !important;
  }

  .quick-links-wrapper .quick-arrow.right {
    margin-left: 6px !important;
  }

  .quick-links-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 15px !important;
    width: 100% !important;
    padding-top: 80px !important;
    scrollbar-width: none !important;
  }

  .quick-card {
    min-width: 240px !important;
    max-width: 240px !important;
    flex: 0 0 240px !important;
    scroll-snap-align: center !important;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
  }

  .gallery-item {
    height: 100px;
  }

  .gallery-overlay,
  .video-title {
    font-size: 0.75rem;
    padding: 8px 6px;
  }


  .carousel-track img {
    height: 60px;
    margin: 0 8px;
  }

  .see-more-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .power-item .label {
    font-size: 12px;
    line-height: 12px;
  }

  /* Chairman Section Very Small Screen Optimization */
  .chairman-section {
    padding: 15px 8px;
  }

  .section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .chairman-card {
    padding: 15px 10px;
    gap: 12px;
    border-radius: 6px;
  }

  .chairman-image img {
    max-width: 140px;
  }

  .chairman-content blockquote {
    font-size: 0.85rem;
    margin: 6px 0 5px 0;
    line-height: 1.3;
  }

  .chairman-name {
    font-size: 0.7rem;
    margin: 2px 0 6px;
  }

  .see-more-btn {
    padding: 4px 12px;
    font-size: 0.7rem;
  }

  li.statutory-compliance {
    position: relative !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

}

/* =========================================
   Mobile Navigation & Offcanvas Menu Styles 
   ========================================= */
@media (max-width: 991px) {

  /* Force Navbar Collapse on Tablets & Mobile */
  .navbar-toggler {
    display: block !important;
    border: none;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 20px;
    /* Adjust based on valid header height */
    z-index: 1050;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  /* Make the collapse act as a drawer */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -300px;
    /* Start off-screen */
    bottom: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 2147483647 !important;
    display: block !important;
    /* Override bootstrap display:none */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow-y: auto;

    /* Initially Hidden but display:block ensures transition works if handled by JS adding class */
    /* Usually bootstrap adds .show or .collapse.show */
  }

  /* When expanded */
  .navbar-collapse.show {
    right: 0 !important;
    /* Slide in */
  }

  /* Ensure backdrop for this instance too */
  .navbar-collapse.show::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    pointer-events: all;
    cursor: default;
  }

  /* Hide carousel play/pause button when mobile menu is open to prevent overlapping */
  body:has(.navbar-collapse.show) .carousel-pause-toggle {
    display: none !important;
  }

  /* Mobile Menu Header */
  .mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary-color, #0056b3);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
  }

  .mobile-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }

  .mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Mobile Navigation List */
  #nav-list.menu {
    flex-direction: column !important;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    height: auto !important;
  }

  #nav-list.menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  #nav-list.menu li:last-child {
    border-bottom: none;
  }

  #nav-list.menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
  }

  #nav-list.menu li a:hover,
  #nav-list.menu li a.is-active {
    background-color: #f8f9fa;
    color: var(--primary-color, #0056b3);
    padding-left: 25px;
    /* Indent on hover */
  }

  /* Hide Desktop-only elements */
  .nav-scroll-controls {
    display: none !important;
  }

  /* Dropdown handling - basic */
  #nav-list.menu li ul {
    position: static !important;
    box-shadow: none !important;
    background: #f9f9f9;
    padding: 0;
    display: none;
    width: 100%;
    border-top: 1px solid #eee;
  }

  /* Show dropdown on hover/focus - minimal interaction */
  #nav-list.menu li:hover>ul {
    display: block;
  }

  #nav-list.menu li ul li a {
    padding-left: 35px;
    font-size: 14px;
    color: #666;
  }
}

/* Adjustments for the Navbar Wrapper on Mobile */
@media (max-width: 991px) {
  .navbar.main-nav {
    padding: 10px 15px;
    min-height: 60px;
    justify-content: flex-end;
    /* Align toggler to right */
    position: relative;
  }

  /* Hide search or other icons if they conflict, or position them */
  .search_icons_mobile {
    display: flex;
    align-items: center;
    gap: 15px;
  }
}

/* =========================================
   Footer Responsive Optimization
   ========================================= */
@media (max-width: 991px) {
  .site-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 30px 15px;
    position: relative;
    z-index: 1;
    /* Explicitly low z-index to stay below header/sidebar */
  }

  .site-footer>* {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0;
  }

  .footer-links {
    text-align: center;
    justify-content: center;
  }

  .validation-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom .copyright,
  .footer-bottom .visitor-count {
    width: 100%;
    margin: 0;
    justify-content: center;
    text-align: center !important;
  }

  .visitor-count p {
    text-align: center;
    display: inline-block;
  }

  .power-station-section .power-item.active .label {
    font-weight: 400 !important;
  }

  .carousel-prev,
  .carousel-next {
    font-size: 1rem;
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================
   WCAG 2.1 SC 1.4.10 - REFLOW OPTIMIZATION (320px x 256px)
   Prevents 2D scrolling and ensure content remains readable.
   ========================================================== */
@media (max-width: 320px) {

  /* 1. Global Reflow Reset */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* 2. Force Vertical Stacking */
  .container,
  .container-fluid,
  .row,
  .grid,
  .middle-logs,
  .top-bar,
  .right-links,
  .logo-bar,
  .business-grid,
  .about-grid,
  .photo-gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0px !important;
    height: auto !important;
    transform: none !important;
  }

  /* 3. Handle Logos to prevent overflow */
  .logo-bar img,
  .middle-logs img,
  .logo-left-inner img {
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0 !important;
  }

  /* 4. Top Utility Bar Reflow */
  .top-bar {
    padding: 10px 0 !important;
  }

  .left-links,
  .right-links {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .language-toggle ul {
    justify-content: center !important;
    padding: 0 !important;
  }

  /* 5. Hero Carousel Reflow */
  .hero-carousel {
    height: auto !important;
    min-height: 200px !important;
  }

  .carousel-slide img {
    height: auto !important;
    width: 100% !important;
    object-fit: cover;
  }

  /* 6. Power Stations Section - Stack vertically instead of complex carousel */
  .power-station-section .carousel-wrapper {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .power-item {
    position: static !important;
    transform: none !important;
    margin-bottom: 20px !important;
    width: 90% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .power-station-carousel-button {
    display: none !important;
  }

  /* 7. Announcement Ticker - Stop flow and wrap */
  .announcement-track-wrapper {
    overflow-x: visible !important;
    white-space: normal !important;
  }

  .announcement-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .announcement-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0 !important;
  }

  /* 8. Text Size Adjustments for Small Viewport */
  h1,
  h2,
  h3 {
    word-break: break-word !important;
    hyphens: auto;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  /* 9. Utility Classes */
  .no-2d-scroll {
    overflow-x: hidden !important;
  }
}

/* Handle Low Height Viewports (256px) */
@media (max-height: 256px) {
  .logo-bar {
    padding: 5px 0 !important;
  }

  .hero-carousel {
    min-height: 150px !important;
  }

  /* Ensure fixed headers don't hide everything */
  header {
    position: static !important;
  }
}

@media print {
  .back-to-top,
  #back-to-top,
  .back-to-top.show,
  .accessibility-trigger,
  #accessibility-trigger,
  .accessibility-drawer,
  #accessibility-drawer,
  .accessibility-overlay,
  #accessibility-overlay,
  .social-media-fixed,
  .accessibility-icons,
  .social-icons,
  .nav-scroll-controls,
  .language-notification,
  #inauguration-modal-overlay,
  .skip-link,
  .elw-modal-overlay,
  .no-print {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}