/**
 * Theme Name: Learning Connections Hamilton
 * Description: Blocksy Child theme
 * Author: SlypigPro
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
    --lch-blue: #1a77bb; /*logo blue*/
    --lch-green: #39b34a; /* logo green*/

  --lch-darkblue: #004A83; 
  --lch-darkgreen: #016301; 
  --lch-lightgreen: #72FF59;
  --lch-hover: #FFE082;
  --lch-dark: #3e4756;
  --lch-black: #11141e;
  --lch-white: #f5f7fa; 

}



/* FONTS ****************************************************************************/

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Aptos';
  font-style: normal;
  src: url('fonts/Aptos.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Aptos-Bold';
  font-style: normal;
  src: url('fonts/Aptos-Bold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Global font override */
html, body,
button, input, select, textarea,

.site-title, .site-description,
.ct-menu-link, .ct-menu-item,
.ct-header, .ct-footer,
.widget, .widget-title,
.block-editor-block-list__layout,
.wp-block, .wp-block * {
    font-family: "Aptos", "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif !important;
    
}

h1, h2, h3, h4, h5, h6
 {
    font-family: "Aptos-Bold", "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif !important;
    
    
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
   
}

h2 {
    font-size: clamp(1.3rem, 3vw, 1.75rem) !important;
    
}

h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.4rem) !important;
    
}

.hero-section {
    background-color: var(--lch-darkgreen);
}

#menu-main > .menu-item > .ct-menu-link {
    font-weight: normal !important;
}

.entry-content {
    font-size: clamp(1rem, 0.9583rem + 0.1389vw, 1.125rem);
}



.entry-content hr {
    margin: 2.5rem 0 0 0;
    border: 0;
    border-top: 1px solid var(--lch-green);
}

hr + p, hr + div, hr+ h2, hr + h3 {
    margin: 2.5rem 0 2.5rem 0;
}

.entry-content a, .entry-content a:visited {
    color: var(--lch-blue);
   /* text-decoration: underline;*/
    
}

.entry-content a:hover:not(:has(img)):not(:has(.ghost-button)):not(.button):not(.news-button):not(.ghost-button) {
    text-decoration: none;
    background-color: var(--lch-blue);
    color: var(--lch-white);
    padding: 0.1em;
}

/* FIXES ****************************************************************************/

.home .entry-header {
  display: none;
}

.ct-container-full {
  margin: 0; padding:0 !important;
}

.home .hero-section {
    display:none;
  padding-top: 0 !important;
  padding-bottom : 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

/* Center every SiteOrigin Image widget container */
.widget_media_image
 {
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;        /* vertical center */
}




/* CONTACT ROW **********************************************************************/
.contact-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    font-family: "Aptos";
}

.contact-row > * {
    white-space: nowrap;
    color: white;
    text-decoration: none;
}

.contact-row a, .contact-row a:visited {
  color: var(--lch-white);
}

.contact-row a:hover {
  color: var(--lch-lightgreen) !important;
  background-color: transparent !important;
  padding:0 !important;
}

.contact-row .divider {
    width: 1px;
    height: 20px;
    background: white;
}

/* HERO *******************************************************************************************/

.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);

     min-height: clamp(400px, 50vw, 600px);
    background-image: url('https://lchamilton.ca/wp-content/uploads/2026/09/hero3.webp');
    background-size: cover;
    background-position: /*-400px 50%*/ center;
    background-repeat: no-repeat;
    

}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
   /* background: rgba(0,0,0,.45);*/
}


.hero-content {
    position: absolute;
    right: 10%;
    bottom: 10%;
    z-index: 2;
    max-width: 750px;
    color: var(--lch-white);
    text-align: left;
    background: rgba(0,0,0,.65);
    padding: 2rem;

    /* Fade only */
    opacity: 0;
    transition: opacity 1.0s ease;
}

.hero-content.visible {
    opacity: 1;
}


.hero-content h1 {
    color: var(--lch-green);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 0 0 .5rem;
    font-family: "Aptos-Bold";
}


.hero-content p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    margin: 0;
   
}

@media (max-width: 768px) {

    .hero-content {
        position: static;
        max-width: none;
        padding: 2rem;
        text-align: center;
    }
}

/* NEWS ************************************************************************************/

.home-news {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    
}

.news-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(17, 20, 30, 0.15);
}

.news-item:last-child {
    border-bottom: none;
}

.news-image {
    flex: 0 0 240px;
}

.news-image img {
    display: block;
    width: 100%;
     aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
   /* border: 2px solid var(--lch-green);*/
}

.news-content {
    flex: 1;
}

.news-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
}

.news-title a {
    color: var(--lch-blue);
    text-decoration: none;
    transition: color .3s ease;
}

.news-title a:hover {
    color: var(--lch-green);
}

.news-content p {
    color: var(--lch-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Read More Button */

.news-button {
    display: inline-block;
    padding: .85rem 1.75rem;
    border: 2px solid var(--lch-blue);
    color: var(--lch-blue);
    text-decoration: none;
    font-weight: normal;
    border-radius: 4px;
    transition: all .3s ease;
}

.news-button:hover {
    background: var(--lch-blue);
    color: var(--lch-white) !important;
    
}

.news-button:focus {
    outline: none;
}

/* Mobile */

@media (max-width: 768px) {

    .news-item {
        flex-direction: column;
        gap: 1.25rem;
    }

    .news-image {
        flex: none;
        width: 100%;
    }

    .news-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .news-button {
        width: 100%;
        text-align: center;
    }

}

/*fade in w/js*/

/*.news-item {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.news-item.in-view {
    opacity: 1;
    transform: translateY(0);
}*/

/* Respect users who prefer reduced motion */
/*@media (prefers-reduced-motion: reduce) {
    .news-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}*/

/* NEWSLETTER *******************************************************************************/

#newsletter {
  position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    min-height: 250px;

  background-color: var(--lch-darkblue);
  color: var(--lch-white) !important;
}

.newsletter-wrap {
  padding: 5% 25%;
  text-align: center;
}

.newsletter-content .so-widget-sow-editor,
.newsletter-content .siteorigin-widget-tinymce {
    width: 100%;
    
}

.newsletter-content p {
    margin: 0;
}

.join_newsletter {
  text-align: left;
  
}

.join_newsletter .join_title {
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  font-weight: 800;
 
}


    .join_newsletter .ghost-button,
    .join_newsletter .button {
        margin: 0 auto;
    }

    #newsletter .button,
#newsletter .ghost-button {
    color: var(--lch-white) !important;
}
#newsletter .button:hover,
#newsletter .ghost-button:hover {
    color: var(--lch-darkblue) !important; /* or whatever hover color you want */
}


    
/* Mobile only */
@media (max-width: 768px) {

    .newsletter-wrap {
        padding: 1.5rem;
    }

    .join_newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

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

    .join_newsletter .ghost-button,
    .join_newsletter .button {
        margin: 0 auto;
    }
}
/* GHOST BUTTON ****************************************************************************/

.ghost-button {
    display: inline-block;
    padding: 12px 28px;
    margin:1em 0;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: normal;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ghost-button:hover,
.ghost-button:focus {
    background: #fff;
    color: #000;
}

.ghost-button:active {
    transform: translateY(1px);
}

/* GOVERNMENT LOGOS *************************************************************************/

.gov {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;   
  gap: 1rem;
  width: 100%;
  background-color: rgb(245, 245, 245);
  padding:2em 1em;
  margin-top:3em;
}

.home .gov {
    margin-top:0em;
}

.gov img {
  flex: 0 0 auto;       
  height: auto;
  display: block;
}

.gov > div {
  flex-basis: 100%; 
  margin-top: -1.0rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: clamp(6px, 3vw, 14px);
}

/* INFOBOX ***************************************************************************/

.box {
    width: auto;
    border: 2px solid #000;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.info {
    background-color:#e4f8e4 ;
    border-color: var(--lch-darkgreen);
    color: var(--lch-black);
}

.box .info h3 {
    display: inline-block;
}

/* FORMS **************************************************************************************/

/*PAGE HEADERS ********************************************************************************/

.hero-section {
    position: relative;

    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background: var(--lch-darkgreen);
    color: var(--lch-white) !important;

    display: flex;
    align-items: center;

    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
     width: clamp(5px, 1.5vw, 20px);
    background: var(--lch-green);
}

.hero-section::before {
    left: 0;
}

.hero-section::after {
    right: 0;
}

.hero-section .entry-header {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;

    
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}


h1.entry-title {
    color: var(--lch-white);
margin: 0;
    line-height: 1.2;
}

/* FOOTER************************************************************************/

.ct-footer [data-row="top"] * {
    font-family: "Aptos", "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif !important;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem; /* space between icons */
}

/* 404 ****************************************************************************/

.ct-404-page {
            text-align: center;
            padding: 80px 20px;
        }

        .ct-404-code {
            font-size: 6rem;
            font-weight: 700;
           color: var(--lch-green);
            margin-bottom: 10px;
        }

        .ct-404-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .ct-404-text {
            font-size: clamp(1rem, 0.9583rem + 0.1389vw, 1.125rem);
            color: var(--lch-black);
            max-width: 500px;
            margin: 0 auto 30px;
            line-height: 1.6;
        }

        .ct-404-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .ct-404-btn {
            padding: 10px 22px;
            border-radius: 50px;
           font-size: clamp(1rem, 0.9583rem + 0.1389vw, 1.125rem);
            font-weight: 500;
            text-decoration: none;
            border: 1px solid transparent;
            transition: 0.2s ease;
            cursor: pointer;
        }

        .ct-404-btn-primary {
            background: #38bdf8;
            color: #0f172a;
            border-color: #38bdf8;
        }

        .ct-404-btn-primary:hover {
            background: #0ea5e9;
            border-color: #0ea5e9;
            color: var(--lch-white);
        }

        .ct-404-btn-secondary {
            background: var(--lch-black);
            color: var(--lch-white);
            border-color: var(--lch-black);
        }

        .ct-404-btn-secondary:hover {
            background:var(--lch-white);
            color: var(--lch-black)
        }
















