/* =========================
   1. General/Shared Styles
   ========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 20%, #7F7F7F 99%);
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

.section-header {
  text-align: center;
  font-size: 1.6em;
  color: #fff;
  font-weight: bold;
  margin: 38px 0 10px 0;
  letter-spacing: 1px;
}

.section-divider
 {
  width: 200px;
  height: 3px;
  background: #fff;
  margin: 0 auto 24px auto;
  border-radius: 2px;
  opacity: 0.85;
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0b4f6c;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  z-index: 999;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  justify-content: flex-start; /* changed from space-between */
  gap: 0;
}
.nav-logo {
  order: 1;         /* logo first */
  margin-right: auto;
}
.nav-links {
  order: 2;         /* links second */
  margin-left: auto;
}
.nav-logo {
  color: white;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
 
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  background: none;
}
.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 16px;
  z-index: 1001;
}
.hamburger span {
  height: 3px;
  width: 28px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}


/* =========================
   2. Index.html Unique Styles
   ========================= */
/* Place your index.html-specific styles here, e.g. hero section, unique backgrounds, etc. */
/* Example: */
.index-hero {
  /* ... */
}

/* =========================
   3. Learn, Videos, Templates Shared Styles
   ========================= */
.container {
  display: flex;
  max-width: 1200px;
  margin: 110px auto 0 auto;
  padding: 30px 20px 60px 20px;
  gap: 36px;
}
.sidebar {
  width: 300px;
  min-width: 200px;
  background: rgba(255,255,255,0.13);
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);
  padding: 22px 18px 22px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  height: fit-content;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  max-height: 80vh;
  overflow-y: auto;
 
  
}

.sidebar::-webkit-scrollbar {
  width: 20px;
}

/* Track */
.sidebar::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
.sidebar::-webkit-scrollbar-thumb {
  background: #0b4f6c; 
  border-radius: 10px;
  background: rgba(11, 79, 108, 0.8);
}

/* Handle on hover */
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 79, 108, 0.8);
}

.sidebar h2 {
  font-size: 20px;
  margin: 0 0 18px 0;
  color: white;
  letter-spacing: 1px;
  display: none;
}
.sidebar-program {
  cursor: pointer;
  font-weight: bold;
  margin: 10px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;

}
.sidebar-program img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  border-radius: 4px;
}
.sidebar-topics {
  margin: 0 0 0 18px;
  padding: 0;
  list-style: none;
  display: none;
}
.sidebar-topics.expanded {
  display: block;
}
.sidebar-topic {
  cursor: pointer;
  padding: 2px 0 2px 0;
  color: white;
  font-size: 14px;

  margin-left: 4px;
  margin-bottom: 2px;
  transition: background 0.15s;
}

/* Sidebar topic links */
.sidebar-topic a {
  display: block;
  padding: 4px 10px;
  color: white;
  background: transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.sidebar-topic a:hover,
.sidebar-topic a:focus {
  background: #e3f2fd;
  color: #1976d2;
  text-decoration: underline;
  outline: none;
}

.sidebar-topic.active a {
  background: #0b4f6c;
  color: #fff;
  font-weight: 600;
}

.topic-header {
  color: #fff;
}


.sidebar-topic.active-topic {
  background: rgba(11,79,108,0.6);
  border-radius: 6px;
}
.sidebar-topic.active, .sidebar-topic:hover {

 
  color: #0b4f6c;
}
.main-content {
  flex: 1;
  min-width: 0;
  position: relative;
}
.sticky-filter {
  position: sticky;
  top: 80px;
  z-index: 10;


  border-radius: 12px;

  margin-bottom: 30px;
  display: flex;
 justify-content: flex-start; 
}
.search-filter {
  width: 100%;
  max-width: 400px;
  font-size: 17px;
  padding: 13px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  outline: none;
  transition: border 0.2s;
}
.search-filter:focus {
  border: 1.5px solid white;
  background: rgba(255,255,255,0.35);
}
.search-filter::placeholder {
  color: white;
  opacity: 1;
}

.highlight-match {
  background: rgba(11,79,108,0.7);
  border-radius: 4px;
  padding: 0 2px;
}

.frosted-card {
  background: rgba(255,255,255,0.18);
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.13);
  padding: 28px 28px 18px 28px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  transition: box-shadow 0.2s;
  display: flex;
 word-break: break-word;
  overflow-wrap: break-word;


}
.frosted-card img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 18px;
  flex-shrink: 0;
  background: #eee;
   transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}
.frosted-card .info {
  flex: 1;
}
.frosted-card .info h4 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 20px;
}
.frosted-card .info p {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: white;
 word-break: break-word;
  overflow-wrap: break-word;

}
.frosted-card .info a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
  font-size: 15px;
}

/* Zoom and shift image on hover for frosted-card images */
.frosted-card img:hover,
.frosted-card img:focus {
  transform: scale(2.5) translateX(40px);
  box-shadow: 0 4px 24px rgba(11,79,108,0.18);
  z-index: 2;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}

#learnPlaceholder {
  color: white;
  font-size: 20px;
  text-align: center;
  margin-top: 80px;
}

/* =========================
   4. Media Queries
   ========================= */


@media (max-width: 700px) {
  
   .hamburger span {
  margin: 3px 0;
}

  .navbar {
  box-sizing: border-box;
          position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #0b4f6c;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        justify-content: flex-start;
        display: flex;
        height: 70px;
        flex-wrap: wrap;
        align-items: center;
        z-index: 999;
  }
  .nav-links {
    position: static !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none;
    flex-direction: column;
    background-color: #0b4f6c;
    z-index: 999;
  }

.nav-links.active {
    display: flex;
  }


  .nav-links.open {
    display: flex;
  }

  /* 3) Logo second, flex to fill the rest of row 1 & center its text */
  .nav-logo {
    order: 2;
    flex: 1;                  /* take all remaining space on line 1 */
    text-align: center;
    margin: 0;                /* reset any extra margins */
    font-size: 20px;
    
  }
  .nav-links li {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #0b4f6c44;
  width: 100%;
    text-align: center;
  }
  /* 2) Hamburger first, no grow */
  .hamburger {
    order: 1;
    display: flex;
    flex-direction: column;
  
    cursor: pointer;
    margin-right: 15px;       /* space between icon & title */
  }




  
  .container {
    flex-direction: column;
 
    gap: 0;
 
    max-width: 100vw;
  }
  .sidebar {
  
    max-width: 100vw;
    max-height: 300px;
    margin-bottom: 18px;
    border-radius: 0 0 16px 16px;
    position: static;
    top: unset;
    box-shadow: none;
    padding: 14px 6vw 14px 6vw;
    font-size: 16px;
  }
  .sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .main-content {
    padding: 0 2vw;
  }
  .sticky-filter {
    top: 0;
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 10px 0 10px 0;
  }
  .search-filter {
    font-size: 16px;
    padding: 10px 12px;
    max-width: 98vw;
  }
  .frosted-card {
    padding: 18px 10px 14px 10px;
    margin-bottom: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .frosted-card img {
    width: 100%;
    height: 110px;
    margin: 0 0 10px 0;
  }

  .programs-row,
  .topics-row {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0 8px 0;
    background: none;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(0,0,0,0.13);
    margin-bottom: 10px;
 
  }


 .programs-row,
  .topics-row {
    scrollbar-width: none !important;           /* Firefox */
    -ms-overflow-style: none !important;        /* IE and Edge */
  }


  .programs-row::-webkit-scrollbar,
  .topics-row::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;                   /* Chrome, Safari, Opera */
    background: transparent !important;
  }
  .topics-row {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: none;
    box-shadow: none;
    border-radius: 0 0 16px 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

 .sidebar-program {
    flex: 1 1 100%;
   background: rgba(255,255,255,0.18);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }
 .sidebar-program.active,
  .sidebar-program:focus {
  background: rgba(25, 118, 210, 0.92);
    color: #fff;
  }
  
  .sidebar-topic {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.18);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 8px 0;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }
  .sidebar-topic.active,
  .sidebar-topic:focus {
    background: #1976d2;
    color: #fff;
  }
    
 .sidebar-topics,
  .sidebar-program:not(.programs-row .sidebar-program) {
    display: none !important;
  }


}
