/* Zuia Child - WordPress overrides
   Patches over main.css to fix conflicts with parent theme cascade. */

/* Reset legacy paddings inside our front page wrapper */
.zuia-front-page section,
.zuia-front-page > section { padding: 0; margin: 0; }
.zuia-front-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.zuia-front-page .hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center center;
  color: #fff;
  padding: 6rem 1rem;
}
.zuia-front-page .hero-section .hero-content { position: relative; z-index: 2; max-width: 900px; }
.zuia-front-page .hero-section .hero-title {
  color: #fff !important;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.zuia-front-page .hero-section .hero-subtitle {
  color: #fff !important;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  margin: 0 auto 2rem;
  max-width: 700px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.zuia-front-page .hero-section .hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.zuia-front-page .btn,
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
}
.zuia-front-page .btn-primary, .btn-primary {
  background: #1e5ba8;
  color: #fff !important;
  border-color: #1e5ba8;
}
.zuia-front-page .btn-primary:hover, .btn-primary:hover {
  background: #0f3d6b;
  border-color: #0f3d6b;
}
.zuia-front-page .btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.zuia-front-page .btn-outline:hover {
  background: #fff;
  color: #1e5ba8 !important;
}
.zuia-front-page .btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* QUICK ACCESS */
.zuia-front-page .quick-access { padding: 4rem 0; background: #f8f6f0; }
.zuia-front-page .quick-access-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.zuia-front-page .quick-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.zuia-front-page .quick-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.zuia-front-page .quick-card-icon {
  font-size: 2.6rem;
  color: #4a7c59;
  margin-bottom: 1rem;
}
.zuia-front-page .quick-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin: 0 0 .6rem;
  color: #0f3d6b;
}
.zuia-front-page .quick-card p { font-size: .95rem; color: #555; margin-bottom: 1rem; }
.zuia-front-page .card-link { color: #1e5ba8; font-weight: 600; }

/* WELCOME */
.zuia-front-page .welcome-section { padding: 5rem 0; }
.zuia-front-page .welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.zuia-front-page .welcome-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #4a7c59;
  margin: 0 0 1.5rem;
}
.zuia-front-page .welcome-text p { line-height: 1.7; color: #444; margin-bottom: 1rem; }
.zuia-front-page .welcome-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: block;
}

/* SECTION HEADERS (calendar / news) */
.zuia-front-page .section-header { text-align: center; margin-bottom: 2.5rem; }
.zuia-front-page .section-header h2 {
  font-family: 'Playfair Display', serif;
  color: #4a7c59;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 .6rem;
}
.zuia-front-page .section-header p { color: #666; }

/* CALENDAR */
.zuia-front-page .tournament-calendar { padding: 5rem 0; background: #f8f6f0; }
.zuia-front-page .calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.zuia-front-page .calendar-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.zuia-front-page .calendar-card:hover { transform: translateY(-4px); }
.zuia-front-page .calendar-card-date {
  background: #1e5ba8;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.zuia-front-page .date-day { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.zuia-front-page .date-month { font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.zuia-front-page .calendar-card-body { padding: 1.5rem; flex: 1; }
.zuia-front-page .calendar-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin: 0 0 .5rem; color: #0f3d6b; }
.zuia-front-page .calendar-card-body p { color: #555; line-height: 1.6; font-size: .95rem; }
.zuia-front-page .calendar-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zuia-front-page .tag {
  background: rgba(74,124,89,0.12);
  color: #2d5a3d;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.zuia-front-page .card-arrow { color: #1e5ba8; font-weight: 600; }

/* NEWS */
.zuia-front-page .news-section { padding: 5rem 0; }
.zuia-front-page .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.zuia-front-page .news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.zuia-front-page .news-card:hover { transform: translateY(-4px); }
.zuia-front-page .news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.zuia-front-page .news-card-content { padding: 1.5rem; }
.zuia-front-page .news-date { color: #4a7c59; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.zuia-front-page .news-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: .6rem 0 .8rem;
  color: #0f3d6b;
}
.zuia-front-page .news-card-content p { color: #555; line-height: 1.55; font-size: .95rem; }

/* Hide parent theme's automatic page header inside front-page */
body.home .entry-header,
body.page-template-front .entry-header,
body.home .container > article > header,
body.home article > .entry-header { display: none !important; }

/* Ensure no max-width clipping on full-width sections */
.zuia-front-page .hero-section,
.zuia-front-page .quick-access,
.zuia-front-page .tournament-calendar,
.zuia-front-page .news-section,
.zuia-front-page .welcome-section { width: 100%; }

/* Responsive */
@media (max-width: 768px) {
  .zuia-front-page .welcome-content { grid-template-columns: 1fr; }
  .zuia-front-page .hero-section { min-height: 60vh; padding: 4rem 1rem; }
}

/* CONTACT page tweaks (from previous step) */
.contact-section { padding: 4rem 0; }
.contact-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 900px) { .contact-content { grid-template-columns: 1fr; } }
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  color: #4a7c59;
  margin: 0 0 1rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.contact-icon {
  font-size: 1.5rem;
  color: #1e5ba8;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30,91,168,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 .3rem;
  color: #0f3d6b;
  font-size: 1.1rem;
}
.contact-item-text p, .contact-item-text a {
  margin: 0;
  color: #555;
}
.contact-item-text a { color: #1e5ba8; text-decoration: none; }
.contact-form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact-form-card h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 .5rem;
  color: #0f3d6b;
}
.zuia-page-header {
  background: linear-gradient(135deg, #1e5ba8 0%, #0f3d6b 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.zuia-page-header .breadcrumb { color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.zuia-page-header .breadcrumb a { color: #fff; }
.zuia-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 .5rem;
  color: #fff !important;
}
.zuia-page-header .page-subtitle { color: rgba(255,255,255,0.9); }


/* ============================================
   WEBCAM PAGE STYLES
============================================ */
.webcam-section {
  padding: 4rem 0 0 0;
  background: var(--cream, #f8f6f0);
}
.webcam-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.webcam-wrapper {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}
.webcam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue, #1e5ba8), var(--dark-blue, #0f3d6b));
  color: white;
}
.webcam-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 53, 69, 0.95);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.webcam-player {
  position: relative;
  width: 100%;
  background: #000;
  min-height: 300px;
}
.webcam-player img,
.webcam-player iframe {
  width: 100%;
  height: auto;
  display: block;
}
.webcam-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f7f7f5;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-refresh {
  background: var(--primary-green, #4a7c59);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-refresh:hover { background: var(--dark-green, #2d5a3d); }
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.info-card {
  background: white;
  padding: 1.8rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.info-card .icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-blue, #1e5ba8);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.info-card p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue, #1e5ba8), var(--dark-blue, #0f3d6b));
  color: white;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: white;
}
.cta-section p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.8rem;
}
.cta-section .btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.page-header {
  padding: 3.5rem 2rem;
  text-align: center;
  color: white;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: white;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0;
}
.breadcrumb {
  background: #f0ede5;
  padding: 0.7rem 0;
  font-size: 0.9rem;
}
.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: #666;
}
.breadcrumb-content a {
  color: var(--primary-blue, #1e5ba8);
  text-decoration: none;
}
.breadcrumb-content a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .info-cards { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 1.6rem; }
  .page-header h1 { font-size: 2rem; }
}
