html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/*
html {
  position: relative;
  min-height: 100%;
}*/
/*:root {
    --nkala-gold: #D4AF37;
    --nkala-gold-dark: #B8962E;
    --nkala-navy: #0F172A;
    --nkala-midnight: #1E293B;
    --nkala-light: #F8FAFC;
    --nkala-text: #E2E8F0;
}

body {
    background-color: var(--nkala-navy);
    color: var(--nkala-text);
}
*/
    /* Golden crab watermark */
    body::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 600px;
        height: 600px;
        background: url('/images/nkala-crabs.png') no-repeat center;
        background-size: contain;
        opacity: 0.05; /* subtle watermark */
        transform: translate(-50%, -50%);
        z-index: -1;
    }

/* Header */
header, .navbar {
    background-color: #003366 !important; /* Strong blue */
    color: white !important;
}

    /* Header links */
    .navbar a {
        color: white !important;
    }
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hero-section {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--nkala-navy), var(--nkala-midnight));
}

.gold-text {
    color: var(--nkala-gold);
}

.btn-gold {
    background-color: var(--nkala-gold);
    color: #0F172A;
    font-weight: 600;
    border: none;
}

    .btn-gold:hover {
        background-color: var(--nkala-gold-dark);
    }

/*.hero-logo {
    max-width: 400px;
    opacity: 0.9;
}*/
main {
    flex: 1 0 auto;
}
/* Footer Styling */
footer {
    background-color: #003366;
    flex-shrink: 0;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Add subtle shadow for better contrast */
}

/* Social Icon Hover Effects */
.social-icons i {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icons a:hover i {
    color: #ffffff;
}

/* Mobile and tablet responsive design */

/* For smaller devices (Mobile Portrait) */
@media (max-width: 767px) {
    /* Adjust navbar items for smaller screens */
    .navbar a {
        font-size: 1rem;
        padding: 10px;
    }

    /* Adjust .nkala-brand for smaller screens */
    .nkala-brand {
        font-size: 1.8rem;
        color: gold !important;
        text-shadow: 0 0 10px gold;
    }

    /* Adjust footer padding */
    footer {
        padding: 15px 0;
    }

    /* Stack social icons vertically */
    .social-icons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .social-icons i {
            font-size: 1.5rem; /* Bigger icons on small screens */
        }

    /* Make header more compact on mobile */
    header, .navbar {
        padding: 10px 0;
    }
}

/* For medium-sized devices (Tablet Landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust .nkala-brand for tablet screens */
    .nkala-brand {
        font-size: 2.2rem;
    }

    /* Navbar adjustment */
    .navbar a {
        font-size: 1.1rem;
        padding: 12px;
    }

    /* Social icons size tweak */
    .social-icons i {
        font-size: 1.75rem;
    }
}

/* For large screens (Desktop and above) */
@media (min-width: 1025px) {
    .nkala-brand {
        font-size: 2.5rem; /* Default for desktop */
        font-weight: bold;
        color: gold !important;
        text-shadow: 0 0 10px gold;
    }

    /* Adjust navbar links for large screens */
    .navbar a {
        font-size: 1.2rem;
    }

    /* Larger footer padding */
    footer {
        padding: 20px 0;
    }
}
/* Dropdown menu background and text color */
.navbar-nav .dropdown-menu {
    background-color:cadetblue; /* white background */
    color: #000; /* black text */
    min-width: 200px; /* minimum width for dropdown */
    padding: 0.5rem 0;
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

    /* Dropdown menu links */
    .navbar-nav .dropdown-menu a.dropdown-item {
        color: #000; /* black text */
        padding: 0.5rem 1rem;
        display: block;
        text-decoration: none;
    }

        /* Hover effect on dropdown items */
        .navbar-nav .dropdown-menu a.dropdown-item:hover,
        .navbar-nav .dropdown-menu a.dropdown-item:focus {
            background-color: #007bff; /* bootstrap primary blue */
            color: #fff; /* white text on hover */
            text-decoration: none;
        }

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Navbar hover effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #0d6efd;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: #0d6efd;
}

    .nav-link:hover::after, .nav-link:focus::after {
        width: 100%;
        left: 0;
        background: #0d6efd;
    }

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

    #scrollTopBtn:hover {
        background-color: #084298;
    }

.scrolling-wrapper {
    overflow: hidden;
    position: relative;
}

    .scrolling-wrapper .row {
        display: flex;
        animation: scrollRightToLeft 20s linear infinite;
    }

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Optional: pause on hover */
.scrolling-wrapper:hover .row {
    animation-play-state: paused;
}

.nkala-logo, .advocate-logo {
    object-fit: contain;
    height: 180px;
    padding: 10px;
    background-color: white; /* optional */
}

#intro-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0F172A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1.2s ease 3s forwards;
}

.intro-content {
    text-align: center;
    color: white;
}

.intro-logo {
    width: 150px;
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 1.5s ease forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-title {
    font-weight: 700;
    letter-spacing: 2px;
}

.intro-tagline {
    color: #D4AF37;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 5px #D4AF37);
    }

    to {
        filter: drop-shadow(0 0 25px #D4AF37);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ===== NKALA TECH GLASS NAVBAR ===== */


/* Sticky Glass Navbar */
.glass-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

    /* Add subtle shrink on scroll */
    .glass-navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
        padding: 6px 0;
    }

/* Brand Styling */
.nkala-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--nkala-gold) !important;
    letter-spacing: 1px;
}

/* Nav Links */
.nav-link.active {
    color: var(--nkala-gold) !important;
    font-weight: 600;
}

    .nav-link.active::after {
        width: 100%;
        background: var(--nkala-gold);
    }

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--nkala-gold) !important;
    }

.dropdown-menu-dark {
    background-color: var(--nkala-midnight);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Push content below fixed navbar */
.main-content {
    padding-top: 110px;
}

/* Optional: smoother body */
/*body {
    background-color: var(--nkala-navy);
    color: #E2E8F0;
}*/
.case-card {
    background: #1E293B;
    border-left: 4px solid #D4AF37;
    border-radius: 10px;
}

:root {
    --nkala-gold: #D4AF37;
    --nkala-navy: #0F172A;
    --nkala-midnight: #1E293B;
}

body {
    background-color: var(--nkala-navy);
    color: #E2E8F0;
}

.hero-crab {
    max-width: 260px;
    margin-bottom: 20px;
    background-color: transparent; /* ensures no background color behind image */
}

.nkala-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--nkala-gold);
}

.nkala-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.admin-dashboard {
    background: #0f172a;
    min-height: 100vh;
    padding: 30px;
}

.admin-card {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

    .admin-card h6 {
        color: #94a3b8;
        margin-bottom: 10px;
    }

    .admin-card h2 {
        font-weight: 700;
    }

.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .activity-feed li {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

/* Full-height page layout */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Main content expands to push footer down */
main {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer */
.site-footer {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    background-color: #101820;
    color: #fff;
    z-index: 1;
}

    .site-footer a {
        color: #fff;
        transition: color 0.2s ease-in-out;
    }

        .site-footer a:hover {
            color: #d4af37;
        }

/* Scroll-to-top button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: #d4af37;
    color: #101820;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

    #scrollTopBtn:hover {
        background-color: #f0cf63;
    }
