
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

    

/* =========================
   Root & Base
========================= */
:root {
  /* Brand */
  --brand: #08193d;
  --brand-600: #0e3a5e;
  --brand-700: #0b2c55;
  --accent-1: #92bcea;
  --accent-2: #346cb0;

  /* Text */
  --ink: #0e1b2a;
  --ink-muted: #5a6b82;

  /* Surfaces */
  --bg:  color-mix(in srgb, var(--accent-1) 16%, #ffffff);;
  --card: #ffffff;

  /* Effects */
  --ring: rgba(29, 100, 255, 0.25);
  --radius-sm: 5px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Layout */
  --container: 1200px;

  /* Type scale */
  --h1: clamp(2rem, 4vw, 3.5rem);
  --p: 18px;


}


body {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  background: #f9fafb;
  color: var(--brand);
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 20px;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar img {
  max-width: 150px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--brand);
  border-radius: 8px;
}

.sidebar nav ul li a.active,
.sidebar nav ul li a:hover {
  background: #e0f2fe;
  color: var(--brand);
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: flex-end; /* everything aligned right */
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 20px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px; /* space between email and icons */
}

.topbar-right #user-email {
  font-weight: 500;
  color: var(--brand);
}

.icon-btn {
  color: var(--brand);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: var(--brand);
}


/* Tab Content */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#news-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  padding: 15px;
  border-left: 4px solid var(--brand);
  background: #f9fafb;
  border-radius: 6px;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand);
}

.news-item p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.news-btn {
  margin-top: 10px;
}

.news-btn a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.news-btn a:hover {
  background: #093958;
}


/* elearning Tab */

.course-options {
  display: flex;
  gap: 40px;
  flex-direction: column;
  margin-top: 20px;
  justify-content: center; /* makes cards align neatly */
}

.course-card {
  background: #eff9ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.5rem;
}

.course-card strong {
  display: block;
  margin: 15px 0;
  font-size: 1.5rem;
  background-color: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin: 15px 0 50px 0;
}

.course-thumb {
  text-align: center;
}

.course-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.course-thumb p {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.course-footer {
  text-align: left;
  margin-top: 15px;
}

.course-footer strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

#checkout-btn {
      background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 19px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    width: 250px;
    font-family: 'satoshi';
    font-weight: 600;
    margin-top: 30px;
}

#checkout-btn:hover {
  background: var(--brand-700);
}



/* creditCheck Tab */

.credit-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.submit-btn {
  padding: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Satoshi';
  font-size: 1.2rem;
  margin-top: 20px;
}

.submit-btn:hover {
  background: var(--brand-700);
}

/* Course Progress Tab */


.accordion {
  margin-top: 20px;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-header {
  padding: 12px 16px;
  background: #f9fafb;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header:hover {
  background: #f1f5f9;
}

.accordion-content {
  display: none;
  padding: 15px;
}

.accordion-item.active .accordion-content {
  display: block;
}

.course-card {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.course-card:last-child {
  border-bottom: none;
}

.course-card-warning {
  background-color: #ff6b6b !important; /* Pastel red background */
  color: white !important;
  border: none !important; /* Remove border for warning cards */
}

.course-card-warning .course-title,
.course-card-warning .course-status,
.course-card-warning .course-due {
  color: white !important;
}

.course-card-warning .course-due-warning {
  color: white !important; /* Override the red text for warning cards */
}

.course-title {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-status {
  font-size: 0.9rem;
  color: #666;
}

.course-due {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
  font-weight: 500;
}

.course-due-warning {
  color: #ff6b6b !important; /* Pastel red color */
  font-weight: 600 !important;
}




/* =========================
   Branch Modal
========================= */
/* Overlay background */
#branchModal.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto; /* scroll if needed */
}

/* Centered modal box */
#branchModal .modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  animation: fadeInScale 0.25s ease;
}

/* Input field */
#branchNameInput {
  width: 94%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

/* Buttons */
#saveBranchBtn,
#closeBranchBtn {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  margin: 5px;
  font-size: 15px;
  cursor: pointer;
}

#saveBranchBtn {
  background: #2563eb;
  color: #fff;
}

#saveBranchBtn:hover {
  background: #1d4ed8;
}

#closeBranchBtn {
  background: #e5e7eb;
  color: #111;
}

#closeBranchBtn:hover {
  background: #d1d5db;
}

/* Simple animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.assign-branch-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 10px;
}

.assign-branch-btn:hover {
  background: #1d4ed8;
}






