/* ============================================
   RV Construction SkillFuture Training Institute
   Main Stylesheet
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2840;
  --secondary: #f5c518;
  --accent: #00bcd4;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --text: #444444;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
}
.footer-working-hours p {
    margin: 0 !important;
}
/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
}

/* Lazy load fade-in effect */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.section-title p {
  margin-top: 15px;
  color: var(--text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============ HEADER & NAVIGATION ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-gray);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a5c5c 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text h1 span {
  color: var(--secondary);
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.4s both;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease 0.4s both;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  background: var(--white);
  top: 50%;
  left: 30%;
  animation-delay: 4s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #e6b800);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 197, 24, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

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

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

/* ============ SECTIONS ============ */
section {
  padding: 100px 0;
}

/* About Preview */
.about-preview {
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.about-image-placeholder::after {
  content: '🏗️';
  font-size: 5rem;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.experience-badge .years {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 600;
}

.about-content h2 {
  margin-bottom: 20px;
}
section p {
    text-align: justify;
}
.about-content p {
  margin-bottom: 15px;
  color: var(--text);
  text-align: justify;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-feature i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* ============ COURSES SECTION ============ */
.courses-section {
  background: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

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

.course-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.1), rgba(0, 188, 212, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.course-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.course-card .abbreviation {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.course-card p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ============ WHY CHOOSE US ============ */
.why-us {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.why-us .section-title h2 {
  color: var(--white);
}

.why-us .section-title h2::after {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.why-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary), #e6b800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.why-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.why-card p {
  font-size: 0.9rem;
  opacity: 0.8;
      text-align: center;
}

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), #e6b800);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.cta-section p {
  color: var(--primary-dark);
  opacity: 0.8;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-section .btn-primary {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(15, 40, 64, 0.3);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(15, 40, 64, 0.5);
}

/* ============ GALLERY SECTION ============ */
.gallery-section {
  background: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

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

/* ============ CONTACT SECTION ============ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text);
}

.contact-form {
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  opacity: 0.7;
  margin: 15px 0 25px;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.7;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 3px;
}

.footer-working-hours {
  margin-top: 20px;
}

.footer-working-hours h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-working-hours p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============ PAGE HEADER (Inner Pages) ============ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 15px;
  position: relative;
}

.page-header .breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a {
  color: var(--secondary);
}

/* ============ ABOUT PAGE ============ */
.mission-vision {
  background: var(--light-gray);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.mv-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.mv-card p {
  color: var(--text);
  margin-bottom: 10px;
}

.objectives-list {
  margin-top: 15px;
}

.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.objectives-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Success Keys */
.success-keys {
  background: var(--white);
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.key-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--light-gray);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

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

.key-card h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

.key-card p {
  font-size: 0.9rem;
  color: var(--text);
}

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

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

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Counter Animation */
.counter-section {
  background: var(--light-gray);
  padding: 60px 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-item .count {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.counter-item .count-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 25px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

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

  .stat-item .number {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 15px; }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 25px;
  }

  .counter-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 25px;
  }
}

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ============ GALLERY FILTERS ============ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #e2e8f0;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-color: transparent;
}

.gallery-item {
  transition: all 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gallery-content i {
  font-size: 2.5rem;
  opacity: 0.8;
}

.gallery-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-content p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============ TEAM / DIRECTOR SECTION ============ */
.team-section {
  background: var(--light-gray);
  padding: 100px 0;
}

.team-card {
  display: flex;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
}

.team-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), #e6b800);
  color: var(--primary-dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.team-info p {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.team-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.team-competencies span {
  background: var(--light-gray);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(26, 58, 92, 0.1);
}

.team-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.team-contact a:hover {
  color: var(--accent);
}

/* ============ COURSE DETAIL LAYOUT ============ */
.courses-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.course-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 35px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.course-detail-header h3 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.course-detail-tag {
  display: inline-block;
  background: rgba(245, 197, 24, 0.2);
  color: var(--secondary);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-detail-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
}

.course-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 35px;
}

.course-detail-content h4 {
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 25px;
  font-size: 1.05rem;
}

.course-detail-content h4:first-child {
  margin-top: 0;
}

.course-detail-content p {
  color: var(--text);
  margin-bottom: 10px;
}

.course-topics {
  list-style: none;
  padding: 0;
}

.course-topics li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.course-topics li:last-child {
  border-bottom: none;
}

.course-topics li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.course-info-box {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.info-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.info-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.info-item span {
  font-size: 0.85rem;
  color: var(--text);
}

/* ============ RESPONSIVE - NEW SECTIONS ============ */
@media (max-width: 1024px) {
  .course-detail-body {
    grid-template-columns: 1fr;
  }

  .courses-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
  }

  .team-competencies {
    justify-content: center;
  }

  .team-contact {
    justify-content: center;
  }

  .course-detail-header {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .course-detail-body {
    padding: 25px;
    gap: 25px;
  }
}

/* ============ IMAGE STYLES ============ */

/* Hero with background image */
.hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 40, 64, 0.92) 0%, rgba(26, 58, 92, 0.88) 50%, rgba(26, 92, 92, 0.85) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .hero-shape {
  z-index: 2;
}

/* About section image */
.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Course card images */
.course-card-img {
  margin: -35px -30px 20px -30px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.course-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-img img {
  transform: scale(1.05);
}

/* Course detail page images */
.course-detail-img {
  width: 100%;
  overflow: hidden;
}

.course-detail-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-detail:hover .course-detail-img img {
  transform: scale(1.02);
}

/* Gallery items with real images */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.gallery-overlay h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}

.gallery-overlay p {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Team avatar with image */
.team-avatar-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Remove old placeholder styles when images are present */
.gallery-item .gallery-placeholder {
  display: none;
}

/* Page header with background image */
.page-header[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header[style*="background-image"]::before {
  background: linear-gradient(135deg, rgba(15, 40, 64, 0.9), rgba(26, 58, 92, 0.85));
}

/* Logo image styling */
.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 0;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Gallery grid - simple standard layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

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

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============ PARTNERS SECTION ============ */
.partners-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logo {
  background: var(--white);
  padding: 30px 40px;
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.partner-logo img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  filter: none;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .partners-grid {
    gap: 30px;
  }

  .partner-logo {
    padding: 20px 30px;
  }

  .partner-logo img {
    max-height: 60px;
    max-width: 150px;
  }
}

/* ============ WHATSAPP CHAT BUBBLE ============ */
.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 768px) {
  .whatsapp-bubble {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

/* ============ ACCREDITATION LOGOS ============ */
.accreditation-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accreditation-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.accreditation-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accreditation-item img {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
  transition: var(--transition);
}

.accreditation-item img.nsdc-logo {
  max-height: 150px;
  max-width: 280px;
}

.accreditation-item img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .accreditation-strip {
    gap: 30px;
  }

  .accreditation-item img {
    max-height: 50px;
    max-width: 140px;
  }

  .accreditation-item img.nsdc-logo {
    max-height: 100px;
    max-width: 200px;
  }
}
