/* Apply to page */
body {
    font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.site-title {
    font-size: 1.25rem;     /* same as normal navbar brand size */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color) !important;  /* MATCHES all body text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Atkinson Hyperlegible', Arial, Helvetica, sans-serif;
    font-weight: 700;
}

/* Extra-small screen fix: Align nav links LEFT on 320px and below */
@media (max-width: 320px) {
    #mainNav {
        text-align: left !important;
    }
}

@media (min-width: 321px) and (max-width: 768px) {
    #mainNav .navbar-nav {
        width: 100%;
        align-items: flex-end;
    }

    #mainNav .nav-link,
    #mainNav .nav-static {
        display: block;
        text-align: right;
    }
}

/* Simple light/dark theme using body classes + CSS variables */

/* Default values (light theme) */
/* ========== LIGHT THEME (default) ========== */
:root {
    --bg-color: #F3F4F6;     /* light grey page background */
    --text-color: #1F2937;   /* dark readable text */

    --card-bg: #ffffff;     /* WHITE cards */
    --white: #ffffff;       /* true white */

    --accent-color: #0d4a6b;
    --divider-color: #0d4a6b;
    --caption-color: #0d4a6b;
}


/* ========== DARK THEME ========== */
/* ========== DARK THEME ========== */
html[data-theme="dark"] {
    --bg-color: #111827;
    --text-color: #F3F4F6;

    --card-bg: #1a1f2b;
    --white: #1a1f2b;

    --accent-color: #9fbad0;
    --divider-color: #9fbad0;
    --caption-color: #9fbad0;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* Optional: make sections/cards follow theme */
/* Page background */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Structural containers that should look like cards */
.card,
.quote-card,
.navbar,
#footer {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.card *,
.quote-card * {
    color: inherit;
}


.card p,
.card li,
.card ul,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: inherit;
}

[data-theme="dark"] .badge {
    color: #ffffff;
}


/* Optional: Adjust link colors for visibility */
#contact a,
#contact-emails a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
}

#contact a:hover,
#contact-emails a:hover {
    text-decoration: none;
    opacity: 0.8;
}

#logo img { max-width: 150px; }

/* ===== TOP ANCHOR BUTTONS (Button Look) ===== */
.top-btn {
    display: inline-block;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;

    background-color: var(--white);          /* Light mode base */
    color: var(--primary);
    border: 2px solid var(--primary);

    box-shadow: 0 2px 4px rgba(0,0,0,0.08);  /* Gives a real button feel */
    transition: 
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

/* Hover state — Not pressed, just interactive */
.top-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);  /* lifts slightly */
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);  /* bigger, softer shadow */
}

/* Limit hero/testimonial images on large screens */
.responsive-img {
    max-width: 600px;      /* adjust to taste */
    margin: 0 auto;        /* centers it */
    display: block;
}

.image-wrapper {
    max-width: 600px;      /* adjust size as you like */
    margin: 0 auto;        /* center it */
}

.image-row img {
  max-width: 90%;
}

.img-box {
  width: 100%;
  aspect-ratio: 4 / 3;   /* perfect square */
  overflow: hidden;
  border-radius: 12px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* keeps images equal */
  display: block;
}

/*Section devider*/
.section-divider {
  height: 4px;
  max-width: 120px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    #0d4a6b,
    transparent
  );
  border-radius: 2px;
  opacity: 0.4;
}

/* Caption */
.img-card figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #0d4a6b;
  font-size: 0.95rem;
}

/* ===== QUOTE CARD ===== */
.quote-card {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px 20px;
    background: var(--white);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    /* Gradient border */
    border-left: 6px solid;
    border-image: linear-gradient(180deg, var(--primary-light), var(--primary)) 1;
}

/* Large quotation mark */
.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    line-height: 0.8;
    color: var(--primary-light);
    opacity: 0.25;
    font-family: Georgia, serif;
}

/* Blockquote text */
#quote blockquote {
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 750px;
    color: var(--text-color);
}

/* Attribution */
#quote p {
    font-weight: 600;
    opacity: 0.7;
}


/* ========== FLOATING BUTTONS ========== */
#backToTop {
    bottom: 20px;
    right: 20px;
    display: none;
}

#themeToggleFloating {
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

/* ========== SOCIAL ICONS ========== */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Base state */
.social-icons img {
    width: 28px;              /* resize as you like */
    height: 28px;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

/* Hover effect */
.social-icons img:hover {
    opacity: 1;
    transform: scale(1.15);
}


ul {
    text-align: left;
    margin: 0 auto;
    max-width: 600px; /* optional: keeps it neat */
}

body.blog-page a,
body.blog-page li,
body.blog-page p {
    overflow-wrap: anywhere;
    word-break: break-word;
}


body.blog-page {
    overflow-x: hidden;
}

ul li {
    margin-bottom: 10px;
}
