/*
Theme Name: Lawrence Programs
Theme URI: https://www.lawrencehallofscience.org/
Author: Lawrence Hall of Science
Author URI: https://www.lawrencehallofscience.org/
Description: A WordPress theme for Lawrence Hall of Science programs
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lawrence-programs
*/

/* Font Definitions */
@font-face {
    font-family: 'Sharp Sans';
    font-style: normal;
    font-weight: 700;
    src: url("fonts/SharpSans-Bold.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: italic;
    font-weight: 700;
    src: url("fonts/SharpSans-BoldItalic.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: normal;
    font-weight: 600;
    src: url("fonts/SharpSans-Semibold.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: italic;
    font-weight: 600;
    src: url("fonts/SharpSans-SemiboldItalic.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: normal;
    font-weight: 500;
    src: url("fonts/SharpSans-Medium.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: italic;
    font-weight: 500;
    src: url("fonts/SharpSans-MediumItalic.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    font-style: normal;
    font-weight: 300;
    src: url("fonts/SharpSans-Book.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Pitch';
    font-style: normal;
    font-weight: 700;
    src: url("fonts/Pitch-Bold.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Pitch';
    font-style: normal;
    font-weight: 600;
    src: url("fonts/Pitch-Semibold.woff2") format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Pitch';
    font-style: normal;
    font-weight: 500;
    src: url("fonts/Pitch-Medium.woff2") format('woff2');
    font-display: swap;
}

/* Typography Variables */
:root {
    /* Typography */
    --font-family-sans: 'Sharp Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-family-serif: 'Pitch', Georgia, serif;
    --font-weight-normal: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Brand Colors */
    --color-orlando: #078572;
    --color-flare: #ff543f;
    --color-orbit: #0030cc;
    --color-ultraviolet: #debdea;
    --color-helios: #ffce00;
    --color-bay: #9bdad9;
    --color-fog: #e6e7e8;
    --color-asteroid: #757575;
    
    /* Base Colors */
    --color-white: #fff;
    --color-black: #2C2C2C;
    --color-lightgray: #f4f2f2;
    
    /* Secondary Colors */
    --color-paleblue: #CDECEC;
    --color-cosmicpurple: #54308F;
    --color-martian: #CBE086;
    --color-semiviolet: #EEDEF4;
    
    /* Theme Colors */
    --primary-color: var(--color-orbit);
    --paragraph-color: var(--color-black);
    --header-color: var(--color-orbit);
    --button-color: var(--color-orbit);
    --breadcrumb-color: var(--color-asteroid);
    --contrast-color: var(--color-white);
    --background-color: var(--color-white);
    --caption-color: var(--color-black);
    --secondary-color: var(--color-white);
}

body {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-normal);
    color: var(--color-black);
    margin: 0;
    padding: 0;
}

/* Block editor color classes - for front-end display */
.has-orbit-color { color: var(--color-orbit); }
.has-orlando-color { color: var(--color-orlando); }
.has-flare-color { color: var(--color-flare); }
.has-ultraviolet-color { color: var(--color-ultraviolet); }
.has-helios-color { color: var(--color-helios); }
.has-bay-color { color: var(--color-bay); }
.has-fog-color { color: var(--color-fog); }
.has-asteroid-color { color: var(--color-asteroid); }
.has-white-color { color: var(--color-white); }
.has-black-color { color: var(--color-black); }
.has-lightgray-color { color: var(--color-lightgray); }
.has-paleblue-color { color: var(--color-paleblue); }
.has-cosmicpurple-color { color: var(--color-cosmicpurple); }
.has-martian-color { color: var(--color-martian); }
.has-semiviolet-color { color: var(--color-semiviolet); }

.has-orbit-background-color { background-color: var(--color-orbit); }
.has-orlando-background-color { background-color: var(--color-orlando); }
.has-flare-background-color { background-color: var(--color-flare); }
.has-ultraviolet-background-color { background-color: var(--color-ultraviolet); }
.has-helios-background-color { background-color: var(--color-helios); }
.has-bay-background-color { background-color: var(--color-bay); }
.has-fog-background-color { background-color: var(--color-fog); }
.has-asteroid-background-color { background-color: var(--color-asteroid); }
.has-white-background-color { background-color: var(--color-white); }
.has-black-background-color { background-color: var(--color-black); }
.has-lightgray-background-color { background-color: var(--color-lightgray); }
.has-paleblue-background-color { background-color: var(--color-paleblue); }
.has-cosmicpurple-background-color { background-color: var(--color-cosmicpurple); }
.has-martian-background-color { background-color: var(--color-martian); }
.has-semiviolet-background-color { background-color: var(--color-semiviolet); }

/* Block Style Variations */

/* Button Styles */
/* Default button style */
.wp-block-button__link,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 2px solid var(--color-orlando);
    border-radius: 0;
    background-color: var(--color-white);
    color: var(--color-orlando);
    text-transform: uppercase;
    cursor: pointer;
    padding: 1.3rem;
    text-decoration: none;
    width: auto;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1;
}

.wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-orlando);
    color: var(--color-white);
    text-decoration: none;
}

.wp-block-button__link:focus,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    outline: 2px solid var(--color-orlando);
    outline-offset: 2px;
}

/* Fixed-width buttons */
.wp-block-button.is-style-fixed-width .wp-block-button__link {
    min-width: 200px;
    text-align: center;
}

/* Alternative button styles */
.wp-block-button.is-style-lawrence-orbit .wp-block-button__link {
    border-color: var(--color-orbit);
    color: var(--color-orbit);
}

.wp-block-button.is-style-lawrence-orbit .wp-block-button__link:hover {
    background-color: var(--color-orbit);
    color: var(--color-white);
    text-decoration: none;
}

.wp-block-button.is-style-lawrence-orlando .wp-block-button__link {
    border-color: var(--color-orlando);
    color: var(--color-orlando);
}

.wp-block-button.is-style-lawrence-orlando .wp-block-button__link:hover {
    background-color: var(--color-orlando);
    color: var(--color-white);
    text-decoration: none;
}

.wp-block-button.is-style-lawrence-flare .wp-block-button__link {
    border-color: var(--color-flare);
    color: var(--color-flare);
}

.wp-block-button.is-style-lawrence-flare .wp-block-button__link:hover {
    background-color: var(--color-flare);
    color: var(--color-white);
    text-decoration: none;
}

/* Quote Styles */
.wp-block-quote.is-style-lawrence-orbit-quote {
    border-left: 4px solid var(--color-orbit);
    padding-left: 20px;
    font-style: italic;
}

.wp-block-quote.is-style-lawrence-orbit-quote cite {
    font-style: normal;
    color: var(--color-orbit);
    font-weight: var(--font-weight-medium);
}

.wp-block-quote.is-style-lawrence-orlando-quote {
    border-left: 4px solid var(--color-orlando);
    padding-left: 20px;
    font-style: italic;
}

.wp-block-quote.is-style-lawrence-orlando-quote cite {
    font-style: normal;
    color: var(--color-orlando);
    font-weight: var(--font-weight-medium);
}

/* Group/Card Styles */
.wp-block-group.is-style-lawrence-orbit-card {
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-orbit);
    background-color: var(--color-white);
}

.wp-block-group.is-style-lawrence-orlando-card {
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-orlando);
    background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
}

/* Monospace/code elements use Pitch font */
code, pre, kbd, tt, var {
    font-family: var(--font-family-serif);
    font-size: 0.9em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation Styles */
.site-header {
    border-bottom: 1px solid #eee;
    /* Background color set inline in header.php */
}

/* Text color variations - Light text (white) for dark backgrounds */
.site-header-light-text {
    color: white;
}

.site-header-light-text .site-title a,
.site-header-light-text .site-description,
.site-header-light-text .site-title-text,
.site-header-light-text .main-navigation a {
    color: white;
}

.site-header-light-text .main-navigation .current-menu-item > a,
.site-header-light-text .main-navigation .current_page_item > a {
    border-bottom: 2px solid white;
}

/* Dark text (black) for light backgrounds */
.site-header-dark-text {
    color: #2C2C2C; /* Black text */
    border-bottom: 2px solid #f0f0f0;
}

.site-header-dark-text .site-title a,
.site-header-dark-text .site-description,
.site-header-dark-text .site-title-text,
.site-header-dark-text .main-navigation a {
    color: #2C2C2C; /* Black text */
}

.site-header-dark-text .main-navigation .current-menu-item > a,
.site-header-dark-text .main-navigation .current_page_item > a {
    border-bottom: 2px solid #2C2C2C;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px; /* Increased container width for larger logo */
}

/* Header Layout */
.header-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.left-column {
    flex: 0 0 auto;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-left: 20px;
}

.site-logo {
    max-width: 350px;
}

.site-logo img.custom-logo {
    max-height: 150px;
    width: auto;
    display: block;
}

.site-title-text {
    color: white;
    font-size: 2.25rem; /* Half as big: from 4.5rem to 2.25rem */
    font-weight: var(--font-weight-semibold);
    text-align: right;
    margin-bottom: 10px;
    margin-top: 10px;
    line-height: 1.2; /* Added to improve readability with larger text */
}

.site-title a, 
.site-description {
    color: white;
}

.site-title {
    font-weight: 600;
    margin: 0;
}

.site-description {
    margin-top: 5px;
    opacity: 0.9;
}

/* Main Navigation */
.main-navigation {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-medium);
    font-size: 20px;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    margin-bottom: 10px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
    margin-right: 20px;
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 200px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    flex-direction: column;
}

/* Handle right side alignment for dropdowns that would overflow */
.main-navigation ul > li:last-child > ul,
.main-navigation ul > li:nth-last-child(2) > ul,
.main-navigation ul > li:nth-last-child(3) > ul {
    left: auto;
    right: 0;
}

/* Handle nested submenus positioning */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin-top: -10px; /* Adjust for parent padding */
}

/* Prevent nested submenus from going off-screen on the right side */
.main-navigation ul > li:last-child > ul ul,
.main-navigation ul > li:nth-last-child(2) > ul ul,
.main-navigation ul > li:nth-last-child(3) > ul ul,
.main-navigation ul ul li:last-child > ul,
.main-navigation ul ul li:nth-last-child(2) > ul,
.main-navigation ul ul.is-overflowing {
    left: auto;
    right: 100%;
}

/* Dynamically handle viewport overflow detected by JavaScript */
.main-navigation ul ul.is-overflowing {
    right: 0;
}

/* Style submenu items */
.main-navigation ul ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul a {
    padding: 10px 20px;
    font-size: 16px;
    color: #2C2C2C !important; /* Always black for dropdown items */
    transition: background-color 0.3s;
    white-space: nowrap;
}

/* Make sure text in dropdown is always readable */
.site-header-light-text .main-navigation ul ul a,
.site-header-dark-text .main-navigation ul ul a {
    color: #2C2C2C !important; /* Always black for dropdown items */
}

.main-navigation ul ul a:hover {
    background-color: #f8f8f8;
    opacity: 1;
}

/* Add dropdown indicator arrow */
.main-navigation .menu-item-has-children > a {
    position: relative;
    padding-right: 20px;
}

/* Top level dropdown indicators */
.main-navigation .menu-item-has-children > a:after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Dropdown active state */
.main-navigation .menu-item-has-children.active > a:after {
    content: "▴";
}

/* Submenu dropdown indicators (point right) */
.main-navigation ul ul .menu-item-has-children > a:after {
    content: "▸";
    right: 10px;
}

/* Submenu dropdown active state */
.main-navigation ul ul .menu-item-has-children.active > a:after {
    content: "▾";
}

/* Right-aligned submenu dropdown indicators (point left) */
.main-navigation ul > li:last-child > ul .menu-item-has-children > a:after,
.main-navigation ul > li:nth-last-child(2) > ul .menu-item-has-children > a:after,
.main-navigation ul > li:nth-last-child(3) > ul .menu-item-has-children > a:after,
.main-navigation ul ul.is-overflowing .menu-item-has-children > a:after {
    content: "◂";
    right: 10px;
}

/* Right-aligned submenu dropdown active state */
.main-navigation ul > li:last-child > ul .menu-item-has-children.active > a:after,
.main-navigation ul > li:nth-last-child(2) > ul .menu-item-has-children.active > a:after,
.main-navigation ul > li:nth-last-child(3) > ul .menu-item-has-children.active > a:after,
.main-navigation ul ul.is-overflowing .menu-item-has-children.active > a:after {
    content: "▾";
}

/* Main level style */
.main-navigation > div > ul > li {
    display: inline-block;
}

.main-navigation a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    border-bottom: 2px solid white;
}

/* White header submenu adjustments */
.site-header-white .main-navigation ul ul a {
    color: #2C2C2C !important;
}

/* Mobile Navigation Toggle */
@media screen and (max-width: 768px) {
    .header-layout {
        flex-direction: column;
    }
    
    .left-column, .right-column {
        width: 100%;
        align-items: center;
    }
    
    .right-column {
        padding-left: 0;
        margin-top: 15px;
    }
    
    .site-title-text {
        text-align: center;
        margin: 15px 0;
        font-size: 1.5rem; /* Half as big: from 3rem to 1.5rem */
    }
    
    /* Mobile Menu Dropdown Adjustments */
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Position dropdowns differently on mobile */
    .main-navigation ul ul {
        position: relative;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 20px;
        margin-top: 5px;
        background-color: transparent;
    }
    
    /* Remove border on mobile submenus */
    .main-navigation ul ul li {
        border-bottom: none;
    }
    
    /* Style submenu items on mobile */
    .main-navigation ul ul a {
        padding: 8px 0;
        color: inherit !important; /* Match parent color */
    }
    
    /* Mobile submenu text should match parent header text color */
    .site-header-light-text .main-navigation ul ul a {
        color: white !important;
    }
    
    .site-header-dark-text .main-navigation ul ul a {
        color: #2C2C2C !important;
    }
    
    .site-header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .site-logo {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 300px;
    }
    
    .site-logo img.custom-logo {
        max-height: 200px;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
        align-self: center;
    }
    
    /* Mobile menu dropdown arrow positioning */
    .main-navigation .menu-item-has-children > a:after {
        right: -15px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .site-logo {
        max-width: 220px;
    }
    
    .site-logo img.custom-logo {
        max-height: 150px;
    }
    
    .site-title-text {
        font-size: 1.25rem; /* Half as big: from 2.5rem to 1.25rem */
    }
}

/* Footer Styles */
.partner-footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 30px;
}

.footer-widget-area {
    min-width: 200px;
}

.footer-widget-area.footer-col1 {
    grid-column: 1;
}

.footer-widget-area.footer-col2 {
    grid-column: 2;
}

.footer-widget-area.footer-col3 {
    grid-column: 3;
}

.footer-widget-area.footer-col4 {
    grid-column: 4;
}

.footer-widget-area .widget {
    margin-bottom: 20px;
}

.footer-widget-area .widget-title {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-semibold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #078572; /* Lawrence green */
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area li {
    margin-bottom: 8px;
}

.footer-widget-area a {
    color: #555;
    text-decoration: none;
}

.footer-widget-area a:hover {
    text-decoration: underline;
}

/* Footer logo styling */
.footer-widget-area img.footer-logo-img {
    max-width: 200px;
    height: auto;
}

/* Main Lawrence Footer */
.site-footer {
    padding: 40px 0;
    background-color: var(--color-orbit);
    color: white;
    font-family: var(--font-family-sans);
}

.site-footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Footer content from Lawrence site */
.site-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 30px;
    padding: 40px 20px;
}

/* Special styling for the reduced footer version */
.site-footer-reduced {
    display: block !important; /* Override the grid display */
    padding: 40px 20px;
}

.site-footer-reduced .reduced-footer {
    width: 100%;
}

/* Logo (first widget) */
.site-footer #block-2 {
    grid-column: 1;
    grid-row: 1;
}

.site-footer #block-2 img {
    max-width: 200px;
    height: auto;
}

/* Hours (second widget) */
.site-footer #text-6 {
    grid-column: 2;
    grid-row: 1;
}

/* Location (third widget) */
.site-footer #text-7 {
    grid-column: 3;
    grid-row: 1;
}

/* Navigation (fourth widget) */
.site-footer #text-8 {
    grid-column: 4;
    grid-row: 1;
}

/* Social icons (fifth widget) */
.site-footer #block-6 {
    grid-column: 1;
    grid-row: 2;
}

/* Copyright and privacy (sixth widget) */
.site-footer #block-7 {
    grid-column: 2 / span 3;
    grid-row: 2;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.site-footer #block-7 p {
    margin: 0 15px 0 0;
}

/* Typography in footer */
.site-footer .widget-title,
.site-footer h6 {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: white;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

/* Social media icons */
.social-share-icons {
    display: flex;
    gap: 15px;
}

.social-share-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
}

.facebook-icon-footer,
.twitter-icon-footer,
.instagram-icon-footer,
.youtube-icon-footer,
.linkedin-icon-footer {
    width: 40px;
    height: 40px;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.facebook-icon-footer {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="%232C2C2C" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"/></svg>');
}

.twitter-icon-footer {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%232C2C2C" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>');
}

.instagram-icon-footer {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%232C2C2C" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg>');
}

.youtube-icon-footer {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%232C2C2C" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></svg>');
}

.linkedin-icon-footer {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%232C2C2C" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"/></svg>');
}

/* Bottom footer fallback with copyright and links */
.footer-bottom {
    display: grid;
    grid-template-columns: 2fr 2fr;
    align-items: center;
}

.footer-copyright {
    grid-column: 1;
}

.footer-links {
    grid-column: 2;
    text-align: right;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links li {
    margin-left: 20px;
}

/* Reduced footer styling */
.reduced-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.reduced-footer .footer-copyright,
.reduced-footer .footer-links {
    width: 100%;
    text-align: center;
    grid-column: unset;
}

.reduced-footer .footer-copyright {
    margin-bottom: 15px;
}

.reduced-footer .footer-links ul {
    justify-content: center;
}

.reduced-footer .footer-links li {
    margin: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    /* Partner footer adjustments */
    .footer-widgets-inner {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-widget-area.footer-col1 {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-widget-area.footer-col2 {
        grid-column: 2;
        grid-row: 1;
    }
    
    .footer-widget-area.footer-col3 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-widget-area.footer-col4 {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Lawrence footer adjustments */
    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
    
    .site-footer #block-2 {
        grid-column: 1;
        grid-row: 1;
    }
    
    .site-footer #text-6 {
        grid-column: 2;
        grid-row: 1;
    }
    
    .site-footer #text-7 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .site-footer #text-8 {
        grid-column: 2;
        grid-row: 2;
    }
    
    .site-footer #block-6 {
        grid-column: 1;
        grid-row: 3;
    }
    
    .site-footer #block-7 {
        grid-column: 2;
        grid-row: 3;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer #block-7 p {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    /* Partner footer adjustments */
    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }
    
    .footer-widget-area.footer-col1,
    .footer-widget-area.footer-col2,
    .footer-widget-area.footer-col3,
    .footer-widget-area.footer-col4 {
        grid-column: 1;
    }
    
    .footer-widget-area.footer-col1 {
        grid-row: 1;
    }
    
    .footer-widget-area.footer-col2 {
        grid-row: 2;
    }
    
    .footer-widget-area.footer-col3 {
        grid-row: 3;
    }
    
    .footer-widget-area.footer-col4 {
        grid-row: 4;
    }
    
    /* Lawrence footer adjustments */
    .site-footer {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .site-footer #block-2,
    .site-footer #text-6,
    .site-footer #text-7,
    .site-footer #text-8,
    .site-footer #block-6,
    .site-footer #block-7 {
        grid-column: 1;
    }
    
    .site-footer #block-2 {
        grid-row: 1;
        text-align: center;
    }
    
    .site-footer #block-2 img {
        margin: 0 auto 20px;
    }
    
    .site-footer #text-6 {
        grid-row: 2;
    }
    
    .site-footer #text-7 {
        grid-row: 3;
    }
    
    .site-footer #text-8 {
        grid-row: 4;
    }
    
    .site-footer #block-6 {
        grid-row: 5;
        justify-content: center;
    }
    
    .social-share-icons {
        justify-content: center;
        margin: 20px 0;
    }
    
    .site-footer #block-7 {
        grid-row: 6;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-footer #block-7 p {
        margin: 5px 0;
    }
    
    /* Fallback footer adjustments */
    .footer-bottom {
        grid-template-columns: 1fr;
    }
    
    .footer-copyright {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-links {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }
    
    .footer-links ul:not(.reduced-footer .footer-links ul) {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li:not(.reduced-footer .footer-links li) {
        margin: 0 0 10px 0;
    }
    
    /* Keep reduced footer links horizontal on mobile */
    .reduced-footer .footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .reduced-footer .footer-links li {
        margin: 0 10px 10px 10px;
    }
}
