/* ==========================================================================
   Career Counseling & Mentorship Platform - Custom Stylesheet
   Design System: Modern Indigo / Slate with Glassmorphism & Micro-animations
   ========================================================================== */

:root {
  --cc-primary: #4f46e5;
  --cc-primary-dark: #3730a3;
  --cc-primary-light: #eef2ff;
  --cc-accent: #06b6d4;
  --cc-accent-light: #ecfeff;
  --cc-dark: #0f172a;
  --cc-dark-surface: #1e293b;
  --cc-dark-border: #334155;
  --cc-slate: #64748b;
  --cc-light-bg: #f8fafc;
  --cc-card-bg: #ffffff;
  --cc-border: #e2e8f0;
  --cc-success: #10b981;
  --cc-warning: #f59e0b;
  --cc-danger: #ef4444;
  --cc-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --cc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --cc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --cc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

html {
  scroll-behavior: smooth;
}

/* Ensure all anchor targets across the entire site have proper scroll margin below the sticky navbar */
:target,
section[id],
div[id],
article[id] {
  scroll-margin-top: 105px;
}

body {
  font-family: var(--cc-font-sans);
  color: #1e293b;
  background-color: var(--cc-light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--cc-dark);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Public Header & Navbar */
.top-announcement-bar {
  background: var(--cc-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-announcement-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.top-announcement-bar a:hover {
  color: #ffffff;
}

.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  padding: 10px 0;
}

#enquiry-form-card {
  scroll-margin-top: 110px;
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text-stacked {
  line-height: 1.05;
}

.brand-title-top {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--cc-dark);
  letter-spacing: -0.02em;
  white-space: nowrap !important;
  display: block;
}

.brand-title-bottom {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--cc-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap !important;
  display: block;
}

.navbar-brand-logo .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.84rem;
  color: #334155;
  padding: 6px 8px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.navbar-nav .nav-link:hover {
  color: var(--cc-primary);
  background-color: var(--cc-primary-light);
}

.navbar-nav .nav-link.active {
  color: var(--cc-primary);
  background-color: rgba(79, 70, 229, 0.08);
  font-weight: 700;
}

.navbar-cta-btn {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 7px 15px !important;
  border-radius: 50px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
  transition: all 0.2s ease !important;
}

.navbar-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

.navbar-cta-btn-outline {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  border: 1.5px solid var(--cc-primary) !important;
  color: var(--cc-primary) !important;
  background-color: rgba(79, 70, 229, 0.04) !important;
  transition: all 0.2s ease !important;
}

.navbar-cta-btn-outline:hover {
  background-color: var(--cc-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25) !important;
}

/* Applicant Type Selection Cards in Modal */
.applicant-type-card {
  cursor: pointer;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s ease;
}

.applicant-type-card:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc;
}

.applicant-type-card:has(input:checked) {
  border-color: var(--cc-primary) !important;
  border-width: 2px !important;
  background-color: rgba(79, 70, 229, 0.04) !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.1) !important;
}

.applicant-type-card input.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Responsive Navbar auto-tightening for 992px - 1399px desktop/laptops */
@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-nav .nav-link {
    font-size: 0.81rem !important;
    padding: 6px 7px !important;
  }
  .navbar-cta-btn,
  .navbar-cta-btn-outline {
    font-size: 0.78rem !important;
    padding: 6px 11px !important;
  }
  .brand-title-top {
    font-size: 0.95rem !important;
  }
  .brand-title-bottom {
    font-size: 0.82rem !important;
  }
}

/* Dropdown Menu styling */
.navbar-main .nav-item.dropdown {
  position: relative !important;
}

.navbar-main .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  left: 0 !important;
  margin-top: 6px !important;
  transform: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
  border-radius: 12px;
  padding: 8px;
  min-width: 280px;
  z-index: 1060 !important;
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    top: 100% !important;
    bottom: auto !important;
    transform: none !important;
    animation: fadeInDropdown 0.2s ease-out;
  }

  .nav-item.dropdown.dropdown-clicked-close .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow-xl);
  border-radius: 12px;
  padding: 8px;
  min-width: 250px;
}

.dropdown-item {
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  color: #334155;
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--cc-primary-light);
  color: var(--cc-primary);
  transform: translateX(4px);
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-accent-custom {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-accent-custom:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
}

.btn-outline-custom {
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  border: 1px solid var(--cc-border);
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: var(--cc-primary-light);
  color: var(--cc-primary);
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

/* Badges */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 30px;
  background-color: var(--cc-primary-light);
  color: var(--cc-primary);
  border: 1px solid #c7d2fe;
}

.badge-cyan {
  background-color: var(--cc-accent-light);
  color: #0891b2;
  border: 1px solid #a5f3fc;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top right, rgba(238, 242, 255, 0.8) 0%, rgba(248, 250, 252, 1) 70%);
  padding: 80px 0 90px;
  border-bottom: 1px solid var(--cc-border);
  overflow: hidden;
}

.hero-heading {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.2rem;
  }
}

.hero-subtext {
  font-size: 1.18rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 4px solid #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cards & Components */
.feature-card {
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cc-shadow-xl);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--cc-primary-light);
  color: var(--cc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Video Card */
.video-card {
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cc-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cc-shadow-lg);
  border-color: #cbd5e1;
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-thumb-wrap:hover img {
  transform: scale(1.06);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
}

.video-thumb-wrap:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Steps - How it works */
.step-number-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Footer */
.footer-main {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  margin-right: 8px;
}

.social-icon-btn:hover {
  background: var(--cc-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Admin Panel Stylesheet
   ========================================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 270px;
  background: #0f172a;
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 1000;
}

.admin-brand {
  padding: 24px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.admin-nav {
  padding: 16px 12px;
  flex-grow: 1;
  overflow-y: auto;
}

.admin-nav-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 14px 12px 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #94a3b8;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 3px;
}

.admin-nav-link i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.admin-nav-link:hover {
  color: #ffffff;
  background: #1e293b;
}

.admin-nav-link.active {
  color: #ffffff;
  background: var(--cc-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  height: 68px;
  border-bottom: 1px solid var(--cc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.admin-content {
  padding: 28px;
  flex-grow: 1;
}

/* Primary Stat Cards for Dashboard */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--cc-border);
  padding: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cc-shadow-lg);
  border-color: #cbd5e1;
  color: inherit;
}

.stat-card-gradient-1 {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff !important;
  border: none;
}

.stat-card-gradient-2 {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: none;
}

.stat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 12px 0 4px;
}

/* Tables */
.table-custom {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--cc-shadow-sm);
  border: 1px solid var(--cc-border);
}

.table-custom table {
  margin-bottom: 0;
}

.table-custom th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--cc-border);
}

.table-custom td {
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background-color: #f8fafc;
}

.admin-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.admin-table thead th {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
  background-color: #f8fafc;
}

.admin-table tbody td {
  padding: 14px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -270px;
  }
  .admin-sidebar.show {
    left: 0;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .sidebar-backdrop.show {
    display: block;
  }
}

/* ==========================================================================
   SweetAlert2 Custom Styling & Button Spacing
   ========================================================================== */
.swal2-popup {
  border-radius: 20px !important;
  padding: 30px 24px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.swal2-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 24px !important;
  width: 100% !important;
}

.swal2-actions button,
.swal2-actions .swal2-confirm,
.swal2-actions .swal2-cancel {
  margin: 0 8px !important;
  min-width: 130px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}
