/* Google Font */
:root {
  --primary: #131db9;
  --primary-dark: #0e1694;
  --primary-light: #444ecf;
  --secondary: #2c3e50;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --font-main: "Poppins", sans-serif;
}

html,
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  padding-top: 80px; /* Prevent navbar overlapping content */
}

/* Prevent image overflow globally */
img {
  max-width: 100%;
  height: auto;
}

/* ---------------------changes made starting ---------------------*/

/* Fix navbar buttons vertical alignment */
.navbar .ms-lg-3.d-flex.gap-2 {
  align-items: center;
}

.navbar-nav {
  align-items: center;
}

/* Login & Register buttons same size */
.navbar .ms-lg-3.d-flex.gap-2 .btn {
  min-width: 120px;
  text-align: center;
  padding: 0.6rem 1.5rem;
}

.course-card-sm .btn-primary {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}
.course-card-sm .btn-primary {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

.course-card-sm .btn-primary {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

.mega-menu .btn-light.rounded-pill {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}
.course-card-sm {
  padding: 14px;

}
.mentor-image-wrapper {
  height: 80px;   /* half size */
  overflow: hidden;
}

.mentor-image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.mentor-image-wrapper {
  max-height: 200px;        /* reduce this (try 70–100px) */
  overflow: hidden;
}

.mentor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* keeps image proportional */
  object-position: top;    /* centers the image */
  display: block;
}
.view-btn {
  padding-top: 10px;
  padding-bottom: 10px;
}

/*---------------------- changes made ending -------------------------- */

/* Navbar */
.navbar {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 9999 !important;
}

/* Mega Menu */
/* Mega Menu */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mega Menu - Desktop Only */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown {
    position: static;
  }

  .navbar .dropdown-menu.mega-menu {
    width: 95%;
    max-width: 1140px; /* Aligned with container */
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 20px;
    border: none;
    border-radius: 24px;
    box-shadow:
      0 40px 100px -20px rgba(0, 0, 0, 0.15),
      0 10px 30px -10px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    overflow: hidden;
    animation: slideUpFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
}

/* Mega Menu Sidebar */
.mega-sidebar {
  width: 100%;
  min-width: 280px;
  background-color: #f8f9fc; /* Very subtle cool gray */
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  padding: 2rem;
}

@media (min-width: 992px) {
  .mega-sidebar {
    width: 300px;
  }
}

.mega-sidebar .nav-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  padding: 1rem 1.2rem !important;
}

.mega-sidebar .nav-link:hover {
  background: rgba(19, 29, 185, 0.05);
  color: var(--primary);
}

.mega-sidebar .nav-link.active {
  background: #ffffff;
  color: var(--primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Clean white card look for active tab */
  font-weight: 600;
}

.mega-sidebar .nav-link.active .icon-box-sm {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(19, 29, 185, 0.3);
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Course Cards in Menu */
.course-card-sm {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
}

.course-card-sm:hover .overlay-dark {
  opacity: 1 !important;
}

.course-card-sm:hover .img-fluid {
  transform: scale(1.05);
}

.course-card-sm .btn-dark {
  background-color: #2c3e50;
  border-color: #2c3e50;
  transition: all 0.3s ease;
}

.course-card-sm .btn-dark:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.course-card-sm:hover {
  background-color: #f8f9fa; /* Subtle light hover */
}

/* Utilities */
.transition-all {
  transition: all 0.3s ease;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navbar general */
.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  color: var(--text-dark);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary);
  margin: 0 10px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 29, 185, 0.3);
}

/* Hero Section */
.hero-section {
  background: var(--light-bg);
}

.hero-content h1 {
  font-family: "Stack Sans Notch", "Chakra Petch", sans-serif;
  font-weight: 700;
}

.hero-bg-shape {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    rgba(19, 29, 185, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #6f42c1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.image-placeholder.main-img {
  width: 100%;
  height: 500px;
  background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071&auto=format&fit=crop")
    center/cover;
  position: relative;
  z-index: 1;
}

.phone-frame {
  border: 12px solid #1a1a1a;
  border-radius: 40px !important;
  background: #1a1a1a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  border-radius: 28px !important;
  background: #000;
}

/* Scrolling Wrapper - Hide Scrollbar */
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}
.scrolling-wrapper {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Mobile Header Fixes */
@media (max-width: 991.98px) {
  .hero-section .min-vh-100 {
    min-height: auto !important;
    height: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-section h1.display-5 {
    font-size: 2.2rem !important;
  }

  .hero-text-col {
    text-align: center;
    margin-bottom: 3rem;
  }

  .hero-content .d-flex.gap-3 {
    justify-content: center;
  }

  /* Center all section headings on mobile */
  .section-padding h2,
  .section-padding .badge,
  .section-padding p.lead,
  .section-padding .col-lg-8 {
    text-align: center !important;
  }

  /* Center badges specifically */
  .section-padding .badge {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center navigation buttons (arrows) */
  .section-padding .d-flex.justify-content-lg-end {
    justify-content: center !important;
    margin-top: 1rem;
  }
}

.btn-white {
  background: white;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.btn-white:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}
.hero-img-col {
  display: flex;
  justify-content: center; /* Center on mobile */
  align-items: center;
}

@media (min-width: 992px) {
  .hero-text-col {
    padding-right: 3rem; /* Ensure gap between text and image */
  }

  .hero-img-col {
    justify-content: flex-end; /* Move to right on desktop */
    padding-left: 1rem; /* Add gutter space */
  }

  .phone-mockup {
    /* Removed scale to prevent overlap */
    margin-right: 1rem;
  }
}

/* Category Cards */
.category-card {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: transparent !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Utilities */
.hover-lift {
  transition: transform 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }

  .hero-text-col {
    text-align: center;
    margin-bottom: 3rem;
  }

  .hero-content .d-flex {
    justify-content: center;
  }

  .image-placeholder.main-img {
    height: 400px;
  }
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}

.whatsapp-float i {
  margin-top: 2px; /* Visual adjustment */
}

/* 
========================================
 ver========================================
*/

/* 1. Gradient Page Header with animated background shape */
.page-header {
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* Navbar offset */
  padding-bottom: 80px;
  background-image: url("assets/coure.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  background-repeat: no-repeat;
}

/* Floating Search Card Placement */
.floating-search-card {
  margin-top: -60px; /* Mobile default overlap */
  position: relative;
  z-index: 10;
}

/* Base Mobile overlapping header */
.page-header {
  padding-bottom: 100px; /* Space for mobile overlap */
}

@media (max-width: 991px) {
  .page-header {
    padding-top: 100px;
  }
  /* Card margin is already -60px from base style above */
}

@media (min-width: 992px) {
  .page-header {
    padding-bottom: 140px; /* Larger overlap for desktop */
  }
  .floating-search-card {
    margin-top: -100px; /* Larger pull-up for desktop */
  }
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(41, 41, 41, 0.85); /* Dark overlay */
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* 2. Modern Floating Accordion */
.custom-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Spacing between cards */
}

/* Remove default bootstrap accordion borders/bg */
.custom-accordion .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  border-radius: 16px !important; /* Rounded corners for each card */
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05); /* Soft shadow */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover state for the entire card */
.custom-accordion .accordion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(19, 29, 185, 0.1);
  border-color: rgba(19, 29, 185, 0.2);
}

/* Button Styling */
.custom-accordion .accordion-button {
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem 2rem;
  border: none;
  box-shadow: none !important; /* Remove focus ring */
}

/* Active State (Expanded) */
.custom-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(to right, rgba(19, 29, 185, 0.05), transparent);
  color: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Icon Transition */
.custom-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23131db9'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy transition */
  transform: scale(0.8);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg) scale(1);
}

/* Content Body */
.custom-accordion .accordion-body {
  padding: 1.5rem 2rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact CTA Section */
.faq-cta-box {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.faq-cta-box:hover {
  transform: translateY(-5px);
}

.bg-gradient-brand {
  background: #000a99;
  background: linear-gradient(
    224deg,
    rgba(0, 10, 153, 1) 0%,
    rgba(19, 29, 185, 1) 50%,
    rgba(0, 10, 153, 1) 100%
  );
}

/* Course Card Modern Stats */
.course-card-modern {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.course-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.course-card-modern .btn-dark {
  background-color: var(--text-dark);
  transition: all 0.2s ease;
}

.course-card-modern .btn-dark:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* 
========================================
   NEW COURSE DETAIL DESIGN
========================================
*/

/* Access Info Box */
.access-info-box {
  background-color: var(--light-bg);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 18px;
  text-align: center;
  margin-top: 20px;
}

.access-info-box span {
  color: var(--primary);
  font-weight: 700;
}

/* Tag/Badge Styles */
.course-tag {
  background-color: #ffffff;
  color: #2c3e50;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  border: 1px solid #e1e4e8;
  margin-right: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.course-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Price Styling */
.course-price-lg {
  font-size: 3.5rem; /* Adjusted size */
  font-weight: 700;
  color: #2c3e50;
  font-family: var(--font-main);
  line-height: 1;
  display: flex;
  align-items: center;
  margin-top: 5px;
  letter-spacing: -1px;
}

/* Video Container */
.video-preview-box {
  background: #000;
  border-radius: 20px; /* More rounded */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white; /* Frame effect */
  transition: transform 0.3s ease;
}
.video-preview-box:hover {
  transform: scale(1.02);
}

/* Section Spacing */
.course-header-new {
  padding-top: 100px;
  padding-bottom: 80px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.course-header-title {
  font-family: "Chakra Petch", sans-serif; /* Matching site headers */
  font-weight: 700;
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.course-header-desc {
  color: #546e7a;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 95%;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: white;
  display: inline-flex;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}
.author-block img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.author-name {
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}
.author-name:hover {
  color: var(--primary);
}

/* 
========================================
   RESPONSIVE ADJUSTMENTS
========================================
*/

@media (max-width: 991px) {
  .course-header-new {
    padding-top: 90px;
    padding-bottom: 50px;
    text-align: center;
  }

  .course-header-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .author-block {
    justify-content: center;
  }

  /* Center the badges/tags container */
  .course-header-new .d-flex.align-items-center {
    justify-content: center;
  }

  /* Center the price */
  .course-price-lg {
    justify-content: center;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .course-header-title {
    font-size: 2rem;
  }

  .course-price-lg {
    font-size: 2.8rem;
  }

  .video-preview-box {
    margin-bottom: 1.5rem !important;
  }
}

/* 
========================================
   MENTOR SECTION REDESIGN
========================================
*/

.mentor-card {
  border: none;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth spring-like effect */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mentor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mentor-image-wrapper {
  height: 320px; /* Taller, elegant portrait aspect */
  overflow: hidden;
  position: relative;
}

.mentor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mentor-card:hover .mentor-image-wrapper img {
  transform: scale(1.05);
}

.mentor-info {
  padding: 1.5rem;
  background: white;
  position: relative;
  z-index: 2;
}

.mentor-role {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* 
========================================
   MODERN CATEGORY CARDS
========================================
*/

/* 
========================================
   CATEGORY CARDS (REFERENCE STYLE)
========================================
*/

.category-card-ref {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-card-ref:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.category-card-ref .bi-arrow-right {
  transition: transform 0.3s ease;
}

.category-card-ref:hover .bi-arrow-right {
  transform: translateX(5px);
  color: var(--primary) !important;
}

/* Ensure stretched link works cleanly without outlining */
.category-card-ref:focus-within {
  border-color: var(--primary);
}
