/* Domain Knowledge Card Styling */
.expert-card {
    /* Base State */
    background-color: #f8fafc !important; /* Slate-50 */
    border: 1px solid transparent !important;
    border-radius: 1.5rem !important;    /* 24px rounded corners */
    padding: 2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100%; /* Ensures all cards in a row are equal height */
    display: flex;
    flex-direction: column;
}

/* Hover State */
.expert-card:hover {
    background-color: #ffffff !important;
    border-color: #e0e7ff !important;    /* Light Indigo border */
    transform: translateY(-8px);         /* Lifts the card up */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 
                0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

/* Icon Container Styling (Optional enhancement) */
.expert-card .wp-block-image, 
.expert-card .wp-block-icon {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.expert-card:hover .wp-block-image,
.expert-card:hover .wp-block-icon {
    transform: scale(1.1); /* Subtle grow effect on the icon */
}


/* 1. The Container Bubble 
   Apply this class to the 'Group' or 'Image' block 
*/
.domain-icon {
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 1rem !important; /* Matches rounded-xl */
    margin-bottom: 1.5rem !important;
    padding: 12px !important;
    transition: transform 0.3s ease !important;
}

/* 2. Ensuring the PNG inside stays proportional */
.domain-icon img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* 3. Specific Color Variations 
   (Add these secondary classes to the same block in WordPress)
*/

/* For the Power Apps Icon */
.icon-indigo {
    background-color: #eef2ff !important; /* Indigo-50 */
}

/* For the Power Automate Icon */
.icon-purple {
    background-color: #f5f3ff !important; /* Purple-50 */
}

/* For the Governance Icon */
.icon-emerald {
    background-color: #ecfdf5 !important; /* Emerald-50 */
}

/* 4. Hover Animation 
   When the parent 'expert-card' is hovered, the icon grows slightly
*/
.expert-card:hover .domain-icon {
    transform: scale(1.1) rotate(2deg);
}

/* 1. Unordered List Container */
.expert-card ul {
    margin: 0;
    padding: 0;
    list-style-type: none !important; /* Removes default dots */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Space between points */
}

/* 2. Individual List Item Styling */
.expert-card ul li {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    padding-left: 1.75rem; /* Space for the document icon */
    line-height: 1.4;
}

/* 3. The Custom Document Bullet Icon */
.expert-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    /* Embedded SVG for the document icon in Indigo-400 (#818cf8) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- GLOBAL FONT OVERRIDES --- */

/* Force Inter on every element, including WordPress blocks and form inputs */
html, 
body, 
p, 
ol, 
ul, 
li, 
dl, 
dt, 
dd, 
blockquote, 
address, 
table, 
fieldset, 
form, 
label, 
legend, 
input, 
select, 
textarea, 
button, 
.wp-block-heading, 
.wp-block-paragraph, 
.wp-block-button__link, 
.wp-block-navigation,
.wp-block-post-title,
.wp-block-quote,
.wp-block-freeform.rich-text /* Classic Editor blocks */ {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Specific heading overrides to ensure weight and spacing are preserved */
h1, h2, h3, h4, h5, h6,
.has-h-1-font-size, 
.has-h-2-font-size, 
.has-h-3-font-size {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

/* --- LIST ITEM STYLING (Previous Logic) --- */

/* 1. Unordered List Container */
.expert-card ul {
    margin: 0;
    padding: 0;
    list-style-type: none !important; /* Removes default dots */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Space between points */
}

/* 2. Individual List Item Styling */
.expert-card ul li {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    padding-left: 1.75rem; /* Space for the document icon */
    line-height: 1.4;
}

/* 3. The Custom Document Bullet Icon */
.expert-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    /* Embedded SVG for the document icon in Indigo-400 (#818cf8) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- STICKY GLASS HEADER (#masthead) --- */

#masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    /* Clean aesthetic border */
    border-bottom: 1px solid #e2e8f0 !important;
    
    /* Smooth transition for any state changes */
    transition: background 0.3s ease, transform 0.3s ease;
}

/* 1. Handle WordPress Admin Bar offset when logged in */
body.admin-bar #masthead {
    top: 32px !important;
}

/* 2. Admin Bar is taller on mobile devices */
@media screen and (max-width: 782px) {
    body.admin-bar #masthead {
        top: 46px !important;
    }
}

/* 3. Global Body Offset 
   This prevents your Hero section from being hidden behind the header.
   Adjust '80px' to match the actual height of your header.
*/
body {
    padding-top: 80px !important;
}

/* Adjust body padding for logged-in users */
body.admin-bar {
    padding-top: calc(80px + 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: calc(80px + 46px) !important;
    }
}

.glass-header {
     background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
}