/* =========================
   THEME
========================= */
:root{
  --black:#000000;
  --navy:#2A3C63;
  --sky:#79A7D9;
  --white:#FFFFFF;

  --bg:#F7F9FC;
  --text:#17202A;
  --muted:#5B6A7A;

  --radius:16px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
html{ scroll-behavior:smooth; }
body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* reserve space for anchors */
section{ scroll-margin-top: 100px; }

/* containers & section rhythm */
.container{ width:min(1100px,92%); margin:0 auto; }
.section{ padding:80px 0; }
.section-alt{ background:var(--white); }
.section-title{
  margin:0 0 8px; color:var(--navy);
  font-weight:800; letter-spacing:.3px;
  font-size:clamp(26px,3vw,36px);
}
.section-subtitle{ color:var(--muted); margin:0 0 32px; }

/* =========================
   TOP BAR
========================= */
.topbar{
  background:linear-gradient(90deg,#2A3C63 0%,#2A3C63 100%);
  color:var(--white);
  font-size:14px;
}
.topbar-inner{
  display:flex; justify-content:space-between; align-items:center;
  padding:6px 0;
}
.topbar-left a{
  color:var(--white); text-decoration:none; margin:0 6px; font-weight:500;
  transition:opacity .2s ease;
}
.topbar-left a:hover{ opacity:.8; }
.topbar .divider{ margin:0 4px; opacity:.6; }

/* round social icons */
.topbar-right a{
  text-decoration:none; color:var(--white);
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.15);
  margin-left:10px; font-size:16px;
  transition:transform .2s ease, background .2s ease, color .2s ease;
}
.topbar-right a:hover{ background:var(--sky); color:var(--white); transform:scale(1.1); }

@media (max-width:640px){
  .topbar-inner{ flex-direction:column; gap:4px; }
  .topbar-right{ margin-top:4px; }
}

/* =========================
   HEADER / NAV
========================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(42,60,99,.08);
}
.site-header.scrolled{ background:var(--white); }
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:68px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--navy); font-weight:800;
}
.logo{ height:60px; width:auto; }
.brand-text{ font-size:1.4rem; font-weight:700; color:var(--navy); }
.brand-text span{ font-weight:400; }

.nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:12px; }
.nav a{
  display:block; text-decoration:none; color:var(--navy);
  padding:10px 14px; border-radius:12px; font-weight:600;
}
.nav a:hover,.nav a.active{ background:var(--sky); color:var(--white); }

.nav-toggle{ display:none; background:none; border:0; cursor:pointer; }
.nav-toggle .bar{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; }

@media (max-width:820px){
  .nav-toggle{ display:block; }
  .nav{
    position:absolute; inset-inline:0; top:68px; display:none;
    background:var(--white); border-bottom:1px solid rgba(42,60,99,.1);
  }
  .nav.open{ display:block; }
  .nav ul{ flex-direction:column; }
  .nav a{ border-radius:0; padding:16px 20px; }
}

/* =========================
   HERO
========================= */
.hero{ position:relative; padding:120px 0 100px; background:var(--white); overflow:hidden; }
.hero{
  background:
    radial-gradient(1200px 600px at 100% -20%, rgba(121,167,217,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 120%, rgba(42,60,99,.12), transparent 60%),
    var(--white);
}
.hero-inner{ position:relative; z-index:1; text-align:center; }
.hero h1{ margin:0 0 10px; color:var(--navy); font-size:clamp(32px,6vw,54px); }
.hero p{ margin:0 auto 28px; max-width:720px; color:var(--muted); font-size:clamp(16px,2.2vw,18px); }
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero-accent{
  position:absolute; right:-120px; bottom:-120px; width:380px; height:380px;
  background:linear-gradient(135deg,var(--sky),var(--navy));
  opacity:.15; filter:blur(6px); border-radius:32px;
}

/* hero decorative image */
.hero-bg{
  position:absolute; inset:0;
  width:110%; height:100%;
  left:-4%;
  object-fit:cover;
  opacity:.6; pointer-events:none; z-index:0;
}
@media (max-width:900px){
  .hero-bg{ left:0; width:100%; opacity:.25; }
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-block; text-decoration:none; font-weight:700;
  padding:12px 18px; border-radius:14px; border:2px solid transparent;
  transition:transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--navy); color:var(--white); box-shadow:var(--shadow); }
.btn-primary:hover{ background:#22324f; }
.btn-outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ color:var(--white); background:var(--navy); }

/* =========================
   CARDS / GRID
========================= */
.grid{ display:grid; gap:20px; }
.cards{ grid-template-columns:repeat(4,1fr); }
.card{
  background:var(--white);
  border:1px solid rgba(42,60,99,.08);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}
.card h3{ margin:0 0 1px; color:var(--navy); }
.card p{ margin:0; color:var(--muted); }

@media (max-width:980px){ .cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:540px){ .cards{ grid-template-columns:1fr; } }

/* =========================
   FLIP CARDS
========================= */
.flip-card{
  perspective:1200px; padding:0; overflow:visible; cursor:pointer; min-height:290px;
}
.flip-inner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d; transition:transform .6s ease;
}
.flip-card.flipped .flip-inner{ transform:rotateY(180deg); }
.flip-face{
  position:absolute; inset:0; background:var(--white);
  border:1px solid rgba(42,60,99,.08); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:22px; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  display:flex; flex-direction:column; justify-content:space-between; gap:8px;
}
.flip-back{ transform:rotateY(180deg); }
.flip-list{ margin-top:1px; padding-left:18px; color:var(--muted); }

.flip-btn{
  align-self:flex-start; margin-top:12px; background:transparent;
  border:2px solid var(--navy); color:var(--navy);
  padding:8px 12px; border-radius:10px; font-weight:700; font-size:14px;
  cursor:pointer; transition:all .2s ease;
}
.flip-btn:hover{ background:var(--navy); color:var(--white); }

.flip-close{
  position:absolute; top:14px; right:14px;
  font-size:18px; font-weight:bold; cursor:pointer; user-select:none;
  color:var(--navy); transition:color .2s ease;
}
.flip-close:hover{ color:var(--sky); }

/* =========================
   ABOUT + WHY CHOOSE US
========================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* better balance between text and Why Choose Us */
  align-items: start;
  gap: 40px;
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
}

.ticks {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
}

.ticks li {
  padding-left: 28px;
  position: relative;
  margin: 10px 0;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--sky), var(--navy));
}

.about-reviews {
  background: var(--white);
  border: 1px solid rgba(42,60,99,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  color: var(--navy);
  align-self: start; /* keeps box aligned at top with text */
}

.about-reviews h3 {
  margin: 0 0 16px;
  color: var(--navy);
}

/* If the about-wrap has only one direct child (about-text), make it span both columns */
.about-wrap > *:only-child {
  grid-column: 1 / -1;
}

/* Keep the justified text look */
.about-text {
  width: 100%;
  max-width: 100%;
}

.about-text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-bottom: 18px;
}



/* =========================
   CONTACT
========================= */
.contact-form{
  background:var(--white);
  border:1px solid rgba(42,60,99,.1);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow);
}
.form-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-bottom:18px;
}
.form-full{ grid-column:1 / -1; }
.form-control{ display:flex; flex-direction:column; }
label{ font-weight:600; color:var(--navy); margin-bottom:6px; font-size:.95rem; }

input,textarea{
  padding:14px 16px; border-radius:12px; border:1px solid rgba(42,60,99,.25);
  font:inherit; font-size:1rem; color:var(--text); background:#FAFBFF;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Dropdown aligned with inputs */
select {
  width: 100%;
  border: 1px solid rgba(42,60,99,.25);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background-color: #FAFBFF;
  padding: 12px 42px 12px 12px;
  line-height: 1.6;
  height: 56px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%232A3C63' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,textarea:focus,select:focus{
  border-color:var(--sky); background:#fff; box-shadow:0 0 0 4px rgba(121,167,217,.15); outline:none;
}
textarea{ resize:vertical; min-height:140px; line-height:1.5; }

.error{ color:#B00020; font-size:.85rem; margin-top:4px; min-height:18px; }
.optional{ font-size:.85rem; font-weight:400; color:#777; margin-left:4px; }
.form-note{ color:var(--muted); margin-top:14px; font-size:.9rem; }

@media (max-width:680px){
  .form-grid{ grid-template-columns:1fr; }
}

/* =========================
   NEWS
========================= */
.home-news-header{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:16px;
}
.news-cards-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:720px){ .news-cards-2{ grid-template-columns:1fr; } }

.news-cards-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:980px){ .news-cards-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .news-cards-3{ grid-template-columns:1fr; } }

.news-card{
  background:var(--white);
  border:1px solid rgba(42,60,99,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden; display:flex; flex-direction:column;
}
.news-thumb{ display:block; aspect-ratio:16/9; overflow:hidden; background:#eef3fb; }
.news-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.news-card:hover .news-thumb img{ transform:scale(1.04); }

.news-body{ padding:16px 18px 18px; }
.news-body h3{ margin:6px 0 4px; color:var(--navy); font-size:18px; }
.news-body h3 a{ color:inherit; text-decoration:none; }
.news-body h3 a:hover{ text-decoration:underline; }
.news-meta{ color:var(--muted); font-size:13px; margin:0 0 8px; }
.news-excerpt{ color:var(--text); margin:0 0 10px; }
.news-readmore{ font-weight:700; color:var(--navy); text-decoration:none; }
.news-readmore:hover{ text-decoration:underline; }

/* single article */
.news-article{
  background:var(--white); border:1px solid rgba(42,60,99,.08);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:22px; margin-bottom:70px;
}
.news-article-header h1{ margin:0 0 6px; color:var(--navy); }
.news-hero{
  display:block; max-width:900px; width:auto; height:auto;
  border-radius:12px; margin:16px auto;
}
.news-content p,.news-content ul{ color:var(--text); }
.news-back a{ color:var(--navy); font-weight:700; text-decoration:none; }
.news-back a:hover{ text-decoration:underline; }

/* =========================
   FOOTER
========================= */
.site-footer{ background:var(--navy); color:var(--white); padding:22px 0; margin-top:40px; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.to-top{
  color:var(--white); text-decoration:none; font-weight:800;
  background:rgba(255,255,255,.12); padding:8px 10px; border-radius:10px;
}
.to-top:hover{ background:rgba(255,255,255,.2); }

/* =========================
   ACCESSIBILITY
========================= */
:focus-visible{ outline:3px solid var(--sky); outline-offset:3px; }

/* =========================
   RESPONSIVE POLISH
========================= */
@media (max-width: 1024px) {
  .container { width: min(960px, 92%); }
  .cards     { grid-template-columns: repeat(3, 1fr); }
  .hero      { padding: 110px 0 90px; }
}

@media (max-width: 820px) {
  .header-inner { height: 64px; }
  .logo         { height: 52px; }
  .nav a        { padding: 14px 20px; }

  .hero        { padding: 96px 0 80px; }
  .hero h1     { font-size: clamp(30px, 5.4vw, 44px); }
  .hero p      { max-width: 640px; }

  .cards       { grid-template-columns: repeat(2, 1fr); }
  .flip-card   { min-height: 260px; }
  .flip-face   { padding: 18px; }

  .about-wrap  { grid-template-columns: 1fr; gap: 28px; }

  .contact-form { padding: 26px; }
  .form-grid    { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .news-article-header h1 {
    font-size: clamp(22px, 3.6vw, 28px);
    line-height: 1.25;
  }
  .news-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 14px 0 18px;
  }
  .news-article { padding: 18px; }
  .news-content p { font-size: 16px; }
  .news-content ul { padding-left: 20px; }
}

@media (max-width: 640px) {
  .container   { width: 92%; }
  .section     { padding: 72px 0; }
  .topbar      { font-size: 13px; }
  .logo        { height: 48px; }
  .brand-text  { font-size: 1.2rem; }
  .nav a       { padding: 14px 18px; }
  .hero        { padding: 84px 0 68px; }
  .hero-accent { width: 300px; height: 300px; right: -90px; bottom: -90px; }
  .cards, .news-cards-2, .news-cards-3 { grid-template-columns: 1fr; }
  .form-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section     { padding: 62px 0; }
  .btn         { width: 100%; text-align: center; }
  .flip-card   { min-height: 240px; }
  .flip-face   { padding: 16px; gap: 6px; }
  input, textarea, select { padding: 12px; }
}



/* ===== Coming Soon (News placeholder) ===== */
.coming-soon{
  background: var(--white);
  border: 1px solid rgba(42,60,99,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 46px 24px;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 200px;
}

.coming-soon p{
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.cs-pill{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), var(--navy));
  box-shadow: 0 6px 16px rgba(42,60,99,.15);
}

/* Slightly larger on the standalone news page */
.coming-soon--page{
  min-height: 280px;
  padding: 60px 28px;
}
