/* Estrella High School - Brand Theme */
:root {
  /* Estrella Brand Colors */
  --estrella-red: #B01E22;
  --estrella-red-bright: #ED0103;
  --estrella-red-dark: #8a1719;
  --estrella-gray: #BBBBBB;
  --estrella-gray-light: #f5f5f5;
  --estrella-gray-dark: #333333;
  --estrella-white: #ffffff;
  --estrella-cream: #fdfcfa;
  --estrella-text: #2d3748;
  --estrella-text-light: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--estrella-text);
  background: var(--estrella-cream);
}

.heading-font {
  font-family: 'Crimson Pro', serif;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, var(--estrella-red-dark) 0%, var(--estrella-red) 50%, var(--estrella-red-bright) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--estrella-red) 0%, var(--estrella-red-bright) 100%);
}

.gradient-subtle {
  background: linear-gradient(180deg, var(--estrella-cream) 0%, var(--estrella-gray-light) 100%);
}

/* Modern header with backdrop blur */
.header-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation styles */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

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

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

.nav-link:hover {
  color: var(--estrella-red) !important;
}

/* Button styles */
.btn-primary {
  background: var(--estrella-red);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(176, 30, 34, 0.25);
}

.btn-primary:hover {
  background: var(--estrella-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 30, 34, 0.35);
}

.btn-accent {
  background: var(--estrella-gray);
  color: var(--estrella-gray-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-accent:hover {
  background: #a0a0a0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border: 2px solid var(--estrella-red);
  color: var(--estrella-red);
  transition: all 0.3s ease;
}

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

/* Card styles with modern shadows */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(176, 30, 34, 0.06);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(176, 30, 34, 0.12);
}

/* Icon container with gradient */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--estrella-red) 0%, var(--estrella-red-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(176, 30, 34, 0.2);
}

/* Stats with accent bar */
.stat-item {
  position: relative;
  padding-left: 1rem;
}

.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--estrella-gray);
  border-radius: 2px;
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: 'Crimson Pro', serif;
  color: var(--estrella-red);
  opacity: 0.3;
  line-height: 1;
}

/* CTA Section gradient */
.cta-gradient {
  background: linear-gradient(135deg, var(--estrella-red-dark) 0%, var(--estrella-red) 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, var(--estrella-gray) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

/* Floating shapes for visual interest */
.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

/* Image treatment */
.image-accent {
  position: relative;
}

.image-accent::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  background: var(--estrella-red);
  border-radius: 12px;
  z-index: -1;
}

/* Smooth animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Quick links bar */
.quick-links {
  background: var(--estrella-red-dark);
}

.quick-link-item {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.quick-link-item:hover {
  color: var(--estrella-gray);
}

/* Badge style */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Program card hover effect */
.program-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(138, 23, 25, 0.9) 0%, transparent 60%);
}

.program-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 10;
  color: white;
}

/* Divider with accent */
.divider-accent {
  width: 60px;
  height: 4px;
  background: var(--estrella-red);
  border-radius: 2px;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  opacity: 1;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--estrella-red-dark) 0%, var(--estrella-red) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, var(--estrella-gray) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

/* Staff Card */
.staff-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(176, 30, 34, 0.12);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--estrella-red);
}

/* Calendar Event */
.calendar-event {
  border-left: 4px solid var(--estrella-red);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* News Card */
.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(176, 30, 34, 0.12);
}

/* ==========================================
   FLOATING QUICK LINK ICONS
   ========================================== */
.quick-icons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.quick-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.quick-icon svg {
  width: 24px;
  height: 24px;
  color: var(--estrella-red);
  fill: var(--estrella-red);
  stroke: none;
}

/* Tooltip */
.quick-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--estrella-red);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.quick-icon::after {
  content: '';
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--estrella-red);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quick-icon:hover::before,
.quick-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Hide quick icons on mobile */
@media (max-width: 768px) {
  .quick-icons {
    display: none;
  }
}

/* Social Media Embed Containers */
.social-embed-container {
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.social-embed-container iframe {
  max-width: 100%;
}

/* Instagram embed styling */
.instagram-media {
  min-height: 480px !important;
}

/* Hide the bullet separator in Instagram embed stats (Posts · Followers · Following) */
.instagram-media iframe {
  min-height: 480px;
}

/* Target the Instagram embed container to ensure consistent height */
iframe.instagram-media-rendered {
  min-height: 480px !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
