/* --- Google Fonts --- */
/* @import url("https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap"); */
/* Preferring Kanit/Sarabun as requested */

:root {
  --primary-color: #0d6efd;
  /* หรือสีประจำมหาลัย */
  --secondary-color: #ffc107;
  --dark-bg: #1a1f3c;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
}

body {
  font-family: "Sarabun", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
  padding-top: 70px;
  /* Adjust to match Navbar height */
}

/* Mobile fix */
@media (max-width: 991px) {
  body {
    padding-top: 60px;
  }
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Kanit", sans-serif;
}

/* --- Glassmorphism Navbar Custom (Dark Theme) --- */
.navbar-custom {
  background: linear-gradient(135deg,
      #1a1f3c 0%,
      #2c3e50 100%) !important;
  /* Dark Navy Gradient */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-height: 70px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

/* Navbar Brand Fixes */
.navbar-brand {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-family: 'Kanit', sans-serif;
  text-transform: uppercase;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 300;
  font-family: 'Sarabun', sans-serif;
}

/* Menu Styles */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  /* Off-white text */
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: 50px;
  /* Fully rounded for pill shape */
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  /* White glass effect */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.navbar-nav .nav-link i {
  margin-right: 6px;
  transition: color 0.3s;
}

/* Colorful Icons (Bright for Dark BG) */
.navbar-nav .nav-item:nth-child(1) .nav-link i {
  color: #5cabff;
}

/* Light Blue */
.navbar-nav .nav-item:nth-child(2) .nav-link i {
  color: #d6aaff;
}

/* Lavender */
.navbar-nav .nav-item:nth-child(3) .nav-link i {
  color: #ffd580;
}

/* Light Orange */
.navbar-nav .nav-item:nth-child(4) .nav-link i {
  color: #7dfce0;
}

/* Aquamarine */
.navbar-nav .nav-item:nth-child(5) .nav-link i {
  color: #ff8fa3;
}

/* Light Red */

.navbar-nav .nav-link:hover i {
  transform: scale(1.1);
}

/* --- Hero Section Modern --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  padding: 120px 0 100px 0;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle,
      rgba(13, 110, 253, 0.1) 0%,
      rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 10s infinite ease-in-out;
}

@keyframes floatBubble {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 30px);
  }
}

/* --- Cards & Content --- */
.card-modern {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Background Soft Colors */
.bg-soft-primary {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.bg-soft-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.bg-soft-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.bg-soft-success {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.bg-soft-info {
  background: rgba(13, 202, 240, 0.1);
  color: #0dcaf0;
}

/* --- Step Cards --- */
.step-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.02);
  height: 100%;
}

.step-card:hover {
  background: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* --- Buttons --- */
.btn-primary-custom {
  background: linear-gradient(90deg, #0d6efd 0%, #0056b3 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: linear-gradient(90deg, #0056b3 0%, #0d6efd 100%);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.6);
}

.btn-cta {
  background: linear-gradient(45deg, #1a1f3c, #2c3e50);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Custom Register/Login Buttons from Header */
.btn-register-custom {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: white !important;
  border-radius: 50px;
  padding: 8px 25px !important;
  border: none;
  box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.btn-register-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
  color: white !important;

  .navbar-nav .nav-link.btn-login-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: #fff;
  }

  /* Modal Fixes */
  .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
  }

  .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
  }

  .close:hover {
    color: white;
    opacity: 1;
  }

  /* Fix main container margin top */
  .main-contain {
    margin-top: 0 !important;
  }

  /* --- Footer --- */
  .premium-footer {
    background: #1a1f3c;
    /* Dark Navy */
    color: #e0e0e0;
  }

  .footer-section-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
  }

  .footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s;
  }

  .footer-link:hover {
    color: #fff;
    padding-left: 5px;
  }

  /* Stat Cards Mini */
  .stat-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .stat-value-mini {
    font-weight: bold;
    font-family: "Prompt";
  }

  .online-indicator {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px #00ff88;
  }

  /* --- Added from index.php for cleanup --- */

  /* Connector Line for Desktop */
  @media (min-width: 768px) {
    .steps-container {
      position: relative;
    }

    .steps-connector {
      position: absolute;
      top: 60px;
      left: 10%;
      right: 10%;
      height: 2px;
      background-image: linear-gradient(to right, #e0e0e0 50%, transparent 50%);
      background-size: 20px 100%;
      z-index: 1;
    }
  }

  /* Custom Gradients for Index */
  .bg-gradient-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  }

  .bg-gradient-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  }

  .bg-gradient-info {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  }

  .bg-gradient-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  }

  /* Carousel */
  .carousel-custom img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }