/* Change Site Title Color */
.site-title a {
    color: #ffffff !important;
}

/* Change Site Title Padding */
.site-title {
    padding-top: px;
    padding-bottom: 15px;
}

/* Change Main Menu Link Color */
.main-navigation a {
    color: #ffffff !important;
}

/* Header Background Color */
header#masthead, .site-header {
    background-color: #0062CA !important;
}

/* Change all menu link colors */
.nav-menu a, .main-navigation a
{
    color: #ffffff !important; 
}

/* Change color when hovering */
.nav-menu a:hover, .main-navigation a:hover {
    color: #0062CA !important;
}

/* ============================================================
   HORIZONS OF LIGHT — MODERN REFRESH
   ============================================================ */

/* ---- Load display font (Qarkine substitute: Playfair Display) ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Headings use the elegant display serif; body uses clean sans */
body, p, li, .entry-content, .site-content {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
h1, h2, h3, h4, .site-title, .wp-block-heading,
.entry-title, .stk-highlight, .page-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    letter-spacing: 0.2px;
}

/* ---- Finalize remaining blues to logo blue #0062CA ---- */
.stk-highlight { color: #0062CA !important; }
.swiper-button-prev, .swiper-button-next,
.jp-swiper-button-prev, .jp-swiper-button-next { color: #0062CA !important; }

/* ============================================================
   MADAGASCAR WATER PROJECT — SPOTLIGHT
   ============================================================ */
.wp-block-column.hol-spotlight {
    position: relative;
    background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 70%);
    border: 2px solid #0062CA;
    border-radius: 20px;
    padding: 40px 26px 30px !important;
    box-shadow: 0 16px 40px rgba(0, 98, 202, 0.18);
    overflow: visible;
}
.wp-block-column.hol-spotlight::before {
    content: "★ FEATURED PROJECT";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #0062CA;
    color: #ffffff;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 7px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 98, 202, 0.35);
    z-index: 2;
}
.wp-block-column.hol-spotlight h2,
.wp-block-column.hol-spotlight h2 a { color: #0062CA !important; }

/* ============================================================
   MODERN REFINEMENTS
   ============================================================ */
/* Buttons */
.wp-block-button__link, .donate-button, button.donate, .wp-block-button a {
    border-radius: 999px !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* Smooth transitions on nav links */
.nav-menu a, .main-navigation a { transition: color .2s ease !important; }

/* Project images: consistent, subtle lift */
.entry-content img { transition: transform .3s ease; }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
/* Tablet */
@media (max-width: 1024px) {
    .wp-block-columns { gap: 24px !important; }
    .site-title { font-size: 1.6rem !important; }
}
/* Stack project columns on small screens for clean alignment */
@media (max-width: 781px) {
    .wp-block-columns.is-layout-flex { flex-wrap: wrap !important; }
    .wp-block-column { flex-basis: 100% !important; }
    .wp-block-column.hol-spotlight { transform: none; margin: 26px 0; }
    .main-navigation { text-align: center; }
}
/* Phone */
@media (max-width: 480px) {
    h1, .entry-title { font-size: 1.9rem !important; line-height: 1.2 !important; }
    h2, .wp-block-heading { font-size: 1.5rem !important; }
    .wp-block-column.hol-spotlight { padding: 36px 18px 26px !important; }
    .site-header { text-align: center; }
}

/* ---- DONATION FORM ACCENTS -> logo blue ---- */
.wp-block-jetpack-donations .donations__tab.is-active,
.wp-block-jetpack-donations button:focus,
.wp-block-jetpack-donations .donations__amount.is-selected,
.wp-block-jetpack-donations input:focus,
.wp-block-jetpack-donations a {
    border-color: #0062CA !important;
    outline-color: #0062CA !important;
}
.wp-block-jetpack-donations .donations__amount.is-selected {
    background-color: #0062CA !important;
    color: #ffffff !important;
}
.wp-block-jetpack-donations .wp-block-button__link {
    background-color: #0062CA !important;
}/* Remove the blue background from the section container */
.wp-block-columns.has-background {
    background-color: transparent !important;
    padding-top: 0 !important; /* Optional: adjusts spacing after background is gone */
}

/* Change the 'SUSTAINABILITY PLAN' header text color so it doesn't disappear */
.wp-block-columns.has-background > p {
    color: #1e73be !important; /* Changes the text from white to a readable blue, or use #333333 for dark gray */
}

/* ===== Donor sections: wider & easier to read (added) ===== */
/* Targets the two highlighted panels (Why Support Us + Our Mission) */
.entry-content > div[style*="f4f7fb"] {
    max-width: 1040px !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
/* Override the 712px article cap just enough for these panels to breathe */
.site-main article,
.entry-content {
    overflow: visible !important;
}
.entry-content > div[style*="f4f7fb"] {
    margin-left: calc((100% - 1040px) / 2) !important;
    margin-right: calc((100% - 1040px) / 2) !important;
}
/* More comfortable reading inside the donor panels */
.entry-content > div[style*="f4f7fb"] p {
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
}
/* Inner card grids fill the wider panel, with roomier spacing */
.entry-content > div[style*="f4f7fb"] div[style*="grid-template-columns"] {
    max-width: 100% !important;
    width: 100% !important;
    gap: 32px !important;
}
/* ===== end donor sections ===== */

/* ===== Madagascar Water Project post: wider & easier to read (added) ===== */
/* Scoped to this single post (postid-451) so the homepage is unaffected */
.postid-451 .site-main article,
.postid-451 .entry-content,
.postid-451 .entry-header,
.postid-451 .entry-title {
    max-width: 1080px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Comfortable reading for body paragraphs */
.postid-451 .entry-content p {
    line-height: 1.75 !important;
    font-size: 1.06rem !important;
}
/* Keep long passages at a readable measure within the wider frame */
.postid-451 .entry-content > p {
    max-width: 820px !important;
}
/* Smoother, even spacing between blocks */
.postid-451 .entry-content > * {
    margin-top: 1.2em !important;
    margin-bottom: 1.2em !important;
}
/* ===== end Madagascar Water Project post ===== */

/* ========================================================= */
/* Mobile Responsiveness for Mission and Donor Sections      */
/* ========================================================= */

@media screen and (max-width: 768px) {
    
    /* 1. Force inline CSS Grids to stack vertically */
    .entry-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 2. Force standard WordPress columns to stack vertically */
    .wp-block-columns {
        flex-direction: column !important;
        display: flex !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 24px !important;
    }

    /* 3. Adjust spacing for the "Bringing Light" left-hand column */
    .entry-content h1, 
    .entry-content h2 {
        font-size: 1.8rem !important; /* Prevents giant text from overflowing */
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }

    /* 4. Ensure images within these sections do not break out of bounds */
    .entry-content img {
        max-width: 100% !important;
        height: auto !important;
    }
}/* ==== GLOBAL RESPONSIVE RESET & ENHANCEMENTS ==== */

/* Make all elements use border-box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal scrollbar and fix 100vw issues */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure images, videos, iframes, and embeds never overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block; /* removes bottom whitespace */
}

/* Use flexible font sizes that adapt smoothly */
body {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.6;
}

/* Mobile‑first base: single column, full width */
.container, .wrapper, .row, .content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 1rem;
}

/* Make all columns stack on small screens */
[class*="col-"], [class*="column"] {
  flex: 1 1 100%;
  max-width: 100%;
}

/* Prevent tables from breaking layout */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* ==== MOBILE BREAKPOINT (≤768px) ==== */
@media (max-width: 768px) {

  /* Stack everything vertically */
  .container, .wrapper, .row, .flex-row {
    flex-direction: column;
  }

  /* Turn any horizontal navigation into a stacked list */
  nav ul, .menu, .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
  }

  /* Hide elements that are too heavy for mobile (optional) */
  .hide-mobile, .desktop-only {
    display: none !important;
  }

  /* Increase tap target sizes */
  a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }

  /* Give sections some breathing room */
  section, article, .section {
    padding: 2rem 1rem;
  }

  /* Force long words/URLs to break */
  p, a, li, span {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ==== OPTIONAL: Even smaller devices (≤480px) ==== */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 4.5vw, 1.75rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
}

/* Hide theme Recent Posts section on front page */
#front-page-recent-posts {
	    display: none !important;
}
}

/* === CLAUDE LAYOUT UPDATE === */
/* 1. Put Menu at the very top, HORIZONS OF LIGHT INC. centered below */
.branding-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
.branding-container .main-navigation {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}
.branding-container .site-branding {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.site-branding .custom-logo-link { margin: 0 auto !important; }
.site-title { text-align: center !important; }

/* Family photo header removed and white section hidden on all pages */
.entry-header {
    display: none !important;
}

/* 4. Statistics section background = same blue as top header */
.stats {
    background-color: #0062CA !important;
}
/* === CLAUDE LAYOUT UPDATE === */

/* === Site header: family photo background + fixed menu === */
/* Replace the blue header area with the family photo */
header#masthead, .site-header {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("https://horizonsoflight.org/wp-content/uploads/2026/06/madagascar-family-background.jpg") !important;
    background-size: cover !important;
    background-position: center 35% !important;
    background-repeat: no-repeat !important;
}

/* Ensure header text stays readable over the photo */
header#masthead .site-title a,
header#masthead .main-navigation a,
header#masthead .nav-menu a {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9) !important;
}

/* === Move logo and site title to top-left === */
/* Align logo + title to the top-left of the header */
.branding-container {
    align-items: flex-start !important;
}
.site-branding {
    align-items: flex-start !important;
    text-align: left !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
.site-branding .custom-logo-link {
    display: block !important;
    width: auto !important;
    text-align: left !important;
    align-self: flex-start !important;
    margin: 0 !important;
}
.site-branding .custom-logo {
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
.site-branding .site-title {
    text-align: left !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
}

/* Make header scroll with page so background image moves up and down (responsive on all devices) */
#masthead.site-header { position: relative !important; top: 0 !important; left: 0 !important; width: 100% !important; }
body { padding-top: 0 !important; }