/* public/assets/css/index.css */

/* Import Google Fonts - Outfit & Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --edu-primary: #0f4c81; /* Educative Premium Blue */
  --edu-primary-hover: #0a355a;
  --edu-secondary: #f4b400; /* Warm Gold / Yellow */
  --edu-accent: #00a896; /* Teal accent */
  --edu-dark: #1e293b; /* Charcoal text/dark bg */
  --edu-light: #f8fafc; /* Soft grey bg */
  --edu-card-shadow: 0 10px 30px -10px rgba(15, 76, 129, 0.1);
  --edu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--edu-light);
  color: #334155;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--edu-dark);
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Header & Navigation */
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.navbar-brand img {
  max-height: 50px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569 !important;
  transition: var(--edu-transition);
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.active {
  color: var(--edu-primary) !important;
  border-bottom-color: var(--edu-primary);
}

.top-bar {
  background-color: var(--edu-primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar a {
  color: white;
  text-decoration: none;
  transition: var(--edu-transition);
}
.top-bar a:hover {
  color: var(--edu-secondary);
}

/* Banner Slider */
.carousel-item {
  height: 480px;
  background-color: var(--edu-dark);
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.8;
}
.carousel-caption {
  border-radius: 12px;
  padding: 25px 30px;
  max-width: 650px;
  margin: 0 auto;
  bottom: 5%;
  text-align: center;
}
.carousel-caption h5 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.carousel-caption p {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  margin-bottom: 0;
}

/* Cards & Components */
.edu-card {
  border: none;
  border-radius: 16px;
  background: white;
  box-shadow: var(--edu-card-shadow);
  transition: var(--edu-transition);
  overflow: hidden;
  height: 100%;
}
.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 76, 129, 0.15);
}
.edu-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--edu-transition);
}
.edu-card:hover .card-img-top {
  transform: scale(1.05);
}
.edu-badge {
  background-color: rgba(15, 76, 129, 0.1);
  color: var(--edu-primary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: inline-block;
  text-transform: uppercase;
}

/* Section Title */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 35px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--edu-primary);
  border-radius: 2px;
}
.section-title-center {
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}
.section-title-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--edu-primary);
  border-radius: 2px;
}

/* Buttons */
.btn-edu {
  background-color: var(--edu-primary);
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  transition: var(--edu-transition);
}
.btn-edu:hover {
  background-color: var(--edu-primary-hover);
  color: white;
  transform: translateY(-2px);
}
.btn-edu-secondary {
  background-color: white;
  color: var(--edu-primary);
  border: 2px solid var(--edu-primary);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: var(--edu-transition);
}
.btn-edu-secondary:hover {
  background-color: var(--edu-primary);
  color: white;
}

/* Footer */
footer {
  background-color: var(--edu-dark);
  color: #94a3b8;
  font-size: 0.95rem;
}
footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}
footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--edu-transition);
}
footer a:hover {
  color: white;
  padding-left: 4px;
}
footer .footer-bottom {
  border-top: 1px solid #334155;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* Pagination */
.pagination .page-link {
  color: var(--edu-primary);
  border: 1px solid #e2e8f0;
  margin: 0 3px;
  border-radius: 8px;
  transition: var(--edu-transition);
}
.pagination .page-item.active .page-link {
  background-color: var(--edu-primary);
  border-color: var(--edu-primary);
  color: white;
}
.pagination .page-link:hover {
  background-color: #f1f5f9;
}

/* Admin Sidebar Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background-color: var(--edu-dark);
  color: white;
  flex-shrink: 0;
  transition: var(--edu-transition);
}
.admin-sidebar .sidebar-heading {
  padding: 20px;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 1px solid #334155;
  color: white;
}
.admin-sidebar .list-group-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 14px 20px;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: var(--edu-transition);
}
.admin-sidebar .list-group-item:hover,
.admin-sidebar .list-group-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-left-color: var(--edu-secondary);
}
.admin-content {
  flex-grow: 1;
  background-color: #f1f5f9;
  padding: 30px;
}
.admin-navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Dashboard Stat Cards */
.stat-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--edu-transition);
}
.stat-card:hover {
  transform: translateY(-4px);
}

/* Responsive adjust */
@media (max-width: 768px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .carousel-item {
    height: 300px;
  }
  .carousel-caption h5 {
    font-size: 1.4rem;
  }
}

/* Hover to open dropdown menu on desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
  }
}

/* Padding and hover effect for dropdown menu items */
.dropdown-menu .dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
  transition: var(--edu-transition);
}
.dropdown-menu .dropdown-item:hover {
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--edu-primary) !important;
  padding-left: 20px; /* Micro-animation sliding right */
}

/* Dropdown animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease forwards;
}

/* Boxed Layout Styles */
.boxed-layout {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Admin Sidebar Collapsible Submenu Arrow */
.admin-sidebar [data-bs-toggle="collapse"]:not(.collapsed) .submenu-arrow {
  transform: rotate(180deg);
}
.admin-sidebar .submenu-arrow {
  transition: transform 0.2s ease-in-out;
}

