/* =========================
   GLOBAL / BACKGROUND
========================= */
* {
  box-sizing: border-box;
}

:root {
  --bg-main: #e6ebf0;
  --panel: #f8fbff;
  --border: #b7c4cf;

  --primary: #3b6e8f;
  --primary-dark: #2f556e;

  --accent: #f4b400;

  --text: #2a2a2a;
}

html {
  height: 100%;
  background: #2f556e;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;

  font-family: "Comic Sans MS", cursive;
  margin: 0;
  overflow-x: hidden;
  padding: 0;

  background: linear-gradient(135deg, #7fa6c1, #c7d8e6);
}


/* =========================
   HEADER
========================= */
.header {
  background: linear-gradient(#f4f7fa, #d6dee6);
  border-bottom: 1px solid var(--border);

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 5px rgba(0,0,0,0.1);

  margin-bottom: 25px;    
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: inherit;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ccc;
  border: 2px solid #888;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: bold;
}

.auth {
  display: flex;
  gap: 12px;
}

.auth a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;

  background: linear-gradient(#f6faff, #dce8f3);
  border: 1px solid #8faec3;

  color: #244b66;
  font-weight: bold;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(0,0,0,0.1);

  transition: all 0.15s ease;
}

.auth a:hover {
  background: linear-gradient(#d6e4f0, #b7cfe2);
  border-color: #5f86a3;
  color: #1c3a52;
}

.nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  image-rendering: crisp-edges;
}

.nav-wrapper {
  max-width: 1320px;
  width: 92%;
  margin: 0 auto 25px auto;

  background: linear-gradient(#eef3f8, #d6dee6);
  border: 1px solid var(--border);
  border-radius: 6px;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 6px rgba(0,0,0,0.12);

  padding: 12px 14px;
}

.nav-item {
  position: relative;
}

/* hidden by default */
.tooltip {
  position: absolute;
  bottom: 155%;
  left: 50%;
  transition: opacity 0.1s ease;
  transform: translateX(-50%);

  background: #4a90c2;
  color: white;

  font-size: 13px;
  font-weight: bold;

  padding: 6px 12px;
  border-radius: 6px;

  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* show instantly on hover */
.nav-item:hover .tooltip {
  opacity: 1;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: #4a90c2 transparent transparent transparent;
}

/* =========================
   PAGE WRAPPER
========================= */
.page-wrapper {
  max-width: 1320px;
  width: 92%;
  margin: 0 auto 25px auto;
  padding: 20px;

  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 6px 18px rgba(0,0,0,0.2);
}


/* =========================
   NAV BAR
========================= */
.subnav {
  margin-bottom: 25px;
  margin: 0;
  max-width: 1400px;
  padding: 6px;

  background: transparent;
  border: none;

  display: flex;
  justify-content: center;
  gap: 12px;
}

.subnav a {
  background: linear-gradient(#ffffff, #e3e9ef);
  border: 1px solid var(--border);

  padding: 8px 18px;
  border-radius: 18px;

  color: var(--primary-dark);
  font-weight: bold;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(0,0,0,0.1);

  transition: all 0.15s ease;
}

.subnav a:hover {
  background: linear-gradient(#e3e9ef, #cfdbe6);
  border-color: #8aa9bf;
  color: #1f3f5b;
}

.icon {
  margin-right: 6px;
}


/* =========================
   CONTENT BOXES
========================= */
.main-content {
  flex: 1;
}

.box {
  background: linear-gradient(#f9fcff, #edf3f8);
  border: 1px solid var(--border);
  border-radius: 5px;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 3px 8px rgba(0,0,0,0.08);

  transition: 0.15s;
}

.box:hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 5px 12px rgba(0,0,0,0.12);
}

.box::before {
  content: "";
  display: block;
  height: 6px;

  background: linear-gradient(to right, var(--primary), #7fa6c1);
  border-radius: 10px 10px 0 0;
}

.box.reverse .box-inner {
  flex-direction: row-reverse;
}

.box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
  padding: 30px 50px;

  flex-wrap: wrap;
}

.box-inner > * {
  flex: 1 1 400px;
  max-width: 500px;
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  max-width: 500px;
}

.text h1,
.text h2 {
  color: var(--primary-dark);
}

.text h1 {
  margin-bottom: 10px;
}

.text h2 {
  margin-top: 20px;
}

.text p {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
  font-size: 16px;
}

strong {
  color: var(--accent);
}

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

.single-column {
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start; 
  justify-content: center;
  padding: 10px 20px;
}

.box-inner.single-column .text p {
  max-width: 1000px;
}

.box-inner.single-column > * {
  flex: 0 1 1100px;
  max-width: 1100px;
  letter-spacing: 0.2px;
}

.single-column .text {
  max-width: 1100px;
  width: 100%;
}

.single-column .text > * {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* TIGHTER H3 SPACING */
.single-column .text h3 {
  margin-bottom: 2px;
}

.single-column .text h3 + p {
  margin-top: 2px;
}

.single-column .text > *:last-child {
  margin-bottom: 10px;
}

.single-column .text h1 {
  margin-bottom: 2px;
}

/* IMAGE PLACEHOLDER */
.img-large {
  max-width: 520px;
  width: 100%;
  height: 400px;

  background: #e5e7eb;
  border: none;
  border-radius: 8px;

  box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
}

.img-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

a {
  text-decoration: none;
  color: #2f5d84;
}

a:hover {
  color: #1b3f5c;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;

  background: linear-gradient(#ffffff, #e3e9ef);
  border: 1px solid var(--border);

  padding: 8px 18px;
  border-radius: 18px;

  color: var(--primary-dark);
  font-weight: bold;

  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(0,0,0,0.1);

  transition: all 0.15s ease;
}

.contact-actions a:hover {
  background: linear-gradient(#e3e9ef, #cfdbe6);
  border-color: #8aa9bf;
  color: #1f3f5b;
}

.contact-actions.row {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap; /* keeps it responsive */
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #3f647d;
  color: #e6f2ff;
  border-top: none;
}

.footer a {
  color: #eaf4ff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #ffffff;
  opacity: 0.60;
}

.footer-wrapper {
  margin-top: 0;
}

.footer-section {
  margin-top: auto;
  background: #2f556e;
}

.footer-inner {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-center p:last-child {
  font-size: 13px;
  line-height: 1.4;
}

.footer-inner > div {
  flex: 1;
}

.footer-left {
  text-align: left;
  justify-self: end; 
}

.footer-right {
  text-align: center;
  justify-self: center;
}

.footer-center {
  text-align: left;
  justify-self: start;
  max-width: 260px;
}

.footer-center a {
  display: inline-block;
  margin-bottom: 6px;
}

.footer strong {
  color: #ffffff;
  font-size: 19px;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 10px;
}

.footer p {
  margin: 8px 0;
}

.footer::before {
  content: "";
  display: block;
  height: 6px;

  background: linear-gradient(to right, #5d7f99, #9fb8c9);
}

.footer-right a[href*="privacy"],
.footer-right a[href*="dmca"] {
  font-weight: bold;
}

/* COPYRIGHT */
.footer-bottom {
  background: #2f556e;
  color: #cbd5e1;
  text-align: center;
  padding: 14px 0;
}

.footer-disclaimer {
  font-size: 12px;
  margin-top: 6px;
  color: #bcd3e6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CONTENT BOX */

.content-page .box-inner > * {
  max-width: none;
  flex: 1 1 100%;
}

.content-page .text {
  max-width: none;
}

.content-page .text p {
  max-width: 100%;
}

.content-page .single-column {
  max-width: 1250px;
}

/* ALIGN LEFT */

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

.align-left .text p {
  margin-left: 0;
  margin-right: 0;
}

.align-left .contact-actions {
  align-items: flex-start;
  gap: 8px;
}

.align-left .contact-actions a {
  display: inline-flex;
}

.jump-bar .subnav {
  justify-content: flex-start;
}