body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}

body.home-page {
  background: #f9f9f9; 
}

/* Header */
header {
  background: #009ecf;
  color: #fff;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 5px 20px;
  background: white;
  height: 100px;
}

/* ==== IPSN Banner ==== */
.banner{
  display:flex;
  justify-content:flex-start;   
  align-items:center;
  height:100px;
  padding:2rem;
  background:#fff;
  overflow:hidden;
  gap: 3rem;
}

.banner-text{
  color:#199cd8;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.banner-text h2{
  margin:0 ;
  font-size:3rem;
  letter-spacing:1px;
  flex-shrink: 0;
  align-self: center;
}
.banner-text p{
  margin: 0;
  font-size:1.2rem;
  color:#4da6d4;
  line-height:1.4;
}

.dna{
  flex:1 ;               
  position:relative;
  min-width: 400px;
  height: 60px;                   
  display: flex;
  align-items: center;            
  justify-content: center;      
}

.dot{
  position:absolute;
  border-radius:50%;
  opacity:0.9;
  animation: float 4s ease-in-out infinite;
}

@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-15px); }
}

@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    height: auto;
    gap: 1rem;
    padding: 1rem;
  }

  .banner-text h2 {
    font-size: 1.8rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .dna {
    min-width: unset;
    width: 100%;
    height: 50px;
  }
}


.main-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  background: #009ecf;
  height: 30px;
  position: relative;
}

.nav-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; 
}

.nav-text h3 {
  font-size: 20px;
  color: white; 
  margin: 0;
  position: absolute;
  bottom: 8px; 
  left: 9px;
}

/* Hero */
.hero {
  background:#054a87;
  color: white;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 4px 10px;
  height: 30px;
}

.hero h2 {
  margin: 0;
  font-size: 20px;
  font-weight:600;
  color: white; 
}

.top-right{
  display: flex;
  align-items: center;      
  justify-content: flex-end; 
  gap: 0.5rem;               
  white-space: nowrap;
  
}

/*  hamburger */
.hamburger {
  display: none;
}


@media (max-width: 900px) {
  .hamburger {
    display: block;
    cursor: pointer;
  }
}


#global-search{
  padding:0.3rem 0.5rem ;
  width: 15rem;
  border:none;
  border-radius:4px;

}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    height: auto;
  }

  .nav-text {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 10px;
    text-align: center;
  }

  #global-search {
    width: 100%;
  }
}


/* Responsive */
@media(max-width:900px){
  .container{flex-direction:column}
  .sidebar{position:absolute;top:56px;left:0;height:calc(100% - 56px);transform:translateX(-100%);z-index:20}
  .sidebar.show{transform:translateX(0)}
  .hamburger{display:inline-block}
}

/* Main Layout */
main {
  display: flex;
  padding: 20px;
  gap: 20px;
  flex-wrap: nowrap;
}
.sidebar {
  /* width: 25%; */
  flex: 0 0 200px;
  background: #e9f8fb;
  max-width: 280px;
  min-width: 280px;
  padding: 20px;
}
.course-list {
  /* width: 75%; */
  flex: 1;
  padding: 20px;
  min-width: 0;
}

@media (max-width: 900px) {
  main {
    flex-direction: column;
  }

  .sidebar, .course-list {
    width: 100%;
    flex: none;
    padding: 15px;
    max-width: unset;
    min-width: unset;
  }
  .course-list {
    width: 100%;
    flex: none;
    padding: 15px;
  }
}


/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
th {
  background: #054a87;
  color: white;
}

thead tr {
   background-color: #054a87; 
 }
thead th {
  padding: 12px;
  text-align: left;
  font-weight: bold;
  color: #fff;
} 
.course-row {
  border-bottom: 6px solid #75d4f1; 
}

table td em {
  color: #d19d1d;
  font-style: italic; 
  font-size: 14px; 
}

/* Pagination */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
#records-per-page {
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 40px;
  padding: 3px 5px;
  font-size: 14px;
  border: 2px solid #75d4f1;
  border-radius: 5px;
  background-color: white;
  text-align: center;
  cursor: pointer;

}

#records-per-page:hover,
#records-per-page:focus {
  border-color:#75d4f1;
}

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

.page-links button {
  margin: 0 3px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}
.page-links .active {
  background: #054a87;
  color: white;
  border: none;
}
.back-to-top {
  margin-top: 20px;
  padding: 10px;
  background: #054a87;
  color: white;
  border: none;
  cursor: pointer;
}


/* Sidebar */

.sidebar {
  width: 280px;
  padding: 1rem;
  border-radius: 8px;
  background-color: #75d4f1;
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 1rem; 
  overflow: hidden;
}

.card h3 {
  background-color: #054a87; 
  color: white;
  padding: 0.6rem 1rem;
  margin: 0; 
  font-size: 1.1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

}

.card input[type="text"] {
  width: 90%;
  margin: 0.8rem 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  background-color: #e9f8fb;
}

.card p, .card label, .card ul {
  margin: 0.6rem 1rem;
  color: #444;
  font-size: 0.95rem;
}

.card ul {
  list-style-type: none;
  padding: 0;
}

.card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  
}

.card label {

   display: block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}


/* Sidebar filters */
.filter-group {
  margin: 15px 0;
}
.collapsible {
  width: 100%;
  background: #009ecf;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  text-align: left;
}
.content {
  display: none;
  padding: 10px;
  list-style: none;
}
.content li {
  margin: 5px 0;
}
.green { color: #66bb6a; }
.blue { color: #42a5f5; }
.pink { color: #ec407a; }
.orange { color: #ff9800; }
.teal { color: #26a69a; }
.purple { color: #8e24aa; }

/* Sidebar dropdown */
.career-list {
  list-style: none;
  /* padding: 0; */
  /* width: 100%; */
  padding: 0 10px;
  margin: 0;
}

.dropdown {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.dropdown-header {
  display: grid;
  grid-template-columns: 1fr auto; 
  gap: 10px;
  align-items: start;              
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  padding: 6px 12px;               
  box-sizing: border-box;
}

.dropdown-header span {
  flex: 1;                    
  white-space: nowrap;        
  overflow: visible;          
  text-overflow: clip;        
  margin-right: 10px;         
  line-height: 1.25;
  margin: 0;                
}


.category-checkbox {
  justify-self: end;              
  align-self: start;               
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Checkbox match header color */
.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 6px solid white;
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.2s ease;
}

/* Checked, fill with same background as parent header */
.dropdown-header.green .custom-checkbox:checked { background-color: #66bb6a; }
.dropdown-header.blue .custom-checkbox:checked { background-color: #42a5f5; }
.dropdown-header.pink .custom-checkbox:checked { background-color: #ec407a; }
.dropdown-header.orange .custom-checkbox:checked { background-color: #ff9800; }
.dropdown-header.teal .custom-checkbox:checked { background-color: #26a69a; }
.dropdown-header.purple .custom-checkbox:checked { background-color: #8e24aa; }

.custom-checkbox:checked {
  background-color: white;
}

.course-row.selected {
  background-color: rgba(102, 187, 106, 0.2); 
}

.course-row.hidden {
  display: none;
}
.custom-checkbox:hover {
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

/* Highlight selected courses */
.course-item.selected {
  background-color: #d0f0ff;
  border-left: 4px solid #009ecf;
}
.course-item {
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

.course-item.hidden {
  display: none;
}


/* --- COURSE THEME STYLING --- */

.course-theme-list {
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.dropdown-theme {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.dropdown-theme-header {
  display: grid;
  grid-template-columns: 1fr auto; 
  gap: 10px;
  align-items: start;             
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  padding: 6px 12px;
  box-sizing: border-box;
}

.dropdown-theme-header span {
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  margin: 0;
}

.theme-checkbox {
  justify-self: end;   
  align-self: start;   
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.theme-checkbox:checked {
  background-color: #009ecf; 
  border-color: #009ecf;
}


/* Course Header (courses count + filters) */
.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.course-header-left {
  display: flex;
  align-items: center;
  gap: 10px; 
}

.course-header p {
  margin: 0;
  font-size: 16px;
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.course-actions label {
  font-size: 14px;
  color:#333;
}

#sortCourses {
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.course-header-left button {
  padding: 5px 10px;
  border: none;
  background: #054a87;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.course-actions select {
  padding: 5px;
}


/* Course Items */
.course-item {
  border: 1px solid #ddd;
  margin: 15px 0;
  border-radius: 6px;
}
.course-summary {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: #f4f8fb;
  cursor: pointer;
}
.course-details {
  display: none;
  padding: 15px;
  background: #fff;
}

.logo-small {
  width: 120px;
}
.tags .chip {
  display: inline-block;
  background: #e0f7fa;
  color: #054a87;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 5px 5px 0 0;
}
.actions button {
  margin: 10px;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
}
.actions .primary {
  background: #054a87;
  color: white;
  border-radius: 4px;
}

.course-details-row {
  display: none; 
  background: #f9f9f9;
}


.course-details-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.access-link {
  color: #009ecf;           
  text-decoration: none;    
  font-weight: 600;
  cursor: pointer;
}

.access-link:hover {
  text-decoration: underline; 
  color: #0077a5;             
}

 .primary-btn {

  display: inline-block;
  background: #efab01;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  
}

.primary-btn:hover {
  background: #efab01;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Button on the home page (index.html) */
body.home-page .primary-btn {
  background: #efab01; 
  padding: 8px 16px; 
  font-size: 0.95rem;
  margin: 14px 0;
  display: inline-block; 
  width: auto; 
  text-align: center;
}

/* 📱 Mobile responsiveness */
@media (max-width: 768px) {
  body.home-page .primary-btn {
    display: block;        
    width: 100%;
    padding: 14px 0;       
    text-align: center;
    font-size: 1rem;        /
  }
}


/* Submit Course Page Only */
body.submit-page {
  background: #eef3ff; 
}

 /* Form container styling */
body.submit-page .form-container {
  max-width: 800px;          
  margin: 40px auto;         
  padding: 24px;             
  background: #fff;          
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* Button on the submit course page */
body.submit-page .primary-btn {
  background: #efab01;; 
  box-shadow: 0 2px 8px rgba(15,153,213,0.3);
}

body.submit-page .primary-btn:hover {
  background: #efab01;; 
}


form .primary-btn {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space between form fields */
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}


/* Responsive design for smaller devices */
@media (max-width: 768px) {
  .form-container {
    margin: 20px auto;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 10px; /* smaller side space on very small screens */
  }

  .form-container {
    padding: 16px;
  }

  input,
  select,
  textarea {
    font-size: 0.95rem; /* slightly smaller text for mobile fit */
  }

  .primary-btn {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
}




.course-details-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; 
  background:#e9f8fb;
  padding: 12px 16px;
  border-radius: 6px;
  /* gap: 20px;
  padding: 15px 20px; */
}

.course-details-inline h4 {
  margin: 0;
  white-space: nowrap;

}

.course-details-inline p {
  flex: 1; 
  margin: 0;
}
.course-details-inline .actions {

  flex-shrink: 0; 
}

td em {
  display: block;       
  font-style: italic;    
  color: #555;           
  margin-top: 4px;       
}

/* Expand/Collapse Toggle */

.expand-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;

}

.expand-icon.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Ensure details are hidden by default */
.course-details-row {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.page-links button {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.page-links button.active {
  background-color: #054a87;
  color: white;
  font-weight: bold;
}

.page-links button:hover {
  background-color: #066ad1;
  color: white;
}


/* Footer */
footer {
  background: #002953;
  color: white;
  padding: 20px;
  text-align: center;
}
.footer-links a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
 }

.footer-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 10px; 
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
  max-width: 1200px; 
   color: #d19d1d;
}

.footer-bottom p {
  margin: 0; 
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}


.socials {
  display: flex;
  align-items: center;
  gap: 30px; 
}

.socials a {
  margin: 0 8px;
  color: #d19d1d;
  text-decoration: none;
}

.white-link {
  color: white !important;
  
}

/* Universal box-sizing only (safe) */
/* *,
*::before,
*::after {
  box-sizing: border-box;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
} */

