/*
    Newshub Lightweight Public Stylesheet
    Designed to replace heavy libraries on public routes.
*/

:root {
    --primary-bg: #400ec7;
    --footer-bg: #fdcb4f;
    --text-dark: #222;
    --text-light: #fff;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: #0f172a;
    color: var(--text-light);
    overflow-x: hidden;
}

/* Typography & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

h2,
h3,
h5 {
    margin: 0;
    font-weight: 300;
}

/* Layout Utilities */
.nh-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6,
.col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.m-auto {
    margin: auto !important;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Custom Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-bg) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    opacity: 0.95;
}

.navbar .container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-left: 1rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        flex-basis: 100%;
    }

    .navbar-collapse.show {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        margin-left: 0;
        width: 100%;
    }
}

/* Background Slider Container */
.background-image-container {
    position: relative;
    height: 95vh;
    width: 100%;
    overflow: hidden;
}

/* Double-layered carousel mechanism */
#background-gradient,
#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gradient layer (always animating at the bottom) */
#background-gradient {
    z-index: 1;
}

/* Image overlay layer (fading in and out) */
#background-image {
    z-index: 2;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
}

/* Hover Zoom effect */
.hover-zoom {
    animation: zoomin 65s ease-in infinite;
    transition: background-position 10s ease-in-out;
}

/* Shifting animated gradient */
.animated-gradient-bg {
    background: linear-gradient(-45deg, #1e1b4b, #311042, #111827, #0f172a);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes zoomin {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Content Header Overlay */
.div-header {
    position: absolute;
    bottom: 25px;
    left: 15px;
    right: 15px;
    z-index: 10;
    /* max-width: 800px; */
    margin: 0;
    pointer-events: auto;
}

.zero-margin {
    margin: 0;
    padding: 0;
}

.website-icon {
    height: 32px;
    width: 32px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}

.header-website-text {
    color: #000;
    text-shadow: 0 1px 1px rgba(255, 255, 0, 0.5);
    background: rgba(255, 255, 0, 0.85);
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3px;
    vertical-align: middle;
}

.header-text {
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 10px;
    display: table;
}

.article-info-block {
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    margin-top: 10px;
    display: table;
    max-width: 100%;
}

.article-info-block a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-info-block a:hover {
    text-decoration: underline;
}

.article-info-block h3 {
    margin-bottom: 6px;
}

#header-text {
    font-size: 1.8rem;
    font-weight: 300;
}

#sub-header-text {
    font-size: 1.2rem;
    font-weight: 200;
}

/* Footer Section */
.nh-footer {
    background-color: var(--footer-bg);
    color: var(--text-dark);
    padding: 3rem 1.5rem;
    width: 100%;
    margin: 0;
}

.nh-footer .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.div-footer {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.left-footer {
    align-items: flex-start;
}

.nh-footer a {
    color: var(--text-dark);
    font-weight: 400;
    transition: opacity 0.3s;
}

.nh-footer a:hover {
    opacity: 0.8;
}

.nh-footer i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .nh-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .left-footer {
        align-items: center;
    }
}

/* Privacy Policy Layout */
.privacy-policy {
    background: #1e293b;
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 900px;
    margin: 3rem auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.privacy-policy h2 {
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
}

.privacy-policy p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.privacy-policy ul {
    color: #cbd5e1;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.privacy-policy a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Login Page Styling */
.header-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zoominheader {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #1e1b4b, #311042, #111827, #0f172a);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite, zoomin 65s ease-in infinite;
}

.zoomoutheader {
    width: 100%;
    display: flex;
    justify-content: center;
}

.div-login {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.login-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.login-card img {
    max-height: 50px;
    margin-bottom: 1.5rem;
}

.login-card h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-control {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #6366f1;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s;
}

.btn-info {
    background-color: var(--primary-bg);
    color: #fff;
}

.btn-info:hover {
    background-color: #4f1ad4;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-login {
    margin-top: 1.5rem;
}

/* Alert Notification Boxes */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert p {
    margin: 0;
}

.alert .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    opacity: .5;
    cursor: pointer;
    padding: 0;
}

.alert .close:hover {
    opacity: .75;
}

/* Helper Utilities */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: #cbd5e1;
}