/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fed7aa;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #f8fafc;
  --bg-light: #ffffff;
  --bg-dark: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1a3358, #2c4a7a);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 12px 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-top: 0;
  position: relative;
  z-index: 100;
}

.announcement-title {
  font-weight: 700;
  font-size: 14px;
  margin-right: 20px;
  padding: 6px 14px;
  background-color: #0d2247;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.announcement-text {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-text 30s linear infinite;
  font-size: 14px;
  font-weight: 500;
}

@keyframes scroll-text {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
header {
  background-color: var(--bg-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
}

/* Header Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 110px;
  padding: 0 2rem;
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.logo img {
  width: 300px;
  height: auto;
  display: block;
  position: absolute;
  top: 15px;
  left: 0px;
  z-index: 3000;
  transition: transform 0.4s ease, filter 0.3s ease;
  transform-origin: top left;
  filter: drop-shadow(0px 12px 24px rgba(0,0,0,0.4));
}

/* ===== NAVIGATION ===== */
.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0.5rem 0;
}

nav a {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* Right Side Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}


/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 0rem;
  padding-top: 2rem;

}

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

.slides {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
  text-align: right;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  max-width: 90%;
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.1rem;
}

.cta-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

.dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.project-split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  min-height: 600px;
}

/* Left side */
.projects-left {
  flex: 1;
  min-width: 50%;
  background: #f7f7f7;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Right side */
.projects-right {
  flex: 1;
  min-width: 45%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Top right (Achievements) */
.achievements {
  flex: 1;
  background: linear-gradient(135deg, #e9f5ff, #d4edff);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Bottom right (Notice Board) */
.notice-board {
  flex: 1;
  background: linear-gradient(135deg, #fff8e6, #ffefcc);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.notice-board ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-board li {
  margin-bottom: var(--spacing-sm);
  padding-left: 1.5rem;
  position: relative;
}

.notice-board li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Projects auto-slide container */
.projects-slider {
  position: relative;
  overflow: hidden;
  height: 400px;
  margin-top: var(--spacing-md);
}

.project-item {
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform 0.6s ease-in-out;
  border-left: 4px solid var(--primary);
}

.project-item h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* ===== PROJECT LINKS ===== */
.project-link {
  color: var(--primary);          /* same as h3 text color */
  text-decoration: none;          /* remove underline */
  transition: none;               /* no color transition */
}

.project-link:hover,
.project-link:focus,
.project-link:active,
.project-link:visited {
  color: var(--primary);          /* keep same color on hover, click, visited */
  text-decoration: none;          /* prevent underline or color shift */
}

.project-item p {
  color: var(--text-light);
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  min-height: 400px;
  gap: var(--spacing-lg);
}

.videos-left {
  flex: 1;
  min-width: 55%;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
}

.videos-left iframe {
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 640px;
  height: 360px;
}

/* Arrow buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.arrow-btn.left {
  left: 10px;
}

.arrow-btn.right {
  right: 10px;
}

/* Right side */
.videos-right {
  flex: 1;
  min-width: 40%;
  padding: 2rem;
  background: var(--bg-light);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.videos-right h2 {
  text-align: left;
  margin-bottom: var(--spacing-md);
}

.videos-right h2:after {
  left: 0;
  transform: none;
}

#videoDescription {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

/* ===== TEAM SECTION ===== */
.team {
  background-color: var(--bg-light);
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.team-card {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.team-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.team-card .position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.team-card p {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg);
  color: var(--primary);
  transition: var(--transition);
}

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

/* ===== PARTNERS SECTION FIXES ===== */
.partners {
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.partners-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.partners-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.partner-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 1rem;
}

.partners-track img {
  flex: 1;
  max-width: 45%;
  opacity: 1;
  transition: var(--transition);
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 120px;
  object-fit: contain;
}

.partners-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile slider controls */
.partners-prev, 
.partners-next {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.8);
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.partners-prev:hover, 
.partners-next:hover {
  background: rgba(37, 99, 235, 1);
  transform: translateY(-50%) scale(1.1);
}

.partners-prev {
  left: 10px;
}

.partners-next {
  right: 10px;
}

.partners-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.partners-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-lighter);
  cursor: pointer;
  transition: var(--transition);
}

.partners-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Desktop grid view */
@media (min-width: 769px) {
  .partners-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    transform: none !important;
    transition: none !important;
  }
  
  .partner-slide {
    display: contents;
    min-width: auto;
    flex: none;
  }
  
  .partners-track img {
    max-width: 100%;
    height: 120px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .partners-prev, 
  .partners-next {
    display: flex;
  }
  
  .partners-dots {
    display: flex;
  }
  
  .partners-track img {
    max-width: 45%;
    height: 100px;
  }
  
  .partner-slide {
    padding: 0 2rem;
  }
}

/* ===== SUBSCRIBE SECTION ===== */
.subscribe {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.subscribe:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.subscribe h2 {
  color: white;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.subscribe h2:after {
  background: white;
}

.subscribe-text {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: #e0e7ff;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.subscribe-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  min-width: 250px;
  box-shadow: var(--shadow-sm);
}

.subscribe-form button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.subscribe-form button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

#subscribe-response {
  margin-top: var(--spacing-sm);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ===== CONTACT SECTION (Modern UI) ===== */
.contact-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f4f9, #e8ecf3);
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* LEFT INFO SIDE */
.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.contact-info h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #facc15;
  border-radius: 2px;
}

.info-box {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-box i {
  font-size: 1.8rem;
  color: #facc15;
  flex-shrink: 0;
}

.info-box h3 {
  margin: 0;
  font-size: 1rem;
  color: #e0f2fe;
}

.info-box p, .info-box a {
  margin: 0;
  font-size: 0.95rem;
  color: #f1f5f9;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info h2 {
  color: #facc15;
}

/* RIGHT FORM SIDE */
.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #1e3a8a;
  position: relative;
}

.contact-form h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}

/* Floating input style */
.contact-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px 14px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #2563eb;
}

.contact-form label {
  position: absolute;
  left: 0;
  top: 14px;
  font-size: 1rem;
  color: #777;
  transition: 0.3s ease;
  pointer-events: none;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.8rem;
  color: #2563eb;
}

/* Send Button */
.btn-send {
  align-self: flex-start;
  padding: 12px 28px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--radius-x0);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 25px rgba(0,0,0,0.25);
  animation: slideIn 0.4s ease;
  margin: 5% auto;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.9rem;
  font-weight: bold;
  color: #eb0808;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

.back {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 5px;
}

.back:hover {
  background-color: var(--primary-light);
}

.close:hover {
  color: #000;
}

/* Form styling */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-content label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: var(--transition);
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

/* QR box */
.qr-box {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
}
.qr-box img {
  max-width: 200px;
  width: 100%;
  border: 4px solid #eee;
  border-radius: 8px;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1rem;
}
.btn-primary:hover {
  background: var(--accent-dark);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
  color: white;
}

.footer-column p {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #cbd5e1;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--spacing-xs);
}

.footer-column a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Tablet and Small Desktop */
@media (max-width: 1199px) {
  .logo img {
    width: 250px;
    left: 80px;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .logo img {
    width: 220px;
    top: 10px;
    left: 60px;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .hero-content {
    right: 5%;
    max-width: 500px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }

  .project-split {
    flex-direction: column;
  }
  
  .projects-left, .projects-right {
    min-width: 100%;
  }

  .videos-section {
    flex-direction: column;
  }
  
  .videos-left, .videos-right {
    min-width: 100%;
  }

  .contact-container {
    flex-direction: column;
  }
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  /* Header & Navigation */
  .nav-container {
    min-height: 80px;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    position: relative;
    width: 140px;
    top: auto;
    left: auto;
    transform: none !important;
    filter: none;
    margin-right: auto;
    z-index: 1002;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 140px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .header-nav.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 2rem;
    margin-left: 0;
    text-align: center;
    width: 100%;
  }
  
  .header-actions {
    margin-left: 0;
    margin-top: 2rem;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Hero Section - Mobile Improvements */
  .hero {
    height: 60vh;
  }
  
  .slides img {
    filter: brightness(0.6);
  }
  
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    width: 90%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: heroContentFadeIn 1s ease-out;
    transition: all 0.5s ease;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out 0.3s both;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    animation: slideInUp 0.8s ease-out 0.5s both;
  }
  
  .cta-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 50px;
    animation: slideInUp 0.8s ease-out 0.7s both;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  }
  
  .cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
  }
  
  /* Hero Content Animations */
  @keyframes heroContentFadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -40%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Active slide animation */
  .slides.active .hero-content {
    animation: heroContentSlideIn 4s ease-out;
  }
  
  @keyframes heroContentSlideIn {
    from {
      opacity: 0;
      transform: translate(-50%, -40%) scale(0.95);
    } to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    
  }
  
  .prev, .next {
    padding: 0.75rem;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }
  
  .subscribe-form input {
    min-width: auto;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  /* ===== MOBILE-SPECIFIC FIXES ===== */
  
  /* Fix for dropdown menu in mobile */
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    display: none;
    position: static;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease;
  }
  
  .dropdown-menu.active {
    display: block;
  }
  
  .dropdown-menu li {
    margin: 0.5rem 0;
  }
  
  .dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--text);
    font-weight: 500;
  }
  
  .dropdown-menu a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary);
  }
  
  .dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.9em;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Modern mobile design for team section */
  .team-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .team-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .team-card:nth-child(1) { animation-delay: 0.1s; }
  .team-card:nth-child(2) { animation-delay: 0.2s; }
  .team-card:nth-child(3) { animation-delay: 0.3s; }
  
  .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
  }
  
  .team-card:hover .team-img {
    transform: scale(1.05);
    border-color: var(--primary);
  }
  
  .team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
  }
  
  .team-card .position {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .team-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Modern mobile design for partners section */
  .partners-logos {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .partners-logos::-webkit-scrollbar {
    height: 6px;
  }
  
  .partners-logos::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .partners-logos::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }
  
  .partners-logos img {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    scroll-snap-align: center;
    border-radius: var(--radius-md);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
  }
  
  .partners-logos img:nth-child(1) { animation-delay: 0.1s; }
  .partners-logos img:nth-child(2) { animation-delay: 0.2s; }
  .partners-logos img:nth-child(3) { animation-delay: 0.3s; }
  .partners-logos img:nth-child(4) { animation-delay: 0.4s; }
  .partners-logos img:nth-child(5) { animation-delay: 0.5s; }
  .partners-logos img:nth-child(6) { animation-delay: 0.6s; }
  
  .partners-logos img:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  }
  
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 2rem;
  }
  
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .logo img {
    width: 120px;
  }
  
  .hero {
    height: 50vh;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .announcement-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 10px;
  }
  
  .announcement-title {
    margin-right: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .projects-slider {
    height: 300px;
  }

  .videos-left iframe {
    height: 250px;
  }

  .arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Further mobile optimizations */
  .team-card {
    padding: 1.2rem;
  }
  
  .team-img {
    width: 100px;
    height: 100px;
  }
  
  .partners-logos img {
    width: 130px;
    height: 90px;
  }
}

/* Dropdown for desktop */
@media (min-width: 769px) {
  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1500;
    animation: slideDown 0.3s ease;
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);

    font-weight: 500;
    transition: background 0.3s;
  }

  .dropdown-menu li a:hover {
    background: var(--bg);
    color: var(--primary);

  }

  /* Show on hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.9em;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
  background: var(--success);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  text-align: center;
}



/* Volunteer Form Submission-- Volunteer index
/* Force logo to remain small (stage 3) on volunteer page */
.logo-stage-3 {
  position: absolute;
  top: 10px;
  left: 100px;   /* adjust to match your current small logo position */
  width: 180px;  /* stage 3 size */
  height: auto;
  transform: none !important;
  transition: none !important;
}

/* Volunteer Form Section */
.volunteer-form-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f9fafb, #eef2f7);
}

.volunteer-form-container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.volunteer-form-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

#volunteerForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-send {
  align-self: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-send:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Ensure rows can hold 2-3 inputs side by side */

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.lisence{
  color: white;
}

/* ✅ Donation Success Overlay */
.success-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in;
}

.success-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 3rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: popUp 0.3s ease-out;
}

.success-box h2 {
  color: #28a745;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.success-box p {
  font-size: 1rem;
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ssocial-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.ssocial-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg);
  color: var(--primary);
  transition: var(--transition);
}

.ssocial-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}



/* ===== Recent Projects Card (Same Theme as Achievements / Notice Board) ===== */

.recent-projects {
    background: #e4f1ff;          /* same light blue bg as Our Achievements */
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

.recent-projects h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0056d2;               /* same blue as other section titles */
    margin-bottom: 1rem;
    position: relative;
}

/* underline accent like other headings */
.recent-projects h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 4px;
    background: #ff7b2f;          /* same orange underline accent */
    border-radius: 4px;
}

.recent-projects-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* bullet styling like Notice Board */
.recent-projects-list li {
    margin: 0 0 1.2rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.recent-projects-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.4rem;
    color: #ff7b2f;               /* orange bullet */
    line-height: 1;
}

/* meta (completed date) small + faded */
.recent-projects-list .meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 0.4rem;
}


/* === Injected updates === */

/* ===== Program Highlights scroll area ===== */
.projects-left .projects-slider {
  max-height: 420px; /* fixed height as requested */
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}
.projects-left .projects-slider::-webkit-scrollbar { width: 6px; }
.projects-left .projects-slider::-webkit-scrollbar-thumb { background: #9bb7ff; border-radius: 4px; }
.projects-left .projects-slider::-webkit-scrollbar-track { background: transparent; }


/* ===== Linkable section heading ===== */
.link-heading { color: var(--primary); text-decoration: none; }
.link-heading:hover { color: var(--accent); }


/* ===== Recent Projects card (blue theme like Achievements) ===== */
.recent-projects {
  background: linear-gradient(135deg, #e9f5ff, #d4edff);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}
.recent-projects h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}
.recent-projects h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}
.recent-projects-list { list-style: none; margin: 0; padding: 0; }
.recent-projects-list li { margin: 0 0 1.1rem 0; position: relative; padding-left: 1rem; }
.recent-projects-list li::before {
  content: "•"; position: absolute; left: 0; top: 0; font-size: 1.3rem; color: var(--accent);
}
.recent-projects-list .meta { font-size: .9rem; opacity: .75; margin-left: .4rem; }
