:root {
  /* --- NEW BLACK THEME VARIABLES --- */
  --bg-color: #000000;       /* Pure Black Background */
  --card-color: #111111;     /* Very Dark Grey for Cards */
  --accent-color: #3B82F6;   /* Blue Accent (Keep for buttons/links) */
  --text-primary: #ffffff;   /* Pure White Text */
  --text-secondary: #a3a3a3; /* Light Grey Text */
  --live-red: #FF4136;
}

/* =======================================
   GLOBAL & LOADER STYLES
   ======================================= */
/* Loader Styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 4px solid var(--text-secondary);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hides the loader itself once loading is complete */
body:not(.is-loading) .loader-container {
 display: none;
}

/* HIDES ALL CONTENT that would otherwise flash while JS/Auth is loading */
body.is-loading header,
body.is-loading footer,
body.is-loading #main-app-content,
body.is-loading .container,
/* Targets the back link wrapper on chapters/subjects page */
body.is-loading > div:not(.loader-container) { 
  visibility: hidden !important; 
  opacity: 0 !important;
}


*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif; /* Main Font */
  margin: 0;
  padding: 0;
  min-height: 10vh;
  display: flex;
  flex-direction: column;
}

/* Styles for login page (special case positioning) */
body.login-page {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-height: 100vh;
}

body.login-page header { position: absolute; top: 0; left: 0; width: 100%; }
body.login-page footer { position: absolute; bottom: 0; left: 0; width: 100%; }

/* --- UPDATED HEADER STYLES (Left Aligned, Clean White) --- */
header {
  text-align: left; 
  padding: 20px 25px;
  font-size: 1.5em; 
  color: #ffffff; 
  font-weight: 700; 
  background: #000000; /* Pure Black Header */
  border-bottom: 1px solid #222; /* Subtle separator */
  width: 100%;
  z-index: 100;
}

/* Make main content grow to push footer down */
#main-app-content, #admin-panel {
    flex-grow: 1;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: flex-start;
}

/* =======================================
   BACK LINK & FOOTER STYLES
   ======================================= */

/* Wrapper to position the back link absolutely */
.back-link-wrapper {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 20px 0 20px; 
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows buttons to wrap */
  gap: 10px; /* Adds space between buttons */
}

/* Pushes admin buttons to the right */
.back-link-wrapper .small-back-link {
  margin-right: auto;
}

/* Small Back Link Styling (3x smaller) */
.small-back-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8em;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.small-back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

/* Admin Add Chapter Button */
.admin-add-chapter-btn {
  display: none; /* Hidden by default, shown for admins via JS */
  padding: 8px 15px;
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85em;
  transition: all 0.2s ease;
}

.admin-add-chapter-btn:hover {
  background: #5492FF;
  transform: translateY(-2px);
}

/* Sticky Footer */
footer {
  text-align: center;
  padding: 10px 25px;
  margin-top: auto;
  position: sticky; 
  bottom: 0;
  width: 100%;
  background: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 99; 
}

/* Footer Logout Button Styles */
.logout-button-footer {
  display: none; 
  margin: -10px auto 10px auto;
  padding: 2px 5px;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 0.7em;
  color: var(--text-secondary);
  background: var(--card-color);
  border: 1px solid var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.logout-button-footer:hover {
  transform: scale(1.1);
  box-shadow: none;
  background: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}


.copyright {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin: 0;
}


/* =======================================
   AUTH & GOOGLE STYLES
   ======================================= */

#auth-container {
  max-width: 400px; margin: 0 auto; padding: 20px;
  background: var(--card-color); border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  /* --- FIX: Scale down the login box --- */
  transform: scale(0.9);
  transform-origin: center;
}

.auth-form {
  display: flex; flex-direction: column; 
  /* --- FIX: Reduced gap --- */
  gap: 1px; /* CHANGED AGAIN: Was 12px */
}

.auth-form h3 { text-align: center; color: var(--accent-color); margin-top: 0; }

/* --- FIX: Reduced min-height and margins --- */
.auth-message { 
  font-weight: bold; 
  font-size: 1em !important; 
  text-align: center; 
  color: var(--text-secondary); 
  min-height: 1em; 
  margin: 2px 0; /* CHANGED AGAIN: Was 5px 0 */
}
.auth-subtext { text-align: center; font-size: 0.9em; color: var(--text-secondary); margin-top: -5px; }

/* GOOGLE BUTTON STYLES */
.google-btn-container {
  display: flex; justify-content: center; padding: 5px 0;
  position: relative; text-align: center; 
  margin-top: 3px; /* CHANGED AGAIN: Was 5px */
}

.google-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; background-color: #fff !important;
  color: #444 !important; font-weight: 500 !important;
  font-size: 1em !important; border: 1px solid #ddd !important;
  width: 100%; cursor: pointer; padding: 12px; border-radius: 8px;
}

.google-btn:hover { background-color: #f9f9f9 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.google-btn svg { width: 18px; height: 18px; }

/* Telegram Link Fix */
.telegram-link-fix {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; text-decoration: none; color: var(--text-secondary);
  font-size: 0.9em; 
  margin-top: 20px; /* CHANGED AGAIN: Was 15px */
  transition: color 0.2s ease;
}

.telegram-link-fix:hover { color: var(--accent-color); }
.telegram-link-fix .fa-brands.fa-telegram { font-size: 1.3em; color: #0088cc; }


/* =======================================
   ADMIN PANEL STYLES
   ======================================= */

.admin-section {
  border: 1px solid var(--accent-color); border-radius: 12px;
  padding: 15px; margin-bottom: 25px; background: rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
  color: var(--text-primary); border-bottom: 1px solid var(--text-secondary);
  padding-bottom: 10px; margin-top: 5px;
}

.admin-section h4 {
  color: var(--text-secondary); font-size: 0.9em;
  margin-top: 20px; margin-bottom: 10px;
}

.admin-form {
  display: flex; flex-direction: column; gap: 12px;
}

.admin-form-desc {
  font-size: 0.9em; color: var(--text-secondary);
  margin: -5px 0 5px 0;
}

.admin-form label {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 5px;
}

.admin-form input,
.admin-select {
  padding: 10px; border-radius: 5px; border: 1px solid var(--text-secondary);
  background: rgba(255,255,255,0.05); /* Adjusted for black theme */
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
}

/* --- NEW: DISABLED INPUT STYLE --- */
.admin-form input:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-color: transparent;
  cursor: not-allowed;
}

.admin-form button, .admin-action-btn {
  padding: 10px; background: var(--accent-color); color: var(--bg-color);
  border: none; border-radius: 5px; cursor: pointer; font-weight: bold;
  transition: all 0.2s ease;
}

.admin-form button:hover, .admin-action-btn:hover {
  background: #5492FF;
}

.admin-form button:disabled { background: var(--text-secondary); cursor: not-allowed; }
.admin-message { text-align: center; font-weight: bold; margin-top: 10px; min-height: 1.2em; }

.admin-item-list { list-style: none; padding: 0; color: var(--text-primary); }
.admin-item-list li {
  padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; 
}
.admin-item-list li:last-child { border-bottom: none; }
.admin-item-list p { text-align: center; color: var(--text-secondary); font-size: 0.9em; }
.admin-item-list li > span, .admin-item-list li > div { flex-grow: 1; margin-right: 10px; }

.admin-list-subtext { font-size: 0.8em; color: var(--text-secondary); }

.admin-item-list button {
  padding: 4px 8px; border: none; border-radius: 5px;
  cursor: pointer; font-size: 0.8em; margin-left: 5px;
  flex-shrink: 0;
}
.admin-item-list .delete-btn { background: var(--live-red); color: white; }
.admin-item-list .edit-btn { background: #FBBC05; color: #111; }
.admin-item-list .approve-btn { background: #34A853; color: white; }

/* MODAL STYLES */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); display: none;
    justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--card-color); /* Match card color */
    padding: 25px; border-radius: 12px;
    max-width: 90%; width: 450px; position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); /* Subtler shadow */
}
.modal-content.small-modal { width: 350px; }
.close-btn {
    position: absolute; top: 10px; right: 15px;
    color: var(--text-secondary); font-size: 1.5em; font-weight: bold;
    cursor: pointer; transition: color 0.2s;
}
.close-btn:hover { color: var(--live-red); }

.modal-actions {
    display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px;
}

/* Admin Action Button for Sidebar (Player Page) */
#admin-video-actions {
    margin: 15px 0 10px 0;
    text-align: center;
    display: none;
}
#admin-video-actions button {
    width: 100%;
    font-size: 0.95em;
}

/* Styling for buttons inside the list items for edit/delete */
.topic-item-admin-actions {
    flex-shrink: 0;
    display: flex;
    gap: 5px;
    margin-left: auto;
}
.topic-item .admin-action-btn {
    padding: 3px 6px;
    font-size: 0.75em;
    font-weight: 500;
}
.topic-item .admin-action-btn.delete-btn {
    background: var(--live-red);
}
.topic-item .admin-action-btn.edit-btn {
    background: #FBBC05;
    color: #111;
}

/* =======================================
   COURSE/SUBJECT/CHAPTER CARDS
   ======================================= */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.subject-card {
    background-color: var(--card-color); border: none; border-radius: 12px;
    padding: 0; text-align: left; color: var(--text-primary);
    text-decoration: none; display: block; transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); overflow: hidden;
    position: relative;
}

.subject-card:hover {
    background-color: #1a1a1a; /* Slightly lighter on hover */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.subject-card img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 16 / 9; object-fit: cover; background-color: #000;
}

.subject-card-text {
    padding: 15px 20px; background-color: var(--card-color); /* Match card */
    display: flex; flex-direction: column;
}

/* Main Title Style (Used for Course Name and Subject Name) */
.subject-card-text .subject-title-bengali {
    font-size: 1.1em; font-weight: 700; color: #ffffff; /* White */
}

/* Subtitle Style (Used ONLY for Course Description on index.html) */
.subject-card-text .subject-title-english {
    font-size: 0.9em; font-weight: 400; color: #a3a3a3; /* Grey */
}


/* =======================================
   CHAPTER CARD SPECIFIC STYLES (NEW - Like Your Image)
   ======================================= */

/* Chapter Card with Gradient Background */
.chapter-card {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
  overflow: visible;
}

.chapter-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Chapter Header (Small text at top) */
.chapter-card-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Chapter Main Title (Large centered text) */
.chapter-card-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.chapter-main-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

/* Admin Actions for Chapter Cards */
.chapter-card-admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.chapter-card .admin-action-btn {
  padding: 5px 10px;
  font-size: 0.8em;
  border-radius: 5px;
  opacity: 0.9;
}

.chapter-card .admin-action-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.chapter-card .admin-action-btn.edit-btn {
  background: #FBBC05;
  color: #111;
}

.chapter-card .admin-action-btn.delete-btn {
  background: var(--live-red);
  color: white;
}

/* Remove old chapter card text styles */
.chapter-card-text {
  display: none;
}

/* Old no-image style - now obsolete */
.chapter-card.no-image {
  padding: 0;
  min-height: 200px;
}

/* =======================================
   RESPONSIVENESS (MOBILE STYLES)
   ======================================= */
@media (max-width: 768px) {

  .container { flex-direction: column; padding: 10px; gap: 20px; }
  
  /* Chapter card mobile adjustments */
  .chapter-main-title { font-size: 1.4em; }
  .chapter-card { min-height: 160px; }
  
  .subject-grid { grid-template-columns: 1fr; padding: 10px; }
  
  /* Mobile Back Link Adjustment */
  .small-back-link {
    font-size: 0.9em;
    position: relative;
    left: 0;
    top: 0;
    display: block;
    width: fit-content;
    margin-bottom: 10px;
  }
  .back-link-wrapper { 
    padding: 10px 10px 0 10px; 
    flex-direction: column;
    align-items: stretch; /* Make items full-width */
  }
  
  .admin-add-chapter-btn {
    width: 100%;
  }

  /* NEW Mobile styles for announcements/slider */
  .announcements-main-title {
    font-size: 1.8em;
  }
  .slider-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  /* --- FIX: Make login box full width on mobile --- */
  #auth-container {
    transform: scale(1); /* Reset scale */
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  body.login-page {
    justify-content: flex-start; /* Align to top */
    padding-top: 100px; 
  }
}

/* =======================================
   NEW STYLES FOR SUBJECT/PHOTO ADMIN
   ======================================= */

/* Admin Actions for Subject Cards (on subjects.html) */
.subject-card-admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.subject-card .admin-action-btn {
  padding: 5px 10px;
  font-size: 0.8em;
  border-radius: 5px;
  opacity: 0.9;
}

.subject-card .admin-action-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.subject-card .admin-action-btn.edit-btn {
  background: #FBBC05;
  color: #111;
}

.subject-card .admin-action-btn.delete-btn {
  background: var(--live-red);
  color: white;
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9em;
  /* --- FIX: Reduced margin --- */
  margin: 6px 0; /* CHANGED AGAIN: Was 10px 0 */
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--text-secondary);
}
.divider:not(:empty)::before {
  margin-right: .5em;
}
.divider:not(:empty)::after {
  margin-left: .5em;
}

/* --- Toggle Logic --- */
.form-toggle {
  text-align: center;
  font-size: 0.9em;
  color: var(--text-secondary);
  cursor: pointer;
  /* --- FIX: Reduced margin --- */
  margin: 6px 0 0 0; /* CHANGED AGAIN: Was 10px 0 0 0 */
}

.form-toggle strong {
  color: var(--accent-color);
  text-decoration: underline;
}

/* =======================================
   NEW: PASSWORD RESET STYLES
   ======================================= */

/* --- Forgot Password Link --- */
.forgot-password-link {
  text-align: right;
  font-size: 0.85em;
  color: var(--text-secondary);
  cursor: pointer;
  /* --- FIX: Changed to positive margin --- */
  margin-top: 5px;
  margin-bottom: 0;
}
.forgot-password-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* =======================================
   NEW: TEXTAREA FOR MODALS
   ======================================= */
.admin-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--text-secondary);
  background: rgba(255,255,255,0.05); /* Adjusted for black theme */
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  min-height: 100px;
  resize: vertical;
  font-size: 0.95em;
}

/* =======================================
   NEW LAYOUT: ANNOUNCEMENTS PAGE (DEMO)
   ======================================= */

/* This contains the entire new top section */
#announcement-section {
  width: 100%;
  padding: 10px;
}

/* "Announcements" <h1> title */
.announcements-main-title {
  color: var(--accent-color);
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
}

/* --- Marquee Animation --- */
@keyframes marquee-scroll-new {
  0% {
    transform: translateX(100%); /* Start off-screen right */
  }
  100% {
    transform: translateX(-100%); /* End off-screen left */
  }
}

/* Shared style for both announcement bars */
.announcement-bar {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 15px;
  margin-bottom: 10px;
  background-color: var(--card-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.announcement-bar .marquee-text-prefix {
  margin-right: 8px;
  font-size: 1.1em;
  line-height: 1;
}

.announcement-bar .marquee-text {
  display: inline-block;
  /* REMOVED padding-left: 100% to fix delay */
  font-weight: 500;
  flex-shrink: 0; 
  /* Animation will be applied by style-1 and style-2 */
}

/* Style for Announcement 1 (Red) */
.announcement-bar.style-1 .marquee-text-prefix {
  color: #FF4136;
}
.announcement-bar.style-1 .marquee-text {
  color: #FF4136;
  font-weight: 600;
  animation: marquee-scroll-new 20s linear infinite; /* Slower animation */
}

/* Style for Announcement 2 (Blue) */
.announcement-bar.style-2 .marquee-text-prefix {
  color: #3B82F6;
}
.announcement-bar.style-2 .marquee-text {
  color: #3B82F6;
  animation: marquee-scroll-new 24s linear infinite; /* Slower animation */
}

/* --- Banner/Routine Section --- */
.banner-section {
  width: 100%;
  margin-top: 25px;
}

.banner-title {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-align: center; /* CHANGED TO CENTER */
}

/* Slider Container */
.course-banner-slider {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  max-height: 400px; /* Set a max-height */
  background-color: #000; /* Black background for 'contain' images */
}

/* Slider Track - holds all images */
.slider-track {
  display: flex;
  height: 100%;
  /* Width and Transform set by JS */
}

/* NEW: Container for each slide */
.slider-image-container {
  height: 100%;
  flex-shrink: 0; /* Prevent slides from shrinking */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Width set by JS */
}

/* Individual images within the slider */
.slider-image {
  width: 100%;
  height: 100%;
  max-height: 400px; /* Match container max-height */
  object-fit: contain; /* Show FULL image, no cropping */
  display: block;
}

/* NEW: Slider Nav Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.slider-nav-btn:hover {
  opacity: 1;
}
.slider-nav-btn.prev { 
  left: 10px; 
}
.slider-nav-btn.next { 
  right: 10px; 
}

/* =======================================
   NEW: LOGIN FORM STYLES (FOR 2-STEP)
   ======================================= */

/* Styles the wrapper for the email/password inputs */
#auth-container .form-field {
  width: 100%;
}

/* Styles the actual email and password input fields */
#auth-container .form-field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--text-secondary);
  background: rgba(255, 255, 255, 0.05); /* Adjusted */
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  box-sizing: border-box; /* Prevents padding from breaking layout */
}

/* Styles the 'Continue', 'Sign In', and 'Send Reset Link' buttons */
#auth-container .email-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-color);
  color: var(--bg-color); /* Text on button will be black */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
  margin-top: 5px; /* Adds a little space */
}

#auth-container .email-btn:hover {
  background: #5492FF; /* Lighter blue on hover */
}

/* =======================================
   NEW INFO SECTION (Black & White Style)
   ======================================= */

.info-section-black {
  background-color: #000000; /* Pure Black background */
  color: #ffffff;
  padding: 60px 20px;
  width: 100%;
  margin-top: 50px; /* Space between courses and this section */
  border-top: 1px solid #333; /* Subtle separator */
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.info-col {
  flex: 1;
  min-width: 250px; /* Ensures columns wrap on mobile */
}

/* Brand Title */
.info-brand {
  font-size: 1.5em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}

/* Section Headers (Quick Links, Contact) */
.info-header {
  font-size: 1.1em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  margin-top: 5px;
}

/* Text and Links Styling - Greyish White */
.info-text, .info-list a, .info-contact-item {
  color: #a3a3a3; /* Light gray text like the image */
  font-size: 0.95em;
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 10px;
}

.info-list a:hover {
  color: #ffffff; /* White on hover */
  padding-left: 5px; /* Slight movement effect */
}

/* Contact Items Layout */
.info-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.info-contact-item i {
  font-size: 1.1em;
  width: 20px; /* Fixed width for alignment */
  color: #ffffff; /* Icons are white */
}

.info-contact-item:hover {
  color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .info-section-black {
    padding: 40px 20px;
  }
}