/* 
   Prabhanja Makam - Global Styles 
   Theme: Fresh, Natural, Trustworthy
   Colors: Green (Growth & Hope), Emerald (Trust), Light Green (Warmth)
*/

:root {
  /* Primary Colors - Green Theme */
  --primary-color: #1B9C85;
  /* Emerald Green */
  --secondary-color: #2ECC71;
  /* Bright Green */

  --ngo-primary: #1B9C85;
  --ngo-light: #E6F4F1;
  --ngo-dark: #0F5132;
  --ngo-accent: #27AE60;

  /* Accent Colors */
  --accent-color: #27AE60;
  /* Medium Green */

  /* Neutral Colors */
  --light-bg: #f8f9fa;
  --dark-text: #333333;
  --light-text: #ffffff;
  --gray-text: #666666;

  /* Gradients - Green Theme */
  --gradient-primary: linear-gradient(135deg, #1B9C85 0%, #0F5132 100%);
  --gradient-warm: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
  --gradient-soft: linear-gradient(120deg, #E6F4F1 0%, #f8f9fa 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

/* Base Reset & Typography */
body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  /* color: var(--primary-color); */
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary-custom {
  background-color: var(--primary-color);
}

.bg-light-soft {
  background: var(--gradient-soft);
}

/* Base Background Color */
.bg-base-green {
  background-color: #3E5F4F !important;
}

/* Card Background Colors - Earth Tones with Gradients */
.card-green {
  background:
    linear-gradient(180deg, #ADC591 0%, #62774d 100%) !important;

  border-radius: 40px !important;
  border: none !important;
}

.card-brown-dark {
  background: linear-gradient(180deg, #9C715D 0%, #7E5541 100%) !important;
  border-radius: 40px !important;
  border: none !important;
}

.card-brown {
  background: linear-gradient(180deg, #A87E61 0%, #8A5A3B 100%) !important;
  border-radius: 40px !important;
  border: none !important;
}

.call-action {
  background-color: #2f4f2f !important;
}

/* Icon Design for Cards */
.icon-circle {
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #cdfcc1;
}

.icon-circle i {
  font-size: 2.5rem;
  color: white;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

/* Green Card Backgrounds with Gradients */
.bg-dark-teal {
  background: linear-gradient(180deg, #4E7461, #3E5F4F) !important;
}

.bg-olive-green {
  background: linear-gradient(180deg, #ADC591, #91AE74) !important;
}

.bg-forest-green {
  background: linear-gradient(180deg, #9C715D, #7E5541) !important;
}

.bg-emerald {
  background: linear-gradient(180deg, #1FB69C, #1B9C85) !important;
}

.bg-sage-green {
  background: linear-gradient(180deg, #A87E61, #8A5A3B) !important;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Override Bootstrap bg classes with earth-tone gradients */
.bg-success {
  background: linear-gradient(180deg, #ADC591, #91AE74) !important;
}

.bg-info {
  background: linear-gradient(180deg, #4E7461, #3E5F4F) !important;
}

.bg-success-subtle {
  background: linear-gradient(180deg, #A87E61, #8A5A3B) !important;
}

/* Buttons */
.btn-custom-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.3);
  transition: all 0.3s ease;
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 156, 133, 0.4);
  color: white;
}

.btn-custom-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-custom-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Animations */
/* Base class for all scroll animations */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Fade In Up (Original) */
.fade-in-up {
  transform: translateY(30px);
}

/* Zoom In */
.zoom-in {
  transform: scale(0.9);
  transition:
    opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slide In Left */
.slide-in-left {
  transform: translateX(-50px);
}

/* Slide In Right */
.slide-in-right {
  transform: translateX(50px);
}

/* Pulse (Continuous) */
@keyframes pulse-soft {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 156, 133, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(27, 156, 133, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 156, 133, 0);
  }
}

.pulse-animation {
  animation: pulse-soft 2s infinite;
}

/* Floating (Continuous) */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Staggered Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Hover Effects */
.hover-pulse {
  transition: transform 0.3s ease;
}

.hover-pulse:hover {
  transform: scale(1.05);
  animation: pulse-soft 1s infinite;
}


@media (max-width: 991px) {

  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Fixed navbar on mobile */
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
  }

  .navbar-nav .btn {
    width: 100%;
    text-align: center;
  }

  /* Mobile navbar layout: toggle left, logo+name center */
  .navbar .container {
    flex-direction: column !important;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .navbar .container>div:first-child {
    width: 100% !important;
    justify-content: center !important;
    position: relative;
  }

  .navbar-brand {
    margin: 0;
    justify-content: center;
    padding-left: 60px;
    padding-right: 60px;
  }

  .navbar-brand .fw-bold {
    font-size: 1.2rem !important;
    white-space: nowrap;
  }

  .logo-img {
    height: 50px !important;
  }

  .navbar-toggler {
    display: block;
    margin: 0;
    margin-left: 10px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar .container>div:nth-child(2) {
    width: 100%;
  }
}

/* Extra small mobile devices (below 400px) */
@media (max-width: 400px) {
  .navbar-brand {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }

  .navbar-brand .fw-bold {
    font-size: 1rem !important;
  }

  .logo-img {
    height: 40px !important;
  }

  .navbar-toggler {
    margin-left: 5px !important;
    transform: translateY(-50%) scale(0.9);
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255) !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  transition: transform 0.3s ease;
}



/* Default transparent navbar */
.navbar-transparent {
  background: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

/* After scrolling 100vh */
.navbar-solid {
  background: rgba(0, 0, 0, 0.4);
  padding-top: 10px;
  padding-bottom: 10px;

}


.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 600;
  color: white;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;

}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: deepskyblue;
}

.nav-link.active {
  color: yellow !important;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: white;
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

footer a {
  color: #cccccc;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Section Padding */
section {
  padding: 5rem 0;
}

/* Responsive */
@media (max-width: 768px) {

  /* Prevent horizontal overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    position: relative;
    width: 100%;
    left: 0;
    right: 0;
    max-width: 100%;
  }

  .nav-link {
    color: var(--dark-text) !important;
    text-align: center;
    padding: 10px 0;
  }

  .nav-link.active {
    color: var(--primary-color) !important;
  }

  /* Footer mobile responsive */
  footer {
    text-align: center;
  }

  footer .row>div {
    text-align: center !important;
    margin-bottom: 2rem;
  }

  footer h5 {
    text-align: center;
  }

  footer ul {
    padding-left: 0;
  }

  footer .d-flex {
    justify-content: center !important;
  }

  /* Section padding mobile */
  section {
    padding: 3rem 0;
  }

  /* Page header mobile */
  .page-header h1 {
    font-size: 2rem;
    margin-top: 3rem;
  }
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 50%;
  margin-right: 10px;
}

.page-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-header h1 {

  margin-top: 5rem;

}

.subscription-section {
  background: orange;
  color: #fff;
}

.subscription-form {
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
}

.subscription-form input {
  border: none;
  padding: 15px 20px;
}

.subscription-form input:focus {
  box-shadow: none;
}

.subscription-form button {
  border-radius: 0 50px 50px 0;
  font-weight: 600;
}

/* ========== Programs Update Slider Section ========== */
.batch-news {
  background: linear-gradient(135deg, #E6F4F1 0%, #f8f9fa 100%);
  padding: 4rem 0;
}

.batch-news h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.slider-container {
  max-width: 1100px;
  padding: 0 60px;
  position: relative;
}

.batch-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
}

.batch-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: none;
  text-align: left;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.batch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1B9C85, #27AE60);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.batch-card:hover::before {
  opacity: 1;
}

.batch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(27, 156, 133, 0.15);
  border-color: #1B9C85;
}

.batch-card .badge {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

.batch-card .badge.bg-success {
  background-color: #27AE60 !important;
}

.batch-card .badge.bg-warning {
  background-color: #F39C12 !important;
}

.batch-card .badge.bg-secondary {
  background-color: #95A5A6 !important;
}

.batch-card h5 {
  font-weight: 700;
  color: #2C3E50;
  font-size: 1.25rem;
  margin: 12px 0;
  line-height: 1.4;
}

.batch-card p {
  color: #666666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Slider Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 2px solid #1B9C85;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.2);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  color: #1B9C85;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #1B9C85;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(27, 156, 133, 0.3);
}

.nav-btn.left {
  left: 0;
}

.nav-btn.right {
  right: 0;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .batch-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .slider-container {
    padding: 0 50px;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .batch-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .batch-news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .slider-container {
    padding: 0 45px;
  }

  .batch-card {
    padding: 24px;
  }

  .batch-card h5 {
    font-size: 1.1rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .nav-btn.left {
    left: -5px;
  }

  .nav-btn.right {
    right: -5px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    padding: 0 40px;
  }

  .batch-card {
    padding: 20px;
  }
}

.glass-card:hover i {
  color: #0d6efd;
  transform: scale(1.1);
  transition: 0.3s ease;
}

.text-primary-custom {
  color: #7b2cbf;
}

.text-secondary-custom {
  color: #f77f00;
}

.text-accent {
  color: #2ec4b6;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.card-section {
  background: url('/images/bg-prabhanja-makam.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================
   Responsive Adjustments: 1076px to 1400px
   (Laptops, Desktops, Mac Systems)
   ========================================= */
@media (min-width: 1075px) and (max-width: 1400px) {

  /* Container width adjustment for Mac/Laptops */
  .container {
    max-width: 95%;
  }

  /* Typography Scaling */
  h1,
  .display-4 {
    padding-top: 20px;
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  /* Card Spacing & Layout */
  .glass-card {
    padding: 2rem !important;
    /* Slightly reduce padding to fit content */
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  /* Navbar adjustments definition */
  .navbar-nav {
    gap: 15px !important;
    /* Reduce gap if menu items are tight */
  }

  .nav-link {
    font-size: 0.95rem;
    /* Sligthly smaller font to prevent wrap */
  }

  /* Mac System Specifics (Font Smoothing) */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Batch Card Grid Fixes */
  .batch-wrapper {
    gap: 15px;
    /* Tighter gap for grids */
  }
}

/* =========================================
   Responsive Adjustments: 1076px to 1208px
   (Smaller Laptops, Mac Systems)
   ========================================= */
@media (min-width: 1076px) and (max-width: 1208px) {
  .container {
    max-width: 100%;
  }

  /* Mac System Optimization */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Adjustments for card padding in this range */
  .glass-card,
  .card-green,
  .card-brown,
  .card-brown-dark {
    padding: 2rem !important;
  }
}

@media(min-width:992px) and (max-width:1076px) {

  /* Navbar: Ensure it fits on tight desktop screens */
  .navbar-nav {
    gap: 5px !important;
  }

  .nav-link {
    font-size: 0.85rem !important;
    margin: 0 5px !important;
  }

  .navbar-brand .fw-bold {
    font-size: 1.2rem !important;
  }

  /* Hero: Scale down text and buttons */
  .display-3 {
    font-size: 2.5rem !important;
  }

  .display-4 {
    font-size: 2.5rem !important;
  }

  .lead {
    font-size: 1.1rem !important;
  }

  .btn-lg {
    padding: 10px 20px !important;
    /* Reduce button width */
    font-size: 1rem !important;
  }

  /* Cards: Reduce padding to fit 3-col layout */
  .card-green,
  .card-brown,
  .card-brown-dark {
    padding: 2rem !important;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  /* Mac System Optimization */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
