/* =======================
   Global Styles
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI",'Hind Siliguri', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 80px; /* space for fixed header */
}

section {
  scroll-margin-top: 80px; /* match this value with header height */
}
/* =======================
   Header & Navigation
======================= */
.header {
  background: #003366;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: fixed;
  width: 100vw;
  z-index: 9999;
  top: 0;
  left: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: px;
  flex: 1;
  min-width: 0;
}

.logo img {
  height: 50px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
}

.logo-text h1 .en {
  font-family: 'Poppins', sans-serif;
}

.logo-text h1 .bn {
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 600;
  color: #ffd700;
}

.logo-text .tagline {
  font-size: 13px;
  font-weight: 500;
  color: #ffd700;
  margin-top: 4px;
}

.logo-link {
  display: inline-block; /* or flex if needed */
  text-decoration: none; /* remove underline */
  color: inherit;        /* inherit text color */
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

nav {
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #ffd700;
}

/* =======================
   Hero Section
======================= */
.hero {
  background: linear-gradient(rgba(0, 0, 51, 0.7), rgba(0, 0, 51, 0.7)),
              url("https://images.unsplash.com/photo-1581091870622-1e7f1b9fc5cc?auto=format&fit=crop&w=1200&q=80")
              no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: #ffd700;
  color: #003366;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #e6c200;
}

/* =======================
   Features / Cards
======================= */
.course-info {
  text-align: center;
  padding: 20px 20px;
}

.course-info h2 {
  margin-bottom: 15px;
  font-size: 28px;
  color: #003366;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card i {
  font-size: 35px;
  color: #003366;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #003366;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =======================
   Fees Section
======================= */
.fees {
  background: #003366;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.fees h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.discount {
  background: #ffd700;
  color: #003366;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
}

/* =======================
   Registration Form
======================= */
.registration-form {
  max-width: 700px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.registration-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #003366;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button[type="submit"] {
  background: #003366;
  color: #fff;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background: #002244;
}

/* =======================
   Timeline
======================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #007bff;
  transform: translateX(-50%);
}

.timeline-item {
  width: 50%;
  position: relative;
  margin-bottom: 40px;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-content {
  padding: 20px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  color: #003366;
}

.timeline-item.left .timeline-content {
  text-align: left;
  margin-right: 40px;
}
.timeline-item.right .timeline-content {
  text-align: left;
  margin-left: 40px;
}

/* Colored cards */
.timeline-item:nth-child(1) .timeline-content { background: #ffe5e5; }
.timeline-item:nth-child(2) .timeline-content { background: #e5f0ff; }
.timeline-item:nth-child(3) .timeline-content { background: #e5ffe5; }
.timeline-item:nth-child(4) .timeline-content { background: #fff4e5; }
.timeline-item:nth-child(5) .timeline-content { background: #f0e5ff; }
.timeline-item:nth-child(6) .timeline-content { background: #fff0f5; }
.timeline-item:nth-child(7) .timeline-content { background: #e5fff9; }
.timeline-item:nth-child(8) .timeline-content { background: #fffbe5; }

.timeline-icon {
  position: absolute;
  font-size: 24px;
  color: #fff;
  background: #007bff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.timeline-item.left .timeline-icon {
  top: -10px;
  right: -10px;
}
.timeline-item.right .timeline-icon {
  top: -10px;
  left: -10px;
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 18px;
}

.timeline-content p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

/* =======================
   Footer
======================= */
footer {
  background: #002244;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 10px;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

footer p {
  margin-top: 10px;
  font-size: 14px;
}

/* =======================
   Popup
======================= */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.popup-overlay.show {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: popupScale 0.3s ease;
}

.popup-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.popup-content p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #444;
}

.popup-content button {
  background: #2ecc71;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.popup-content button:hover {
  background: #27ae60;
}

.loading-spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes popupScale {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* =======================
   Mobile Responsiveness
======================= */
@media (max-width: 768px) {
  .header {
    flex-wrap: nowrap;
    padding: 12px 15px;
  }

  .logo-text h1 { font-size: 18px; }

  nav {
    display: none;
    width: 100%;
    background: #003366;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 15px 0;
    z-index: 999;
  }

  nav ul li a {
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 8px;
  }

    nav ul li a:hover {
    background: rgba(0, 128, 255, 0.1);
    color: #007bff;
  }

  nav.active {
    display: block;
    animation: slideDown 0.3s ease-in-out;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hamburger { display: block; }

  .hero { padding: 60px 20px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 14px; }

  .features { grid-template-columns: 1fr; }

  .registration-form {
    margin: 30px 15px;
    padding: 20px;
  }
  .registration-form h2 { font-size: 20px; }
  button[type="submit"] { font-size: 14px; }

  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; margin-bottom: 30px; left: 0 !important; }
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content { margin: 0 0 0 60px; }
  .timeline-item .timeline-icon {
    top: -20px; left: 0;
    width: 40px; height: 40px; font-size: 20px;
  }

  footer { text-align: left; }
  .footer-logo { text-align: center; margin-bottom: 15px; }
}

/* Slide down nav animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* slightly more for mobile if header wraps */
    }
}

/* Mobile-specific adjustments for logo text */
@media (max-width: 768px) {
    .logo-text .bn {
        display: block; /* force Bangla text to next line */
    }

    .logo-text .separator {
        display: none; /* hide "|" on mobile */
    }
}



/* =======================
   Data Table & Dashboard
======================= */


.total-amount-display {
font-family: 'Hind Siliguri';
background-color: #e9f5e9;
border: 1px solid #d4edda;
padding: 15px 20px;
margin: 20px auto;
border-radius: 8px;
text-align: center;
max-width: 800px; /* Adjust as needed */
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
font-size: 1.2em;
color: #28a745;
font-weight: bold;
}

.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 1200px; /* optional, keeps it from getting too wide on big screens */
  margin: 0 auto; /* 20px space on top/bottom, auto centers horizontally */
  box-sizing: border-box; /* ensures padding doesn't break the width */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 14px;
}

th, td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}
th {
  background-color: #003366;
  color: #fff;
}
tr:nth-child(even) {
  background: #f9f9f9;
}
.total-amount-display span {
  font-size: 1.5em; /* Larger for the number */
  color: #1a7d3b;
}      

.student-list-title {
    font-size: 1.5rem;
    margin: 20px 0;
    font-weight: 600;
    text-align: center;
}


.table-container table td:nth-child(5),
.table-container table th:nth-child(5),
.table-container table td:nth-child(6),
.table-container table th:nth-child(6) {
    width: 100px;            /* desired column width */
    white-space: normal;     /* allow wrapping */
    overflow-wrap: break-word; /* break long words */
    word-wrap: break-word;     /* backward compatibility */
    padding: 8px 10px;       /* optional: spacing inside cell */
}

.table-container table td:nth-child(11),
.table-container table th:nth-child(11) {
    color: #ff5733; /* replace with your desired color */
}

.table-container table td:nth-child(10),
.table-container table th:nth-child(10) {
    color: #08cd98; /* replace with your desired color */
    font-weight: bold; 
}

/* Mobile view: let table adjust naturally */
@media (max-width: 768px) {
.table-container table td:nth-child(5),
.table-container table th:nth-child(5),
.table-container table td:nth-child(6),
.table-container table th:nth-child(6) {
        width: auto;               /* let columns resize */
        white-space: normal;       /* allow wrapping for all columns */
        overflow-wrap: anywhere;
    }
}

#data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}

#data-table th, 
#data-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

#data-table th {
  background: #003366;
  color: #fff;
  font-weight: 600;
}

#data-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* =======================
   Buttons & Status
======================= */
.action-button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}
.action-button:hover {
  background: #0056b3;
}

.cancel-button {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}
.cancel-button:hover {
  background: #c0392b;
}

.approved-status {
  display: inline-block;
  background: #bec8d4;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* =======================
   Responsive Table
======================= */
@media (max-width: 768px) {
  #data-table {
    font-size: 12px;
  }
  #data-table th, 
  #data-table td {
    padding: 8px;
  }
}


/* Popup actions row (not styled in your file yet) */
.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

/* 🔹 Mobile: turn table into card view */
@media (max-width: 768px) {
  /* Optional: tighten spacing on mobile */
  .table-container {
    background: transparent;
    box-shadow: none;
    margin: 12px 0;
  }

  /* Remove fixed min width on mobile */
  #data-table {
    border: 0;
    min-width: 0;
  }

  /* Visually hide table head but keep accessible */
  #data-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  /* Each row becomes a card */
  #data-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    margin: 12px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  /* Cells stack with label on the left and value on the right */
  #data-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f1f3f6;
    white-space: normal; /* allow wrapping */
  }
  #data-table td:last-child {
    border-bottom: none;
  }

  /* Show header text via data-label set in JS */
  #data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #003366;
    flex: 0 0 46%;
    max-width: 50%;
  }

  /* Buttons fill the row width nicely */
  #data-table td .action-button,
  #data-table td .cancel-button {
    width: 100%;
    text-align: center;
  }

  /* Status pill aligns nicely in card rows */
  .approved-status {
    align-self: center;
  }

  /* Total on mobile: left-align and slightly smaller */
  .total-amount-display {
    text-align: left;
    font-size: 16px;
    margin: 10px 0 6px;
  }
}

