/* --- MODERN SLATE & INDIGO COLOR SCHEME --- */

.wp-block-details {
    /* Soft border and subtle shadow to separate from white background */
    border: 1px solid #e2e8f0; 
    border-radius: 12px;
    background-color: #ffffff;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* 1. Hover Effect: The "Lift" */
.wp-block-details:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

/* 2. Summary (Header) Colors */
.wp-block-details > summary {
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc; /* Very light cool gray */
    color: #334155; /* Dark slate text */
    transition: all 0.2s ease;
}

/* 3. Icon Color */
.wp-block-details > summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8; /* Muted blue-gray icon */
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-right: 0.5rem;
}

/* 4. Active (Open) State Styles */
.wp-block-details[open] {
    border-color: #1D63DC; /* Modern Indigo */
    box-shadow: 0 12px 25px -10px rgba(99, 102, 241, 0.15);
}

.wp-block-details[open] > summary {
    background-color: #ffffff;
    color: #1D63DC; /* Text turns Indigo when open */
    border-bottom: 1px solid #f6f6f6;
}

.wp-block-details[open] > summary::after {
    border-color: #6366f1; /* Icon turns Indigo when open */
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* 5. Nested Block Adjustments */
.wp-block-details .wp-block-details {
    margin: 1rem 1.5rem;
    background-color: #fcfdfe;
}

/* 6. Content Animation */
.wp-block-details[open] > *:not(summary) {
    animation: details-show 0.4s ease-out forwards;
}

@keyframes details-show {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. Inner Padding */
.wp-block-details > *:not(summary) {
    padding: 1.5rem;
    color: #475569; /* Slightly softer text for the body */
    line-height: 1.6;
}

/* =============================================
   Hero Banner - Cover Block
   Usage: add "hero-banner" to the cover block's
   Additional CSS class(es) field
   ============================================= */

/* --- Base / Desktop (1200px+) --- */
.wp-block-cover.hero-banner {
  min-height: 700px;
}

/* --- Laptop (1024px – 1199px) --- */
@media (max-width: 1199px) {
  .wp-block-cover.hero-banner[style*="min-height"] {
    min-height: 75vh !important;
  }
}

/* --- Tablet (768px – 1023px) --- */
@media (max-width: 1023px) {
  .wp-block-cover.hero-banner[style*="min-height"] {
    min-height: 60vh !important;
  }
}

/* --- Mobile Landscape (480px – 767px) --- */
@media (max-width: 767px) {
  .wp-block-cover.hero-banner[style*="min-height"] {
    min-height: 50vh !important;
    background-position: center center;
  }
}

/* --- Mobile Portrait (up to 479px) --- */
@media (max-width: 479px) {
  .wp-block-cover.hero-banner[style*="min-height"] {
    min-height: 45vh !important;
    background-position: center center;
  }
}