
/* FUNCTIONAL CONSTANTS */
:root {
    /* THEME 1 (Yellow + Blue):

    --theme-primary: #002366;
    --theme-secondary: #FFD700;
    --theme-secondary-tint: #FFE44D;
    --theme-accent: #D4AF37;

    --bg-page: #ffffff;
    --text-main: #000000;
    --text-inverse: #ffffff;
    --text-navbar: #000000;

    --rgb-primary: 0, 35, 102;
    --rgb-secondary: 255, 215, 0;
    --rgb-shadow: 0, 0, 0;

    --shadow-standard: 0 3px 10px rgba(var(--rgb-shadow), 0.3);
    --shadow-soft: 0 5px 10px rgba(var(--rgb-shadow), 0.1);
    --shadow-text: 0.5px 0.5px 3px rgba(var(--rgb-shadow), 0.3);
    --overlay-pattern: rgba(var(--rgb-primary), 0.15);
    */

    /* THEME 2 (Red + Blue): */

    --theme-primary: #05367F;
    --theme-secondary: #FF0000;
    --theme-secondary-tint: #FF4433;
    --theme-accent: #B30000;

    --bg-page: #ffffff;
    --text-main: #ffffff;
    --text-inverse: #000000;
    --text-navbar: #ffffff;

    --rgb-primary: 0, 35, 102;
    --rgb-secondary: 230, 0, 0;
    --rgb-shadow: 0, 0, 0;

    --shadow-standard: 0 3px 10px rgba(var(--rgb-shadow), 0.3);
    --shadow-soft: 0 5px 10px rgba(var(--rgb-shadow), 0.1);
    --shadow-text: 0.5px 0.5px 3px rgba(var(--rgb-shadow), 0.3);
    --overlay-pattern: rgba(var(--rgb-primary), 0.15);
}

/* Navbar */
.bsv-navbar {
    background-color: var(--theme-secondary);
    height: 50px;
    border-bottom: 1px solid var(--theme-secondary-tint);
}

/* Logo Ribbon */
.bsv-logo-ribbon {
    position: absolute;
    top: 0;
    left: 30px;
    height: 120px;
    width: 120px;
    z-index: 1050;
}

.bsv-ribbon-body {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: var(--theme-primary);
    box-shadow: var(--shadow-standard);
}

.bsv-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(var(--rgb-shadow), 0.2);
}

.bsv-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bsv-ribbon-point {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: var(--theme-primary);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform: translateY(99%);
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--text-navbar);
    font-weight: 500;
    position: relative;
    text-shadow: var(--shadow-standard);
}

.navbar-nav .nav-link:hover {
    color: var(--theme-primary);
}

/* Header Banner */
.bsv-header-banner {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--theme-secondary);
}

.bsv-banner-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-tint) 50%, var(--theme-secondary) 100%),
        repeating-linear-gradient(45deg, var(--overlay-pattern), var(--overlay-pattern) 1px, transparent 1px, transparent 15px),
        repeating-linear-gradient(-45deg, var(--overlay-pattern), var(--overlay-pattern) 1px, transparent 1px, transparent 15px);
    background-blend-mode: overlay;
}

.bsv-banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(var(--rgb-secondary), 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(var(--rgb-secondary), 0.3) 100%);
}

.bsv-banner-border {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-secondary), var(--theme-accent));
}

.bsv-page-title {
    position: relative;
    width: 50%;
    color: var(--theme-primary);
    z-index: 4;
    font-size: 2.3rem;
    text-shadow: var(--shadow-text);
    text-align: center;
    margin: 0;
}

.bsv-social-icons-desktop a,
.bsv-social-icons-mobile a {
    color: var(--text-navbar) !important;
    text-decoration: none; /* Removes underline if any */
}

.bsv-social-icons-desktop a:hover,
.bsv-social-icons-mobile a:hover {
    color: var(--theme-primary) !important;
}

.bsv-social-icons-desktop i,
.bsv-social-icons-mobile i {
    text-shadow: var(--shadow-standard);
}

/* in full width */
@media (min-width: 992px) {
    .bsv-nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        height: 100%;
        white-space: nowrap;
    }

    .bsv-social-icons-desktop {
        display: flex;
        gap: 1rem;
    }
}

/* on smaller screen or mobile */
@media (max-width: 991.98px) {
    .bsv-nav-links {
        flex-direction: column;
        align-items: flex-end !important;
        padding-right: 1rem;
        font-size: 1rem;
    }

    .navbar-collapse {
        background-color: var(--theme-secondary);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1040;
        box-shadow: var(--shadow-soft);
    }

    .bsv-social-icons-mobile {
        display: flex;
        justify-content: flex-end;
        margin-left: 120px;
        gap: 0.8rem;
    }
    .bsv-page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px){
    .bsv-page-title {
        font-size: 1.5rem;
        left: 20%;
        text-align: right;
    }
}

@media (max-width: 576px){
    .bsv-navbar {
        height: 50px;
    }
    .bsv-header-banner {
        height: 80px;
    }
    .bsv-logo-ribbon {
        left: 15px;
        height: 100px;
        width: 100px;
    }
    .bsv-logo-container {
        width: 90px;
        height: 90px;
    }
    .bsv-ribbon-point {
        height: 17px;
    }
    .bsv-social-icons-mobile a i {
        font-size: 1rem !important;
    }
    .bsv-page-title {
        font-size: 1.2rem;
    }
}

/* Spacer for the Navbar and Banner*/
.auto-page-spacer {
    padding-top: 150px;
}

@media (max-width: 576px) {
    .auto-page-spacer {
        padding-top: 130px;
    }
}

/* Footer Styling */
.footer-color {
    background-color: var(--theme-primary);
}

.back-to-top-wrapper {
    position: absolute;
    width: 100%;
    text-align: center;
    top: -25px;
}

.back-to-top-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--theme-secondary);
    color: var(--text-main);
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.3s;
}

.back-to-top-btn:hover {
    background-color: var(--theme-secondary-tint);
    color: var(--theme-primary);
}

.gradient-heading {
    position: relative;
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 0 1rem;
    background: linear-gradient(90deg,
        var(--theme-primary) 0%,
        rgba(var(--rgb-primary), 0.8) 25%,
        var(--theme-accent) 50%,
        rgba(var(--rgb-primary), 0.8) 75%,
        var(--theme-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(var(--rgb-primary),0.1);
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {background-position: 0% center;}
    50% {background-position: 100% center;}
    100% {background-position: 0% center;}
}

@media (max-width: 768px) {
    .gradient-heading {
        font-size: 2rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .gradient-heading {
        font-size: 2rem;
        margin-bottom: 25px;
    }
}