/*
Theme Name: Vanishing Age
Description: Custom mobile-first theme for Vanishing Age book series
Version: 2.1 - Mobile First with Curved Transitions
*/

/* Import Baloo 2 Font */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties - Your Colour Scheme */
:root {
    --blue: #32c3f2;
    --grey: #dddedf;
    --white: #ffffff;
    --black: #1e1f27;
    --light-grey: #f8f9fa;
}

/* Reset and Base Styles - MOBILE FIRST */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 2rem 0;
}

.grey-bg {
    background-color: var(--grey);
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', Arial, sans-serif;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.2;
}



h1 {
    font-size: 2rem;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

h3 {
    font-family: 'Baloo 2', Arial, sans-serif;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
    line-height: 1.5;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Header - Mobile First - ORIGINAL SIZE */
.site-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--black) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

/* Site title - responsive sizing */
.site-branding .site-title,
a.site-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    color: #eaeaea !important;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    display: block;
    margin-bottom: 0.15rem;
    text-align: center;
    line-height: 0.9;
}

.site-branding .site-title:hover,
.site-branding .site-title:focus,
a.site-title:hover,
a.site-title:focus {
    color: #ffffff !important;
    outline: 2px solid rgba(255,255,255,0.3);
    outline-offset: 2px;
}

/* Site description/subtitle - CLOSER TO TITLE */
.site-description {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: -1.2rem;
    margin-bottom: 0;
    color: #eaeaea !important;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Mobile fix for description positioning */
@media (max-width: 767px) {
    .site-description {
        margin-top: -0.5rem;
    }
     .book-overview {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
     .main-navigation ul {
        gap: 0.5rem; /* Reduce from 0.75rem */
     
    }
    
   
}

/* Vertical tablet adjustments for title wrapping */
@media (min-width: 481px) and (max-width: 767px) {
    .site-description {
        margin-top: -0.8rem;
        line-height: 1.1;
    }
}

/* Navigation - Mobile First */
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 0.1rem;
}

/* Navigation menu links - improved touch targets */
.main-navigation a {
    color: #cecece !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.2;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item a {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
    outline: 2px solid transparent;
}

/*NEW WP Navigation*/
/* Top-level menu - horizontal flex */
.main-navigation > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
    gap: 0.75rem;
}

/* Style links */
.main-navigation a {
    color: #cecece !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.2;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
    outline: 2px solid transparent;
}

/* Position parent li relative for dropdown positioning */
.main-navigation li {
    position: relative;
}

/* Submenu hidden by default */
.main-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222; /* Adjust as needed */
    padding: 0.5rem 0;
    list-style: none;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Show submenu on hover */
.main-navigation li:hover > ul.sub-menu,
.main-navigation li:focus-within > ul.sub-menu {
    display: block;
}

/* Submenu links */
.main-navigation ul.sub-menu li a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: #cecece;
}

.main-navigation ul.sub-menu li a:hover,
.main-navigation ul.sub-menu li a:focus {
    background-color: rgba(255,255,255,0.2);
    color: #fff !important;
}

/* Hero Section - Mobile First - LIGHTER BLUE OVERLAY */
.hero-section {
    background: linear-gradient(rgba(50, 195, 242, 0.25), rgba(30, 31, 39, 0.5)), 
                url('images/hero-background.jpg') 85% center/cover;
    min-height: 80vh !important; /* Increase height */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 5;
    margin-bottom: 0;
}

.hero-content {
    width: 100%;
    padding: 1.5rem;
    align-self: center; /* Change from flex-end to center */
    margin-top: 0;
    margin-bottom: 2rem; /* Add bottom margin to push content up from wave */
}

.hero-headline {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #eaeaea !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    line-height: 1.1;
}

.hero-subheading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    opacity: 0.95;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-pricing {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.7);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.current-price {
    color: #eaeaea;
    font-weight: 800;
    font-size: 2rem;
}

/* Wave Divider - FIXED TO SHOW PROPERLY */
/* Ensure wave shows properly */
.wave-divider {
    position: absolute !important;
    bottom: 0px !important;
    left: 0 !important;
    width: 100% !important;
    height: 150px !important; /* Increase height */
    display: block !important;
    z-index: 10 !important;
      
}

.wave-divider path {
    fill: #ffffff !important;
}

/* Buttons - Mobile First (Touch Friendly) */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    line-height: 1.2;
    text-align: center;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
     /* add centering */
    display: block;
     margin: 0 auto;
  width: fit-content;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--blue);
    color: var(--white);
}

/* Book Overview Section - FIXED TO WORK WITH WAVE */
.book-overview {
    background: var(--white);
    xpadding: 4rem 0; /* Normal padding */
    position: relative;
    z-index: 10; /* Lower than wave */
    margin-top: -66px; /* Pull up to sit under the wave */
    xpadding-top: 120px; /* Add top padding to push content below wave */
    overflow: visible; 
    xborder:2px solid red;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.book-cover {
    order: 2; /* Place below text on mobile */
    display: none; /* Hide on mobile by default */
}

.cover-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
     margin-top: 1rem;
}

.cover-image:hover,
.cover-image:focus {
    transform: scale(1.03);
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.book-description {
    order: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--black);
    position: relative;
    font-size: 1.75rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--blue);
    margin: 1rem auto;
}

/* Purchase Section - FIXED SPACING */
.purchase-section {
    background: var(--grey);
    padding: 5rem 0 4rem 0; /* More top padding, ensure bottom padding */
    position: relative;
    z-index: 4;
    margin-top: -20px; /* Reduced overlap so it doesn't cut off content above */
}

/* Mobile - reduce excessive padding */
@media (max-width: 768px) {
    .purchase-section {
        padding: 2.5rem 0 2rem 0; /* Reduced from 5rem/4rem to 2.5rem/2rem */
    }
}

x.purchase-section::before {
    content: '';
    position: absolute;
    top: 0px; /* Match reduced margin */
    left: 0;
    width: 100%;
    height: 20px; /* Match reduced margin */
    background: var(--grey);
    border-radius: 80px 80px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
   
}



.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    justify-content: center;
}

/* Tablet and up - but keep single column for now */
@media (min-width: 768px) {
    .purchase-options {
        flex-direction: column; /* Changed from row to column */
        max-width: 400px;       /* Reduced from 700px */
        gap: 1.5rem;           /* Reduced from 2rem */
    }
}

.format-option {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.format-option:hover {
    transform: translateY(-3px);
}
.format-info {
    text-align: center;
    xmargin-bottom: 2rem;
    margin:1rem;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}
.price-display {
    margin: 1.25rem 0;
    font-size: 1.25rem;
}

.purchase-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.2;
    text-align: center;
}

.purchase-button:hover,
.purchase-button:focus {
    background: var(--black);
    transform: translateY(-2px);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Testimonials - FIXED SPACING */
.testimonials {
    background: var(--white);
    padding: 4rem 0 5rem 0; /* More bottom padding to prevent cut-off */
    position: relative;
    z-index: 5;
    margin-top: -15px; /* Reduced overlap */
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -14px; /* Match reduced margin */
    left: 0;
    width: 100%;
    height: 15px; /* Match reduced margin */
    background: var(--white);
    border-radius: 70px 70px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.testimonial blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.testimonial cite {
    font-weight: 600;
    color: var(--blue);
    font-size: 0.9rem;
}

/* Author Bio - FIXED SPACING */
.author-bio {
    background: var(--grey);
    padding: 3rem 0 4rem 0; /* Reduced top padding */
    position: relative;
    z-index: 6;
    margin-top: -15px; /* Reduced overlap */
}

.author-bio::before {
    content: '';
    position: absolute;
    top: -14px; /* Match reduced margin */
    left: 0;
    width: 100%;
    height: 15px; /* Match reduced margin */
    background: var(--grey);
    border-radius: 70px 70px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
}

.author-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.author-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Email Signup - FIXED SPACING */
.email-signup {
    background: linear-gradient(135deg, var(--blue), var(--black));
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 7;
    margin-top: -15px; /* Reduced overlap to match others */
    padding: 4rem 0;
}

.email-signup::before {
    content: '';
    position: absolute;
    top: -14px; /* Match reduced margin */
    left: 0;
    width: 100%;
    height: 15px; /* Match reduced margin */
    background: linear-gradient(135deg, var(--blue), var(--black));
    border-radius: 70px 70px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
}

.email-signup .section-title {
    color: var(--white);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 2rem auto;
    align-items: center;
}

.signup-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    min-height: 44px;
}

.signup-form input[type="email"]:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.signup-success {
    color: var(--white);
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: inline-block;
}

/* Page Content - Mobile First */
.page-content {
    padding: 2rem 0;
}

.page-article {
    max-width: 100%;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-content-area {
    font-size: 1rem;
    line-height: 1.7;
}

/* Lightbox - Works on all devices */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: var(--blue);
    outline: 2px solid var(--white);
}

/* Footer - FIXED */
.site-footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 8;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Shortcode Styles - Mobile First */
.character-profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #32c3f2;
    text-align: center;
}

.character-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.character-image img:hover,
.character-image img:focus {
    transform: scale(1.03);
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

.character-info h3 {
    color: #1e1f27;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.roman-word-entry {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.word-image img {
    width: 100%;
    max-width: 150px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto;
}

.word-image img:hover,
.word-image img:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.roman-word {
    color: #32c3f2;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.word-definition {
    line-height: 1.6;
    color: #1e1f27;
}

/* TABLET STYLES - 768px and up */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
        padding: 0 20px;
        
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Header improvements */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .site-branding .site-title,
    a.site-title {
        font-size: 3rem !important;
    }

    .site-description {
        font-size: 1.3rem;
        margin-top: -1.2rem;
    }

    /* Navigation improvements */
    .main-navigation ul {
        gap: 1rem;
    }

    /* Hero improvements */
    .hero-section {
        background-position: 70% center;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheading {
        font-size: 1.3rem;
    }

    .current-price {
        font-size: 2.5rem;
    }

    /* Overview improvements - WIDER TEXT COLUMN */
    
    
    
    .overview-content {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 4rem;
        text-align: left;
        align-items: start;
    }

    .book-cover {
        order: 0;
        display: block; /* Show on tablet and larger */
    }

    .book-description {
        order: 0;
    }


    /* Testimonials improvements */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Email signup improvements */
    .signup-form {
        flex-direction: row;
        max-width: 500px;
    }

    .signup-form input[type="email"] {
        flex: 1;
        min-width: 250px;
    }

    /* Shortcode improvements */
    .character-profile {
        display: grid;
        grid-template-columns: 200px 1fr;
        text-align: left;
    }

    .roman-word-entry {
        display: grid;
        grid-template-columns: 150px 1fr;
        text-align: left;
    }
}

/* DESKTOP STYLES - 1024px and up */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .section-padding {
        padding: 3rem 0; /* FIXED - was padding: 0 */
    }

    .site-branding .site-title,
    a.site-title {
        font-size: 3.5rem !important;
    }

    .site-description {
        font-size: 1.5rem;
        margin-top: -1.2rem;
    }

    /* Hero desktop enhancements */
    .hero-section {
        min-height: 80vh;
        background-position: right center;
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-subheading {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 3rem;
    }

    /* Typography enhancements */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .author-text p {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    /* Navigation enhancements */
    .main-navigation ul {
        gap: 1rem; /*changed from 2 so menu fits with Gallery added*/
    }

    .main-navigation a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* Overview enhancements - EVEN WIDER ON DESKTOP */
    .overview-content {
        grid-template-columns: 280px 1fr;
        gap: 5rem;
    }

    .cover-image {
        max-width: 320px;
    }
}

/* LARGE DESKTOP - 1200px and up */
@media (min-width: 1200px) {
    .hero-headline {
        font-size: 4rem;
    }

    .hero-subheading {
        font-size: 1.6rem;
    }
}

/* Hamburger Menu CSS - Add to your style.css */

/* Hide hamburger by default (desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #cecece;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile navigation styles */
@media (max-width: 1150px) {
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Hide regular menu on mobile */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--blue) 0%, var(--black) 100%);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Show menu when active */
    .main-navigation.active {
        display: block;
    }
    
    /* Stack menu items vertically */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }
    
    .main-navigation a:hover {
        background-color: rgba(255,255,255,0.1);
        transform: none;
    }
    
    /* Adjust header layout for mobile */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        flex: 1;
    }
}

/* Author Bio Read More Button Styles */
.author-bio-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.read-more-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

.read-more-btn:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* Alternative button style - uncomment if you prefer */
/*
.read-more-btn {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.read-more-btn:hover {
    background-color: #333;
    color: #fff;
}
*/

/* Extra padding above h1 for pages */
body:not(.home) h1.page-title {
    padding-top: 40px; /* adjust as needed */
}


/* Increase horizontal padding on smaller screens for more breathing room */
@media (max-width: 768px) {
    body:not(.home) .page-content {
        padding-left: 1rem !important;
        padding-right: 1 rem !important;
    }
}

.wp-block-image img {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    xmargin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
}

.site-footer a {
  color: white;         /* Make footer links white */
  text-decoration: none; /* Optional: remove underline */
}

.site-footer a:hover {
  color: #32c3f2;       /* Optional: bright blue on hover */
}

/*MOVE PAGE TITLE UP*/
/* Example for screens up to 768px wide (common mobile breakpoint) */
@media (max-width: 768px) {
    body:not(.home) h1.page-title {
        padding-top: 0px;
    }
}

/* Optional: for very small phones, e.g., up to 480px */
@media (max-width: 480px) {
    body:not(.home) h1.page-title {
        padding-top: 0px; /* adjust further if needed */
    }
}

