/* =========================================
   🌿 EMERALD THEME — LIGHT + DARK MODE
   ========================================= */

/* ======== BASE COLORS ======== */
:root {
  --emerald-dark: #064E3B;
  --emerald: #059669;
  --emerald-light: #A7F3D0;
  --emerald-green: #007f5f;
  --light-emerald: #dff6ef;
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --text-dark: #1f2937;
  --text-light: #f1f5f9;
  --card-bg: #ffffff;
}

/* ======== BASE STYLES ======== */
body {  
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: var(--text-dark);
  margin: 0;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
  font-size: medium;  
}

/* ======== TEXT & BUTTONS ======== */
.text-emerald {
  color: var(--emerald-green);
}

.btn-success {
  background-color: var(--emerald-dark);
  border-color: #046307;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-success:hover,
.btn-outline-success:hover {
  background-color: #00a86b;
  border-color: #00a86b;
}

/* ======== DIVIDER ======== */
.divider {
  width: 80px;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.education-section:hover .divider {
  width: 120px;
}

/* ======== CONTENT WRAPPER ======== */
.content-wrapper {
  background-color: var(--card-bg);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ======== TITLES ======== */
.section-title {
  font-weight: 700;
  color: var(--emerald-dark);
  border-left: 5px solid var(--emerald);
  padding-left: 12px;
  margin-bottom: 1rem;
}

h1.display-6 {
  color: var(--emerald-dark);
  font-weight: 700;
  display: inline-block;
  padding-bottom: 0.4rem;
}

/* ======== BREADCRUMB ======== */
.breadcrumb a {
  color: var(--emerald-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--emerald-dark);
  text-decoration: underline;
}

/* ======== FACULTY TABLE ======== */
.faculty-table th {
  background-color: var(--emerald-dark);
  color: var(--white);
  text-align: center;
}

.faculty-table td {
  vertical-align: middle;
  text-align: center;
}


/* ======== EMERALD ACCORDION ======== */
.emerald-accordion .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emerald-accordion .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.emerald-accordion .accordion-button {
  background-color: var(--emerald);
  color: var(--white);
  font-weight: 100;
  padding: 1rem 1.25rem;
}

.emerald-accordion .accordion-button:not(.collapsed) {
  background-color: var(--light-emerald);
  color: var(--text-dark);
  box-shadow: none;
}

.emerald-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.emerald-accordion .accordion-body {
  background-color: var(--card-bg);
  color: var(--text-dark);
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--emerald-light);
}

.emerald-accordion ul li {
  padding: 5px 0;
  position: relative;
}

.emerald-accordion ul li::before {
  content: "•";
  color: var(--emerald);
  font-weight: bold;
  margin-right: 8px;
}

/* ======== EDUCATION SECTION ======== */
.education-section {
  background-color: #f8fdfb;
  color: var(--text-dark);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mission-card {
  background: var(--white);
  border-left: 6px solid var(--emerald-green);
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 127, 95, 0.15);
}

.education-section ul {
  margin-top: 10px;
  padding-left: 1.5rem;
}

.education-section li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1rem;
}

.education-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-green);
  font-weight: bold;
}

/* ======== ELEGANT BREADCRUMB ======== */
.edu-breadcrumb .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  list-style: none;
  margin: 0;
}

.edu-breadcrumb .breadcrumb-item {
  position: relative;
  font-weight: 500;
  color: #e0f2ef;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.edu-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--emerald-dark);
  padding: 0 0.6rem;
  font-size: 1.2rem;
  vertical-align: middle;
  opacity: 0.8;
}

.edu-breadcrumb .breadcrumb-item a {
  color: var(--emerald-green);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.edu-breadcrumb .breadcrumb-item a:hover {
  color: var(--emerald-dark);
  text-shadow: 0 0 8px var(--light-emerald);
}

.edu-breadcrumb .breadcrumb-item.active {
  color: var(--emerald-dark);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(64, 145, 108, 0.8);
}

.edu-breadcrumb .breadcrumb-item a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #e3eee3;
  transition: width 0.3s ease;
}

.edu-breadcrumb .breadcrumb-item a:hover::after {
  width: 100%;
}

/* ======== ASIDE ======== */
  aside {
  background-color: var(--gray-bg);
  border-radius: 10px;
  padding: 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

  aside ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

  aside ul li:last-child {
  border-bottom: none;
}

  aside ul li i {
  color: var(--emerald);
  margin-right: 6px;
}

/* aside style */
   aside li a{
    color: #064E3B;
    text-decoration: none;
  } 
  /* 🌿 Base list styling */
    aside .list-unstyled li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px; 
    transition: all 0.3s ease;
    background-color: transparent;
  }

  /* Default icon and link color */
    aside .list-unstyled li i,
    aside .list-unstyled li a {
    color: #1e4a3a; /* emerald dark green */
    text-decoration: none;
    transition: all 0.3s ease;
  }

  /* 🌿 Hover effect for li */
    aside .list-unstyled li:hover {
    background-color: #1e4a3a; /* emerald dark green */
    color: #fff;
  }

  /* Change link and icon to white when hovered */
    aside .list-unstyled li:hover a,
    aside .list-unstyled li:hover i {
    color: #fff;
  }

/* Academic Programs customs style */

  /* 🌿 Emerald-Themed Responsive Table */
              .responsive-table {
                width: 100%;
                border-collapse: collapse;
                margin: 20px 0;
                /* border-radius: 12px; */
                overflow: hidden;
                box-shadow: 0 4px 10px rgba(0, 64, 0, 0.15);
              }

              .responsive-table thead { 
                color: #065f46;
                text-transform: uppercase;
                font-weight: 600;
                letter-spacing: 0.5px;
              }

              .responsive-table th,
              .responsive-table td {
                padding: 2px 5px;
                text-align: left;
                border-bottom: 1px solid #e5e7eb;
              }

              .responsive-table tbody tr:nth-child(even) {
                background-color: #f9fafb;
              }

              .responsive-table tbody tr:hover {
                background-color: #e5ebe7ff;
                transition: 0.3s ease;
              }

              /* 🌱 Responsive card layout for mobile */
              @media (max-width: 768px) {
                .responsive-table thead {
                  display: none;
                }

                .responsive-table, 
                .responsive-table tbody, 
                .responsive-table tr, 
                .responsive-table td {
                  display: block;
                  width: 100%;
                }

                .responsive-table tr {
                  background-color: #ffffff;
                  margin-bottom: 15px;
                  /* border-radius: 10px; */
                  box-shadow: 0 3px 8px rgba(0, 64, 0, 0.15);
                  overflow: hidden;
                  padding: 10px;
                }

                .responsive-table td {
                  text-align: right;
                  padding: 10px 15px;
                  position: relative;                  
                }

                .responsive-table td::before {
                  content: attr(data-label);
                  position: absolute;
                  left: 15px;
                  width: 50%;
                  text-align: left;
                  font-weight: 600;
                  color: #065f46;
                }
              }

/* ======== DARK MODE ======== */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #0f172a;
    --gray-bg: #1e293b;
    --card-bg: #1e293b;
    --text-dark: #f8fafc;
  }

  body {
    background: linear-gradient(135deg, #022c22, #064e3b);
    color: var(--text-dark);
  }

  .content-wrapper,
  .mission-card,
  aside {
    background-color: var(--card-bg);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  }

  .section-title,
  h1.display-6 {
    color: var(--emerald-light);
    border-color: var(--emerald);
  }

  .emerald-accordion .accordion-body {
    background-color: var(--card-bg);
    border-top: 1px solid rgba(167, 243, 208, 0.2);
  }

  .faculty-table th {
    background-color: var(--emerald);
  }

  .breadcrumb a {
    color: var(--emerald-light);
  }

  .edu-breadcrumb .breadcrumb-item {
    color: #b2f5ea;
  }

  .edu-breadcrumb .breadcrumb-item.active {
    color: var(--emerald-light);
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.8);
  }
}

/* ======== RESPONSIVENESS ======== */
@media (max-width: 992px) {
  aside {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .edu-breadcrumb .breadcrumb {
    font-size: 0.9rem;
  }

  .edu-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.4rem;
  }
}
