/* RESET & GENERAL STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: #f4f4f4;
  line-height: 1.6;
}
/* MAIN CONTAINER */
.main-content {
  width: 100%;
}
/* HERO SECTION - INCREASED HEIGHT & PADDING FOR GREATER SPACING AND LESS PANORAMIC ASPECT */
.hero-section {
  position: relative;
  background: url('images/canterbury-global-academy-student.jpg') no-repeat center center/cover;
  min-height: 720px; /* Increased from 520px to show more of the image and increase vertical height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 80px 60px 40px 60px; /* Adjusted top padding to lower overlay content like the original */
}
.hero-overlay-card {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 25px 30px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 40px; /* Adjusted top margin so background image peeks on top */
}
.hero-overlay-card .card-subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #444444;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}
.hero-overlay-card p {
  font-size: 0.85rem;
  color: #555555;
  margin-bottom: 12px;
  line-height: 1.5;
}
.hero-social-bar {
  background-color: #343F64;
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  width: 320px;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.social-icon {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}
/* ACADEMY BANNER */
.academy-banner {
  background-color: #ebd77d;
  text-align: center;
  padding: 25px 20px;
}
.subbanner-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 10px;
}
.subbanner-btn {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.subbanner-btn:hover {
  opacity: 0.75;
  text-decoration: underline;
}
.academy-banner p {
  font-size: 0.75rem;
  color: #555555;
  margin-top: 10px;
}
/* NEWS SECTION - REVISED BLUE BACKGROUND (#343F64) */
.news-section-wrapper {
  background-color: #343F64;
  width: 100%;
  padding: 40px 0;
}
.news-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffffff; /* White title text */
}
.news-container {
  display: flex;
  gap: 30px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 30px;
}
.news-card {
  flex: 1;
  font-size: 0.88rem;
  color: #333333;
}
.news-card h3 {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.4;
}
.news-card p {
  margin-bottom: 15px;
  text-align: justify;
}
.news-card a {
  color: #1a0dab;
}
.image-box {
  text-align: center;
  margin: 15px 0;
}
.image-box img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
}
.image-box .caption {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}
.pr-link {
  display: block;
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
}
/* DARK CARD (Right Column) - REVISED DARK BLUE (#343F64) */
.dark-card {
  background-color: #343F64;
  color: #ffffff;
  padding: 25px;
}
.dark-card h3 {
  color: #ffffff;
}
.dark-card p {
  color: #dddddd;
}
.video-box {
  position: relative;
  text-align: center;
  margin: 15px 0;
}
.video-box img {
  width: 100%;
  height: auto;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid #fff;
}
.light-link {
  color: #ffffff !important;
  text-decoration: underline;
  display: block;
  text-align: center;
}
.white-card-inner {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 25px;
  color: #333333;
}
.dark-text {
  color: #333333 !important;
}
.small-center {
  text-align: center;
  font-size: 0.8rem;
}
.brand-subheading {
  text-align: center;
  margin: 20px 0 10px 0;
  font-size: 1rem;
}
.brand-logos-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.brand-logos-row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}
/* FOOTER - REVISED BEIGE BACKGROUND (#ebd77d) & BLACK TEXT */
footer, .site-footer {
  background-color: #ebd77d !important;
  color: #000000 !important;
  padding: 40px 20px;
}
footer a, .site-footer a {
  color: #000000 !important;
}
footer h3, footer h4, .site-footer h3, .site-footer h4 {
  color: #000000 !important;
}
/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 850px) {
  .news-container {
    flex-direction: column;
    padding: 15px;
  }
  .hero-section {
    align-items: center;
    padding: 20px;
  }
  .hero-overlay-card, .hero-social-bar {
    max-width: 100%;
    width: 100%;
  }
}
/* --- Global & Container Layouts --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2D3748;
    background-color: #FAFAFA;
    margin: 0;
    padding: 0;
}

/* Page Section Wrapper to Center Content */
.main-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #047857;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- About Us Page Layout --- */
.text-content {
    line-height: 1.7;
    color: #4A5568;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.text-content h3 {
    color: #047857;
    margin-top: 24px;
    margin-bottom: 8px;
}

/* Team Grid (3 Cards Layout) */
.team-section {
    margin-top: 50px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background-color: #E6F4EA;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
}

.team-card h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #1A202C;
}

.team-card .role {
    font-weight: 600;
    color: #047857;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.5;
    margin: 0;
}

/* --- Schedule/Book Form Layout --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #2D3748;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    background-color: #E6F4EA;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-row-date {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0 auto;
    background-color: #047857;
    color: #FFFFFF;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-submit:hover {
    background-color: #065F46;
}

/* Contact Info Bar (Bottom Section) */
.contact-info-bar {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 24px;
    margin-top: 60px;
    text-align: center;
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    color: #718096;
}

.contact-item strong {
    font-size: 0.95rem;
    color: #1A202C;
}
/* ==========================================
   UPDATED COLOR PALETTE & LAYOUT STYLES
   (#e9DB89 Light Shade | #343f64 Dark Blue)
   ========================================== */

:root {
    --color-primary-dark: #343f64;   /* Headings, buttons, links, accents */
    --color-bg-light: #e9DB89;       /* Input fields, select boxes, team cards */
    --text-body: #343f64;            /* Main body text */
    --text-muted: #525f88;           /* Subtitles and secondary labels */
}

/* Base Body Styles */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
}

/* Outer Container (Restores Max-Width and Centering) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.max-w-700 {
    max-width: 700px;
}

.text-center {
    text-align: center;
}

/* Color Helper Overrides */
.text-teal {
    color: var(--color-primary-dark) !important;
}

.font-bold {
    font-weight: 700;
}

/* Typography & Accent Line */
.page-title {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.short-accent-line {
    width: 40px;
    height: 3px;
    background-color: var(--color-primary-dark);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   1. ABOUT US PAGE LAYOUT
   ========================================== */

.flex-2-col {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Team Leaders 3-Column Grid */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.member-photo-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.member-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body-green {
    padding: 20px;
    background-color: var(--color-bg-light);
}

.member-name {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.member-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark) !important;
    margin-bottom: 12px;
}

.member-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

/* Contact Floating Card (Bottom Section) */
.section-about3 {
    padding: 60px 20px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card-white {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 750px;
    padding: 24px;
    text-align: center;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.95rem;
    color: var(--color-primary-dark) !important;
    text-decoration: none;
}

/* ==========================================
   2. SCHEDULE / BOOK PAGE LAYOUT & INPUTS
   ========================================== */

.booking-form-wrapper {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

/* Form Controls styled with light flesh background */
.form-input, 
textarea.form-input, 
select.form-input {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--color-bg-light);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--color-primary-dark);
    font-family: inherit;
}

.form-input:focus {
    outline: 2px solid var(--color-primary-dark);
    background-color: #ffffff;
}

/* Date & Time Grid Alignment */
.schedule-block {
    margin-bottom: 16px;
}

.schedule-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.schedule-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 10px;
}

.payment-terms-box {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-top: 24px;
}

/* Solid Dark Blue Submit Button */
.btn-green-solid {
    background-color: var(--color-primary-dark) !important;
    color: #FFFFFF !important;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-green-solid:hover {
    opacity: 0.9;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .flex-2-col {
        flex-direction: column;
    }
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .schedule-inputs-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==========================================
   COLOR OVERRIDES & ACCENT UPDATES
   ========================================== */

/* ------------------------------------------
   (1) BUTTONS, BLOCKS, AND SUBBANNERS (#343f64)
   ------------------------------------------ */

/* Target all buttons and form submissions */
button,
input[type="submit"],
input[type="button"],
.btn,
.btn-primary,
.btn-black,
.btn-dark,
.button,
a.button {
    background-color: #343f64 !important;
    color: #ffffff !important;
    border-color: #343f64 !important;
}

/* Form Titles & Headings */
h1, h2, h3, h4, h5, h6,
.order-form-title,
.section-title,
.subbanner-title {
    color: #343f64 !important;
}

/* Dark Subbanners & Inline Black Background Overrides */
.dark-section,
.subbanner,
.bg-black,
.bg-dark,
section[style*="background-color: black"],
section[style*="background-color: #000"],
section[style*="background: black"],
div[style*="background-color: black"],
div[style*="background-color: #000"],
div[style*="background: black"] {
    background-color: #343f64 !important;
    color: #ffffff !important;
}

/* White Text inside Dark Subbanners */
.dark-section *,
.subbanner *,
.bg-black *,
.bg-dark *,
section[style*="background-color: black"] *,
section[style*="background-color: #000"] * {
    color: #ffffff !important;
}

/* ------------------------------------------
   (2) FAQ & PAGE CONTAINER COLOR OVERRIDES (#343f64)
   ------------------------------------------ */

/* Target light blue/pale backgrounds on main, section, and div wrappers */
main[style*="background"],
section[style*="background"],
div[style*="background-color: #e8f4f8"],
div[style*="background-color: #e6f3f8"],
div[style*="background-color: #eaf4f8"],
.faq-container,
.faq-section,
.section-faq,
div[class*="faq"],
section[class*="faq"] {
    background-color: #343f64 !important;
    color: #ffffff !important;
}

/* Force FAQ text, headers, and links to render as White */
.faq-container *,
.faq-section *,
.section-faq *,
div[class*="faq"] *,
section[class*="faq"] *,
main[style*="background"] p,
main[style*="background"] h1,
main[style*="background"] h2,
main[style*="background"] h3,
main[style*="background"] span,
main[style*="background"] a {
    color: #ffffff !important;
}

/* Border/Divider lines inside FAQ section */
.faq-container border,
.faq-section hr,
.faq-section .border-bottom,
div[class*="faq"] hr,
section[class*="faq"] hr {
    border-color: rgba(255, 255, 255, 0.25) !important;
}
/* Targets submit buttons and custom upload buttons */
button, 
input[type="submit"], 
.button-class-name { 
    background-color: #343f64 !important;
    color: #ffffff !important; /* Text inside the button */
    border-color: #343f64 !important;
}

/* Ensure hover state stays dark blue or slight variant */
button:hover, 
input[type="submit"]:hover {
    background-color: #283150 !important;
}
/* Text typed into fields */
input[type="text"], 
input[type="email"], 
textarea {
    color: #343f64 !important;
}

/* Placeholder text ("example@domain.com") */
::placeholder {
    color: #343f64 !important;
    opacity: 0.7; /* Optional opacity adjustment */
}
/* Sets base body/form text color */
body, form, label, .form-group {
    color: #343f64 !important;
}
/* ==========================================================================
   Promos & Packages Page Styling Overrides
   ========================================================================== */

/* Dark Blue Color Variables & Base Reset */
:root {
    --theme-dark-blue: #343f64;
    --theme-light-bg: #f4f7f9;
}

body {
    color: var(--theme-dark-blue) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page Header & Intro Alignment */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-dark-blue) !important;
    text-align: center;
}

p {
    color: var(--theme-dark-blue);
}

/* 5-Column Promo Thumbnail Grid */
.promos-grid, 
div:has(> img[alt*="Package"]), 
div:has(> img[alt*="Special"]) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1100px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    text-align: center !important;
}

/* Promo Image Placeholders */
.promos-grid img, 
main img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    background-color: #e5e5e5 !important;
    border-radius: 8px !important;
}

/* 6 Card Details Layout (2 Rows x 3 Columns) */
.cards-container, 
section:has(.card), 
div:has(> div > img) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    max-width: 1100px !important;
    margin: 50px auto !important;
    padding: 0 20px !important;
}

@media (max-width: 768px) {
    .cards-container, 
    div:has(> div > img) {
        grid-template-columns: 1fr !important;
    }
}

/* White Cards with Rounded Corners & Shadows */
.card, 
div:has(> h3):has(> p) {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eef2f5 !important;
}

/* Contact Us Section Alignment */
form {
    max-width: 600px !important;
    margin: 30px auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    color: var(--theme-dark-blue) !important;
}

/* Dark Blue Send Button */
form button,
form input[type="submit"] {
    background-color: var(--theme-dark-blue) !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    margin: 10px auto 0 auto !important;
    display: block !important;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #283150 !important;
}
