/* Hero Message Block Styles */

.nationalcement-hero-message .bg-hero { 
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* Action Link hover effects */
.nationalcement-hero-message .action-link {
    transition: all 0.3s ease;
}

.nationalcement-hero-message .action-link:hover {
    transform: translateY(-2px);
}

/* Quotes styling */
.nationalcement-hero-message .quotes {
    position: relative;
    display: inline-block;
}

.nationalcement-hero-message .quotes::before {
    content: "”";
    font-size: 2.5rem;
    color: #c81431;
    position: absolute;
    top: -1.5rem;
    left: 0;
}

.nationalcement-hero-message .quotes::after {
    content: "”";
    font-size: 2.5rem;
    color: #c81431;
    position: absolute;
    bottom: -1.5rem;
    right: 0;
}

/* RTL support */
.nationalcement-hero-message .rtl .quotes::before {
    content: "”";
    left: auto;
    right: 0;
    direction: rtl;
}

.nationalcement-hero-message .rtl .quotes::after {
    content: "”";
    right: auto;
    left: 0;
    direction: rtl;
}

/* Figure Photo styling */
.nationalcement-hero-message .figure-photo {
    position: relative;
    max-width: 100%;
}

/* Editor Placeholder styling */
.nationalcement-hero-message .editor-placeholder {
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nationalcement-hero-message .editor-placeholder h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Editor styles */
.editor-view .hero-section {
    position: relative;
    min-height: 400px;
    padding: 40px;
    background-size: cover;
    background-position: center;
}

.editor-view .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}

.editor-view .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.editor-view .hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.editor-view .hero-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.editor-view .cta-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.editor-view .cta-button {
    background-color: #ffffff;
    color: #c81431;
    border: 1px solid #c81431;
}

.editor-view .cta-button.secondary {
    background-color: #c81431;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.editor-view .cta-button.tertiary {
    background-color: #1a202c;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.editor-view .cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.editor-view .message-section {
    position: relative;
    background: white;
    padding: 20px;
    margin-top: -40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.editor-view .message-content {
    flex: 2;
}

.editor-view .message-text {
    font-style: italic;
    margin-bottom: 10px;
}

.editor-view .author-name {
    font-weight: bold;
}

.editor-view .author-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor-view .author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Image button styles */
.editor-view .image-button {
    background: none;
    padding: 0;
    border: none;
}

.editor-view .image-button img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.components-button--fullwidth {
    width: 100%;
    justify-content: center;
}

/* Editor Styles for Hero Message Block */

/* Main container for the editor view */
.nationalcement-hero-message.editor-view {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Block editor preview container */
.block-editor-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    color: #1e1e1e;
}

/* Preview section labels */
.preview-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #1e1e1e;
}

/* Hero Section Preview */
.hero-preview {
    position: relative;
    padding: 30px;
    border-radius: 5px;
    overflow: hidden;
    color: white;
    min-height: 300px;
}

.hero-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-preview-content {
    position: relative;
    z-index: 2;
}

.hero-title-preview {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.hero-subtitle-preview {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 5px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Button Previews */
.buttons-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.button-preview {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.button-preview.primary {
    background-color: white;
    color: #c81431;
    border: 1px solid #c81431;
}

.button-preview.secondary {
    background-color: #c81431;
    color: white;
    border: 1px solid white;
}

.button-preview.tertiary {
    background-color: #1a202c;
    color: white;
    border: 1px solid white;
}

.button-preview.message {
    background-color: white;
    color: #c81431;
    border: 1px solid #c81431;
    font-size: 12px;
}

/* Message Section Preview */
.message-preview {
    background-color: white;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-preview-content {
    position: relative;
}

.director-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.director-image-preview {
    position: relative;
    width: 150px;
    height: 180px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.director-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
    background-color: #c81431;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.director-info {
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 80%;
    background-color: #1a202c;
    color: white;
    padding: 8px 12px;
}

.director-name {
    font-weight: bold;
    font-size: 12px;
}

.director-role {
    font-size: 10px;
    opacity: 0.8;
}

.message-header-preview {
    flex: 1;
}

.message-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    padding: 5px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.message-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.message-content-preview {
    margin-top: 20px;
}

.message-text {
    padding: 15px;
    border-left: 3px solid #c81431;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    min-height: 100px;
}

/* Image button styling */
.image-button {
    display: block;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.image-button img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Panel layout improvements */
.components-panel__body-toggle {
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* Custom styling for TextControl labels */
.components-base-control__label {
    font-weight: 500 !important;
}

/* Make toggle controls more readable */
.components-toggle-control .components-base-control__field {
    display: flex;
    align-items: center;
}

.components-form-toggle {
    margin-right: 12px;
}