/*HomePage CSS*/
/* ==========================================
   GLOBAL/RESET STYLES (Assumed base setup)
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif; /* Assuming Outfit is standard body font */
  background-color: #030712; /* Very dark navy background */
  color: #fff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.m-t-40 {
  margin-top: 40px;
}
.m-t-15 {
  margin-top: 15px;
}

/* ==========================================
   LANDING PAGE & NAVBAR STYLES
   ========================================== */

.landing-page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: transparent;
  position: absolute; /* Overlay on hero */
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-brand .logo {
  height: 40px; /* Adjust based on your logo size */
  width: auto;
}

.nav-auth-buttons {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn-secondary-outline {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-purple-glow {
  padding: 8px 20px;
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: box-shadow 0.3s ease;
}

.btn-purple-glow:hover {
  box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
}

/* Hero Section */
.hero-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  min-height: 80vh;
  padding: 150px 50px 50px 50px; /* Top padding for navbar */
  background:
    radial-gradient(
      circle at top right,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 50%
    ),
    #030712;
  align-items: center;
}

.hero-text-side .live-pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 50px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #c084fc;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.heading {
  font-size: 60px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: "Fraunces", serif; /* Assuming special serif for headings */
}

.italic-serif {
  font-style: italic;
  color: #c084fc;
  font-weight: 400;
  font-family: "Fraunces", serif;
}

.subheading {
  color: #9ca3af;
  font-size: 18px;
  margin-top: 20px;
  max-width: 600px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
}

.btn-purple-glow-large {
  padding: 16px 32px;
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-purple-glow-large:hover {
  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.5);
  transform: translateY(-2px);
}

.btn-dark-outline {
  padding: 16px 32px;
  border: 2px solid #374151;
  border-radius: 12px;
  color: #d1d5db;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-dark-outline:hover {
  border-color: #6b7280;
  color: #fff;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

.stat-item h2 {
  font-size: 36px;
  font-weight: 700;
  color: #f59e0b; /* Accent color */
  font-family: "Fraunces", serif;
}

.stat-item p {
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Placeholder for illustration */
.hero-image-overlay-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
  max-width: 350px;
  transform: rotate(3deg);
}

.hero-image-overlay-card h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.hero-image-overlay-card p {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 8px;
}

/* ==========================================
   FEATURED COURSES SECTION STYLES (NEW)
   ========================================== */

.featured-courses-section {
  padding: 80px 50px;
  background-color: #111827; /* Slightly lighter than body */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.sub-heading-tint {
  color: #c084fc;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-courses-section h2 {
  font-size: 48px;
  color: #fff;
  font-family: "Fraunces", serif;
  margin-top: 10px;
}

.section-tagline {
  color: #9ca3af;
  font-size: 18px;
  margin-top: 15px;
}

.course-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.course-card-link {
  display: block;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.course-card-link:hover {
  transform: translateY(-5px);
}

.course-card {
  background-color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.course-card-link:hover .course-card {
  border-color: rgba(192, 132, 252, 0.3);
}

.course-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Icon colors */
.course-icon-bg.teal {
  background-color: rgba(20, 184, 166, 0.1);
}
.course-icon-bg.purple {
  background-color: rgba(147, 51, 234, 0.1);
}
.course-icon-bg.blue {
  background-color: rgba(59, 130, 246, 0.1);
}
.course-icon-bg.orange {
  background-color: rgba(249, 115, 22, 0.1);
}
.course-icon-bg.red {
  background-color: rgba(239, 68, 68, 0.1);
}
.course-icon-bg.pink {
  background-color: rgba(236, 72, 153, 0.1);
}
.course-icon-bg.green {
  background-color: rgba(34, 197, 94, 0.1);
}
.course-icon-bg.yellow {
  background-color: rgba(234, 179, 8, 0.1);
}

.course-icon-bg img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.course-card h3 {
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  font-family: "Outfit", sans-serif; /* Typically roles are sans-serif */
}

.course-card p {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
  flex-grow: 1; /* Pushes CTA to bottom */
}

.card-cta {
  display: inline-block;
  margin-top: 20px;
  color: #c084fc;
  font-size: 14px;
  font-weight: 600;
}

.callout-box {
  background: rgba(147, 51, 234, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
}

.callout-box .lead-text {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(192, 132, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0);
  }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
  .heading {
    font-size: 48px;
  }
  .hero-content-split {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding: 120px 30px 50px 30px;
  }
  .hero-left .subheading {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .hero-image-side {
    order: -1;
    justify-content: center;
  }
  .hero-image-overlay-card {
    transform: rotate(0deg);
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 20px;
  }
  .featured-courses-section {
    padding: 60px 20px;
  }
  .featured-courses-section h2 {
    font-size: 36px;
  }
  .btn-purple-glow {
    padding: 4px 10px;
    font-size: 12px;
  }
  .btn-purple-glow:hover {
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
  }
}

/*Login and Register Pages*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #0b0f19;
  color: #f3f4f6;
  overflow-x: hidden;
}

.bgimg,
.bgimgregister {
  background-image: url("images/login.jpg"); /* Or a dark solid color */
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
}

.blured {
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* STATIONARY OUTER BOX */
.user-login-box,
.user-register-box {
  display: flex;
  width: 900px;
  max-width: 100%;
  height: 520px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative; /* Keeps box still while children move */
}

/* Register box flips the layout (Form Left, Image Right) */
.user-register-box {
  flex-direction: row-reverse;
}

/* ==========================================
   LOGIN PAGE ANIMATIONS (Image slides Right -> Left)
   ========================================== */
.loginimg {
  width: 45%;
  height: 100%;
  position: relative;
  z-index: 10; /* Keeps image on top while sliding */
  animation: imgSlideToLeft 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.login-form {
  width: 55%;
  height: 100%;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  animation: formSlideToRight 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Always Stay Logged In Checkbox Styling */
.remember-me-group {
    display: flex;
    align-items: center;
    margin: 4px 0 16px 0;
    text-align: left;
    width: 100%;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    user-select: none;
    transition: color 0.2s ease;
}

.remember-label:hover {
    color: #f3f4f6;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9333ea; /* Matches your platform's purple primary theme color */
    cursor: pointer;
    border-radius: 4px;
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   REGISTER PAGE ANIMATIONS (Image slides Left -> Right)
   ========================================== */
.registerimg {
  width: 45%;
  height: 100%;
  position: relative;
  z-index: 10;
  animation: imgSlideToRight 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.register-form {
  width: 55%;
  height: 100%;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  animation: formSlideToLeft 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ==========================================
   THE SLIDING KEYFRAMES
   ========================================== */

/* Image starts on the right, slides to its spot on the left */
@keyframes imgSlideToLeft {
  0% {
    transform: translateX(122%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Form starts slightly on the left (hidden under image), slides to the right */
@keyframes formSlideToRight {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Image starts on the left, slides to its spot on the right */
@keyframes imgSlideToRight {
  0% {
    transform: translateX(-122%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Form starts slightly on the right (hidden under image), slides to the left */
@keyframes formSlideToLeft {
  0% {
    transform: translateX(50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================
   IMAGE & FORM STYLING (Matches your images)
   ========================================== */
.loginimg img,
.registerimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-form,
.register-user-form {
  width: 100%;
}

.user-form h1,
.register-user-form h1 {
  font-size: 32px;
  font-family: "Fraunces", serif;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 700;
}

/* Form Inputs */
.user-form input,
.register-user-form input {
  width: 100%;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  margin-bottom: 16px;
}

.user-form input:focus,
.register-user-form input:focus {
  border-color: #f59e0b; /* Amber focus border */
  background: rgba(245, 158, 11, 0.03);
}

.user-form input::placeholder,
.register-user-form input::placeholder {
  color: #6b7280;
}

/* Buttons */
.user-form button,
.register-user-form button {
  height: 48px;
  width: 100%;
  background-color: #f59e0b;
  color: #0b0f19;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.user-form button:hover,
.register-user-form button:hover {
  background-color: #d97706;
}

/* Links */
.link {
  text-align: center;
  margin-top: 20px;
}
.link a {
  text-decoration: none;
  color: #9ca3af;
  font-size: 13px;
}
.link a:hover {
  color: #f59e0b;
}

/* Mobile Fallback */
@media screen and (max-width: 768px) {
  .loginimg,
  .registerimg {
    display: none;
  }
  .login-form,
  .register-form {
    width: 100%;
    animation: none; /* Disable slide on mobile for better UX */
  }
  .user-login-box,
  .user-register-box {
    height: auto;
    flex-direction: column !important;
  }
}

/* =========================================================
   MOBILE RESPONSIVE — LOGIN & REGISTER
   700px AND BELOW
   ========================================================= */

@media screen and (max-width: 700px) {
  /* Prevent horizontal overflow */
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }

  /* Full page background */
  .bgimg,
  .bgimgregister {
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-position: center;
  }

  /* Main blurred container */
  .blured {
    width: 100%;
    min-height: 100vh;
    height: auto;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Main login/register card */
  .user-login-box,
  .user-register-box {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 0;
    flex-direction: column !important;
    border-radius: 18px;
    overflow: hidden;
  }

  /* Hide image on mobile */
  .loginimg,
  .registerimg {
    display: none;
  }

  /* Form containers */
  .login-form,
  .register-form {
    width: 100%;
    height: auto;
    padding: 35px 22px;
    animation: none !important;
    transform: none !important;
  }

  /* Disable desktop animations */
  .loginimg,
  .registerimg,
  .login-form,
  .register-form {
    animation: none !important;
  }

  /* Form */
  .user-form,
  .register-user-form {
    width: 100%;
  }

  /* Heading */
  .user-form h1,
  .register-user-form h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 22px;
    text-align: center;
  }

  /* Inputs */
  .user-form input,
  .register-user-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    margin-bottom: 14px;
  }

  /* Button */
  .user-form button,
  .register-user-form button {
    width: 100%;
    height: 48px;
    font-size: 14px;
    margin-top: 8px;
  }

  /* Bottom links */
  .link {
    margin-top: 18px;
  }

  .link a {
    font-size: 13px;
  }
}

/* =========================================================
   SMALL MOBILE — 400px AND BELOW
   ========================================================= */

@media screen and (max-width: 400px) {
  .blured {
    padding: 15px 10px;
  }

  .user-login-box,
  .user-register-box {
    border-radius: 14px;
  }

  .login-form,
  .register-form {
    padding: 28px 16px;
  }

  .user-form h1,
  .register-user-form h1 {
    font-size: 25px;
    margin-bottom: 18px;
  }

  .user-form input,
  .register-user-form input {
    height: 46px;
    font-size: 13px;
    padding: 0 12px;
  }

  .user-form button,
  .register-user-form button {
    height: 46px;
    font-size: 13px;
  }

  .link a {
    font-size: 12px;
  }
}

/* Flash Messages Container */
.flash-messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: 100%;
}

/* Base Flash Alert Box */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease-out forwards;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category Variants */
.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border-color: #badbcc;
}

.alert-warning {
  background-color: #fff3cd;
  color: #664d03;
  border-color: #ffecb5;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border-color: #f5c2c7;
}

.alert-info {
  background-color: #cff4fc;
  color: #055160;
  border-color: #b6effb;
}

/* Close Button (Optional if you want manual dismiss) */
.alert .close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alert .close-btn:hover {
  opacity: 1;
}

/* Slide-in Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
