﻿/* ============================================================
   Achievers Academy — Responsive Styles
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   DESKTOP HEADER REDESIGN (all breakpoints, mobile overrides below)
   ══════════════════════════════════════════════════════════ */

/* ── Top bar ─────────────────────────────────────────────── */
.header-top {
  font-size: 13px;
  letter-spacing: 0.2px;
}
.header-top .list-inline > li {
  position: relative;
}
.header-top .list-inline > li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: rgba(255,255,255,0.35);
}
.header-top a.text-white:hover {
  opacity: 0.85;
  text-decoration: none;
}
.header-top ul.styled-icons li a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.25s, border-color 0.25s;
}
.header-top ul.styled-icons li a:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}

/* ── Header middle ───────────────────────────────────────── */
.header-middle {
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* Logo sizing — desktop */
.menuzord-brand img {
  max-height: 70px;
  max-width: 210px;
  width: auto;
  height: auto;
  display: block;
}

/* Info widgets row — vertically centered */
.hdr-info-row {
  display: flex;
  align-items: center;
  height: 100%;
}
.hdr-info-col {
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hdr-info-col--border {
  border-left: 1px solid #ececec;
}

/* Each widget: icon circle + text side by side */
.hdr-info-widget {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hdr-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d42b2b 0%, #b82020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212,43,43,0.3);
  transition: box-shadow 0.25s, transform 0.25s;
}
.hdr-icon-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,43,43,0.4);
}
.hdr-icon-wrap i {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.hdr-info-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hdr-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}
.hdr-value {
  font-size: 14px;
  color: #222;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
  transition: color 0.2s;
}
.hdr-value:hover {
  color: #d42b2b;
  text-decoration: none;
}

/* ── Nav bar ─────────────────────────────────────────────── */
.header-nav-wrapper {
  border-top: 3px solid #d42b2b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Replace rounded-pill active state with clean underline */
.menuzord-menu > li > a {
  border-radius: 0 !important;
  padding: 24px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #555 !important;
  letter-spacing: 0.2px;
  position: relative;
}
.menuzord-menu > li.active > a,
.menuzord-menu > li:hover > a {
  background: transparent !important;
  color: #d42b2b !important;
}
.menuzord-menu > li.active > a::after,
.menuzord-menu > li:hover > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #d42b2b;
  border-radius: 3px 3px 0 0;
}
/* Dropdown hover */
.menuzord .menuzord-menu ul.dropdown li:hover > a {
  background: #d42b2b !important;
  color: #fff !important;
  padding-left: 28px !important;
}
/* Enquire Now button */
.header-nav .btn-theme-colored2 {
  padding: 10px 22px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 4px !important;
}

/* ══════════════════════════════════════════════════════════
   GALLERY THUMB LINK (index.php preview)
   ══════════════════════════════════════════════════════════ */
.gallery-thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-thumb-link img {
  transition: transform 0.35s ease;
}
.gallery-thumb-link:hover img {
  transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════════
   COURSE CARDS (courses.php)
   ══════════════════════════════════════════════════════════ */
.course-grid {
  display: flex;
  flex-wrap: wrap;
}
.course-grid__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}
.course-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: box-shadow 0.25s, transform 0.25s;
  border-top: 4px solid #d42b2b;
}
.course-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}
.course-card__image {
  overflow: hidden;
  height: 200px;
}
.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.course-card:hover .course-card__image img {
  transform: scale(1.04);
}
.course-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.4;
}
.course-card__desc {
  color: #666;
  line-height: 1.8;
  flex: 1;
  font-size: 13.5px;
}
.course-card__btn {
  margin-top: 20px;
  border-radius: 4px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════
   BOARD CARDS (courses.php — Boards We Cover)
   ══════════════════════════════════════════════════════════ */
.board-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 28px 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-bottom: 3px solid #eee;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  height: 100%;
}
.board-card:hover,
.board-card--featured {
  border-bottom-color: #d42b2b;
  box-shadow: 0 6px 24px rgba(212,43,43,0.15);
  transform: translateY(-3px);
}
.board-card__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d42b2b, #b82020);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(212,43,43,0.3);
}
.board-card__icon i {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.board-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.board-card__desc {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   FOOTER REDESIGN
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: #1c1c1c;
  color: #ccc;
}

/* Footer Main */
.footer-main {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col {
  margin-bottom: 30px;
}

/* Brand */
.footer-brand img {
  max-height: 70px;
  max-width: 180px;
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 18px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 5px;
}
.footer-brand-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
}
.footer-address {
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Contact list */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13px;
}
.footer-contact-list li i {
  color: #d42b2b;
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}
.footer-contact-list li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-list li a:hover {
  color: #d42b2b;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: #d42b2b;
  border-color: #d42b2b;
  color: #fff;
}

/* Widget title */
.footer-widget-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d42b2b;
  display: inline-block;
}

/* Quick links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 9px;
}
.footer-links li a {
  color: #bbb;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links li a i {
  color: #d42b2b;
  margin-right: 6px;
  font-size: 12px;
}
.footer-links li a:hover {
  color: #d42b2b;
  padding-left: 4px;
}

/* Latest posts */
.footer-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-posts li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.footer-post-title {
  display: block;
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-post-title:hover {
  color: #d42b2b;
}
.footer-post-date {
  display: block;
  color: #888;
  font-size: 11px;
  margin-top: 4px;
}
.footer-no-posts {
  color: #888;
  font-size: 13px;
}

/* Mission column */
.footer-mission-text {
  color: #aaa;
  font-size: 13px;
  line-height: 1.8;
}
.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}
.footer-location i {
  color: #d42b2b;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-location a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-location a:hover {
  color: #d42b2b;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  background: #111111;
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
}
.footer-copy {
  color: #777;
  font-size: 12px;
  margin: 0;
}
.footer-copy a {
  color: #d42b2b;
  text-decoration: none;
}
.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom-links li a {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links li a:hover {
  color: #d42b2b;
}

/* ── Large Desktops (1200px+) — no overrides needed ─────── */

/* ── Medium Desktops / Laptops (992px – 1199px) ─────────── */
@media (max-width: 1199px) {
  .hdr-value { font-size: 12px; }
  .hdr-icon-wrap { width: 44px; height: 44px; }
  .hdr-icon-wrap i { font-size: 19px; }
}

/* ── Tablets (768px – 991px) ─────────────────────────────── */
@media (max-width: 991px) {
  /* Header middle — stack info widgets */
  .header-middle .col-xs-12.col-sm-4 { text-align: center; }
  .header-middle .widget i { display: block; float: none !important; margin: 0 auto 5px; }

  /* Courses — 2 columns on tablet */
  .course-grid__item { width: 50%; }

  /* Board cards — equal height row */
  .board-card { margin-bottom: 20px; }

  /* Footer — 2-col grid on tablet */
  .footer-col { margin-bottom: 35px; }
}

/* ── Mobile (max 767px) ───────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Header top bar — single row: phone left, icons right ── */
  .header-top .container { padding: 0 15px; }
  .header-top .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .header-top .col-md-8,
  .header-top .col-md-4 { width: auto; float: none; padding: 0; }
  .header-top .col-md-8 ul { margin: 0; padding: 0; }
  .header-top .col-md-8 ul li { display: inline-block; padding: 0; margin: 0 6px 0 0; }
  .header-top .col-md-8 ul li:last-child { display: none; } /* hide email — too long */
  .header-top .col-md-4 { margin-left: auto; }
  .header-top .pull-right { float: none !important; display: flex; align-items: center; }
  .header-top ul.styled-icons { display: flex !important; align-items: center; margin: 0; padding: 0; }
  .header-top ul.styled-icons li { margin: 0 0 0 6px; }

  /* ── Header middle — logo only, info widgets hidden ─────── */
  .header-middle { padding: 0; }
  .header-middle .container { padding-top: 12px !important; padding-bottom: 12px !important; }

  /* Hide the 3 info widgets column on mobile (phone already shown in top bar) */
  .header-middle .col-md-8 { display: none !important; }
  .hdr-info-row { display: block; }

  /* Logo column takes full width, centered */
  .header-middle .col-md-4 { width: 100%; text-align: center; }
  .header-middle .menuzord-brand {
    float: none !important;
    display: inline-block !important;
    margin: 0;
  }
  .header-middle .menuzord-brand img { max-height: 55px; max-width: 160px; width: auto; height: auto; }

  /* ── Header nav — reset desktop styles for mobile ───────── */
  .header-nav-wrapper { padding: 0 !important; border-top: none; box-shadow: none; }
  .header-nav .container { padding: 0 15px; }
  .menuzord-menu > li > a::after { display: none; }

  /* ── Menuzord mobile nav ────────────────────────────────── */
  #menuzord { position: relative; }

  #menuzord .showhide {
    display: block !important;
    padding: 12px 15px;
    cursor: pointer;
    float: right;
    line-height: 1;
    background: transparent;
    border: none;
    outline: none;
  }
  #menuzord .showhide em {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
  }

  /* Hide desktop menu items until toggled */
  #menuzord .menuzord-menu {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
  }

  #menuzord .menuzord-menu > li {
    display: block;
    float: none;
    border-bottom: 1px solid #f0f0f0;
  }
  #menuzord .menuzord-menu > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Dropdown on mobile */
  #menuzord .menuzord-menu .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0 15px;
    background: #f9f9f9;
  }
  #menuzord .menuzord-menu .dropdown li a {
    padding: 10px 20px;
    font-size: 13px;
    display: block;
    border-bottom: 1px solid #eee;
  }

  /* Enquire Now button in nav — hide on mobile */
  .header-nav .pull-right.sm-pull-none { display: none; }

  /* ── Page title / breadcrumb ────────────────────────────── */
  .page-title h2 { font-size: 22px !important; }
  .page-title .pt-60 { padding-top: 30px !important; }
  .page-title .pb-60 { padding-bottom: 30px !important; }

  /* ── Section padding ────────────────────────────────────── */
  .pt-60 { padding-top: 30px !important; }
  .pb-60 { padding-bottom: 30px !important; }
  .pt-70 { padding-top: 40px !important; }
  .pb-40 { padding-bottom: 20px !important; }

  /* ── Course cards — single column ──────────────────────── */
  .course-grid__item { width: 100%; }
  .mtli-row-clearfix .col-xs-12 { margin-bottom: 20px; }

  /* ── Board cards — single column ───────────────────────── */
  .board-card { transform: none !important; }

  /* ── Section titles ─────────────────────────────────────── */
  h2.title, h3.text-uppercase { font-size: 20px !important; }

  /* ── CTA sections ───────────────────────────────────────── */
  .parallax .btn { display: block; margin: 8px auto; width: 80%; }

  /* ── Footer — single column on mobile ──────────────────── */
  .footer-main { padding: 40px 0 20px; }
  .footer-col { width: 100%; margin-bottom: 30px; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .footer-copy { text-align: center; }

  /* ── Preloader disable button ───────────────────────────── */
  #disable-preloader { display: none; }

  /* ── Scroll to top button ───────────────────────────────── */
  .scrollToTop { bottom: 15px; right: 15px; width: 36px; height: 36px; line-height: 36px; font-size: 16px; }

  /* ── Contact page ───────────────────────────────────────── */
  .contact-info-box { margin-bottom: 20px; }
}

/* ── Small phones (max 479px) ────────────────────────────── */
@media (max-width: 479px) {
  /* Gallery / blog grids */
  .col-sm-6 { width: 100%; }
}
