/* ========================================
   STELLA MARIS BASQUETEBOL - PENICHE
   Global Stylesheet
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1B6FA8;
  --primary-light: #5BA3D9;
  --primary-dark: #0D4A73;
  --secondary: #FFD700;
  --secondary-dark: #D4AF00;
  --accent: #87CEEB;
  --accent-light: #B0E0F6;
  --dark: #1A1A2E;
  --dark-light: #2D2D44;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F0F2F5;
  --gray-200: #E0E4E8;
  --gray-300: #C4CBD4;
  --gray-500: #7A8594;
  --gray-700: #4A5568;
  --gray-900: #1A202C;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

/* --- Top Bar --- */
.top-bar {
  background: var(--dark);
  color: var(--gray-300);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--gray-300);
}
.top-bar a:hover {
  color: var(--secondary);
}

.top-bar-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-social a {
  font-size: 1rem;
}

/* --- Header / Navigation --- */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 55px;
  width: auto;
}

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

.header-logo-text .club-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1.1;
}

.header-logo-text .club-city {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-menu a {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--accent-light);
}

.nav-menu .btn-primary {
  color: var(--dark);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='30' y1='2' x2='30' y2='58' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='2' y1='30' x2='58' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3C/svg%3E") repeat;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 40px solid rgba(255,215,0,0.1);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,215,0,0.2);
  color: var(--secondary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 280px;
}

.hero-image img {
  width: 280px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--white);
  position: relative;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
  font-size: 1.05rem;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--secondary); }

/* --- Section Styles --- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--gray-50);
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-title p { color: var(--gray-300); }

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Team Card */
.team-card .card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.5rem;
  padding-top: 5rem;
  color: var(--white);
  text-align: center;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-card .card-header .team-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.team-card .card-header h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.team-card .card-header .team-comp {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.team-card .card-body {
  text-align: center;
}

.team-card .team-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.team-card .team-stats div {
  text-align: center;
}

.team-card .team-stats .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.team-card .team-stats .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* Coach Card */
.coach-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.coach-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

.coach-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.coach-card .coach-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.coach-card .coach-teams {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.coach-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Result Card */
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}

.result-card:hover {
  box-shadow: var(--shadow-md);
}

.result-date {
  text-align: center;
  min-width: 55px;
}

.result-date .day {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}

.result-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.result-teams {
  flex: 1;
}

.result-teams .match-teams {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.result-teams .match-comp {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.result-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  white-space: nowrap;
}

.result-score.win { color: #22C55E; }
.result-score.loss { color: #EF4444; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--secondary);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--dark);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--dark-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,215,0,0.08);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: left;
}

.schedule-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.schedule-table tbody tr:hover {
  background: var(--accent-light);
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-info-text p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.contact-info-text a {
  color: var(--primary);
}
.contact-info-text a:hover {
  color: var(--primary-dark);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

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

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

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-about .footer-logo img {
  height: 45px;
}

.footer-about .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-light);
  color: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

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

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

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact li .icon {
  color: var(--primary-light);
  min-width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--primary-light);
}
.footer-bottom a:hover {
  color: var(--secondary);
}

/* --- Registration Form Specific --- */
.registration-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.registration-form h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.registration-form p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* --- Escalao Tabs Filter --- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-light);
}

/* --- About / History Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.feature-item .check {
  color: var(--primary);
  font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-image { flex: none; }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
    gap: 0.5rem;
  }

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

  .nav-menu a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero {
    min-height: 420px;
  }

  .hero h1 { font-size: 2rem; }

  .hero-image {
    display: none;
  }

  .page-header h1 { font-size: 1.8rem; }

  .section { padding: 3rem 0; }

  .section-title h2 { font-size: 1.6rem; }

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

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

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .top-bar { display: none; }

  .schedule-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .stat-item .stat-number { font-size: 2rem; }
  .registration-form { padding: 1.5rem; }
}

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

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

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Photo Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

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

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

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

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

/* --- Hero Photo Placeholder --- */
.hero-photo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255,215,0,0.3);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-heading);
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- News Card --- */
.news-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  flex: 0 0 180px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 2rem;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  flex: 1;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.news-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.news-card-content p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .news-card { flex-direction: column; }
  .news-card-image { flex: none; width: 100%; }
}

/* --- Schedule Card --- */
.schedule-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.schedule-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.schedule-card .schedule-time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.schedule-card .schedule-day {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.section-title .section-divider {
  margin-bottom: 1.25rem;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 3rem;
  min-height: 200px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
