/* Enhanced Styles for Mabia Microfinance */

/* ===== Global Enhancements ===== */
:root {
  --primary: #c64c39;
  --primary-dark: #a83a2a;
  --primary-light: #e86855;
  --dark: #1e1e1e;
  --dark-bg: #232323;
  --gray-light: #f7f7f7;
  --gray: #666666;
  --white: #ffffff;
  --gold: #d4a843;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: var(--white);
}

/* ===== Top Bar Enhancements ===== */
.sub-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  z-index: 1000;
  height: auto;
  line-height: 1.35;
  padding: 8px 0;
}

.sub-header ul.left-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sub-header ul.left-info li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
}

.sub-header ul.left-info li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.sub-header ul.left-info li a {
  transition: var(--transition);
  opacity: 0.9;
}

.sub-header ul.left-info li a:hover {
  opacity: 1;
  color: var(--gold);
}

.sub-header ul.right-icons li a {
  transition: var(--transition);
}

.sub-header ul.right-icons {
  display: flex;
  justify-content: flex-end;
}

.sub-header ul.right-icons li a:hover {
  color: var(--gold);
  transform: scale(1.2);
}

/* ===== Header / Navbar Enhancements ===== */
header {
  transition: var(--transition);
}

.background-header {
  background-color: var(--white) !important;
  box-shadow: var(--shadow-md);
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  transition: var(--transition);
  border-radius: 4px;
}

.navbar .navbar-brand h2 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 22px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.background-header .navbar .navbar-brand h2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar .navbar-nav a.nav-link {
  position: relative;
  font-weight: 500;
}


.navbar .navbar-nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .navbar-nav a.nav-link:hover::after,
.navbar .navbar-nav .active > .nav-link::after {
  width: 70%;
}

.navbar .navbar-nav .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  margin-top: 10px;
  animation: fadeInDown 0.3s ease;
}

.navbar .navbar-nav .dropdown-item {
  padding: 10px 24px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar .navbar-nav .dropdown-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar .navbar-nav .dropdown-item:hover::before {
  width: 8px;
}

.navbar .navbar-nav .dropdown-item:hover {
  background-color: rgba(198, 76, 57, 0.08);
  color: var(--primary);
  padding-left: 30px;
}

/* ===== Hero Animated Slider ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 95vh;
  overflow: hidden;
  background: #000;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide Base */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Background with Ken Burns */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
}

.slide-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide.active .slide-bg {
  animation: kenBurns 10s ease-out forwards;
}

.slide-bg-1 {
  background-image: url(../images/slide_01.jpg);
}

.slide-bg-2 {
  background-image: url(../images/slide_02.jpg);
}

.slide-bg-3 {
  background-image: url(../images/slide_03.jpg);
}

.slide-bg-4 {
  background-image: url(../images/slide_04.jpg);
}

.slide-bg-5 {
  background-image: url(../images/slide_05.jpg);
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Slide Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* Floating Particles */
.slide-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* Slide Content */
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
}

.content-wrapper {
  max-width: 750px;
  padding: 0 60px;
}

/* Slide Tag */
.slide-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 20px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 30px;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Slide Title */
.slide-title {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 58px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 25px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-title em {
  font-style: normal;
  color: var(--primary-light);
}

.slide.active .slide-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}

/* Slide Description */
.slide-desc {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 580px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.1s;
}

/* Slide Buttons */
.slide-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.4s;
}

.slide-buttons .filled-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 25px rgba(198, 76, 57, 0.4);
  position: relative;
  overflow: hidden;
}

.slide-buttons .filled-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.slide-buttons .filled-button:hover::after {
  width: 300px;
  height: 300px;
}

.slide-buttons .filled-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(198, 76, 57, 0.5);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(198, 76, 57, 0.4);
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 40px;
  height: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.slider-dot span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active span {
  width: 100%;
  animation: dotFill 8s linear forwards;
}

@keyframes dotFill {
  from { width: 0; }
  to { width: 100%; }
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scaleY(1.5);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.1s linear;
}

.slide.active ~ .slider-progress .slider-progress-bar,
.hero-slider .slider-progress-bar {
  animation: progressFill 8s linear forwards;
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== Request Form / CTA Bar ===== */
.request-form {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.request-form::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.request-form h4 {
  font-weight: 700;
  font-size: 24px;
}

.request-form a.border-button {
  transition: var(--transition);
}

.request-form a.border-button:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== Services / Products Section ===== */
.services {
  margin-top: 100px;
  padding-bottom: 60px;
}

.section-heading {
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-heading h2 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading span {
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--gray);
}

.service-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 30px;
  background: var(--white);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.service-item:hover img {
  transform: scale(1.08);
}

.service-item .down-content {
  padding: 30px;
  position: relative;
  background: var(--white);
  border-top: 3px solid transparent;
  transition: var(--transition);
}

.service-item:hover .down-content {
  border-top-color: var(--primary);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(198, 76, 57, 0.3);
}

.service-icon i {
  color: var(--white);
  font-size: 20px;
}

.service-item .down-content h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.service-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

.service-list li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 12px;
  top: 7px;
}

.service-item .down-content .filled-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: var(--transition);
}

.service-item .down-content .filled-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(198, 76, 57, 0.4);
}

/* ===== Fun Facts / Stats Section ===== */
.fun-facts {
  position: relative;
  overflow: hidden;
}

.fun-facts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
}

.fun-facts .container {
  position: relative;
  z-index: 1;
}

.fun-facts .left-content {
  margin-right: 45px;
}

.fun-facts h2 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 40px;
  line-height: 1.3;
}

.count-area-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 30px;
  margin: 10px;
  transition: var(--transition);
}

.count-area-content:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.count-digit {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold) !important;
  letter-spacing: 1px;
}

.count-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* ===== More Info / About Section ===== */
.more-info {
  margin-top: 100px;
}

.more-info-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.more-info .left-image img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.more-info .left-image {
  overflow: hidden;
}

.more-info .left-image:hover img {
  transform: scale(1.05);
}

.more-info .right-content {
  padding: 60px 50px;
  background: var(--white);
}

.more-info .right-content h2 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 38px;
  line-height: 1.3;
}

.more-info .right-content span {
  color: var(--primary);
  font-weight: 600;
}

.more-info .right-content p {
  line-height: 1.9;
  font-size: 15px;
}

.more-info .right-content .filled-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: var(--transition);
}

.more-info .right-content .filled-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(198, 76, 57, 0.4);
}

/* ===== Testimonials Section ===== */
.testimonials {
  margin-top: 100px;
  padding: 100px 0;
  background: var(--gray-light);
}

.testimonial-item .inner-content {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.testimonial-item .inner-content::before {
  content: '\f10d';
  font-family: 'FontAwesome';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 24px;
  color: var(--primary);
  opacity: 0.15;
}

.testimonial-item:hover .inner-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-item h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 20px;
}

.testimonial-item span {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.testimonial-item p {
  margin-top: 15px;
  font-style: italic;
  line-height: 1.8;
  position: relative;
}

.testimonial-video {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.testimonial-video video {
  border-radius: 8px;
}

/* ===== Contact Form Section ===== */
.callback-form {
  margin-top: 100px;
}

.callback-form .contact-form {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 70px 60px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.callback-form .contact-form::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.callback-form .contact-form::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.callback-form .contact-form input {
  background: rgba(255,255,255,0.95);
  border: 2px solid transparent;
  transition: var(--transition);
}

.callback-form .contact-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.callback-form .contact-form textarea {
  background: rgba(255,255,255,0.95);
  border: 2px solid transparent;
  transition: var(--transition);
}

.callback-form .contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.callback-form .contact-form button.border-button {
  background: transparent;
  border: 2px solid var(--white);
  transition: var(--transition);
  letter-spacing: 1px;
}

.callback-form .contact-form button.border-button:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== Partners Section ===== */
.partners {
  margin-top: 100px;
  padding: 80px 0;
  background: var(--gray-light);
}

.partners .partner-item img {
  max-width: 140px;
  margin: auto;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(30%);
}

.partners .partner-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #1a1a1a 100%);
  padding: 80px 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

footer h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

footer .menu-list {
  margin: 0;
  padding: 0;
}

footer .menu-list li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer .menu-list li:last-child {
  border-bottom: none;
}

footer .menu-list li a {
  display: block;
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.88);
  transition: var(--transition);
}

footer .menu-list li a::before {
  content: '\f105';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--gold);
  transition: var(--transition);
}

footer .menu-list li a:hover {
  color: var(--gold);
  padding-left: 24px;
}

footer .menu-list li a:hover::before {
  color: var(--primary);
}

footer ul.social-icons li a {
  transition: var(--transition);
}

footer ul.social-icons li a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

footer .contact-form input {
  transition: var(--transition);
}

footer .contact-form input:focus {
  box-shadow: 0 0 0 2px rgba(198, 76, 57, 0.3);
}

footer .contact-form textarea {
  transition: var(--transition);
}

footer .contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(198, 76, 57, 0.3);
}

footer .contact-form button.filled-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: var(--transition);
}

footer .contact-form button.filled-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(198, 76, 57, 0.4);
}

/* ===== Sub Footer ===== */
.sub-footer {
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.sub-footer a {
  color: var(--primary);
  transition: var(--transition);
}

.sub-footer a:hover {
  color: var(--gold);
}

/* ===== Button Enhancements ===== */
a.filled-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  transition: var(--transition);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

a.filled-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

a.filled-button:hover::before {
  left: 100%;
}

a.filled-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 76, 57, 0.4);
  color: var(--white);
}

a.border-button {
  transition: var(--transition);
}

a.border-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== Scroll Reveal Animation Classes ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 992px) {
  .slide-title {
    font-size: 42px;
  }

  .slide-tag {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .content-wrapper {
    padding: 0 40px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .navbar .navbar-brand h2 {
    font-size: 18px;
  }

  .fun-facts h2 {
    font-size: 32px;
  }

  .more-info .right-content h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 80vh;
  }

  .slide-title {
    font-size: 32px;
  }

  .slide-tag {
    font-size: 11px;
    letter-spacing: 2px;
    padding: 6px 14px;
  }

  .slide-desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .content-wrapper {
    padding: 0 25px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .slider-prev {
    left: 15px;
  }

  .slider-next {
    right: 15px;
  }

  .slider-dots {
    bottom: 25px;
  }

  .slider-dot {
    width: 30px;
    height: 3px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .services {
    margin-top: 60px;
  }

  .more-info {
    margin-top: 60px;
  }

  .testimonials {
    margin-top: 60px;
    padding: 60px 0;
  }

  .callback-form {
    margin-top: 60px;
  }

  .callback-form .contact-form {
    padding: 40px 30px;
  }

  .partners {
    margin-top: 60px;
  }

  .fun-facts {
    margin-top: 60px;
  }

  .fun-facts h2 {
    font-size: 28px;
  }

  .count-area-content {
    margin: 8px;
    padding: 20px;
  }

  .count-digit {
    font-size: 32px;
  }

  .more-info .right-content {
    padding: 40px 30px;
  }

  .more-info .right-content h2 {
    font-size: 26px;
  }

  .service-item .down-content {
    padding: 25px;
  }

  .service-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 70vh;
  }

  .slide-title {
    font-size: 26px;
  }

  .slide-desc {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .slide-tag {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .request-form h4 {
    font-size: 20px;
  }
}

/* ===== Page Heading Enhancements ===== */
.page-heading {
  position: relative;
  background-image: url(../images/page-heading-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 200px 0 120px;
  color: #fff;
}

.page-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 0;
}

.page-heading .container {
  position: relative;
  z-index: 1;
}

.page-heading h1 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: capitalize;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease both;
}

.page-heading span {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  animation: fadeInUp 0.8s ease both 0.2s;
}

/* ===== About Info Sections ===== */
.about-info {
  margin-top: 80px;
}

.about-info .more-info-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

.about-info .right-content h2 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 25px;
}

.about-info .right-content em {
  color: var(--primary);
  font-style: normal;
}

.about-info .right-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray);
}

/* ===== Values Section ===== */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 20px 25px;
  margin-bottom: 15px;
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.values-list li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}

.values-list li .value-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.values-list li .value-text h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.values-list li .value-text p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== Board / Team Cards ===== */
.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 40px;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card .card-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .card-image img {
  transform: scale(1.08);
}

.team-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.team-card .card-body {
  padding: 30px;
  text-align: center;
}

.team-card .card-body h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.team-card .card-body .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.team-card .card-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

/* ===== Services Tabs ===== */
#tabs ul li a {
  background: var(--gray-light);
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

#tabs ul li a:hover,
#tabs ul .ui-tabs-active a {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-left-color: var(--gold);
  transform: translateX(5px);
}

#tabs ul li a i {
  transition: var(--transition);
}

#tabs ul li a:hover i,
#tabs ul .ui-tabs-active a i {
  transform: translateX(5px);
}

.tabs-content {
  margin-left: 30px;
}

.tabs-content img {
  border-radius: 12px;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 25px;
}

.tabs-content h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.service-detail-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.service-detail-item:last-child {
  border-bottom: none;
}

.service-detail-item h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detail-item h5 i {
  color: var(--primary);
  font-size: 14px;
}

.service-detail-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  padding-left: 26px;
}

/* ===== Download Cards ===== */
.download-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  transition: var(--transition);
  border: 1px solid #eee;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.download-card .file-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.download-card .file-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.download-card .file-info h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.download-card .file-info span {
  font-size: 13px;
  color: var(--gray);
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item .gallery-overlay i {
  color: var(--white);
  font-size: 24px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-info-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(198, 76, 57, 0.3);
}

.contact-info-card .icon-circle i {
  color: var(--white);
  font-size: 28px;
}

.contact-info-card h4 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.contact-info-card a:hover {
  color: var(--primary-dark);
}

/* ===== Section Spacing for Sub Pages ===== */
.sub-page-section {
  padding: 80px 0;
}

.sub-page-section:nth-child(even) {
  background: var(--gray-light);
}

/* ===== Responsive for Sub Pages ===== */
@media (max-width: 992px) {
  .page-heading {
    padding: 160px 0 100px;
  }

  .page-heading h1 {
    font-size: 38px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-heading {
    padding: 140px 0 80px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .page-heading span {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .about-info {
    margin-top: 50px;
  }

  .about-info .more-info-content {
    margin-bottom: 40px;
  }

  .tabs-content {
    margin-left: 0;
    margin-top: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .team-card .card-image {
    height: 250px;
  }

  .values-list li {
    padding: 15px 18px;
  }
}

@media (max-width: 480px) {
  .page-heading {
    padding: 120px 0 60px;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ===== Unified Inner-Page Banner Style ===== */
.page-heading.header-text {
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
  background: linear-gradient(120deg, rgba(17, 66, 46, 0.92), rgba(20, 48, 40, 0.88)),
              url("../images/slide_02.jpg") center center / cover no-repeat;
}

.page-heading.header-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 35%, rgba(255, 193, 7, 0.2), transparent 42%);
  pointer-events: none;
}

.page-heading.header-text .container {
  position: relative;
  z-index: 1;
}

.page-heading.header-text h1 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-heading.header-text span {
  display: inline-block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

/* ===== Print Styles ===== */
@media print {
  .sub-header,
  .hero-slider,
  .partners,
  .callback-form,
  footer,
  .sub-footer {
    display: none;
  }

  body {
    color: #000;
  }
}
