/* ============================================
   SEARCH & TICKER - FRONTEND STYLES
   Path: /assets/css/search-ticker.css
   FORCE WHITE BACKGROUND FOR TICKER
   ============================================ */

:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --white: #ffffff;
    --text-dark: #333333;
    --gray-bg: #f4f6f8;
    --border-radius: 50px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================== SEARCH SECTION ======================== */
.search-section {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    padding-right: 150px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 17px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
    border-color: var(--primary-dark);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 700px;
    margin: 10px auto 0;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
}

.suggestion-item:hover {
    background: #fff5f5;
    color: var(--primary);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Search Results */
.search-results {
    max-width: 900px;
    margin: 30px auto 0;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-results h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
    cursor: pointer;
}

.result-item:hover {
    background: #f9f9f9;
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.result-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-job { background: #e3f2fd; color: #1976d2; }
.badge-result { background: #c8e6c9; color: #2e7d32; }
.badge-admit_card { background: #fff3e0; color: #f57c00; }
.badge-news { background: #f3e5f5; color: #7b1fa2; }

.result-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ======================== NEWS TICKER - FORCE WHITE ======================== */
.ticker-container {
    max-width: 1200px;
    margin: 0 auto 30px !important;
    background-color: #ffffff !important;
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-left: 5px solid #d32f2f !important;
    border-radius: 10px !important;
    display: flex !important;
    height: 54px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    position: relative !important;
}

.ticker-label {
    background-color: #d32f2f !important;
    background: #d32f2f !important;
    color: #ffffff !important;
    padding: 0 25px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    letter-spacing: 0.5px !important;
}

.ticker-label i {
    margin-right: 10px !important;
    font-size: 18px !important;
    color: white !important;
}

.ticker-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    background: white !important;
    position: relative !important;
}

.ticker-text {
    display: flex !important;
    animation: marquee 30s linear infinite !important;
    background: transparent !important;
}

.ticker-item {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding: 0 30px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    background: transparent !important;
}

.ticker-item i {
    color: #d32f2f !important;
    margin-right: 10px !important;
    font-size: 12px !important;
}

.ticker-item:hover {
    color: #d32f2f !important;
    text-decoration: underline !important;
}

.ticker-wrapper:hover .ticker-text {
    animation-play-state: paused !important;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ======================== MOBILE RESPONSIVE ======================== */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        gap: 15px;
    }

    .search-input {
        padding: 15px 20px;
        padding-right: 20px;
        width: 100%;
        text-align: center;
    }

    .search-btn {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .search-suggestions {
        left: 20px;
        right: 20px;
    }

    .ticker-container {
        border-radius: 8px !important;
        margin: 0 10px 20px !important;
    }

    .ticker-label {
        padding: 0 15px !important;
        font-size: 13px !important;
    }

    .ticker-label span {
        display: none;
    }

    .ticker-label i {
        margin: 0 !important;
    }

    .ticker-item {
        font-size: 14px !important;
        padding: 0 20px !important;
    }
}

@media (min-width: 400px) and (max-width: 768px) {
    .ticker-label span {
        display: inline;
        margin-left: 5px;
    }
}