/* Custom Gutenberg Block Styles */

/* Headings - Match custom block font weights and styling */
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif !important;
    color: #000000 !important;
}


/* H1 - Default styling */
.wp-block-heading h1,
h1 {
    font-size: 52px !important;
    font-weight: 500 !important; /* medium */
    line-height: 60px !important;
}

/* H2 - Default styling */
.wp-block-heading h2,
h2 {
    font-size: 38px !important;
    font-weight: 500 !important; /* medium */
    line-height: 46px !important;
}

/* H3 and other headings - Keep existing styling */
.wp-block-heading h3,
h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
}
.wp-block-heading h4,
h4 {
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

/* Paragraphs - Default styling */
.wp-block-paragraph,
p {
    font-family: 'Barlow', sans-serif !important;
    font-size: 16px !important;
    line-height: 26px !important;
    color: #000000 !important;
    font-weight: normal !important;
}

/* Lead paragraph styling */
.wp-block-paragraph.is-style-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

/* Images - Add rounded corners */
.wp-block-image img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    color: #666666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Image blocks with specific styling */
.wp-block-image.alignwide img {
    border-radius: 20px;
}

.wp-block-image.alignfull img {
    border-radius: 20px;
}

/* Lists */
.wp-block-list {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.wp-block-quote {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
    border-left: 4px solid #FABB00;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.wp-block-quote cite {
    font-weight: bold;
    font-style: normal;
    color: #666666;
}

/* Code blocks */
.wp-block-code {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
}

/* Tables */
.wp-block-table {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid #e5e5e5;
    padding: 0.75rem;
    text-align: left;
}

.wp-block-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Buttons */
.wp-block-button__link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid #FABB00;
    color: #FABB00;
    background-color: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #FABB00;
    color: #000000;
}

/* Columns */
.wp-block-columns {
    gap: 2rem;
}

.wp-block-column {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

/* Group blocks */
.wp-block-group {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

/* Cover blocks */
.wp-block-cover {
    border-radius: 0.5rem;
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
    font-family: 'Barlow', sans-serif;
    color: #000000;
}

/* Media & Text blocks */
.wp-block-media-text {
    border-radius: 0.5rem;
    overflow: hidden;
}

.wp-block-media-text .wp-block-media-text__content {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

/* Gallery blocks */
.wp-block-gallery {
    gap: 1rem;
}

.wp-block-gallery .wp-block-image {
    border-radius: 20px;
    overflow: hidden;
}

/* Separator */
.wp-block-separator {
    border: none;
    height: 2px;
    background-color: #FABB00;
    margin: 2rem 0;
}

/* Spacer */
.wp-block-spacer {
    clear: both;
}

/* YouTube Embed - Full width with 485px height */
.wp-block-embed-youtube {
    width: 100% !important;
    max-width: 100% !important;
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 485px !important;
    border-radius: 20px;
    overflow: hidden;
}

.wp-block-embed-youtube iframe {
    width: 100% !important;
    height: 485px !important;
    border-radius: 20px;
}

/* Editor specific styles */
.editor-styles-wrapper {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
}

/* Custom block styles for editor */
.wp-block[data-type="core/paragraph"] {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    line-height: 1.6;
}

.wp-block[data-type="core/heading"] {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
}

/* Custom Block Styles */
.wp-block-paragraph.is-style-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #000000;
}

.wp-block-heading.is-style-highlight {
    background-color: #FABB00;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.wp-block-image.is-style-rounded img {
    border-radius: 0.75rem;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid #FABB00;
    color: #FABB00;
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #FABB00;
    color: #000000;
}

.wp-block-quote.is-style-highlighted {
    background-color: #f8f9fa;
    border-left: 4px solid #FABB00;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Override black color for elements inside text-white containers (e.g., general-hero block) */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: #ffffff !important;
}

.text-white p {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Titles only — smaller on mobile; must use !important to override desktop h1/h2 */
    .wp-block-heading h1,
    h1 {
        font-size: 36px !important;
        line-height: 44px !important;
    }

    .wp-block-heading h2,
    h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .wp-block-heading h3,
    h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .wp-block-heading h4,
    h4 {
        font-size: 20px;
        line-height: 26px;
    }
    
    .wp-block-paragraph {
        font-size: 0.9rem;
    }
    
    .wp-block-paragraph.is-style-lead {
        font-size: 1rem;
    }
    
    .wp-block-heading.is-style-highlight {
        padding: 0.25rem 0.75rem;
        font-size: 1.25rem;
    }
}


