/* =========================================================
   FINDORA PSIS
   COMPLETE PUBLIC WEBSITE STYLESHEET
   ========================================================= */

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #4f9cff;

    --secondary: #6c757d;

    --success: #198754;
    --success-dark: #11683f;

    --danger: #dc3545;
    --danger-dark: #b02a37;

    --warning: #ffc107;

    --light: #f8f9fa;
    --page-background: #f5f7fb;

    --dark: #212529;
    --footer-background: #1f2937;

    --white: #ffffff;

    --text-main: #333333;
    --text-muted: #6b7280;

    --shadow-small:
        0 8px 25px rgba(0, 0, 0, 0.08);

    --shadow-medium:
        0 15px 35px rgba(0, 0, 0, 0.12);

    --shadow-large:
        0 20px 45px rgba(0, 0, 0, 0.16);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 22px;

    --transition:
        0.25s ease;
}

/* =========================================================
   RESET AND BASE STYLES
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    background:
        var(--page-background);

    color:
        var(--text-main);

    font-family:
        "Poppins",
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;

    max-width: 100%;

    height: auto;
}

a {
    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
td,
th,
.card-title,
.card-text {
    overflow-wrap: anywhere;
}

section {
    padding:
        80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color:
        var(--dark);
}

h2 {
    font-weight: 700;
}

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

.navbar {
    padding:
        15px 0;

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

.navbar-brand {
    display: flex;
    align-items: center;

    white-space: nowrap;

    color:
        var(--white) !important;

    font-size: 24px;
    font-weight: 700;
}

.navbar-brand:hover {
    color:
        var(--white) !important;
}

.navbar-nav .nav-link {
    margin-left: 6px;

    padding:
        10px 13px !important;

    border-radius:
        9px;

    color:
        var(--white) !important;

    font-weight: 500;

    transition:
        color var(--transition),
        background var(--transition);
}

.navbar-nav .nav-link:hover {
    background:
        rgba(255, 255, 255, 0.14);

    color:
        #ffd54f !important;
}

.navbar-nav .nav-link.active {
    background:
        rgba(255, 255, 255, 0.18);

    color:
        #ffd54f !important;

    font-weight: 700;
}

.navbar .btn {
    min-height: 44px;

    padding:
        10px 22px;

    border-radius:
        50px;

    font-weight: 600;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 46px;

    padding:
        11px 24px;

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

    font-weight: 600;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform:
        translateY(-2px);
}

.btn:active {
    transform:
        translateY(0);
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    overflow: hidden;

    border: 0;
    border-radius:
        var(--radius-medium);

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

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.card:hover {
    transform:
        translateY(-6px);

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

.card-img-top {
    width: 100%;
    height: 230px;

    object-fit: cover;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    overflow: hidden;

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

    color:
        var(--white);

    border-radius:
        0 0 50px 50px;
}

.hero h1 {
    color:
        var(--white);

    font-size:
        3.5rem;

    font-weight:
        700;
}

.hero h2 {
    color:
        var(--white);
}

.hero p {
    color:
        var(--white);

    font-size:
        1.2rem;

    opacity:
        0.95;
}

.hero img {
    animation:
        heroFloat
        4s
        ease-in-out
        infinite;
}

@keyframes heroFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}

/* =========================================================
   QUICK ACTION CARDS
   ========================================================= */

.quick-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height:
        360px;

    cursor:
        pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.quick-card:hover {
    transform:
        translateY(-7px);

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

.quick-card i {
    transition:
        transform var(--transition);
}

.quick-card:hover i {
    transform:
        scale(1.12);
}

/* =========================================================
   STATISTICS CARDS
   ========================================================= */

.stats-card {
    height: 100%;

    padding:
        35px;

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

    background:
        var(--white);

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

    text-align:
        center;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.stats-card:hover {
    transform:
        translateY(-6px);

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

.stats-card h2 {
    margin-top:
        15px;

    font-size:
        42px;

    font-weight:
        700;
}

.stats-card p {
    margin-bottom:
        0;

    color:
        #666666;

    font-size:
        18px;
}

.text-purple {
    color:
        #7952b3;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    min-height:
        46px;

    border-radius:
        10px;
}

.form-control:focus,
.form-select:focus {
    border-color:
        rgba(13, 110, 253, 0.65);

    box-shadow:
        0 0 0 0.2rem
        rgba(13, 110, 253, 0.12);
}

textarea.form-control {
    min-height:
        120px;
}

/* =========================================================
   TABLES
   ========================================================= */

.table-responsive {
    width:
        100%;

    overflow-x:
        auto;

    border-radius:
        12px;

    -webkit-overflow-scrolling:
        touch;
}

.table {
    min-width:
        760px;
}

/* =========================================================
   PAGE LOADER
   ========================================================= */

#loader {
    position:
        fixed;

    inset:
        0;

    z-index:
        99999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--white);

    opacity:
        1;

    visibility:
        visible;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

#loader.loader-hidden {
    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;
}

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

.footer {
    width:
        100%;

    margin-top:
        80px;

    padding:
        65px 0 28px;

    background:
        linear-gradient(
            145deg,
            #1f2937,
            #111827
        );

    color:
        var(--white);
}

.footer-title,
.footer-heading {
    margin-bottom:
        20px;

    color:
        var(--white);

    font-weight:
        700;
}

.footer-description {
    max-width:
        360px;

    margin-bottom:
        0;

    color:
        #d1d5db;
}

.footer-links li {
    margin-bottom:
        10px;
}

.footer-links a {
    display:
        inline-flex;

    align-items:
        center;

    color:
        #d1d5db;

    text-decoration:
        none;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-links a:hover {
    color:
        var(--white);

    transform:
        translateX(5px);
}

.footer-contact li {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    margin-bottom:
        14px;

    color:
        #d1d5db;
}

.footer-contact a {
    color:
        #d1d5db;

    text-decoration:
        none;
}

.footer-contact a:hover {
    color:
        var(--white);
}

.footer-contact-icon {
    display:
        inline-grid;

    place-items:
        center;

    flex:
        0 0 36px;

    width:
        36px;

    height:
        36px;

    border-radius:
        10px;

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

    color:
        var(--white);
}

.footer-divider {
    margin:
        32px 0 24px;

    border-color:
        rgba(255, 255, 255, 0.16);

    opacity:
        1;
}

.footer-copyright,
.footer-security {
    color:
        #cbd5e1;

    font-size:
        0.92rem;
}

/* =========================================================
   REMOVE THE OLD DUPLICATE BUTTON
   ========================================================= */

#topBtn {
    display:
        none !important;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top-button {
    position:
        fixed;

    right:
        26px;

    bottom:
        26px;

    z-index:
        9999;

    display:
        grid;

    place-items:
        center;

    width:
        54px;

    height:
        54px;

    padding:
        0;

    margin:
        0;

    appearance:
        none;

    border:
        0;

    border-radius:
        50%;

    outline:
        0;

    background:
        linear-gradient(
            145deg,
            #21a366,
            #117747
        );

    color:
        var(--white);

    box-shadow:
        0 10px 25px
        rgba(17, 119, 71, 0.34);

    cursor:
        pointer;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transform:
        translateY(16px)
        scale(0.9);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.back-to-top-button.show {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

    transform:
        translateY(0)
        scale(1);
}

.back-to-top-button:hover {
    background:
        linear-gradient(
            145deg,
            #168d56,
            #0d6038
        );

    transform:
        translateY(-4px)
        scale(1.05);

    box-shadow:
        0 15px 32px
        rgba(17, 119, 71, 0.44);
}

.back-to-top-button:active {
    transform:
        translateY(-1px)
        scale(0.96);
}

.back-to-top-button:focus-visible {
    outline:
        4px solid
        rgba(25, 135, 84, 0.28);

    outline-offset:
        4px;
}

/* =========================================================
   PERFECTLY CENTRED CSS ARROW
   ========================================================= */

.back-to-top-arrow {
    position:
        relative;

    display:
        block;

    width:
        22px;

    height:
        22px;

    pointer-events:
        none;
}

/* Vertical arrow line */

.back-to-top-arrow::before {
    content:
        "";

    position:
        absolute;

    top:
        5px;

    left:
        50%;

    width:
        2.5px;

    height:
        14px;

    border-radius:
        999px;

    background:
        var(--white);

    transform:
        translateX(-50%);
}

/* Arrow head */

.back-to-top-arrow::after {
    content:
        "";

    position:
        absolute;

    top:
        4px;

    left:
        50%;

    width:
        9px;

    height:
        9px;

    border-top:
        2.5px solid
        var(--white);

    border-left:
        2.5px solid
        var(--white);

    transform:
        translateX(-50%)
        rotate(45deg);

    transform-origin:
        center;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .navbar-collapse {
        margin-top:
            15px;

        padding:
            15px;

        border-radius:
            14px;

        background:
            rgba(0, 0, 0, 0.12);
    }

    .navbar-nav {
        width:
            100%;

        align-items:
            stretch !important;
    }

    .navbar-nav .nav-item {
        width:
            100%;

        margin:
            3px 0 !important;
    }

    .navbar-nav .nav-link {
        width:
            100%;

        margin-left:
            0;

        text-align:
            left;
    }

    .navbar-nav .btn {
        width:
            100%;

        margin-top:
            8px;
    }

    .hero {
        text-align:
            center;
    }

    .hero .col-lg-6 {
        margin-bottom:
            25px;
    }

    .hero .btn {
        margin:
            5px 2px !important;
    }

    .container {
        max-width:
            94%;
    }

    .card-body {
        padding:
            22px;
    }

    .display-4 {
        font-size:
            2.6rem;
    }

    .footer .col-lg-4 {
        margin-bottom:
            20px;
    }

    .footer-description {
        max-width:
            none;
    }
}

/* =========================================================
   MOBILE PHONE
   ========================================================= */

@media (max-width: 767.98px) {

    body {
        font-size:
            15px;
    }

    .container {
        width:
            100%;

        max-width:
            100%;

        padding-left:
            18px;

        padding-right:
            18px;
    }

    section {
        padding-top:
            42px !important;

        padding-bottom:
            42px !important;
    }

    h1,
    .display-4 {
        font-size:
            2rem !important;

        line-height:
            1.2;
    }

    h2 {
        font-size:
            1.65rem;
    }

    h3 {
        font-size:
            1.4rem;
    }

    h4 {
        font-size:
            1.2rem;
    }

    .lead {
        font-size:
            1rem;
    }

    .navbar-brand {
        font-size:
            1rem !important;
    }

    .hero {
        padding-top:
            45px !important;

        padding-bottom:
            45px !important;
    }

    .hero h1,
    .hero h2,
    .hero p {
        text-align:
            center;
    }

    .hero .btn {
        display:
            block;

        width:
            100%;

        margin:
            10px 0 !important;
    }

    .hero img {
        max-height:
            260px !important;

        margin-top:
            25px;
    }

    .quick-card,
    .stats-card,
    .card {
        height:
            auto !important;
    }

    .quick-card {
        min-height:
            auto;

        padding:
            24px !important;
    }

    .quick-card i {
        font-size:
            52px !important;
    }

    .stats-card {
        margin-bottom:
            15px;
    }

    .card-body {
        padding:
            20px !important;
    }

    .card-img-top {
        height:
            210px !important;
    }

    .form-control,
    .form-select {
        width:
            100%;
    }

    form .btn {
        margin-bottom:
            8px;
    }

    .d-flex.justify-content-between {
        flex-direction:
            column;

        align-items:
            stretch !important;

        gap:
            12px;
    }

    .d-flex.justify-content-between .btn {
        width:
            100%;
    }

    .table {
        min-width:
            720px;

        font-size:
            14px;
    }

    .table img {
        width:
            58px !important;

        height:
            58px !important;
    }

    .table .btn {
        width:
            auto;

        min-height:
            36px;

        margin:
            2px;
    }

    .alert {
        padding:
            20px;
    }

    .footer {
        margin-top:
            50px;

        padding:
            48px 0 24px;

        text-align:
            center;
    }

    .footer-description {
        margin-right:
            auto;

        margin-left:
            auto;
    }

    .footer-links a {
        justify-content:
            center;
    }

    .footer-links a:hover {
        transform:
            none;
    }

    .footer-contact li {
        justify-content:
            center;
    }

    .back-to-top-button {
        right:
            17px;

        bottom:
            18px;

        width:
            50px;

        height:
            50px;
    }

    .back-to-top-arrow {
        width:
            20px;

        height:
            20px;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .container {
        padding-left:
            14px;

        padding-right:
            14px;
    }

    h1,
    .display-4 {
        font-size:
            1.75rem !important;
    }

    h2 {
        font-size:
            1.45rem;
    }

    .navbar-brand {
        font-size:
            0.9rem !important;
    }

    .card-body {
        padding:
            17px !important;
    }

    .card-img-top {
        height:
            190px !important;
    }

    .btn-lg {
        padding:
            12px 18px;

        font-size:
            1rem;
    }

    .back-to-top-button {
        right:
            14px;

        bottom:
            15px;

        width:
            47px;

        height:
            47px;
    }
}

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

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

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}