/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #01074B;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* ============================================
   HEADER IMAGE BANNER
============================================ */
#header-image {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    background-color: #000d3a;
    border-bottom: 2px solid #cf2e2e;
    position: relative; /* allow absolute positioning of search container */
}

    #header-image img {
        height: 100px;
        object-fit: cover;
        width: 100%;
        max-width: 660px;
        border-top: #cf2e2e solid 2px;
        display: block;
    }

/* Center search box inside the header image and make it responsive */
.search-container {
    position: absolute;
    left: 50%;
    top: 14px; /* place near the top */
    transform: translateX(-50%);
    width: min(760px, 90%);
    z-index: 5;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.search-container .searchForm {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    position: relative; /* allow absolute positioning of the search button inside */
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border-radius: 30px;
    border: none;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    outline: none;
}

/* place the search icon/button inside the input */
.searchForm .search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222; /* icon color */
    padding: 0;
    outline: none;
}

.searchForm .search svg {
    display: block;
    width: 18px;
    height: 18px;
}

.searchForm .search:hover {
    opacity: 0.9;
}

/* if there's an icon placed absolutely inside the input later, keep space on the right */
.search-input::placeholder {
    color: #777777;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .search-container {
        top: 45%;
        width: 94%;
    }

    .search-input {
        padding: 10px 40px 10px 14px;
        font-size: 14px;
        border-radius: 24px;
    }
}

/* ============================================
   MAIN LAYOUT
============================================ */
#results-page {
    margin: 0 auto;
    width: 100%;
    max-width: 660px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#results-container {
    display: flex;
    flex-direction: column;
}

/* ============================================
   ARTICLE HEADER
============================================ */
#article-header {
    padding: 20px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #cf2e2e, #e84545);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

h1.main-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-excerpt {
    /*color: #b0b8d0;*/
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

#meta {
    height: auto;
    width: 100%;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    color: #7a85a3;
}

    #meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    #meta .dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #4a5568;
    }

/* ============================================
   SEARCH TERMS TAGS
============================================ */
.search-terms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.search-term-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9eb3d5;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

    .search-term-tag:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

/* ============================================
   ARTICLE CONTENT
============================================ */
#article-single {
    padding-bottom: 24px;
    animation: fadeSlideIn 0.5s ease both;
}

    #article-single p {
        /*color: #c2cce8;*/
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    #article-single h3 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        margin-top: 22px;
        margin-bottom: 10px;
        padding-left: 10px;
        border-left: 3px solid #cf2e2e;
    }

    #article-single h4 {
        color: #e0e7f8;
        font-size: 14px;
        font-weight: 600;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    #article-single ul {
        list-style: none;
        margin: 0 0 14px 0;
        padding: 0;
    }

        #article-single ul li {
            color: #c2cce8;
            font-size: 14px;
            line-height: 1.65;
            padding: 5px 0 5px 20px;
            position: relative;
        }

            #article-single ul li::before {
                content: '›';
                position: absolute;
                left: 0;
                color: #cf2e2e;
                font-size: 16px;
                font-weight: 700;
                line-height: 1.4;
            }

    #article-single a {
        color: #6ea4ff;
        text-decoration: none;
        border-bottom: 1px solid rgba(110, 164, 255, 0.35);
        transition: color 0.2s, border-color 0.2s;
    }

        #article-single a:hover {
            color: #a8c8ff;
            border-bottom-color: #a8c8ff;
        }

    #article-single strong {
        color: #e8eef8;
        font-weight: 600;
    }

/* ============================================
   WEB RESULTS (SPONSORED LINKS)
============================================ */
#web-results {
    margin-bottom: 20px;
}

.web-results-title {
    font-size: 11px;
    font-weight: 400;
    color: #6a7698;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-top: 8px;
    /*border-top: 1px solid rgba(255, 255, 255, 0.07);*/
}

.web-result {
    padding: 12px 14px;
    margin-bottom: 8px;
    /*background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);*/
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /*transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    animation: fadeSlideIn 0.4s ease both;*/
}

   /* .web-result:hover {
        background: rgba(255, 255, 255, 0.065);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .web-result:nth-child(1) {
        animation-delay: 0.05s;
    }

    .web-result:nth-child(2) {
        animation-delay: 0.10s;
    }

    .web-result:nth-child(3) {
        animation-delay: 0.15s;
    }

    .web-result:nth-child(4) {
        animation-delay: 0.20s;
    }

    .web-result:nth-child(5) {
        animation-delay: 0.25s;
    }

    .web-result:nth-child(6) {
        animation-delay: 0.30s;
    }*/

.web-result-url {
    color: #7a9bc0;
    font-size: 13px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .web-result-url .favicon {
        width: 14px;
        height: 14px;
        border-radius: 3px;
        background: linear-gradient(135deg, #cf2e2e, #e84545);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        color: white;
        font-weight: 700;
        flex-shrink: 0;
    }

.web-result-title {
    color: #9db8de;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 4px;
    display: block;
    line-height: 1.4;
    transition: color 0.2s;
}

    .web-result-title:hover {
        text-decoration: underline;
        color: #c0d8f5;
    }

.web-result-snippet {
    color: #7a8aaa;
    font-size: 13px;
    margin: 4px 0 0;
    line-height: 1.5;
}

.sponsored-badge {
    font-size: 9px;
    color: #5a6a88;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

/* ============================================
   SEARCH BOX
============================================ */
#search-box-result-page-2 {
    margin: 16px 0 20px;
    display: flex;
    gap: 8px;
}

    #search-box-result-page-2 input {
        flex: 1;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        padding: 10px 14px;
        color: #fff;
        font-size: 14px;
        font-family: inherit;
        outline: none;
        transition: border-color 0.2s, background 0.2s;
    }

        #search-box-result-page-2 input::placeholder {
            color: #6a7698;
        }

        #search-box-result-page-2 input:focus {
            border-color: rgba(207, 46, 46, 0.6);
            background: rgba(255, 255, 255, 0.1);
        }

    #search-box-result-page-2 button {
        background: linear-gradient(135deg, #cf2e2e, #e84545);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 10px 18px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        transition: opacity 0.2s, transform 0.1s;
    }

        #search-box-result-page-2 button:hover {
            opacity: 0.88;
            transform: translateY(-1px);
        }

/* ============================================
   FOOTER
============================================ */
footer.footer-section {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.footer-section-container {
    background: transparent;
    width: 100%;
}

.footer-section-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    max-width: 660px;
    margin: 0 auto;
}

.footer-section-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 560px;
}

.footer-section-list {
    list-style: none;
    border-top: 3px solid #cf2e2e;
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    background: none;
}

.footer-section-item {
    display: inline;
    font-size: 11px;
}

    .footer-section-item:not(:first-child)::before {
        color: rgba(255, 255, 255, 0.3);
        content: " - ";
        display: inline;
        padding: 0 3px;
    }

.footer-section-item-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

    .footer-section-item-link:hover {
        color: rgba(255, 255, 255, 0.85);
    }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 600px) {
    h1.main-title {
        font-size: 17px;
    }

    #search-box-result-page-2 {
        flex-direction: column;
    }

        #search-box-result-page-2 button {
            width: 100%;
        }
}
