/* 
  =========================================
  INSTITUTO SAUTEC - ESTILO INSTITUCIONAL
  Aesthetics: Premium, Modern, Clean, Mobile-First
  Color Palette: Primary #00235C | Secondary #00D9DC
  =========================================
*/

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --primary: #00235C;
  --primary-rgb: 0, 35, 92;
  --secondary: #00D9DC;
  --secondary-rgb: 0, 217, 220;
  --secondary-hover: #00b8ba;
  --accent: #ff8400; /* Contrast color for highlights/CTAs */
  --accent-rgb: 255, 132, 0;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 4px rgba(0, 35, 92, 0.05);
  --shadow-md: 0 8px 16px -4px rgba(0, 35, 92, 0.08), 0 4px 8px -2px rgba(0, 35, 92, 0.03);
  --shadow-lg: 0 20px 24px -4px rgba(0, 35, 92, 0.12), 0 8px 16px -4px rgba(0, 35, 92, 0.06);
  --shadow-primary: 0 8px 24px -4px rgba(0, 35, 92, 0.25);
  --shadow-secondary: 0 8px 24px -4px rgba(0, 217, 220, 0.3);
  
  --header-height: 72px;
}

/* --- BASE STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* --- ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem; /* 36px */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem; /* 28px */
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem; /* 20px */
}

p {
  color: var(--text-muted);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

/* --- BUTTONS & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition-normal);
  text-align: center;
  font-size: 0.95rem;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  min-height: 48px; /* Touch target minimum: 44px */
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-secondary);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 217, 220, 0.4);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-primary);
}

.btn-secondary:hover {
  background-color: #0b2e6b;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 35, 92, 0.35);
}

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

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

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 8px 24px -4px rgba(255, 132, 0, 0.3);
}

.btn-accent:hover {
  background-color: #e07400;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(255, 132, 0, 0.45);
}

.btn-full {
  width: 100%;
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  height: 64px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-svg,
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: 2px;
}

/* Hamburger Menu Button */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  z-index: 1002;
  position: relative;
  min-width: 44px; /* Touch target target */
  min-height: 44px; /* Center-aligned clickable area */
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 28px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition-normal);
  transform-origin: right;
}

.menu-btn span:nth-child(2) {
  width: 22px;
}

.menu-btn span:nth-child(3) {
  width: 16px;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-2px, -3px);
  width: 28px;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-2px, 3px);
  width: 28px;
}

/* Navigation Drawer Mobile */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: -10px 0 30px rgba(0, 35, 92, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
  transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
  overflow-y: auto;
}

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

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 35, 92, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: var(--transition-normal);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  min-height: 44px; /* Touch target */
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  padding-left: 5px;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

.portal-link {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 35, 92, 0.05);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.portal-link:hover {
  background-color: rgba(0, 35, 92, 0.1);
  color: var(--secondary-hover);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, #001230 0%, #00235C 100%);
  color: var(--bg-white);
  overflow: hidden;
}

/* Background elements */
.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 217, 220, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 217, 220, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(0, 217, 220, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--bg-white);
  margin-bottom: 16px;
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero-title span {
  color: var(--secondary);
  background: linear-gradient(135deg, #00D9DC 0%, #a2ffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 18, 48, 0.8));
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transform: scale(1.02);
  transition: var(--transition-slow);
}

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

/* Stats quick-view overlay on hero */
.hero-stats {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 35, 92, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-around;
  text-align: center;
  z-index: 3;
}

.stat-item h4 {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 800;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

/* --- SECTION GENERAL STYLE --- */
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-tag {
  color: var(--secondary-hover);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.section-header p {
  margin-top: 10px;
}

/* --- SUMMARY & INFRASTRUCTURE CAROUSEL (Mobile Swipe) --- */
.summary-lead {
  font-size: 1.15rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 500;
}

.infra-carousel-container {
  position: relative;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Horizontal scrollable row */
.infra-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar on Firefox */
  padding: 10px 0 30px;
  -webkit-overflow-scrolling: touch;
}

.infra-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome/Safari */
}

.infra-card {
  flex: 0 0 280px; /* Fix size of cards on mobile swipe */
  scroll-snap-align: center;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.infra-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 217, 220, 0.4);
}

.infra-img-box {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.infra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infra-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.infra-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.infra-info h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.infra-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.infra-feature-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}

.infra-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.infra-feature-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

/* Indicators for swipe */
.swipe-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--secondary);
  width: 20px;
  border-radius: 4px;
}

/* --- ABOUT SECTION (Accordion) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-text h3 {
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 20px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  overflow: hidden;
  transition: var(--transition-normal);
}

.accordion-header {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-align: left;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
  min-height: 48px;
}

.accordion-header:hover {
  background-color: rgba(0, 217, 220, 0.05);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: var(--transition-normal);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

/* Plus sign layout */
.accordion-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

.accordion-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.accordion-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.accordion-item.active .accordion-header {
  background-color: rgba(0, 35, 92, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
  background-color: var(--secondary-hover);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); /* CSS transition for height accordion */
  background-color: var(--bg-white);
}

.accordion-body {
  padding: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Callout community health actions */
.community-highlight {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(0, 217, 220, 0.08) 0%, rgba(0, 35, 92, 0.03) 100%);
  border-left: 4px solid var(--secondary);
  padding: 25px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow-sm);
}

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

.community-icon {
  font-size: 1.75rem;
}

.community-highlight h4 {
  font-size: 1.15rem;
  color: var(--primary);
}

.community-highlight p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- THE COURSE SECTION --- */
.course-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.curriculum-card, .internship-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.curriculum-card h3, .internship-card h3 {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid rgba(0, 217, 220, 0.2);
  padding-bottom: 12px;
}

.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.curriculum-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.curriculum-num {
  background-color: rgba(0, 35, 92, 0.1);
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.curriculum-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.curriculum-text p {
  font-size: 0.85rem;
}

/* Internship Highlights */
.internship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.hospital-badge {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.hospital-badge:hover {
  border-color: var(--secondary);
  background-color: rgba(0, 217, 220, 0.03);
  transform: translateX(4px);
}

.hospital-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 217, 220, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary-hover);
  flex-shrink: 0;
}

.hospital-info h4 {
  font-size: 0.95rem;
}

.hospital-info p {
  font-size: 0.75rem;
}

.course-cta-box {
  text-align: center;
  margin-top: 30px;
  background: linear-gradient(135deg, #00235C 0%, #001230 100%);
  color: var(--bg-white);
  padding: 40px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.course-cta-box::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 217, 220, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

.course-cta-box h3 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.course-cta-box h3 span {
  color: var(--secondary);
}

.course-cta-box p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- PHOTO GALLERY SECTION --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  min-height: 44px; /* Touch target */
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1; /* Square grid items */
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  border-radius: 0;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 35, 92, 0.9) 0%, rgba(0, 35, 92, 0.2) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  transition: var(--transition-normal);
}

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

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

.gallery-title {
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-tag {
  color: var(--secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 18, 48, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  color: var(--bg-white);
  margin-top: 15px;
  text-align: center;
  font-family: var(--font-heading);
}

.lightbox-caption h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
}

.lightbox-caption p {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: scale(1.05);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* --- CONTACT & LOCATION SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 217, 220, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-details p, .contact-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details a:hover {
  color: var(--secondary-hover);
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 250px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Quick Message Form */
.contact-form-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-box h3 {
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(0, 217, 220, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* --- FOOTER SECTION --- */
.footer {
  background-color: #001230;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
  border-top: 4px solid var(--secondary);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-brand .logo-text {
  color: var(--bg-white);
}

.footer-brand .logo-text span {
  color: var(--secondary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links-col h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  display: inline-block;
  min-height: 36px; /* Optimized line spacing to easily tap */
  padding: 5px 0;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: var(--transition-normal);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* --- SCROLL ANIMATIONS (Intersection Observer classes) --- */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade {
  transform: scale(0.97);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

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

/* --- KEYFRAMES --- */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}


/* 
  =========================================
  RESPONSIVE MEDIA QUERIES (DESKTOP EXTENSIONS)
  =========================================
*/

/* Small/Medium Tablets (min-width: 640px) */
@media (min-width: 640px) {
  .container {
    max-width: 600px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: row;
  }
  
  .hero-actions .btn {
    flex: 1;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .gallery-item {
    border-radius: var(--radius-md);
  }
}

/* Tablets (min-width: 768px) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  section {
    padding: 80px 0;
  }
  
  /* Grid Layout Extensions */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }
  
  .map-wrapper {
    height: 100%;
    min-height: 350px;
  }
  
  .course-layout {
    flex-direction: row;
    align-items: stretch;
  }
  
  .curriculum-card, .internship-card {
    flex: 1;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  /* Infrastructure card layout changes */
  .infra-carousel-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .infra-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  
  .infra-card {
    flex: none;
    scroll-snap-align: none;
  }
  
  .swipe-indicator {
    display: none;
  }
  
  /* Hero image and text alignment adjustment */
  .hero-img {
    height: 400px;
  }
}

/* Desktop Screens (min-width: 1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 100px;
  }
  
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
  }
  
  .hero-actions .btn {
    flex: 0 0 auto;
  }
  
  .hero-img {
    height: 480px;
  }
  
  /* Header inline navigation */
  .menu-btn {
    display: none;
  }
  
  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    overflow-y: visible;
  }
  
  .nav-list {
    flex-direction: row;
    gap: 30px;
    margin-bottom: 0;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 24px 0;
    border-bottom: 2px solid transparent;
  }
  
  .nav-link:hover, .nav-link.active {
    border-bottom-color: var(--secondary);
    padding-left: 0;
  }
  
  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    margin-left: 30px;
  }
  
  .portal-link {
    background-color: transparent;
    padding: 10px 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 35, 92, 0.15);
  }
  
  .portal-link:hover {
    background-color: rgba(0, 35, 92, 0.05);
    border-color: rgba(0, 35, 92, 0.3);
  }
  
  .nav-overlay {
    display: none;
  }
  
  /* Gallery grid responsive enlargement */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

/* Widescreen Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-grid {
    gap: 80px;
  }
}
