/*
Theme Name: IPCP Custom Theme
Description: Clean custom WordPress theme for IPCP website
Version: 1.0.0
Author: IPCP
Text Domain: ipcp-theme
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #759F5B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5d7f46;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin: 0 0 20px 0;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#page {
    width: 100%;
    margin: 0 auto;
}

.content-wrapper {
    background: white;
    min-height: 70vh;
    padding-top: 0;
    width: 100%;
}

.content-container {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 20px;
}

#main {
    padding-top: 0;
}

/* ========================================
   HEADER
   ======================================== */

#masthead {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-logo-image {
    flex-shrink: 0;
}

#header-logo-image img {
    height: 67px;
    width: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #759F5B;
}

.main-navigation {
    margin-left: auto;
}

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

.main-navigation li {
    margin: 0 15px;
    position: relative;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #759F5B !important;
}

/* Dropdown menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column;
    z-index: 1000;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.main-navigation ul ul a:hover {
    background: #f8f8f8;
    color: #759F5B;
}

/* ========================================
   HOMEPAGE LAYOUT
   ======================================== */

.ipcp-homepage {
    width: 100%;
}

/* Hero Image */
.hero-container {
    width: 100%;
    margin-bottom: 18px;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    max-width: 1200px;
    margin: auto;
    display: block;
}

/* IPCP Description Section */
.ipcp-description-section {
    padding: 0;
    background: white;
}

.ipcp-description-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.ipcp-section-title {
    font-size: 16px;
    font-weight: 400;
    font-family: Roboto Slab, sans-serif;
    color: #333;
    margin: 0 30px;
    text-align: center;
}

.ipcp-dotted-line {
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #000,
        #000 4px,
        transparent 4px,
        transparent 8px
    );
    flex: 1;
}

.ipcp-description-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 25px 0;
    text-align: left;
}

.ipcp-objectives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ipcp-objectives li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding-left: 0;
}

.ipcp-objectives strong {
    color: #333;
    font-weight: 600;
}

/* Editable content styling */
.ipcp-editable-content {
    color: #555;
    line-height: 1.6;
}

.ipcp-editable-content p {
    font-size: 16px;
    margin: 0 0 20px 0;
    text-align: left;
}

.ipcp-editable-content ul,
.ipcp-editable-content ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ipcp-editable-content li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding-left: 0;
}

.ipcp-editable-content strong {
    color: #333;
    font-weight: 600;
}

.ipcp-editable-content h1,
.ipcp-editable-content h2,
.ipcp-editable-content h3,
.ipcp-editable-content h4,
.ipcp-editable-content h5,
.ipcp-editable-content h6 {
    color: #333;
    font-weight: 700;
    margin: 30px 0 15px 0;
}

.ipcp-editable-content a {
    color: #759F5B;
    text-decoration: none;
}

.ipcp-editable-content a:hover {
    color: #5d7f46;
    text-decoration: underline;
}

/* Featured Items and Recent News Sections */
.featured-items-section {
    padding: 0;
    background: white;
}

.recent-news-section {
    padding: 50px 0;
    background: white;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: 400;
    font-family: Roboto Slab, sans-serif;
    color: #333;
    margin: 0 30px;
    text-align: center;
}

/* Blurb Items for Homepage */
.ipcp-blurb-item {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ipcp-blurb-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.blurb-image {
    width: 100%;
}

.blurb-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blurb-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blurb-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.blurb-content h3 a {
    color: #333;
    text-decoration: none;
}

.blurb-content h3 a:hover {
    color: #759F5B;
    text-decoration: underline;
}

.blurb-read-more {
    margin: 0 0 15px 0;
}

.blurb-read-more a {
    color: #759F5B;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.blurb-read-more a:hover {
    text-decoration: underline;
}

.blurb-meta {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.blurb-meta time {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.blurb-categories {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.blurb-categories a {
    color: #759F5B;
    text-decoration: none;
}

.blurb-categories a:hover {
    text-decoration: underline;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

/* Homepage 4-column grid */
.ipcp-blurb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* News/Policy 2-column grid */
.news-grid,
.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Grid items */
.ipcp-blurb-item,
.news-item,
.policy-item {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ipcp-blurb-item:hover,
.news-item:hover,
.policy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Grid item images */
.ipcp-blurb-item img,
.news-item img,
.policy-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Grid item content */
.news-content,
.policy-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3,
.policy-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.news-content h3 a,
.policy-content h3 a {
    color: #333;
    text-decoration: none;
}

.news-content h3 a:hover,
.policy-content h3 a:hover {
    color: #759F5B;
    text-decoration: underline;
}

.news-content p,
.policy-content p {
    font-size: 14px;
    color: #555;
    margin: 0 0 15px 0;
    flex: 1;
}

/* Meta information */
.news-meta,
.policy-meta {
    margin-top: auto;
}

.read-more {
    color: #759F5B;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Date styling */
time {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.post-meta .date,
.post-meta .category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta a {
    color: #759F5B;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    margin: 30px 0 15px 0;
}

/* Post Navigation */
.post-navigation {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.post-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation li {
    flex: 1;
    max-width: 48%;
}

.post-navigation li.previous {
    text-align: left;
}

.post-navigation li.next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.post-navigation a:hover {
    background: #759F5B;
    color: white;
    border-color: #759F5B;
    transform: translateY(-1px);
}

.post-navigation .meta-nav {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.post-navigation a:hover .meta-nav {
    color: rgba(255,255,255,0.8);
}

.post-navigation .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* ========================================
   IMAGES
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: 0px;
}

/* Hero image should not have border radius */
.hero-image {
    border-radius: 0;
}

/* Grid item images should have border radius */
.ipcp-blurb-item img,
.news-item img,
.policy-item img {
    border-radius: 0;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.page-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5, .page-content h6 {
    margin: 30px 0 15px 0;
}

/* ========================================
   PAGE TITLE SECTION
   ======================================== */

.page-title-section {
    background: #f8f8f8;
    border-bottom: 1px solid #EAEAEA;
    padding: 20px 0;
    -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.05) inset;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05) inset;
    width: 100%;
    margin: 0;
}

.page-title-container {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title-main {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ========================================
   IPCP BOARD PAGE
   ======================================== */

/* Grid layout for board members */
.ipcp-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Individual board member container */
.board-member {
    text-align: center;
    background: transparent;
    padding: 0;
}

/* Style images within board members */
.board-member img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0 auto 30px auto !important;
    display: block !important;
}

/* Style headings within board members (names) */
.board-member h1,
.board-member h2,
.board-member h3,
.board-member h4 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Style paragraphs within board members */
.board-member p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 10px 0;
    text-align: left;
}

/* Style italic text (roles like Chair, Vice Chair, Treasurer) */
.board-member em,
.board-member i {
    font-style: italic;
    font-weight: 500;
    color: #666;
    display: block;
    text-align: center;
    margin: 5px 0 15px 0;
    font-size: 16px;
}

/* Style strong text within board members */
.board-member strong {
    font-weight: 600;
    color: #333;
}

/* Responsive design for board */
@media screen and (max-width: 900px) {
    .ipcp-board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    .ipcp-board-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .board-member img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* ========================================
   WOOCOMMERCE STYLES
   ======================================== */

/* WooCommerce layout structure */
.woocommerce .content-wrapper {
    width: 100%;
}

.woocommerce .content-container {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 15px;
}

/* Product info styling */
.woocommerce ul.products li.product .product-info {
    padding: 0 10px 10px 10px;
}

/* Product excerpt styling */
.woocommerce ul.products li.product .product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
    min-height: 40px;
}

/* Product actions styling */
.woocommerce ul.products li.product .product-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: block;
    width: 100%;
}

/* Add to cart button on new line */
.woocommerce ul.products li.product .button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Make checkout button match add to cart button - Multiple selectors for different WooCommerce versions */
.woocommerce .checkout-button,
.woocommerce a.checkout-button,
.woocommerce input.checkout-button,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce .wc-proceed-to-checkout a,
.woocommerce-cart .wc-proceed-to-checkout a,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .checkout-button,
.woocommerce .cart_totals .checkout-button,
.woocommerce .cart-collaterals .checkout-button,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .checkout-button {
    background: #759F5B !important;
    color: white !important;
    border: 1px solid #759F5B !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-shadow: none !important;
}

.woocommerce .checkout-button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce input.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a:hover,
.woocommerce-cart .wc-proceed-to-checkout a:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce .cart_totals .checkout-button:hover,
.woocommerce .cart-collaterals .checkout-button:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-page .checkout-button:hover {
    background: #5d7f46 !important;
    border-color: #5d7f46 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* WooCommerce Blocks - Checkout and Place Order button styling */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-components-button.wc-block-cart__submit-button,
.wp-element-button.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-element-button.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button {
    background: #759F5B !important;
    color: white !important;
    border: 1px solid #759F5B !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-shadow: none !important;
}

.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-components-button.wc-block-cart__submit-button:hover,
.wp-element-button.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-element-button.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
    background: #5d7f46 !important;
    border-color: #5d7f46 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* Center Place Order button text */
.wc-block-components-checkout-place-order-button,
.wp-element-button.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
}

.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button__text {
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
}

/* Center loading spinner in Place Order button */
.wc-block-components-checkout-place-order-button .wc-block-components-spinner,
.wc-block-components-checkout-place-order-button .components-spinner,
.wc-block-components-checkout-place-order-button .wc-block-components-loading-mask,
.wc-block-components-checkout-place-order-button [role="status"] {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
    justify-self: center !important;
    align-self: center !important;
}

/* Center any loading indicators in WooCommerce buttons */
.wc-block-components-button .wc-block-components-spinner,
.wc-block-components-button .components-spinner,
.woocommerce .button .wc-block-components-spinner,
.woocommerce .button .components-spinner,
.woocommerce ul.products li.product .button .wc-block-components-spinner,
.woocommerce ul.products li.product .button .components-spinner {
    margin: 0 auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}

/* Center Add to Cart button content and spinners */
.woocommerce ul.products li.product .button {
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    min-height: 44px !important; /* Ensure button has height for vertical centering */
}

/* Better vertical and horizontal centering for all WooCommerce button spinners */
.wc-block-components-button,
.woocommerce .button,
.woocommerce ul.products li.product .button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure spinner is absolutely centered */
.wc-block-components-button .wc-block-components-spinner,
.wc-block-components-button .components-spinner,
.woocommerce .button .wc-block-components-spinner,
.woocommerce .button .components-spinner,
.woocommerce ul.products li.product .button .wc-block-components-spinner,
.woocommerce ul.products li.product .button .components-spinner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: 600;
    color: #759F5B;
    margin: 10px 0;
}

/* Product buttons */
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #759F5B;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #5d7f46;
    color: white;
    text-decoration: none;
}

/* Single product page */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.woocommerce div.product .product_title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.woocommerce div.product .price {
    font-size: 24px;
    font-weight: 600;
    color: #759F5B;
    margin: 15px 0;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 20px 0;
}

/* Cart and checkout */
.woocommerce table.cart,
.woocommerce-checkout table.shop_table {
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    margin: 20px 0;
}

.woocommerce table.cart th,
.woocommerce-checkout table.shop_table th,
.woocommerce table.cart td,
.woocommerce-checkout table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.woocommerce table.cart th,
.woocommerce-checkout table.shop_table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

/* Forms */
.woocommerce .form-row {
    margin-bottom: 20px;
}

.woocommerce .form-row label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.woocommerce .form-row input.input-text,
.woocommerce .form-row textarea,
.woocommerce .form-row select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background: white;
}

.woocommerce .form-row input.input-text:focus,
.woocommerce .form-row textarea:focus,
.woocommerce .form-row select:focus {
    border-color: #759F5B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(117,159,91,0.1);
}

/* Notices */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #759F5B;
    background: #f0f5ec;
    color: #333;
}

.woocommerce .woocommerce-error {
    border-left-color: #e74c3c;
    background: #fdf2f2;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #759F5B;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #759F5B;
    color: white;
    border-color: #759F5B;
}

/* Responsive design for WooCommerce */
@media screen and (max-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .woocommerce ul.products li.product {
        padding: 15px;
    }
    
    .woocommerce ul.products li.product img {
        height: 180px;
    }
}

/* ========================================
   WOOCOMMERCE SHOP PAGE STYLES
   ======================================== */

/* Shop page specific styles */
.woocommerce-shop-main {
    padding: 20px 0;
}

/* No products found styling */
.woocommerce-no-products-found {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    margin: 20px 0;
}

.woocommerce-no-products-found h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.woocommerce-no-products-found p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Shop categories grid */
.shop-categories {
    margin-top: 30px;
}

.shop-categories h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.category-item a {
    color: #759F5B;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.category-item a:hover {
    color: #5d7f46;
}

.category-count {
    display: block;
    color: #999;
    font-size: 14px;
    margin-top: 5px;
}

/* WooCommerce notices and result count styling */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-result-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
}

/* Responsive shop page */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .woocommerce-no-products-found {
        padding: 30px 15px;
    }
    
    .woocommerce-no-products-found h2 {
        font-size: 20px;
    }
}

/* ========================================
   404 ERROR PAGE
   ======================================== */

.error-404-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.error-404-content h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 20px 0;
}

.error-404-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.error-404-search {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 0;
    margin: 30px 0;
}

.error-404-search h3,
.error-404-links h3,
.error-404-sidebar h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
}

.error-404-search form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.error-404-search input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.error-404-search input[type="submit"] {
    background: #759F5B;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-404-search input[type="submit"]:hover {
    background: #5d7f46;
}

.error-404-links {
    margin: 40px 0;
    text-align: left;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.error-404-links li {
    background: #f8f8f8;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid #759F5B;
    transition: all 0.3s ease;
}

.error-404-links li:hover {
    background: #f0f5ec;
    transform: translateX(5px);
}

.error-404-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.error-404-links a:hover {
    color: #759F5B;
}

.error-404-sidebar {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 0;
    margin: 40px 0;
    text-align: left;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.recent-posts-list a:hover {
    color: #759F5B;
}

.recent-posts-list time {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* Responsive 404 page */
@media screen and (max-width: 600px) {
    .error-404-search form {
        flex-direction: column;
    }
    
    .error-404-links ul {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========================================
   PAGE CONTENT (LEGACY)
   ======================================== */

.page-intro {
    margin-bottom: 40px;
    max-width: 800px;
}

.page-intro h1 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.page-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.page-intro a {
    color: #759F5B;
}

.page-intro a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER - MATCHING EXAMPLE IMAGE SIZES
   ======================================== */

#footer {
    background: #666666;
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.footer-organization {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.footer-contact-details {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.footer-contact-details a {
    color: #759F5B;
    text-decoration: none;
}

.footer-contact-details a:hover {
    color: #9bc178;
    text-decoration: underline;
}

.footer-membership {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.footer-membership a {
    color: #759F5B;
    text-decoration: none;
}

.footer-membership a:hover {
    color: #9bc178;
    text-decoration: underline;
}

.footer-social {
    margin: 0 0 20px 0;
}

.footer-social a {
    color: #759F5B;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #9bc178;
    text-decoration: underline;
}

.footer-copyright {
    color: #ffffff;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright a {
    color: #759F5B;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #9bc178;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN - SPACIOUS THEME PATTERN
   ======================================== */

/* Large Desktop */
@media screen and (max-width: 1308px) {
    #page {
        width: 97%;
    }
    .inner-wrap, .container {
        width: 94%;
    }
}

/* Medium to Large Screens */
@media screen and (max-width: 1200px) {
    .ipcp-blurb-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Desktop to Tablet Transition */
@media screen and (max-width: 1078px) {
    .ipcp-blurb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-grid,
    .policy-grid {
        gap: 20px;
    }
    
    /* Show mobile menu on tablet */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .header-inner {
        position: relative;
        justify-content: flex-start;
    }
    
    #header-logo-image {
        /* Logo stays on left */
    }
    
    .main-navigation {
        margin-left: 0;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        flex-direction: column;
        width: 100%;
        z-index: 1000;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        display: block;
        transition: background-color 0.3s ease;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        background-color: #759F5B;
        color: white !important;
    }
    
    /* Mobile content spacing */
    .content-wrapper {
        padding-top: 30px;
    }
    
    #main {
        padding-top: 0;
    }
}

/* Medium Screens */
@media screen and (max-width: 900px) {
    .news-grid,
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Main Tablet Breakpoint - Following Spacious Pattern */
@media screen and (max-width: 768px) {
    /* Mobile content spacing */
    .content-wrapper {
        padding-top: 40px;
    }
    
    #main {
        padding-top: 0;
    }
    
    .container {
        padding-top: 20px;
    }
    
    /* Grid layouts - Single column */
    .ipcp-blurb-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .news-grid,
    .policy-grid {
        margin-top: 30px;
    }
    
    /* Content areas */
    .single-post-container {
        padding: 30px 15px 15px;
        margin-top: 20px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-navigation li {
        max-width: 100%;
        text-align: left !important;
    }
    
    .page-intro {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    /* Footer responsive */
    #footer {
        padding: 30px 0 25px;
    }
    
    .footer-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .footer-organization {
        font-size: 15px;
    }
    
    .footer-contact-details,
    .footer-membership {
        font-size: 13px;
    }
    
    .footer-social a {
        font-size: 15px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* Small Tablet */
@media screen and (max-width: 767px) {
    .container, .inner-wrap {
        padding: 20px 15px 0;
    }
    
    .content-wrapper {
        padding-top: 40px;
    }
}

/* Large Mobile */
@media screen and (max-width: 600px) {
    .content-wrapper {
        padding-top: 40px;
    }
    
    #main {
        padding-top: 0;
    }
    
    .container {
        padding-top: 20px;
    }
    
    .news-item img,
    .policy-item img,
    .ipcp-blurb-item img {
        height: 180px;
    }
    
    .news-content,
    .policy-content {
        padding: 15px;
    }
    
    .ipcp-blurb-grid,
    .news-grid,
    .policy-grid {
        margin-top: 30px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    
    /* Footer mobile */
    #footer {
        padding: 25px 0 20px;
    }
    
    .footer-content h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .footer-organization {
        font-size: 14px;
    }
    
    .footer-contact-details,
    .footer-membership {
        font-size: 12px;
    }
    
    .footer-social a {
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

/* Small Mobile - Following Spacious Pattern */
@media only screen and (max-width: 420px) {
    #page {
        width: 97%;
    }
    .inner-wrap, .container {
        width: 95%;
        padding: 20px 10px 0;
    }
    
    .content-wrapper {
        padding-top: 40px;
    }
    
    .news-content,
    .policy-content {
        padding: 12px;
    }
    
    .post-navigation a {
        padding: 12px 15px;
    }
    
    .single-post-container {
        padding: 30px 10px 15px;
    }
    
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    
    /* Footer small mobile */
    .footer-content h2 {
        font-size: 18px;
    }
    
    .footer-organization {
        font-size: 13px;
    }
    
    .footer-contact-details,
    .footer-membership {
        font-size: 11px;
    }
    
    .footer-social a {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
}

/* ========================================
   ADMIN STYLES
   ======================================== */

.edit-link {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* Hide WordPress admin bar adjustments */
.admin-bar #masthead {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #masthead {
        margin-top: 46px;
    }
}

/* ========================================
   CUSTOM LAYOUT MODIFICATIONS
   ======================================== */

.featured-items-section > .container, .recent-news-section > .container {
    padding: 0;
}

.ipcp-blurb-grid, .ipcp-editable-content {
    padding: 0 20px;
}

.ipcp-description-section > .container {
    padding: 0;
}

.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Narrow content area for optimal reading */
.post-content {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
}

/* Post meta same width as content */
.post-meta {
    max-width: 700px;
    margin: 0 auto 15px auto;
    padding: 0 20px;
}

/* Remove all spacing between post meta and content */
.single-post-container article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.post-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing on paragraphs and headings */
.post-content p:first-child,
.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content img:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add padding-top to content-wrapper for custom pages without meta blocks */
.page-template-page-policy-briefs .content-wrapper,
.page-template-page-statements-sign-on .content-wrapper,
.page-template-page-webinars-workshops .content-wrapper,
.page-template-page-ipcp-board .content-wrapper,
.page-template-page-home-simple .content-wrapper,
.page-template-page-news .content-wrapper,
.page .content-wrapper:not(.single-post-container .content-wrapper) {
    padding-top: 30px;
}

/* Post images same width as text content */
.post-content img {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 30px auto;
    display: block;
}

@media (max-width: 768px) {
    .post-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .post-content img {
        width: 100%;
        margin: 30px 0;
    }
    
    .post-meta {
        padding: 0 20px;
    }
}

/* ========================================
   CATEGORY PAGE STYLES
   ======================================== */

.category-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 0 20px;
    font-size: 16px;
    color: #666;
}

.category-posts-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-post-item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    gap: 30px;
}

.category-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-post-image {
    flex-shrink: 0;
    width: 250px;
}

.category-post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-post-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.category-post-content h2 a {
    color: #333;
    text-decoration: none;
}

.category-post-content h2 a:hover {
    color: #759F5B;
}

.category-post-excerpt {
    flex: 1;
    margin-bottom: 15px;
}

.category-post-excerpt p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.category-post-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.category-post-meta i {
    margin-right: 5px;
    font-size: 12px;
}

.category-pagination {
    text-align: center;
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.category-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
    background: #759F5B;
    color: white;
    border-color: #759F5B;
}

.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-posts-found h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Responsive category page */
@media (max-width: 768px) {
    .category-post-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-post-image {
        width: 100%;
    }
    
    .category-post-image img {
        height: 200px;
    }
    
    .category-post-content h2 {
        font-size: 20px;
    }
    
    .category-posts-grid {
        padding: 0 15px;
    }
}

/* ========================================
   RESPONSIVE EMBEDDED VIDEOS
   ======================================== */

/* Responsive iframe container for YouTube and other embedded videos */
.post-content iframe,
.post-content embed,
.post-content object,
.post-content video {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    display: block;
}

/* Specific styling for YouTube embeds */
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"] {
    width: 100%;
    height: 400px;
    margin: 0 auto 30px auto;
    display: block;
    border: none;
}

/* Responsive video wrapper for maintaining aspect ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 0 30px 0;
}

.video-wrapper iframe,
.video-wrapper embed,
.video-wrapper object,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* WordPress embed blocks */
.wp-block-embed {
    margin: 30px 0;
}

.wp-block-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed.is-type-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .post-content iframe[src*="youtube.com"],
    .post-content iframe[src*="youtu.be"] {
        height: 250px;
    }
    
    .wp-block-embed iframe {
        height: 250px;
    }
}