/* Modern Grid Layout for Library Services */
.elementor-element-e81b518 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

/* Individual Card Styling (Warm paper tones) */
.elementor-element-e81b518 > .e-con,
.elementor-element-e81b518 > .elementor-container > .elementor-column {
    background-color: #FDFBF7 !important;
    border: 1px solid #EAE1D8 !important;
    border-radius: 12px !important;
    padding: 32px 24px !important;
    transition: all 0.3s ease-in-out !important;
    width: 100% !important; /* Override any Elementor inline width */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hover Effect on Cards */
.elementor-element-e81b518 > .e-con:hover,
.elementor-element-e81b518 > .elementor-container > .elementor-column:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 28px rgba(139, 107, 76, 0.12) !important;
    border-color: #D4C3B3 !important;
}

/* Icons Styling */
.elementor-element-e81b518 .elementor-widget-icon .elementor-icon {
    background: #FFFFFF !important;
    color: #1A5498 !important; /* KBF Blue */
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(26, 84, 152, 0.15) !important;
    margin: 0 auto 20px auto !important;
    transition: all 0.3s ease !important;
}

.elementor-element-e81b518 > .e-con:hover .elementor-widget-icon .elementor-icon {
    background: #1A5498 !important;
    color: #FFFFFF !important;
    transform: scale(1.05) !important;
}

/* Heading Styling */
.elementor-element-e81b518 .elementor-heading-title {
    color: #2C3E50 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Text Styling */
.elementor-element-e81b518 .elementor-widget-text-editor {
    color: #5A6268 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    flex-grow: 1 !important; /* Push accordion to bottom */
}

/* Nested Accordion (Saznaj više button replacement) */
.elementor-element-e81b518 .e-n-accordion {
    margin-top: 20px !important;
}

.elementor-element-e81b518 .e-n-accordion-item-title {
    background: transparent !important;
    border: 2px solid #c9a227 !important; /* KBF Gold */
    color: #c9a227 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.elementor-element-e81b518 .e-n-accordion-item-title:hover {
    background: #c9a227 !important;
    color: #FFFFFF !important;
}

.elementor-element-e81b518 .e-n-accordion-item-title[aria-expanded="true"] {
    background: #c9a227 !important;
    color: #FFFFFF !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Accordion Content */
.elementor-element-e81b518 .e-n-accordion-item > .e-con {
    background: #FFFFFF !important;
    border: 1px solid #EAE1D8 !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    padding: 16px !important;
}
