/**
 * Custom Layout & Site Styling for GTL Web Portal
 * Contains custom text colors, hover states, card transition effects,
 * and header search dropdown styling.
 */

/* Brand text color helpers */
.text-orange {
    color: #eb8e05 !important;
}

.text-orange:hover {
    color: #d17d04 !important;
    text-decoration: underline !important;
}

.hover-orange:hover {
    color: #eb8e05 !important;
    text-decoration: underline !important;
}

/* Custom box shadow helper */
.shadow2 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Achievement list styling */
.achievement-list b {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

/* Smooth hover transition for rounded content cards */
.bg-white.border.rounded-4 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.border.rounded-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Header Site Search Dropdown & Results Styling */
#siteSearchResults {
    top: 100%;
    right: 0;
    min-width: 280px;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #000;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    color: #495057;
    margin-left: 6px;
}

/* ==========================================================================
   Home Hero Banner Slider Styling (Extracted from _Banners.cshtml)
   ========================================================================== */
.banner-slide-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.banner-caption-overlay {
    position: absolute;
    left: 5%;
    bottom: 12%;
    z-index: 10;
    max-width: 50%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.8s ease-out;
}

.banner-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.banner-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #4a4a4a;
    margin: 0;
    font-size: 1.0rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .banner-caption-overlay {
        max-width: 70%;
        bottom: 10%;
        padding: 16px 20px;
    }
    .banner-title {
        font-size: 1.35rem;
    }
    .banner-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .banner-caption-overlay {
        max-width: 90%;
        left: 5%;
        bottom: 8%;
        padding: 12px 16px;
        border-radius: 8px;
    }
    .banner-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    .banner-desc {
        font-size: 0.8rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Frontend Popup Modal Styling (Extracted from Components/Popup/Default.cshtml)
   ========================================================================== */
.front-popup-modal .modal-content {
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #eb8e05;
}

.front-popup-header {
    background: linear-gradient(135deg, #eb8e05 0%, #995e07 100%);
}

.front-popup-image {
    max-height: 70vh;
    object-fit: contain;
    background: #f8f9fa;
}

.front-popup-html {
    line-height: 1.7;
}
