/* ===================================================================
   ESTRELLA HIGH SCHOOL - BRAND THEME
   ===================================================================

   SCHOOL CUSTOMIZATION GUIDE FOR FUTURE CLAUDE CODE SESSIONS:

   This stylesheet is designed to be easily customizable for other schools.
   Follow these steps to adapt it for a new school:

   1. BRAND COLORS (lines 17-27):
      - Replace all --estrella-red values with your school's primary brand color
      - Replace --estrella-cream with your school's background/secondary color
      - Keep variable names or rename throughout (e.g., --myschool-blue)

   2. TYPOGRAPHY (lines 29-33):
      - Change Google Fonts in HTML <head> if needed
      - Update font-family values in body and .heading-font

   3. LOGO & IMAGES:
      - Replace images/logo.png with your school logo
      - Update hero images in images/hero/ folder
      - Maintain aspect ratios for best results

   4. SCHOOL-SPECIFIC CONTENT:
      - Search for "SCHOOL NAME: Estrella" comments in HTML
      - Replace with your school's name
      - Update addresses, phone numbers, email addresses

   5. PRESERVE ACCESSIBILITY:
      - DO NOT remove ARIA attributes
      - Keep skip-to-content links
      - Maintain color contrast ratios (use WebAIM contrast checker)

   =================================================================== */

:root {
  /* BRAND COLORS - CUSTOMIZE THESE FOR YOUR SCHOOL */
  /* Primary: Main brand color used for buttons, links, accents */
  --estrella-red: #961a1e;
  --estrella-red-bright: #df2326;
  --estrella-red-dark: #731418;

  /* Neutral: Grays for text and backgrounds */
  --estrella-gray: #bbbbbb;
  --estrella-gray-light: #f5f5f5;
  --estrella-gray-dark: #333333;

  /* Base: Page backgrounds and text */
  --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;
}

/* Navigation cursor fix */
.nav-link {
  cursor: pointer !important;
}

/* 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;
}

/* Mobile navbar layout fixes - prevent layout shift on Spanish translation */
@media (max-width: 640px) {
  /* Give logo more space and prevent shrinking */
  .header-glass a[href="index.html"] {
    flex-shrink: 0;
    min-width: fit-content;
    margin-right: auto; /* Push buttons to the right */
  }

  /* Logo image - make it prominent on mobile */
  .header-glass img[alt*="Estrella"] {
    height: 3rem !important; /* Optimized size for mobile */
    width: auto;
    flex-shrink: 0;
  }

  /* Hide school name text on mobile to save space */
  .header-glass a[href="index.html"] > span {
    display: none !important;
  }

  /* Ensure navbar container allows proper spacing */
  .header-glass .flex.items-center.justify-between {
    gap: 0.25rem;
  }

  /* Make button container more flexible on mobile */
  .header-glass .flex.items-center.gap-3 {
    gap: 0.25rem !important;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  /* Ensure hamburger menu is always visible */
  .header-glass button[onclick="toggleMobileMenu()"] {
    flex-shrink: 0 !important;
    min-width: 44px !important;
    margin-left: 0.25rem !important;
  }
}

/* Desktop navbar button container - allow buttons to fit properly */
@media (min-width: 641px) {
  .header-glass .flex.items-center.gap-3 {
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
}

.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: #ffc847;
  color: #1a1a1a;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(255, 200, 71, 0.35);
  white-space: nowrap; /* Prevent text wrapping on buttons */
}

.btn-accent:hover {
  background: #e6b33d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 200, 71, 0.45);
}

/* Desktop button text wrapping fix for long Spanish translations */
@media (min-width: 641px) {
  .btn-accent,
  .btn-primary {
    min-width: fit-content;
    max-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* Tablet button centering (iPad Pro, etc) */
@media (min-width: 641px) and (max-width: 1024px) {
  .btn-accent,
  .btn-primary {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Mobile CTA button sizing - compact for mobile navbar */
@media (max-width: 640px) {
  .btn-accent,
  .btn-primary {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Extra small screens - ultra compact */
  @media (max-width: 380px) {
    .btn-accent,
    .btn-primary {
      padding-left: 0.375rem !important;
      padding-right: 0.375rem !important;
      font-size: 0.65rem !important;
    }
  }

  /* iPhone SE and similar tiny screens */
  @media (max-width: 340px) {
    /* Hide Language button on extremely small screens */
    .header-glass button[onclick="openLanguageSelector()"] {
      display: none !important;
    }

    .btn-accent,
    .btn-primary {
      padding-left: 0.25rem !important;
      padding-right: 0.25rem !important;
      font-size: 0.6rem !important;
    }
  }
}

.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 */
/* SCHOOL CUSTOMIZATION: Top banner with quick access links */
/* BRAND COLOR: Background uses --estrella-red-dark, links are white */
.quick-links {
  background: var(--estrella-red-dark);
}

.quick-link-item {
  color: white !important;
  transition: color 0.2s ease;
  font-weight: 500;
}

.quick-link-item:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* 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.95) 0%, rgba(138, 23, 25, 0.7) 40%, rgba(0, 0, 0, 0.3) 100%);
}

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

.program-card-content h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-card-content p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 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;
}

/* Hero Text Enhancement for Better Readability */
section.relative.min-h-screen h1,
section.relative.min-h-screen p,
section.relative.min-h-screen .stat-item {
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 0, 0, 0.5);
}

/* 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;
}

/* ==========================================
   ADA ACCESSIBILITY STYLES
   ========================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--estrella-red);
  outline-offset: 2px;
}

/* Remove outline on mouse click but keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--estrella-red);
  outline-offset: 2px;
}

/* Skip link styling */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus,
.sr-only:focus-visible {
  position: absolute;
  width: auto;
  height: auto;
  padding: 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: white;
  color: var(--estrella-red);
  z-index: 200;
  top: 1rem;
  left: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

/* Ensure sufficient touch target sizes (minimum 44x44px) */
.btn-primary,
.btn-accent,
.btn-outline,
.quick-icon {
  min-height: 44px;
  min-width: 44px;
}

/* Improve link visibility */
a:hover {
  text-decoration: underline;
}

/* Navigation links don't need underline on hover */
.nav-link:hover,
.quick-link-item:hover {
  text-decoration: none;
}

/* Logo link - no underline on hover */
a[href="index.html"]:hover,
a[href="../index.html"]:hover {
  text-decoration: none;
}

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

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

/* ==========================================
   NOTIFICATION BELL SYSTEM
   ========================================== */

/* Notification Bell Button */
.notification-bell {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 78px;
  height: 78px;
  background: var(--estrella-red);
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 4px 4px 20px rgba(176, 30, 34, 0.3);
  transition: all 0.3s ease;
}

.notification-bell:hover {
  width: 86px;
  background: var(--estrella-red-dark);
  box-shadow: 6px 6px 25px rgba(176, 30, 34, 0.4);
}

.notification-bell.has-unread {
  animation: pulse-bell 2.5s ease-in-out infinite;
}

.notification-bell svg {
  width: 32px;
  height: 32px;
  color: white;
  transition: transform 0.3s ease;
}

.notification-bell:hover svg {
  transform: rotate(-15deg);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  background: white;
  color: var(--estrella-red);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse-badge 2s infinite;
}

.notification-badge.hidden {
  display: none;
}

.notification-badge.seen {
  background: var(--estrella-gray-light);
  color: var(--estrella-text-light);
  animation: none;
}

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

@keyframes pulse-bell {
  0%, 100% {
    box-shadow: 4px 4px 20px rgba(176, 30, 34, 0.3);
  }
  50% {
    box-shadow: 4px 4px 30px rgba(176, 30, 34, 0.6), 0 0 20px rgba(176, 30, 34, 0.4);
  }
}

@keyframes pulse-bell-mobile {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(176, 30, 34, 0.35);
  }
  50% {
    box-shadow: 0 4px 30px rgba(176, 30, 34, 0.65), 0 0 25px rgba(176, 30, 34, 0.45);
  }
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: white;
  z-index: 150;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-panel.visible {
  transform: translateX(0);
}

.notification-panel.hidden {
  transform: translateX(-100%);
}

/* Panel Header */
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--estrella-red);
  color: white;
}

.notification-panel-header h3 {
  margin: 0;
  font-family: 'Crimson Pro', serif;
}

.notification-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Notification List */
.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Individual Notification Item */
.notification-item {
  background: var(--estrella-gray-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--estrella-gray);
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Notification Type Colors */
.notification-item.type-info {
  border-left-color: #3b82f6;
}

.notification-item.type-alert {
  border-left-color: #f59e0b;
}

.notification-item.type-urgent {
  border-left-color: var(--estrella-red);
  background: #fef2f2;
}

/* Notification Image */
.notification-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Notification Content */
.notification-content {
  padding: 1rem;
}

.notification-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.notification-type-badge.type-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.notification-type-badge.type-alert {
  background: #fef3c7;
  color: #b45309;
}

.notification-type-badge.type-urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.notification-type-badge svg {
  width: 12px;
  height: 12px;
}

.notification-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--estrella-text);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--estrella-text-light);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.notification-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--estrella-red);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.notification-link:hover {
  background: var(--estrella-red-dark);
  text-decoration: none;
  transform: translateX(2px);
}

.notification-link svg {
  width: 16px;
  height: 16px;
}

/* Empty State */
.notification-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--estrella-text-light);
}

.notification-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.notification-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Backdrop */
.notification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.notification-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.notification-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Mobile Styles - Reposition bell to bottom right, panel slides up from bottom */
@media (max-width: 768px) {
  .notification-bell {
    left: auto;
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(176, 30, 34, 0.35);
  }

  .notification-bell.has-unread {
    animation: pulse-bell-mobile 2.5s ease-in-out infinite;
  }

  .notification-bell:hover {
    width: 80px;
  }

  .notification-badge {
    top: 2px;
    right: 2px;
  }

  .notification-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .notification-panel.visible {
    transform: translateY(0);
  }

  .notification-panel.hidden {
    transform: translateY(100%);
  }

  .notification-image {
    height: 140px;
  }
}

/* ==========================================
   PHOTO CAROUSEL
   ========================================== */

.photo-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--estrella-gray-light);
}

@media (max-width: 768px) {
  .photo-carousel-container {
    aspect-ratio: 4 / 3;
  }
}

.photo-carousel-track {
  height: 100%;
}

.photo-carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.photo-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Ensure images are centered */
}

/* Mobile-specific carousel image fixes - prevent zooming/cropping issues */
@media (max-width: 768px) {
  /* Keep slide as block to work with flex parent */
  .photo-carousel-slide {
    background: var(--estrella-gray-light);
    display: block !important;
    position: relative;
  }

  .photo-carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important; /* Force contain on mobile to prevent cropping */
    object-position: center !important;
    position: absolute;
    top: 0;
    left: 0;
  }
}

.photo-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--estrella-red);
}

.photo-carousel-nav:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.photo-carousel-nav-left {
  left: 16px;
}

.photo-carousel-nav-right {
  right: 16px;
}

@media (max-width: 640px) {
  .photo-carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .photo-carousel-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .photo-carousel-nav-left {
    left: 8px;
  }
  
  .photo-carousel-nav-right {
    right: 8px;
  }
}

.photo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.photo-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--estrella-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-carousel-dot.active {
  background: var(--estrella-red);
  width: 32px;
  border-radius: 6px;
}

.photo-carousel-dot:hover {
  background: var(--estrella-red-dark);
}

/* ==========================================
   ENROLLMENT POPUP (DISMISSIBLE)
   NOTE: To disable this popup later, set ENABLE_ENROLLMENT_POPUP = false in main.js
   ========================================== */

.enrollment-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.enrollment-popup.hidden {
  display: none;
}

.enrollment-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.enrollment-popup-content {
  position: relative;
  background: linear-gradient(135deg, var(--estrella-red-dark) 0%, var(--estrella-red) 100%);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.enrollment-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--estrella-red-dark);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  z-index: 10;
}

.enrollment-popup-close:hover {
  background: var(--estrella-red);
  border-color: white;
  transform: scale(1.1);
}

.enrollment-popup-body {
  padding: 48px 32px 32px;
  text-align: center;
}

.enrollment-popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--estrella-red), var(--estrella-red-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(176, 30, 34, 0.3);
}

.enrollment-popup-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  font-family: 'Crimson Pro', serif;
  line-height: 1.2;
}

.enrollment-popup-message {
  font-size: 16px;
  line-height: 1.6;
  color: white;
  opacity: 0.95;
  margin-bottom: 32px;
}

.enrollment-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enrollment-popup-cta {
  display: inline-block;
  padding: 16px 32px;
  background: #ffc847;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 200, 71, 0.35);
}

.enrollment-popup-cta:hover {
  background: #e6b33d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 200, 71, 0.45);
}

.enrollment-popup-dismiss {
  padding: 12px 24px;
  background: transparent;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.enrollment-popup-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .enrollment-popup-content {
    border-radius: 16px;
  }
  
  .enrollment-popup-body {
    padding: 40px 24px 24px;
  }
  
  .enrollment-popup-title {
    font-size: 24px;
  }
  
  .enrollment-popup-message {
    font-size: 15px;
  }
  
  .enrollment-popup-icon {
    width: 64px;
    height: 64px;
  }
  
  .enrollment-popup-icon svg {
    width: 32px;
  }

  .enrollment-popup-cta {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%; /* Full width on mobile */
    text-align: center;
  }

  .enrollment-popup-dismiss {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%; /* Full width on mobile */
    height: 32px;
  }

  /* Ready to Start section CTA buttons - make same width/size on mobile */
  .cta-button {
    width: 100% !important;
    max-width: 280px !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    text-align: center;
    display: block !important;
  }
}

/* ===================================
   GOOGLE TRANSLATE WIDGET STYLING
   =================================== */
/* SCHOOL CUSTOMIZATION: Language translation dropdown styling */
/* Desktop version appears in top banner, mobile version in main navbar */

/* Desktop Google Translate container */
#google_translate_element {
  display: inline-block;
}

/* Mobile Google Translate container - compact size */
#google_translate_element_mobile {
  display: inline-block;
}

/* Hide the Google branding "Powered by" text */
.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Style the select dropdown - seamless white text version */
.goog-te-gadget .goog-te-combo {
  margin: 0 !important;
  padding: 0 20px 0 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  height: auto !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Add custom dropdown arrow */
.goog-te-gadget .goog-te-combo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 16px !important;
}

/* BRAND COLOR: Hover state */
.goog-te-gadget .goog-te-combo:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.goog-te-gadget .goog-te-combo:focus {
  outline: none !important;
  color: white !important;
}

/* Hide Google Translate banner at top of page */
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide the notification iframe completely */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

iframe.goog-te-banner-frame {
  display: none !important;
}

/* Prevent body from shifting when banner is hidden */
body {
  top: 0 !important;
  position: static !important;
}

/* Override Google's inline styles on body */
body.translated-ltr {
  top: 0 !important;
  position: static !important;
}

body.translated-rtl {
  top: 0 !important;
  position: static !important;
}

/* Target the specific notification bar */
.goog-te-banner-frame.skiptranslate iframe {
  display: none !important;
}

html {
  top: 0 !important;
}

/* Style for when page is being translated */
.goog-te-menu-value span {
  color: inherit !important;
}

/* ===================================================================
   ENHANCED GOOGLE TRANSLATE TOOLBAR HIDING
   Additional selectors to catch edge cases and tooltips
   =================================================================== */

/* Hide Google Translate tooltips and balloon frames */
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Remove text highlight effects on translated text */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Additional iframe targeting for edge cases */
body > .skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body > .skiptranslate > iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

/* Hide Google Translate logo/branding if visible */
.goog-logo-link {
  display: none !important;
}

/* Prevent any Google Translate element from creating top spacing */
body > .skiptranslate,
body > iframe.skiptranslate {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile-specific styling - smaller, more compact */
#google_translate_element_mobile {
  display: block !important;
}

#google_translate_element_mobile .goog-te-gadget {
  font-size: 0 !important;
}

#google_translate_element_mobile .goog-te-gadget .goog-te-combo {
  padding: 6px 24px 6px 8px !important;
  font-size: 12px !important;
  height: 36px !important;
  background: white !important;
  color: #1f2937 !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* Add custom dropdown arrow for mobile */
#google_translate_element_mobile .goog-te-gadget .goog-te-combo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231f2937'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 16px !important;
}

#google_translate_element_mobile .goog-te-gadget .goog-te-combo:hover {
  background-color: #f9fafb !important;
  border-color: var(--estrella-red) !important;
}

/* Mobile menu version - white text, no background */
#google_translate_element_mobile_menu .goog-te-gadget {
  font-size: 0 !important;
}

#google_translate_element_mobile_menu .goog-te-gadget .goog-te-combo {
  padding: 0 20px 0 0 !important;
  font-size: 14px !important;
  height: auto !important;
  background: transparent !important;
  color: white !important;
  border: none !important;
}

#google_translate_element_mobile_menu .goog-te-gadget .goog-te-combo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 16px !important;
}

#google_translate_element_mobile_menu .goog-te-gadget .goog-te-combo:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* RESPONSIVE: Show/hide appropriate version based on screen size */
@media (max-width: 640px) {
  /* Hide desktop version on mobile */
  #google_translate_element {
    display: none !important;
  }

  /* Ensure mobile version displays */
  #google_translate_element_mobile {
    display: inline-block !important;
  }
}

@media (min-width: 641px) {
  /* Hide mobile version on desktop */
  #google_translate_element_mobile {
    display: none !important;
  }
}
