/*
Theme Name: EST Custom Theme
Theme URI: #
Author: AI Assistant
Author URI: #
Description: Custom theme for EST English School. Designed for responsive layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: est-theme
*/

@charset "UTF-8";

/* ----- Root Variables (Color Palette) ----- */
:root {
  --primary: #1a3d7c; /* Deep Blue */
  --info: #2b6cb0; /* Accent Blue */
  --accent: #ffe07a; /* Light Yellow (CTA) */
  --accent2: #ff7043; /* Sub CTA Orange */
  --accent-soft: #fff5bf; /* Very Light Yellow */
  --bg: #ffffff; /* White Background */
  --text: #222222; /* Primary Text Color (Dark Gray) */
  --muted: #f2f6fa; /* Light Gray Background */
  --card: #ffffff; /* Card Background */
  --border: #dddddd; /* Light Gray Border */
  --danger: #c53030; /* Danger/Error Red */
  --voice-bg: rgba(26, 61, 124, 0.06); /* Light Navy/Blue for Voice Cards */
}

/* ----- Base Styles and Reset ----- */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 800;
}

h1 { font-size: 1.8rem; color: var(--primary); }
h2 { font-size: 1.4rem; color: var(--primary); }
h3 { font-size: 1.2rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* ----- Layout and Main Structure (Centralization Fix) ----- */
/* Applies to all main content areas to enforce max width and center alignment */
main {
  max-width: 960px; /* Content maximum width */
  margin: 0 auto;  /* Center the content horizontally (FIXES LEFT ALIGNMENT) */
  padding: 32px 16px; /* Padding for mobile safety */
}

section {
  margin-bottom: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ----- Header and Navigation ----- */
header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.menu {
  display: none; /* Hide for mobile first approach */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ----- Announcement Bar ----- */
.announce {
  background: var(--info);
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  font-weight: 700;
}

.announce small {
  display: block;
  font-weight: 400;
  opacity: 0.95;
}

/* ----- Utility Classes ----- */
.hl-yellow {
  background: var(--accent);
  padding: 2px 4px;
}

.note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

/* ----- Responsive Design (Desktop Menu Visibility) ----- */
@media (min-width: 768px) {
  .menu {
    display: flex; /* Show menu on desktop */
    gap: 16px;
  }
}

/* ----- Specific Content Styles (Voice, FAQ, Tables, Forms) ----- */

/* Voice Cards (from est_uservoice.html) */
.voice-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.voice {
    background: var(--voice-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}
.voice .name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}
.voice .attr {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* FAQ Accordion (from eat_faq_jabara.html) */
.faq-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
}
.faq-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}
.faq-answer-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* JavaScript handles the actual height change */
}
.faq-answer {
    padding: 10px 0 20px;
    line-height: 1.7;
}

/* Table Style (from course details) */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}
.table th {
    background-color: var(--muted);
    font-weight: 700;
    width: 30%;
}

/* Trial Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.form-grid .full {
    grid-column: 1 / -1;
}
label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
button[type="submit"] {
    background: var(--accent);
    color: var(--text);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: auto;
    transition: background 0.3s;
}
button[type="submit"]:hover {
    background: #ffd34d; /* Slightly darker accent */
}