/* =========================================================
   AHI TECHHUB
   SEARCH PAGE
   search.css
========================================================= */

:root {

    --primary: #0A84FF;
    --primary-dark: #2563EB;
    --accent: #00C2FF;

    --background: #F5F7FA;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;

    --text: #111827;
    --text-soft: #334155;
    --muted: #64748B;

    --border: #E2E8F0;

    --shadow-sm:
        0 4px 18px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 12px 35px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 20px 60px rgba(15, 23, 42, 0.12);

    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --container: 1200px;

    --transition: 0.28s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        "Poppins",
        "Noto Sans Tamil",
        Arial,
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);

    line-height:
        1.7;

    overflow-x:
        hidden;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin:
        0 auto;
}


/* =========================================================
   PROGRESS
========================================================= */

#progress-bar {

    position: fixed;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );

    z-index: 9999;
}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 2000;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid
        rgba(
            226,
            232,
            240,
            0.8
        );

    box-shadow:
        0 4px 20px
        rgba(
            15,
            23,
            42,
            0.03
        );
}


.header-container {

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        22px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    flex-shrink:
        0;
}

.logo-img {

    width:
        46px;

    height:
        46px;

    object-fit:
        contain;
}

.logo-text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1;
}

.brand-name {

    display:
        flex;

    gap:
        5px;

    font-size:
        21px;

    font-weight:
        800;
}

.brand-name .ahi {
    color:
        var(--primary);
}

.brand-name .tech {
    color:
        var(--text);
}

.tagline {

    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        8px;

    letter-spacing:
        1.2px;

    text-transform:
        uppercase;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex: 1;
}

.navbar ul {

    display:
        flex;

    align-items:
        center;

    gap:
        4px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}

.navbar li {
    list-style:
        none;
}

.navbar a {

    display:
        inline-flex;

    align-items:
        center;

    padding:
        9px 11px;

    border-radius:
        9px;

    color:
        #334155;

    font-size:
        13px;

    font-weight:
        600;

    white-space:
        nowrap;

    transition:
        var(--transition);
}

.navbar a:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.header-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;
}

.header-btn,
.menu-toggle {

    width:
        42px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    transition:
        var(--transition);
}

.header-btn:hover,
.menu-toggle:hover {

    color:
        var(--primary);

    background:
        #EEF5FF;

    border-color:
        rgba(
            10,
            132,
            255,
            0.3
        );
}

.menu-toggle {
    display:
        none;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {

    position:
        fixed;

    top:
        0;

    right:
        -100%;

    width:
        min(
            340px,
            88%
        );

    height:
        100vh;

    padding:
        85px 25px 30px;

    background:
        var(--surface);

    box-shadow:
        -15px 0 45px
        rgba(
            15,
            23,
            42,
            0.14
        );

    z-index:
        3000;

    transition:
        0.35s ease;
}

.mobile-menu.open {
    right:
        0;
}

.mobile-close {

    position:
        absolute;

    top:
        20px;

    right:
        20px;

    width:
        42px;

    height:
        42px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface);

    color:
        var(--text);
}

.mobile-menu ul {

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}

.mobile-menu li a {

    display:
        block;

    padding:
        13px 15px;

    border-radius:
        10px;

    color:
        var(--text-soft);

    font-weight:
        600;
}

.mobile-menu li a:hover {

    background:
        #EEF5FF;

    color:
        var(--primary);
}


/* =========================================================
   SEARCH HERO
========================================================= */

.search-hero {

    position:
        relative;

    padding:
        75px 0 72px;

    overflow:
        hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(
                10,
                132,
                255,
                0.12
            ),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(
                0,
                194,
                255,
                0.10
            ),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #F8FBFF,
            #F5F7FA
        );

    border-bottom:
        1px solid
        var(--border);
}

.search-hero-content {

    max-width:
        850px;

    margin:
        0 auto;

    text-align:
        center;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    margin-bottom:
        28px;

    color:
        var(--muted);

    font-size:
        12px;
}

.breadcrumb a:hover {
    color:
        var(--primary);
}


/* =========================================================
   SEARCH LABEL
========================================================= */

.search-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        8px 14px;

    border:
        1px solid
        rgba(
            10,
            132,
            255,
            0.14
        );

    border-radius:
        30px;

    background:
        rgba(
            255,
            255,
            255,
            0.85
        );

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.8px;
}


/* =========================================================
   SEARCH TITLE
========================================================= */

.search-hero h1 {

    margin-top:
        20px;

    font-size:
        clamp(
            35px,
            5vw,
            55px
        );

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        -1.5px;
}

.search-hero-content > p {

    max-width:
        680px;

    margin:
        18px auto 0;

    color:
        var(--text-soft);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        15px;

    line-height:
        1.9;
}


/* =========================================================
   MAIN SEARCH FORM
========================================================= */

.main-search-form {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    margin:
        30px auto 0;

    max-width:
        760px;
}

.search-input-wrapper {

    position:
        relative;

    flex:
        1;
}

.search-input-wrapper > i {

    position:
        absolute;

    left:
        17px;

    top:
        50%;

    transform:
        translateY(-50%);

    color:
        var(--muted);

    pointer-events:
        none;
}

.search-input-wrapper input {

    width:
        100%;

    height:
        54px;

    padding:
        0 45px;

    border:
        1px solid
        var(--border);

    border-radius:
        13px;

    outline:
        none;

    background:
        var(--surface);

    color:
        var(--text);

    font-size:
        14px;

    box-shadow:
        var(--shadow-sm);
}

.search-input-wrapper input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(
            10,
            132,
            255,
            0.10
        );
}

.clear-search {

    position:
        absolute;

    right:
        10px;

    top:
        50%;

    transform:
        translateY(-50%);

    width:
        34px;

    height:
        34px;

    border:
        none;

    border-radius:
        8px;

    background:
        transparent;

    color:
        var(--muted);
}

.clear-search:hover {
    color:
        var(--primary);
}

.search-submit {

    height:
        54px;

    padding:
        0 22px;

    border:
        none;

    border-radius:
        13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        white;

    font-size:
        13px;

    font-weight:
        700;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    white-space:
        nowrap;

    box-shadow:
        0 10px 24px
        rgba(
            10,
            132,
            255,
            0.20
        );
}

.search-submit:hover {

    transform:
        translateY(-2px);
}


/* =========================================================
   SEARCH MAIN
========================================================= */

.search-main {

    padding:
        80px 0;

    background:
        var(--surface);
}


/* =========================================================
   RESULTS HEADER
========================================================= */

.results-header {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        35px;
}

.results-label {

    display:
        block;

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;
}

.results-header h2 {

    margin-top:
        5px;

    font-size:
        clamp(
            24px,
            4vw,
            34px
        );

    line-height:
        1.3;
}

.results-header h2 strong {

    color:
        var(--primary);

    font-weight:
        700;
}

.results-header p {

    margin-top:
        6px;

    color:
        var(--muted);

    font-size:
        12px;
}

.all-results-btn {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        10px 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        var(--transition);
}

.all-results-btn:hover {

    color:
        var(--primary);

    border-color:
        rgba(
            10,
            132,
            255,
            0.3
        );
}


/* =========================================================
   RESULTS GRID
========================================================= */

.results-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap:
        24px;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {

    overflow:
        hidden;

    display:
        flex;

    flex-direction:
        column;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    box-shadow:
        var(--shadow-sm);

    transition:
        var(--transition);
}

.result-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(
            10,
            132,
            255,
            0.20
        );
}


/* =========================================================
   RESULT IMAGE
========================================================= */

.result-image {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        16 / 9;

    overflow:
        hidden;

    background:
        #EAF2FF;
}

.result-image > a {

    display:
        block;

    width:
        100%;

    height:
        100%;
}

.result-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform
        0.45s ease;
}

.result-card:hover
.result-image img {

    transform:
        scale(1.05);
}


/* =========================================================
   RESULT PLACEHOLDER
========================================================= */

.result-placeholder {

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            135deg,
            #EAF2FF,
            #E9FAFF
        );

    color:
        rgba(
            10,
            132,
            255,
            0.45
        );

    font-size:
        38px;
}


/* =========================================================
   RESULT CATEGORY
========================================================= */

.result-category {

    position:
        absolute;

    left:
        13px;

    bottom:
        13px;

    padding:
        6px 10px;

    border-radius:
        30px;

    background:
        rgba(
            15,
            23,
            42,
            0.78
        );

    color:
        white;

    font-size:
        10px;

    font-weight:
        700;

    backdrop-filter:
        blur(5px);
}


/* =========================================================
   RESULT CONTENT
========================================================= */

.result-content {

    flex:
        1;

    display:
        flex;

    flex-direction:
        column;

    padding:
        21px;
}


/* =========================================================
   RESULT META
========================================================= */

.result-meta {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    color:
        var(--muted);

    font-size:
        10px;
}

.result-meta span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;
}


/* =========================================================
   RESULT TITLE
========================================================= */

.result-content h3 {

    margin-top:
        11px;

    font-size:
        19px;

    line-height:
        1.45;
}

.result-content h3 a {
    transition:
        var(--transition);
}

.result-content h3 a:hover {

    color:
        var(--primary);
}


/* =========================================================
   RESULT EXCERPT
========================================================= */

.result-content p {

    margin-top:
        9px;

    color:
        var(--muted);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        13px;

    line-height:
        1.8;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        auto;

    padding-top:
        17px;

    color:
        var(--primary);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        var(--transition);
}

.read-more:hover {
    gap:
        12px;
}


/* =========================================================
   SEARCH INTRO
========================================================= */

.search-intro {

    max-width:
        650px;

    margin:
        0 auto;

    padding:
        65px 25px;

    text-align:
        center;

    border:
        1px dashed
        #CBD5E1;

    border-radius:
        var(--radius-lg);

    background:
        var(--surface-soft);
}

.search-intro-icon {

    width:
        75px;

    height:
        75px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        28px;
}

.search-intro h2 {

    font-size:
        24px;
}

.search-intro p {

    margin-top:
        10px;

    color:
        var(--muted);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        14px;

    line-height:
        1.9;
}


/* =========================================================
   POPULAR SEARCHES
========================================================= */

.popular-searches,
.suggestions {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin-top:
        22px;
}

.popular-searches > span,
.suggestions > span {

    color:
        var(--muted);

    font-size:
        11px;

    font-weight:
        700;
}

.popular-searches a,
.suggestions a {

    padding:
        7px 12px;

    border:
        1px solid
        var(--border);

    border-radius:
        30px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        11px;

    font-weight:
        600;

    transition:
        var(--transition);
}

.popular-searches a:hover,
.suggestions a:hover {

    color:
        var(--primary);

    border-color:
        rgba(
            10,
            132,
            255,
            0.3
        );
}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {

    max-width:
        700px;

    margin:
        0 auto;

    padding:
        70px 25px;

    text-align:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface-soft);
}

.no-results-icon {

    width:
        75px;

    height:
        75px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #EEF5FF;

    color:
        var(--primary);

    font-size:
        27px;
}

.no-results h2 {

    font-size:
        24px;
}

.no-results p {

    margin:
        10px auto 0;

    max-width:
        560px;

    color:
        var(--muted);

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        14px;

    line-height:
        1.9;
}


/* =========================================================
   HOME BUTTON
========================================================= */

.home-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    margin-top:
        22px;

    padding:
        12px 19px;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        white;

    font-size:
        12px;

    font-weight:
        700;

    transition:
        var(--transition);
}

.home-btn:hover {

    color:
        white;

    transform:
        translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    padding:
        65px 0 0;

    background:
        #0F172A;

    color:
        #CBD5E1;
}

.footer-grid {

    display:
        grid;

    grid-template-columns:
        1.4fr
        repeat(
            3,
            1fr
        );

    gap:
        38px;
}

.footer-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.footer-brand img {

    width:
        45px;

    height:
        45px;

    object-fit:
        contain;
}

.footer-brand strong {

    display:
        block;

    color:
        white;

    font-size:
        18px;
}

.footer-brand span {

    display:
        block;

    margin-top:
        3px;

    color:
        #64748B;

    font-size:
        8px;

    letter-spacing:
        1px;

    text-transform:
        uppercase;
}

.footer-about > p {

    max-width:
        350px;

    margin-top:
        17px;

    color:
        #94A3B8;

    font-family:
        "Noto Sans Tamil",
        "Poppins",
        Arial,
        sans-serif;

    font-size:
        13px;

    line-height:
        1.85;
}

.footer-column h3 {

    margin-bottom:
        16px;

    color:
        white;

    font-size:
        15px;
}

.footer-column a {

    display:
        block;

    width:
        fit-content;

    margin-bottom:
        10px;

    color:
        #94A3B8;

    font-size:
        12px;

    transition:
        var(--transition);
}

.footer-column a:hover {

    color:
        white;

    transform:
        translateX(3px);
}

.footer-column p {

    margin-bottom:
        7px;

    color:
        #94A3B8;

    font-size:
        12px;

    line-height:
        1.7;
}


/* =========================================================
   ADMIN
========================================================= */

.admin-link {

    display:
        inline-flex !important;

    align-items:
        center;

    gap:
        6px;

    margin-top:
        7px;

    padding:
        8px 11px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius:
        9px;
}

.admin-link:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        48px;

    padding:
        21px 0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}

.footer-bottom p {

    margin:
        0;

    color:
        #64748B;

    font-size:
        11px;
}

.footer-bottom > div {

    display:
        flex;

    gap:
        18px;
}

.footer-bottom > div a {

    color:
        #64748B;

    font-size:
        11px;
}

.footer-bottom > div a:hover {
    color:
        white;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {

    --background: #0B1120;
    --surface: #111827;
    --surface-soft: #172033;

    --text: #F8FAFC;
    --text-soft: #CBD5E1;
    --muted: #94A3B8;

    --border: #243244;
}


body.dark-mode .header {

    background:
        rgba(
            15,
            23,
            42,
            0.95
        );

    border-color:
        rgba(
            255,
            255,
            255,
            0.07
        );
}


body.dark-mode .brand-name .tech {
    color:
        white;
}


body.dark-mode .navbar a {
    color:
        #CBD5E1;
}


body.dark-mode .navbar a:hover {
    color:
        #60A5FA;

    background:
        rgba(
            10,
            132,
            255,
            0.12
        );
}


body.dark-mode .header-btn,
body.dark-mode .menu-toggle {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .mobile-menu {
    background:
        #0F172A;
}


body.dark-mode .mobile-close {

    background:
        #111827;

    border-color:
        #243244;

    color:
        white;
}


body.dark-mode .search-hero {

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(
                10,
                132,
                255,
                0.09
            ),
            transparent 32%
        ),
        #0B1120;

    border-color:
        #243244;
}


body.dark-mode .search-label {

    background:
        #111827;

    border-color:
        #243244;
}


body.dark-mode .search-hero-content > p {
    color:
        #CBD5E1;
}


body.dark-mode .search-input-wrapper input {

    background:
        #111827;

    border-color:
        #243244;

    color:
        white;
}


body.dark-mode .search-main {
    background:
        #0B1120;
}


body.dark-mode .result-card {

    background:
        #111827;

    border-color:
        #243244;
}


body.dark-mode .result-card:hover {

    border-color:
        rgba(
            10,
            132,
            255,
            0.28
        );
}


body.dark-mode .result-image,
body.dark-mode .result-placeholder {

    background:
        linear-gradient(
            135deg,
            #172033,
            #111827
        );
}


body.dark-mode .all-results-btn {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .search-intro,
body.dark-mode .no-results {

    background:
        #111827;

    border-color:
        #334155;
}


body.dark-mode .search-intro-icon,
body.dark-mode .no-results-icon {

    background:
        rgba(
            10,
            132,
            255,
            0.12
        );
}


body.dark-mode .popular-searches a,
body.dark-mode .suggestions a {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .footer {
    background:
        #020617;
}


/* =========================================================
   RESPONSIVE - 1100px
========================================================= */

@media (max-width: 1100px) {

    .navbar a {

        padding:
            8px 8px;

        font-size:
            12px;
    }


    .results-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .footer-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }
}


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .navbar {
        display:
            none;
    }


    .menu-toggle {
        display:
            flex;
    }


    .footer-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }
}


/* =========================================================
   RESPONSIVE - 650px
========================================================= */

@media (max-width: 650px) {

    .container {

        width:
            calc(
                100% - 28px
            );
    }


    .header-container {

        min-height:
            70px;
    }


    .logo-img {

        width:
            42px;

        height:
            42px;
    }


    .brand-name {

        font-size:
            18px;
    }


    .tagline {

        font-size:
            7px;
    }


    .search-hero {

        padding:
            55px 0 52px;
    }


    .search-hero h1 {

        font-size:
            35px;

        letter-spacing:
            -1px;
    }


    .search-hero-content > p {

        font-size:
            14px;
    }


    .main-search-form {

        flex-direction:
            column;

        width:
            100%;
    }


    .search-input-wrapper,
    .search-submit {

        width:
            100%;
    }


    .search-submit {

        justify-content:
            center;
    }


    .search-main {

        padding:
            60px 0;
    }


    .results-header {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .results-grid {

        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap:
            28px;
    }


    .footer-bottom {

        flex-direction:
            column;

        align-items:
            flex-start;
    }
}


/* =========================================================
   RESPONSIVE - 420px
========================================================= */

@media (max-width: 420px) {

    .search-hero h1 {

        font-size:
            31px;
    }


    .search-input-wrapper input {

        font-size:
            13px;
    }


    .result-content h3 {

        font-size:
            18px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {

    outline:
        3px solid
        rgba(
            10,
            132,
            255,
            0.25
        );

    outline-offset:
        2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation:
            none !important;

        transition:
            none !important;
    }
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    margin-top:
        45px;

    flex-wrap:
        wrap;
}


.page-numbers {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    flex-wrap:
        wrap;

    justify-content:
        center;
}


.page-number,
.page-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        40px;

    height:
        40px;

    padding:
        0 12px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        0.25s ease;
}


.page-number:hover,
.page-btn:hover {

    color:
        var(--primary);

    border-color:
        rgba(
            10,
            132,
            255,
            0.30
        );

    background:
        #EEF5FF;

}


.page-number.active {

    color:
        white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    border-color:
        var(--primary);

    box-shadow:
        0 8px 18px
        rgba(
            10,
            132,
            255,
            0.18
        );
}


.page-btn {

    gap:
        7px;

    padding:
        0 14px;

    min-width:
        auto;
}


/* =========================================================
   DARK MODE PAGINATION
========================================================= */

body.dark-mode .page-number,
body.dark-mode .page-btn {

    background:
        #111827;

    border-color:
        #243244;

    color:
        #CBD5E1;
}


body.dark-mode .page-number:hover,
body.dark-mode .page-btn:hover {

    background:
        #172033;

    color:
        #60A5FA;
}


body.dark-mode .page-number.active {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    border-color:
        var(--primary);

    color:
        white;
}


/* =========================================================
   MOBILE PAGINATION
========================================================= */

@media (max-width: 650px) {

    .pagination {

        gap:
            8px;

        margin-top:
            35px;
    }


    .page-btn {

        width:
            100%;

        max-width:
            180px;
    }


    .page-numbers {

        width:
            100%;
    }

}