/* ========== CSS RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f7f9fa;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== HEADER STYLES ========== */
/* ===== FIXED HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f8f8;
  /* #00B2E3;
  */

  border-bottom: 1px solid #ccc;
  padding: 10px 10px;
  z-index: 1000;
}

/* 🔹 HEADER STRUCTURE */

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


.header-logo {
  display: flex;
  align-items: center;
  padding-right: 0px;
  margin-right: 0px;
}

.header-logo-img {
  height: 60px;
  width: auto;
}

.header-title-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 5px;
}

.header-title-block {
  padding-right: 50px;
  margin-right: 50px;
  border-right: 0px solid #ccc;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #00b2e3;
  white-space: nowrap;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  position: relative;
  padding: 0px 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #00b2e3;
}

.nav-item.active {
  color: #00b2e3;
  font-weight: 600;
  border-bottom: 2px solid #00b2e3;
}

/* Dropdown Menu */
.dropdown-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 1px;
  padding: 10px 0;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.dropdown-item:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  color: #5c5c5c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  transition: all 0.2s;
}

.dropdown a:hover {
  background-color: #f0f8ff;
  color: #00b2e3;
}

/* Mobile Toggle Button */
.sidebar-toggle-header {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #00b2e3;
  cursor: pointer;
  padding: 5px;
}

/* ========== MAIN CONTAINER ========== */
.main-container {
  display: flex;
  position: relative;
  margin-top: 85px;
  flex-direction: row;
  min-height: calc(100vh - 85px); 
  transition: all 0.3s ease;
  z-index: 1;
}


/* Sidebar */
.sidebar {
  width: 23vw;
  min-width: 23vw;
  height: calc(100vh - 85px); /* Adjusted for header */
  background-color: #f0f9fc;
  border-right: 1px solid #d1e7f0;
  overflow-y: auto; /* Changed from visible to auto */
  overflow-x: hidden; /* Prevent horizontal scroll */
  transition: all 0.3s ease;
  z-index:1;
}



/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #c2e0ff;
  border-radius: 4px;
}

/* Accordion Styles */
/* Base appearance for .accordion-btn */
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 400;
  color: white;
  background-color: #00b2e3;
  border: none;
  border-bottom: 1px solid #a9ddec;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background-color 0.2s;
  position: relative;
  overflow: hidden; /* Ensure no scroll in panel */
}

/* 👇 Disable interactivity and overrides */
.accordion-btn.no-interact,
.accordion-btn.no-interact:hover,
.accordion-btn.no-interact:active,
.accordion-btn.no-interact.active {
  background-color: #00b2e3 !important; /* fallback to base color */
  color: white !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  cursor: default !important;
  transition: none !important;
  z-index: 1;
}

/* Optional: prevent sub-elements from triggering hover visuals */
.accordion-btn.no-interact * {
  pointer-events: none;
  user-select: none;
}




.accordion-btn:hover {
  transform: translateX(-4px); /* makes it rise */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* adds a soft shadow */
}

.accordion-btn.active {
  transform: translate(0px, -8px);
  border-top: 5px solid rgb(255, 255, 255); /* clean white border */
  box-shadow: 20px 10px 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
  
}


.accordion-btn img {
  width: 60px;
  height: 60px;
  object-fit:fill;
  border-radius: 5px;
  box-shadow: 20px 6px 14px rgba(0, 0, 0, 0.2); /* soft 3D shadow */
}

.accordion-btn .subset img {
  border: 1px solid rgb(255, 255, 255); /* Optional: visible border */
  border-radius: 5px;                /* Optional: rounded corners */
  
}


.accordion-btn .btn-text {
  flex: 1;
}

.accordion-btn .btn-text b {
  font-size: 15px;
}

.accordion-panel {
  background-color: white;
  overflow: hidden; /* Ensure no scroll in panel */
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-panel.open {
  max-height: 20000px;
  overflow: hidden; /* Ensure no scroll in panel */
}


.panel-content {
  padding: 15px 20px;
}

.panel-intro {
  margin-bottom: 12px;
  font-size: 13px;
}

.panel-text {
  font-size: 12px;
  margin-bottom: 15px;
}

.panel-text p {
  margin-bottom: 10px;
  text-align: justify;
}

.panel-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 15px 0;
  width: 100%;
}

.section-divider {
  border: none;
  border-top: 1px solid #cacaca;
  margin: 15px 0;
  width: 100%;
}

/* Switch/Toggle Styles */
.switch-group {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Switch Title for sdg 1*/
.switch-title-1 {
  font-weight: 600;
  color: #E5243B;
  margin-bottom: 12px;
  font-size: 12px;
}

/* Switch Title for sdg 11*/
.switch-title-11 {
  font-weight: 600;
  color: #FD6925;
  margin-bottom: 12px;
  font-size: 12px;
}

.switch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  
}

.switch-item:last-child {
  margin-bottom: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00b2e3;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.switch-label {
  font-size: 12px;
  color: #555;
}

/* Content Area */
.content-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* pushes tab-buttons to bottom */
  height: 90vh;                    /* ensure it takes full height */
  padding: 20px;
}

.content-area h2 {
  color: #007ac2;
  margin-bottom: 20px;
}

.tab-buttons {
  position: fixed;
  bottom: 0;
  left: 23vw;
  z-index: 9999; /* Above most elements */
  display: flex;
  gap: 0px;
  padding: 5px;
}


.tab-btn {
  background-color: #333;
  color: white;
  padding: 10px 25px;
  font-size: 12px;
  border: 1px solid #8a8a8a;
  box-shadow: inset 0 0 0 0.75px #ffffff; /* Outer border via box-shadow */
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s;
}


.tab-btn:hover {
  background-color: #0085b8;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .header-title-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  
  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }
  
  .header-nav.show-nav {
    display: flex;
  }
  
  .sidebar-toggle-header {
    display: block;
  }
  
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }
  
  .sidebar.open {
    max-height: 500px;
  }
}