/* Custom Styling Enhancements */
/* ===== Global Styles ===== */
:root {
  --primary: #4e71fd;
  --primary-light: #2c98f0;
  --secondary: #6c757d;
  --dark: #2f2f2f;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
  --black: #000000;
}

body {
  font-family: 'Inter', sans-serif;
  color: #555;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.heading {
  font-family: 'Display Playfair', serif;
  color: var(--dark);
  font-weight: 700;
}

a {
  transition: all 0.3s ease;
}

/* ===== Button Styles ===== */
.btn {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(78, 113, 253, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* ===== Section Styles ===== */
.untree_co-section {
  padding: 7rem 0;
  position: relative;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

/* ===== Hero Section ===== */
.untree_co-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
}

.untree_co-hero.inner-page {
  min-height: 400px;
}

.untree_co-hero.overlay:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.untree_co-hero .heading {
  font-size: 3rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.untree_co-hero .desc {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===== Card Styles ===== */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
  font-weight: 700;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta span {
  margin-right: 15px;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
}

.card-meta .icon {
  margin-right: 5px;
  font-size: 1rem;
}

/* ===== Course Card (Specific) ===== */
.course-card {
  @extend .card;
}

.course-img {
  @extend .card-img-top;
  position: relative;
}

.course-badge {
  @extend .card-badge;
}

.course-body {
  @extend .card-body;
}

.course-card h3 {
  @extend .card-title;
}

.course-meta {
  @extend .card-meta;
}

.course-description {
  margin-bottom: 20px;
  color: #555;
  min-height: 60px;
}

.course-details {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
}

.course-details ul {
  margin-bottom: 0;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Staff/Team Styles ===== */
.staff {
  @extend .card;
  text-align: center;
}

.staff img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 5px solid var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-name {
  @extend .card-title;
  margin-bottom: 5px;
}

.position {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--light);
  color: var(--primary);
  border-radius: 50%;
  line-height: 36px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== Testimonial Styles ===== */
.block-testimonial {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  margin-bottom: 30px;
}

.block-testimonial:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--white);
}

.block-testimonial .author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.block-testimonial .author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.block-testimonial .author h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--dark);
}

.block-testimonial .author p.position {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ===== Accordion Styles ===== */
.custom-accordion .accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: none;
}

.custom-accordion .btn-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px;
  background: var(--white);
  border: none;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  text-decoration: none;
}

.custom-accordion .btn-link:after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
}

.custom-accordion .btn-link.collapsed:after {
  content: '-';
}

.custom-accordion .accordion-body {
  padding: 20px;
  background: var(--light);
  border-top: 1px solid #eee;
}

/* ===== Feature Boxes ===== */
.feature {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature span {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: inline-block;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ===== Progress Bars ===== */
.progress-wrap {
  margin-bottom: 30px;
}

.progress-wrap h5 {
  margin-bottom: 10px;
  font-weight: 600;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background: #e9ecef;
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 5px;
}

/* ===== Counters ===== */
.count-numbers .counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.count-numbers .caption-2 {
  font-size: 0.9rem;
  color: var(--gray);
  display: block;
}

/* ===== Guidance Section ===== */
.guidance-section {
  background: linear-gradient(135deg, var(--light) 0%, #e9ecef 100%);
  padding: 60px 0;
  border-radius: 15px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.guidance-section:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: url('images/pattern-dots.svg') no-repeat;
  opacity: 0.1;
}

/* ===== Partner Logos ===== */
.partner-logo {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== Video Wrap ===== */
.video-wrap {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

.video-wrap img {
  transition: transform 0.5s ease;
}

.video-wrap:hover img {
  transform: scale(1.03);
}

.play-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.video-wrap:hover .play-wrap {
  background: rgba(78, 113, 253, 0.8);
}

.play-wrap .icon-play {
  color: white;
  font-size: 1.5rem;
  margin-left: 5px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .untree_co-section {
    padding: 4rem 0;
  }
  
  .untree_co-hero {
    min-height: 500px;
  }
  
  .untree_co-hero .heading {
    font-size: 2.2rem;
  }
  
  .card-img-top, .course-img {
    height: 160px;
  }
  
  .card-title, .course-card h3 {
    font-size: 1.2rem;
  }
  
  .staff img {
    width: 120px;
    height: 120px;
  }
  
  .guidance-section {
    padding: 40px 0;
  }
}
