* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  background-color: rgb(255, 255, 255);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100%,100%;
  overscroll-behavior: none;
  height: 100%;
  overflow-y: auto;
  scroll-padding-top: 120px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  scroll-snap-type: y proximity;
}

.header-school-font {
    text-decoration: none;
    color: rgb(33,43,57);
}

.navbar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; 
    background-color: white;
    padding-top: 30px;
    padding-right: 30px;
    padding-left: 15px;
    scroll-snap-align: start;
    scroll-margin-top: 0;
    transition: background-color 0.3s ease;
}

.dropdown-btn {
  background-color: rgb(28, 46, 77);
  color: rgb(255,255,255);
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px 5px 5px 5px;
  margin-bottom: 30px;
}

.dropdown-btn:hover {
  background-color: rgb(177, 192, 218);
}

.fullscreen-btn {
  background-color: rgb(28, 46, 77);
  color: rgb(255,255,255);
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px 5px 5px 5px;
  margin-bottom: 30px;
}

.fullscreen-btn:hover {
  background-color: rgb(177, 192, 218);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(229,236,240);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(177, 192, 218,0.3);
  border-radius: 5px 5px 5px 5px;
  overflow: hidden;
  z-index: 9999;
  top: calc(100% - 30px);
  left: calc(100% - 190px);
}
.dropdown-content a {
  color: rgba(28, 46, 77, 0.596);
  padding: 14px 20px;
  text-decoration: none;
  font-family:Arial, Helvetica, sans-serif ;
  display: block;
  text-align: center;
  border-bottom: 1px solid rgb(170, 185, 209);
  transition: background 0.5s;
}
.dropdown-content a:hover {
  background-color: rgba(177, 192, 218,0.1);
  color:rgb(28, 46, 77);
}

.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.iub-header-link {
    position: relative;
    bottom: 10px;
    margin: 5px;
    margin-left: 40px;
    display: flex;
    align-items: center;
}

.iub-header-link img {
    max-width: 310px;
    width: 100%;
    height: auto;
}

.header-rule-line {
    margin-left: 10px;
    margin-right: 10px;
}
.below-header-bar {
    display: flex;
    justify-content: space-between;
    font-size:20px;
    font-family: helvetica;
    font-weight:bold;
    margin-left:63px;
    margin-right:50px;
}

.navigation-bar {
    display: flex;
    background-color: rgb(255, 255, 255);
    margin-left:63px;
    margin-right:50px;
}

.dashboard-wrapper {
    padding: 120px 0 10px;
    background-color: rgb(232,238,242);
}

.toggle-pane-btn {
    height: 100%;
    margin: 0;
    position: relative;
    z-index: 1000;
    background: #1c2e4d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-pane-btn:hover {
    background: #b1c0da;
}

.dashboard-container {
    display: flex;
    flex-direction: column; 
    align-items: center;       
    justify-content: flex-start; 
    margin: 0px 10px 10px 10px;
}

.nav-backtotop {
    font-family: helvetica;
}

.footer-iu-bar{
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;  
    margin:55px
}

.nav-links {
    display: flex;                  
    flex-wrap: wrap;                
    gap: 0.5rem; 
    margin-right: 110px;
}

a {
    text-decoration: underline;
    color: rgb(123, 140, 228);
}

.split-flex {
  display: flex;
  height: calc(100vh - 156px);
  width: 100%;
  min-height: 320px;
  margin-bottom: 36px;
  background: rgb(232,238,242);
  border-radius: 20px;
  box-shadow: 0 2px 24px 2px rgba(226,238,239,0.12);
  transition: all 0.3s;
  overflow: hidden;
  margin-left: 20px;
  scroll-snap-align: start;
  scroll-margin-top: 120px;
  gap: 20px;
  padding: 20px;
}

.side-panel {
  flex: 0 0 25%;
  background: rgba(204,204,204);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s;
  min-width: 220px;
  max-width: 500px;
  border-radius: 20px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.side-panel h2.black-font-a {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.side-panel p.black-font-a {
  position: absolute;
  top: 100px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  overflow-y: auto;
  margin: 0;
  padding-right: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  height: 100%;
  margin: 0;
}

.right-panel iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 4px 4px 60px 10px rgba(226,238,239,0.5);
  background-color: rgb(197, 197, 197);
  transition: all 0.3s;
  margin: 0;
}

.split-flex.fullscreen .side-panel {
  flex-basis: 0;
  padding: 0;
  opacity: 0;
  min-width: 0;
  max-width: 0;
  width: 0;
  overflow: hidden;
}

.split-flex.fullscreen .right-panel {
  flex-basis: 100%;
  width: 100%;
  padding: 0;
}

.alert-banner {
  display: flex;
  justify-content: center;
  background-color: rgb(243,185,79);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 16px;
  padding: 20px;
  scroll-snap-align: start;
  scroll-margin-top: 120px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: rgb(8,72,121);
  scroll-snap-align: start;
  scroll-margin-top: 120px;
}

.footer-left {
  display: flex;
  flex-direction: column;
}
.footer-left a {
  display: block;
}

.footer-left-top {
  display:flex;
  justify-content:space-between;
  background-color: rgb(228,236,239);
  flex-wrap: wrap;
}

.footer-image-cchie {
   margin: 30px;
   margin-right:30px;
}

.footer-left-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 30px;
  margin-top:30px;
}

.footer-left-address a {
  display: block;
}

.footer-ace {
     font-family: Arial, Helvetica, sans-serif;
     font-weight: bold;
     font-size: 13px;
     margin-right: 20px;
     display:flex;
     justify-content: right;
}

.footer-address{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  margin-top:0em;
}

.black-font-a {
  font-family: Arial, Helvetica, sans-serif;
  color: black;
}

.mailto {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: black;
}
.footer-left-label {
  margin-top:20px
}

.footer-left-cchie-info {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: black;
  margin-bottom:20px;
}

.footer-left-bottom {
  background-color: rgb(228,236,239);
  padding-left:30px;
  padding-right:40px;
}

.footer-left-bottom a {
  white-space: nowrap;
}

.footer-social-media {
  display: flex;
  justify-content: space-between;
  gap:30px;
  margin: 30px;
  margin-right:40px;
}

.linkedin {
margin-bottom:20px;
}

.twitter {
  margin-top:3px;
}

.youtube {
  margin-top:3px;
}

.footer-right {
  background-color: rgb(8,72,121);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 20px;
  margin-top: 10px;
}

.footer-right-top {
  display: flex;
  flex-direction: column;
  margin-right: 50px;
  margin-bottom: 15px;
}

.footer-right-bottom {
  display: flex;
  flex-direction: column;
  margin-left: 30px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.footer-right-ace {
  margin:20px;
  margin-left:30px;
}

.footer-ace-link {
  margin-left:30px
}

.white-font-a {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  font-size: 15px;
}

.blue-font-a {
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(63, 119, 225);
}

.right-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }
  
  .navbar,
  .split-flex {
    scroll-snap-align: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
  }

  .dashboard-wrapper {
    padding: 100px 0 10px;
  }

  .iu-header {
    margin-bottom: 10px;
    margin-left: 0;
  }

  .right-menu {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding: 0 20px;
  }

  .dropdown-btn {
   display:none
  }

  .dropdown-content {
    display:none
  }

  .dropdown-content a {
     display:none
  }

  .fullscreen-btn {
    display:none
   }
}




@media (max-width: 900px) {
  .dashboard-container {
    margin-left: 20px;
    margin-right:20px;
  }

  .toggle-pane-btn {
   display: none !important;
  }

  .toggle-pane-btn:hover {
    background: #b1c0da;
  }

  .toggle-pane-btn {
    display: none !important;
  }

  .split-flex {
    height: calc(100vh - 130px);
    margin-left: 0;
    margin-bottom: 10px;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }

  .side-panel {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40vh;
    min-height: 160px;
    max-height: 50vh;
    padding: 10px;
    overflow: hidden;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
  }

  .side-panel h2.black-font-a {
    top: 10px;
    left: 10px;
    right: 10px;
    height: 50px;
  }

  .side-panel p.black-font-a {
    top: 80px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .right-panel {
    width: 100%;
    height: 60vh;
    min-height: 200px;
    max-height: 60vh;
    margin: 0;
    padding: 0;
  }

  .right-panel iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 12px;
    margin: 0;
  }

  .iub-header-link {
    margin-left: 20px;
    margin-right: 10px;
  }
  
  .iub-header-link img {
    max-width: 250px;
  }

  body {
    scroll-padding-top: 180px;
  }

  .navbar {
    scroll-margin-top: 0;
  }

  .alert-banner {
    scroll-margin-top: 180px;
  }

  .split-flex {
    scroll-margin-top: 180px;
  }

  footer {
    scroll-margin-top: 180px;
  }
}

@media (max-width: 600px) {
    .iub-header-link {
        margin-left: 10px;
        margin-right: 5px;
    }
    
    .iub-header-link img {
        max-width: 200px;
    }
}

@media (max-width: 400px) {
    .iub-header-link {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .iub-header-link img {
        max-width: 150px;
    }
    
}

@media (max-width: 900px) {

  .alert-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .alert-banner a {
    margin-top: 0.5rem;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .footer-right {
    margin-top: 1rem;
  }
}

@media (max-width: 570px) {
  .footer-left-top {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-social-media {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 20px;
  }
}

@media (max-width: 400px) {
  .footer-left-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-image-cchie {
    margin: 30px;
    margin-bottom: 0px;
  }

  .footer-left-address {
    margin: 30px;
    margin-top: 30px;
    margin-bottom: 0px;
  }

  .footer-social-media {
    margin: 30px;
    margin-top: 30px;
  }
}

@media (max-width: 1200px) {
  .side-panel {
    min-width: 0;
    padding: 8px;
  }

  .side-panel h2.black-font-a {
    left: 8px;
    right: 8px;
    padding: 0 5px;
    font-size: 20px;
    width: calc(100% - 16px);
  }

  .side-panel p.black-font-a {
    left: 8px;
    right: 8px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 14px;
    width: calc(100% - 16px);
  }
}

/* Dark mode styles */
body.dark-mode {
  background-color: rgb(28, 46, 77);
}

body.dark-mode .navbar {
  background-color: rgb(48, 66, 97);
}

body.dark-mode .dashboard-wrapper {
  background-color: rgb(0, 0, 0);
}

body.dark-mode .split-flex {
  background: rgb(0, 0, 0);
  box-shadow: 0 2px 24px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .side-panel {
  background: rgb(48, 66, 97);
  border: 1px solid rgb(68, 86, 117);
}

body.dark-mode .side-panel h2.black-font-a,
body.dark-mode .side-panel p.black-font-a {
  color: rgb(177, 192, 218);
}

body.dark-mode .black-font-a {
  color: rgb(229, 236, 240);
}

body.dark-mode .alert-banner {
  background-color: rgb(68, 86, 117);
  color: rgb(229, 236, 240);
}

body.dark-mode .right-panel iframe {
  box-shadow: 4px 4px 60px 10px rgba(28, 46, 77, 0.5);
}

body.dark-mode .iub-header-link img {
  filter: brightness(0) invert(1);
}
