.dynamic-architecture-app section .container {
    padding: 70px 0;
}

/* --- Hero Layout --- */
.hero-section {
    position: relative;
    background: radial-gradient(ellipse at 70% -10%, rgba(37, 169, 224, 0.1) 0%, transparent 55%),
                radial-gradient(ellipse at 10% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 0 60px;
    position: relative;
    z-index: 2;
}

.hero-top-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}



.hero-text h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 620px;
}

.hero-text > p {
    font-size: 1.12rem;
    color: var(--text-med);
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 520px;
}

.hero-search-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Search bar */
.search-action-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid rgba(37,169,224,0.35);
    padding: 6px 6px 6px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(37, 169, 224, 0.12), 0 2px 8px rgba(15,23,42,0.04);
    width: 100%;
    max-width: 560px;
    position: relative;
    z-index: 50;
    gap: 0;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-action-box:focus-within {
    border-color: var(--brand-main);
    box-shadow: 0 0 0 3px rgba(37,169,224,0.12), 0 8px 32px rgba(37,169,224,0.15);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.input-wrapper i {
    color: var(--brand-main);
    font-size: 1rem;
    flex-shrink: 0;
}

.search-action-box input {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--text-high);
    background: transparent;
    padding: 10px 0;
}

.search-action-box input::placeholder {
    color: #94a3b8;
}

.search-action-box .btn {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Split Image Logo */
.hero-image {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 40px rgba(37,169,224,0.25));
    animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* CTA row */
.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Breakpoints */
@media (max-width: 900px) {
    .hero-container {
        min-height: auto;
        padding: 64px 0 48px;
    }
    
    .hero-top-split {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .hero-text {
        align-items: center;
        text-align: center;
    }
    
    .hero-image {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text > p { font-size: 1rem; }
    .search-action-box {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
    }
    .search-action-box .btn { width: 100%; justify-content: center; }
    .input-wrapper { padding: 4px 8px; }
}

/* --- Services Grid Expanded --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }
    .service-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dynamic-architecture-app section .container {
        padding: 72px 0;
    }

    .service-card,
    .product-card,
    .portfolio-meta {
        padding: 24px 20px;
    }

    .portfolio-card {
        border-radius: 22px;
    }

    .portfolio-visual {
        height: 190px;
    }

    .product-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dynamic-architecture-app section .container {
        padding: 56px 0;
    }

    .services-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 4px 4px 16px 4px !important;
        margin: 0 -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        scrollbar-width: none !important;
    }
    .services-grid::-webkit-scrollbar {
        display: none !important;
    }

    .service-card {
        flex: 0 0 280px !important;
        min-height: 240px;
        scroll-snap-align: center !important;
        padding: 24px !important;
        border-radius: var(--rad-lg) !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        transform: scale(0.98);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
        opacity: 0.95;
    }
    
    .services-grid > .service-card:active {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--shadow-hover);
    }

    .service-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .service-card h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
        font-weight: 700;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        flex-shrink: 0;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
        color: var(--text-med);
        flex-grow: 1;
    }

    .service-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-top: auto;
        align-self: flex-start;
        flex-shrink: 0;
    }

    .products-grid,
    .academy-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 4px 4px 16px 4px !important;
        margin: 0 -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        scrollbar-width: none !important;
    }
    .products-grid::-webkit-scrollbar,
    .academy-grid::-webkit-scrollbar {
        display: none !important;
    }

    .product-card,
    .academy-card {
        flex: 0 0 300px !important;
        min-height: 280px;
        scroll-snap-align: center !important;
        padding: 24px !important;
        border-radius: var(--rad-lg) !important;
        display: flex !important;
        flex-direction: column !important;
        transform: scale(0.98);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
        opacity: 0.95;
    }

    .products-grid > .product-card:active {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--shadow-hover);
    }

    .product-card h3 {
        font-size: 0.95rem;
        line-height: 1.2;
        white-space: normal;
    }

    .product-desc {
        font-size: 0.76rem;
        line-height: 1.35;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 1.1rem;
        margin: 8px 0;
    }

    .product-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        align-self: flex-start;
    }

    .product-tags {
        gap: 4px;
        margin-bottom: 8px;
    }

    .product-tag {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .product-features {
        font-size: 0.7rem;
        gap: 4px;
        margin-bottom: 12px;
        flex-grow: 1;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
    }

    .product-features li i {
        font-size: 0.65rem;
    }

    .product-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: auto !important;
    }

    .product-actions .btn {
        flex: 1 !important;
        width: auto !important;
        padding: 6px 8px !important;
        font-size: 0.72rem !important;
        text-align: center !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 30px 20px;
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-card);
    transition: var(--trans-swift);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-focus);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-light), #ffffff);
    border: 1px solid var(--border-focus);
    border-radius: var(--rad-md);
    color: var(--brand-main);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-med); font-size: 0.95rem; margin-bottom: 24px; }
.service-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-med);
    background: var(--bg-page);
    padding: 6px 12px;
    border-radius: var(--rad-sm);
    border: 1px solid var(--border-subtle);
}

.view-all-wrapper { text-align: center; margin-top: 20px; }

/* --- Standalone Products --- */
.products-section { background: var(--bg-surface); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-lg);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--trans-swift);
}

.product-card:hover {
    background: var(--bg-surface);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-focus);
    transform: translateY(-4px);
}

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-badge {
    background: var(--brand-light);
    color: var(--brand-main);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-high);
}

.product-card h3 {
    font-size: 1.45rem;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-med);
    font-size: 1rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-med);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    border-radius: 999px;
}

.product-features {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--text-med);
    font-size: 0.92rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: var(--brand-main);
    font-size: 0.85rem;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-link {
    color: var(--brand-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-link:hover { gap: 12px; }

/* --- Interactive Estimator --- */
.estimator-wrapper {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.estimator-controls { flex: 1.4; padding: 40px; }
.control-group { margin-bottom: 30px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--rad-md); background: rgba(255, 255, 255, 0.5); }
.control-group.is-disabled { opacity: 0.5; pointer-events: none; }
.control-group:last-child { margin-bottom: 0; }
.group-title { display: block; font-size: 1rem; font-weight: 800; margin-bottom: 12px; }

.medium-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}
.medium-toggle input { width: 18px; height: 18px; cursor: pointer; }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.tile-option {
    border: 2px solid var(--border-subtle);
    border-radius: var(--rad-md);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--trans-swift);
    background: var(--bg-surface);
    text-align: center;
}

.tile-option input { display: none; }
.tile-option i { font-size: 1.5rem; color: var(--text-med); transition: var(--trans-swift); }
.tile-option span { font-weight: 700; font-size: 0.95rem; color: var(--text-med); }
.tile-option small { font-size: 0.8rem; color: var(--brand-main); font-weight: 600; }

.tile-option:hover { border-color: var(--border-focus); background: var(--brand-light); }
.tile-option.active {
    border-color: var(--brand-main);
    background: var(--brand-light);
    box-shadow: 0 0 0 2px var(--brand-main);
}
.tile-option.active i, .tile-option.active span { color: var(--brand-main); }

.estimator-summary-panel {
    flex: 0.6;
    background: var(--text-high);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.estimator-summary-panel h3 {
    font-size: 1.25rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #334155;
}

.breakdown-row {
    display: flex; justify-content: space-between; color: #cbd5e1; margin-bottom: 12px; font-size: 0.9rem;
}

.summary-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding-top: 12px;
    border-top: 1px dashed #475569;
}

.summary-features span {
    font-size: 0.8rem;
    background: rgba(37, 169, 224, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--brand-light);
}

.panel-divider { border: 0; border-top: 1px dashed #475569; margin: 24px 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.total-row span:first-child { font-size: 1rem; color: white; }
#calculated-total-cost { font-size: 2.2rem; font-weight: 800; color: var(--brand-main); }

.panel-note { font-size: 0.8rem; color: #94a3b8; line-height: 1.5; margin-bottom: 30px; }

@media (max-width: 1200px) {
    .estimator-controls { padding: 40px; }
    .estimator-summary-panel { padding: 40px; }
    .tile-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

@media (max-width: 768px) {
    
    .estimator-controls { padding: 30px; }
    .estimator-summary-panel { padding: 30px; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .control-group { margin-bottom: 24px; padding: 16px; }
    .breakdown-row { font-size: 0.95rem; }
    #calculated-total-cost { font-size: 2.2rem; }
}

/* --- Leadership --- */
.leadership-section { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); overflow: hidden; }

.leadership-slider-container {
    padding: 0 20px;
}

.leadership-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px auto;
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
    background: var(--bg-page);
}

@media (max-width: 768px) {
    .leadership-slider {
        aspect-ratio: 4 / 3;
    }
}

.leadership-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-slide.active {
    opacity: 1;
    z-index: 1;
}

.leadership-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leadership-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 16px;
    z-index: 2;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--trans-swift);
    pointer-events: auto;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--trans-swift);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* --- FAQ --- */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-node {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    margin-bottom: 16px;
    transition: var(--trans-swift);
}

/* Academy Grid */
.academy-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-page);
    background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.academy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.academy-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--rad-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--trans-swift);
    box-shadow: none; /* Flat design */
}

.academy-card:hover {
    border-color: var(--brand-main);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -10px rgba(37, 169, 224, 0.15); /* Subtle graphical touch on hover */
}

.academy-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 2px solid var(--border-subtle);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.academy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.academy-card:hover .academy-image-wrapper img {
    transform: scale(1.05);
}

.academy-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.academy-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-high);
    margin-bottom: 12px;
}

.academy-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-med);
    margin-bottom: 24px;
    flex: 1;
}

.academy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.academy-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-main);
}

.faq-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px; background: none; border: none; font-family: inherit; font-size: 1.1rem; font-weight: 700;
    color: var(--text-high); cursor: pointer; text-align: left;
}

.faq-trigger i { font-size: 1rem; color: var(--text-med); transition: transform 0.3s ease; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; }
.faq-body p { padding-bottom: 20px; color: var(--text-med); font-size: 0.95rem; }

.faq-node.active { border-color: var(--brand-main); box-shadow: var(--shadow-card); }
.faq-node.active .faq-body { max-height: 500px; }
.faq-node.active .faq-trigger i { transform: rotate(180deg); color: var(--brand-main); }

/* --- Responsiveness --- */
@media (max-width: 600px) {
    .dynamic-architecture-app section .container { padding: 40px 0; width: 94%; }
    .products-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; align-items: flex-start; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 2rem; }
    .service-card, .product-card { padding: 20px; border-radius: var(--rad-md); }
    .estimator-controls { padding: 20px; }
    .estimator-summary-panel { padding: 20px; }
}

/* Global Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.18);
    max-height: 420px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 6px;
}

.search-dropdown.active {
    display: flex;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-high);
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item > i {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.search-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-result-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.search-result-type {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.search-result-desc {
    font-size: 0.78rem;
    color: var(--text-med);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-result-desc { max-width: 200px; }
}

/* ============================================
   ADMIN MODAL (For Contact Form)
   ============================================ */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.admin-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.admin-modal {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.25);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal-backdrop.open .admin-modal {
    transform: translateY(0) scale(1);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.admin-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.15s;
}

.admin-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.admin-modal-body {
    padding: 22px;
}
