/* Centris Teach Main Stylesheet - Custom styles to complement Bootstrap */

:root {
  /* Override Bootstrap's success color with Centris Teach's official color */
  --bs-success: #2e8b57;
  --bs-success-rgb: 46, 139, 87;
}

/* Global Font Family - Poppins */
* {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-weight: 400;
}

/* Font Weight Utilities */
.fw-light {
  font-weight: 300 !important;
}
.fw-normal {
  font-weight: 400 !important;
}
.fw-medium {
  font-weight: 500 !important;
}
.fw-semibold {
  font-weight: 600 !important;
}
.fw-bold {
  font-weight: 700 !important;
}

/* Headings with Poppins */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* Hero section heading with BEE branding */
.hero-title .bee-highlight {
  color: #ffa500;
}

.text-orange {
  color: #ffa500;
}

.text-green {
  color: #ffa500;
}

.btn-orange {
  background-color: #ffa500;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: #f39a00;
  color: #ffffff;
}

.navbar-nav {
    margin: auto;
}

/* Navigation and buttons with medium weight */
.navbar-nav .nav-link,
.btn {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

/* Custom styles that extend Bootstrap */

/* Add padding to account for fixed navbar */
/* body {
    padding-top: 0px;
} */

/* Custom transitions */
a,
.btn {
  transition: all 0.3s ease;
}

/* Custom header styles */
.header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom navbar background to match logo */
.navbar-custom-bg {
  background-color: #f8f9fa !important;
  background-image: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
}

/* Sticky navbar styles */
.navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.3s ease-in-out;
  background-color: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-sticky .navbar-brand img {
  height: 40px !important;
  transition: height 0.3s ease-in-out;
}

/* Add padding to body when navbar becomes sticky */
body.navbar-is-sticky {
  padding-top: 76px;
}

/* Active nav link styling */
.navbar .nav-link.active {
  color: var(--bs-success) !important;
  font-weight: 600;
}

/* Mentor Page Styles */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* CSS Variables for consistency */
:root {
  --card-width: 100%;
  --green: #28a745;
  --rounded: 15px;
}

/* Card wrapper */
.teacher-card {
  padding-top: 60px;
  width: 200px;
  position: relative;
}

/* Green rounded block (covers whole card) */
.teacher-bg {
  background: var(--green);
  border-radius: var(--rounded);
  height: 160px;
  width: 160px;
  /* keep some left padding so text sits nicely */
  padding-left: 10px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

/* Text block that sits on top of green block */
.teacher-text {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  z-index: 10;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
  text-align: left;
  /* subtle shadow for text */
}

.teacher-text .hi {
  display: block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  opacity: 0.98;
  /* No fill */
  color: transparent;
  /* White outline */
  -webkit-text-stroke: 1px #fff;
}

.teacher-text .name {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 26px;
  line-height: 0.95;
}

/* Teacher image — overlaps and slightly sits outside the green block */
.teacher-img {
  position: absolute;
  /* left: 0; */
  top: 0px;
  left: 10px;
  max-width: 220px;
  z-index: 3;
  pointer-events: none;
}

/* Mobile responsiveness for teacher cards */
@media (max-width: 768px) {
  .teacher-card {
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .teacher-bg {
    height: 120px;
    width: 120px;
    padding-left: 8px;
  }

  .teacher-text {
    left: 10px;
    bottom: 10px;
  }

  .teacher-text .hi {
    font-size: 14px;
    letter-spacing: 0.1px;
  }

  .teacher-text .name {
    font-size: 20px;
    margin-top: 4px;
  }

  .teacher-img {
    left: 8px;
    max-width: 160px;
  }
}

@media (max-width: 576px) {
  .teacher-card {
    padding-top: 30px;
    margin-bottom: 25px;
  }

  .teacher-bg {
    height: 100px;
    width: 100px;
    padding-left: 6px;
  }

  .teacher-text {
    left: 8px;
    bottom: 8px;
  }

  .teacher-text .hi {
    font-size: 12px;
  }

  .teacher-text .name {
    font-size: 16px;
    margin-top: 3px;
  }

  .teacher-img {
    left: 6px;
    max-width: 130px;
  }
}

/* Subject cards styling */
.subject-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.subject-icon {
  transition: transform 0.3s ease;
}

.subject-card:hover .subject-icon {
  transform: scale(1.1);
}

/* Mobile responsiveness for subject cards */
@media (max-width: 768px) {
  .subject-card {
    margin-bottom: 20px;
  }

  .subject-icon i {
    font-size: 2rem !important;
  }

  .subject-card h5 {
    font-size: 1.1rem;
  }

  .subject-card p {
    font-size: 0.85rem;
  }
}

/* Teacher Card Container */
.teacher-card-container {
  gap: 1.8rem;
  min-height: 200px;
  max-height: 220px;
  background-color: #f2fff2;
  border-radius: 15px;
  border-right: 5px solid #28a745;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.teacher-card-container:hover {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Teacher Image Hover Effect */
.teacher-card-container:hover .teacher-img {
  transform: scale(1.1);
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.teacher-img {
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

/* Teacher Subjects Styling - Right Side Layout */
.teacher-subjects {
  padding: 1rem;
  /* background-color: white; */

  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

/* Teacher Actions - Fixed Position at bottom */
.teacher-actions {
  position: absolute;
  bottom: 15px;
  right: 15px;
  left: 40%;
}

/* Make teacher-card-container relative for absolute positioning */
.teacher-card-container {
  position: relative;
}

/* Inquire Button - Top Right Position */
.inquire-top-right {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}

.teacher-subjects h6 {
  color: #28a745;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.subjects-tags .badge,
.grade-levels-tags .badge {
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.subjects-tags .badge:hover,
.grade-levels-tags .badge:hover {
  background-color: #28a745 !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Teacher Subjects Responsive */
@media (max-width: 768px) {
  .teacher-card-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .teacher-card {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

  .teacher-subjects {
    padding: 0.75rem;
    margin-top: 0;
    width: 100%;
  }

  .teacher-subjects h6 {
    font-size: 0.85rem;
  }

  .subjects-tags .badge,
  .grade-levels-tags .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Legacy mentor styles - keeping for compatibility */
.mentor-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.3s ease;
  height: auto;
}

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

.mentor-image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.mentor-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mentor-overlay,
.mentor-badge,
.centris-logo,
.teacher-title,
.mentor-info {
  display: none;
}

.cta-section {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

@media (max-width: 768px) {
  .mentor-image-container {
    height: 250px;
  }

  .mentor-info {
    padding: 1.5rem !important;
  }

  .mentor-name {
    font-size: 1.25rem;
  }
}

/* Custom navbar brand styling */
.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Dropdown menu enhancements */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(46, 139, 87, 0.1);
  color: var(--bs-success);
}

.dropdown-divider {
  margin: 0.5rem 0;
  opacity: 0.1;
}

/* Hide default dropdown arrow */
.dropdown-toggle::after {
  display: none;
}

/* Custom dropdown icon animation */
.dropdown-toggle .bi-chevron-down {
  transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

/* Mentor Profile Page Styles */
.mentor-profile-section {
  background-color: #f8f9fa;
  font-size: 1.1rem;
}

.mentor-profile-card {
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.mentor-avatar {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #28a745;
  transition: transform 0.3s ease;
}

.mentor-avatar:hover {
  transform: scale(1.05);
}

.mentor-name {
  color: #28a745;
}

.mentor-details {
  border: 1px solid #e9ecef;
}

.subject-badge {
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  cursor: pointer;
}

.subject-badge:hover {
  background-color: #28a745 !important;
  color: white !important;
  transform: translateY(-2px);
}

.approach-item {
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.approach-item:hover {
  background-color: rgba(40, 167, 69, 0.05);
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb-sm {
  font-size: 0.9rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  font-size: 0.85rem;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Responsive adjustments for mentor profile */
@media (max-width: 768px) {
  .mentor-avatar {
    width: 150px;
    height: 150px;
  }

  .mentor-profile-card {
    margin-bottom: 2rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
  }

  .d-flex.gap-3 .btn {
    width: 100%;
  }
}

/* Dropdown animation */
.dropdown-menu.show {
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom button styles */
.btn-success {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

.btn-success:hover {
  background-color: #236e44;
  border-color: #236e44;
}

.btn-outline-success {
  border-color: var(--bs-success);
  color: var(--bs-success);
}

.btn-outline-success:hover {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

/* Custom section styles */
.hero {
  background-color: #f9f9f9;
}

.hero-title span {
  color: var(--bs-success);
}

/* Full-height hero section */
.hero-fullscreen {
  min-height: 100vh;
  padding-bottom: 2rem;
  background-color: #f9f9f9;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 255, 240, 0.8) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-fullscreen .container {
  z-index: 1;
  position: relative;
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(46, 139, 87, 0.05),
    transparent 70%
  );
}

@media (max-width: 768px) {
  .hero-fullscreen {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* Video styling */
.ratio-16x9 {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.ratio-16x9:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.ratio video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.ratio:hover video {
  transform: scale(1.03);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Centered buttons styling */
.button-container {
  margin-top: 1rem;
  position: relative;
}

/* Secondary buttons container with reduced spacing */
.button-container.fs-5 {
  margin-top: 0.5rem;
}

.button-container .animated-btn {
  transition: all 0.3s ease;
  border-width: 2px;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Large "Inquire Now!" button styling */
.button-container .btn-success.animated-btn {
  font-size: 1.7rem;
  font-weight: 600;
  padding: 0.5rem 7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
  border-width: 3px;
  min-width: 250px;
}

.button-container .animated-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--bs-success);
  transition: all 0.4s ease;
  z-index: -1;
}

.button-container .animated-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

/* Enhanced hover effects for large "Inquire Now!" button */
.button-container .btn-success.animated-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(46, 139, 87, 0.4);
  background-color: #1e6b3e;
  border-color: #1e6b3e;
}

.button-container .animated-btn:hover::before {
  left: 0;
}

/* Add a subtle pulse animation to the buttons */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.button-container .animated-btn:nth-child(1) {
  animation: pulse 2s infinite 0.1s;
}
.button-container .animated-btn:nth-child(2) {
  animation: pulse 2s infinite 0.3s;
}
.button-container .animated-btn:nth-child(3) {
  animation: pulse 2s infinite 0.5s;
}
.button-container .animated-btn:nth-child(4) {
  animation: pulse 2s infinite 0.7s;
}
.button-container .animated-btn:nth-child(5) {
  animation: pulse 2s infinite 0.9s;
}

.button-container .animated-btn:hover {
  animation: none;
}

/* Program card enhancements */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Footer enhancements */
.footer {
  background-color: #f8f9fa;
}

.footer a {
  color: #666;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--bs-success);
  text-decoration: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bs-success);
  color: white;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #236e44;
  transform: translateY(-3px);
}

/* Custom responsive styles */
@media (max-width: 992px) {
  /* Adjust padding for smaller screens */
  /* body {
        padding-top: 66px;
    } */

  /* Make program cards more prominent on mobile */
  .card {
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}
