:root {
  --primary-color: #1e6435;
  --secondary-color: #f59e0b;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --success-color: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background: rgba(30, 100, 53, 0.95) !important; /* #1e6435 with transparency */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(30, 100, 53, 1) !important; /* solid green when scrolled */
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.sklogo {
  padding-right: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, 
                rgba(30, 100, 53, 0.85), 
                rgba(30, 41, 59, 0.8)
              ), 
              url('images/banner.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), #164d2a); /* darker green */
  color: white;
  padding: 3rem 0;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* About Section */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.about-card:hover {
  transform: translateY(-10px);
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #2d7f4a); /* green gradient */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--secondary-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.team-member:hover img {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.team-member h5 {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-member .position {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Programs Section - FIXED & ENHANCED */
.card-program {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smoother animation */
  background: white;
  box-shadow: 0 5px 25px rgba(0, 35, 20, 0.12); /* Deeper green shadow */
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem; /* Consistent spacing between cards */
}

.card-program:hover {
  transform: translateY(-8px); /* Reduced movement for better UX */
  box-shadow: 0 12px 35px rgba(0, 35, 20, 0.25); /* Stronger green shadow */
}

/* Icon Container - FIXED RESPONSIVE BEHAVIOR */
.card-program .card-icon {
  width: 85px; /* Reduced size for better proportion */
  height: 85px;
  margin: 1.8rem auto 1.5rem;
  background: linear-gradient(135deg, #28a745, #1d7a36); /* Pure green gradient */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem; /* Slightly smaller for balance */
  color: white;
  flex-shrink: 0; /* Prevents shrinking in flex container */
  box-shadow: 0 4px 15px rgba(0, 35, 20, 0.3); /* Subtle depth */
}

/* Hover effect enhanced */
.card-program:hover .card-icon {
  transform: rotate(15deg) scale(1.05); /* More natural rotation */
  box-shadow: 0 6px 20px rgba(0, 35, 20, 0.4);
}

/* Content area improvements */
.card-program .card-body {
  padding: 0 1.8rem 2rem;
  flex-grow: 1; /* Takes remaining space */
  display: flex;
  flex-direction: column;
}

.card-program h5 {
  font-weight: 700; /* Bolder title */
  margin-bottom: 1rem;
  color: #0a2e1a; /* Dark green text */
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-program p {
  color: #3a5542; /* Softer green-gray text */
  line-height: 1.7;
  margin-bottom: 0;
  flex-grow: 1; /* Expands to fill space */
}

/* News Section */
.news-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color); /* green accent */
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-date {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.news-title {
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--dark-color);
}

/* Contact Section */
.contact-info {
  background: linear-gradient(135deg, var(--primary-color), #164d2a); /* green gradient */
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.3rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.8;
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-control {
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 100, 53, 0.1); /* green focus ring */
}

.contact-form .btn {
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-form .btn:hover {
  background-color: #164d2a; /* darker green on hover */
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 3rem 0 1.5rem;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  line-height: 45px;
  text-align: center;
  margin: 0 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Scroll Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}