/**
 * SIPAROKI Design System & Master Frontend Stylesheet
 * Paroki St. Vinsensius a Paulo - Benlutu
 * Modern, Responsive, Aesthetic Liturgical Theme
 */

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary-teal: #00897b;
    --primary-teal-hover: #00796b;
    --primary-teal-dark: #004d40;
    --primary-teal-light: #e0f2f1;
    --primary-teal-soft: rgba(0, 137, 123, 0.1);

    /* Accent & Liturgical Colors */
    --primary-orange: #f59e0b;
    --primary-orange-hover: #d97706;
    --primary-orange-dark: #b45309;
    --primary-orange-light: #fef3c7;
    --primary-orange-soft: rgba(245, 158, 11, 0.12);

    /* Cathedral Navy & Sapphire */
    --cathedral-navy: #0c4a6e;
    --cathedral-navy-dark: #07273b;
    --cathedral-deep: #041624;
    --cathedral-soft: rgba(12, 74, 110, 0.08);

    /* Neutrals & Slate */
    --body-bg: #f8fafc;
    --surface-card: #ffffff;
    --surface-soft: #f1f5f9;
    --border-color: #e2e8f0;
    --border-color-strong: #cbd5e1;

    /* Typography Colors */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    /* Layout & Geometry */
    --max-content-width: 1280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    /* Elevation Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.14);
    --shadow-teal: 0 8px 24px rgba(0, 137, 123, 0.2);
    --shadow-amber: 0 8px 24px rgba(245, 158, 11, 0.25);

    /* Typography Stack */
    --font-primary: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --body-bg: #07111f;
    --surface-card: #0f1e33;
    --surface-soft: #162942;
    --border-color: #1e3654;
    --border-color-strong: #2a4a70;
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --cathedral-soft: rgba(56, 189, 248, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   2. GLOBAL RESET & FOUNDATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--body-bg);
    color: var(--text-body);
    font-size: 0.9375rem; /* 15px */
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

::selection {
    background-color: var(--primary-teal);
    color: #ffffff;
}

/* Media defaults */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Containers - Restoring Proper Bounded Centering */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(14px, 2.5vw, 24px) !important;
    padding-right: clamp(14px, 2.5vw, 24px) !important;
}

.container,
.container-xl,
.container-xxl {
    max-width: var(--max-content-width) !important;
}

.container-fluid {
    max-width: 100% !important;
}

/* ==========================================================================
   3. TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.92rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-body);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.text-teal { color: var(--primary-teal) !important; }
.text-amber { color: var(--primary-orange) !important; }
.text-navy { color: var(--cathedral-navy) !important; }

/* Section Title Pattern */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.section-title h2 span {
    color: var(--primary-teal);
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-teal-soft);
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}

.section-badge.amber {
    background: var(--primary-orange-soft);
    color: var(--primary-orange);
}

/* ==========================================================================
   4. TOP BAR & SOCIAL ICONS
   ========================================================================== */
.top-bar {
    background: linear-gradient(90deg, #071f33 0%, #0c3552 50%, #004d40 100%);
    color: #ffffff;
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #fef08a;
}

.top-bar .follow-us {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.social-icons a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 50%;
    margin-left: 4px;
    font-size: 0.72rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   5. NAVBAR & HEADER
   ========================================================================== */
.navbar {
    background: #ffffff;
    padding: 10px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: #091526;
    border-bottom-color: var(--border-color);
}

.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Navbar Sticky & Fixed on Mobile */
.navbar.sticky-top,
#public-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
}

@media (max-width: 1199.98px) {
    body.public-portal {
        padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    }

    body.public-portal .navbar.sticky-top,
    #public-navbar {
        position: fixed !important;
        top: env(safe-area-inset-top, 0px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1050 !important;
    }

    #navbarNav.collapse.show,
    #navbarNav.collapsing {
        max-height: calc(100vh - 75px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

[data-theme="dark"] .navbar.sticky-top {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Navbar Brand */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    text-decoration: none;
    max-width: calc(100% - 64px);
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(0, 137, 123, 0.2);
    flex-shrink: 0;
}

.navbar-brand .brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-brand .brand-title {
    font-weight: 800;
    font-size: clamp(0.82rem, 2.5vw, 1.15rem);
    color: var(--primary-teal);
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand .brand-subtitle {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Navbar Links Desktop */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar-nav .nav-item {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 10px !important;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-teal);
    background: var(--primary-teal-soft);
}

.navbar-nav .nav-link.active {
    color: var(--primary-teal) !important;
    background: var(--primary-teal-soft);
    font-weight: 700;
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #e2e8f0;
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12);
}

/* Dropdown Menu Desktop */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 38px rgba(12, 74, 110, 0.12);
    padding: 8px;
    margin-top: 6px;
    min-width: 210px;
    border-top: 3px solid var(--primary-teal);
    animation: siparokiFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .dropdown-menu {
    background: #0f1e33;
    border-color: var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@keyframes siparokiFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-heading);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-teal-soft);
    color: var(--primary-teal);
    font-weight: 600;
    padding-left: 17px;
}

[data-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

@media (min-width: 1200px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Login & Action Button */
.btn-apply {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    box-shadow: var(--shadow-teal);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 137, 123, 0.35);
    background: linear-gradient(135deg, #009688 0%, #00695c 100%);
    color: #ffffff !important;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1.5px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--primary-teal);
    background: transparent;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--primary-teal-soft);
    outline: none;
}

.navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

/* Mobile & Tablet Navbar Styles */
@media (max-width: 1199.98px) {
    .top-bar {
        display: none !important;
    }

    .navbar-collapse {
        background: var(--surface-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 16px 18px;
        margin-top: 12px;
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 11px 8px !important;
        font-size: 0.92rem !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 8px;
    }

    .navbar-nav .dropdown-menu {
        border-top: none;
        background: var(--surface-soft);
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin: 4px 0 10px;
        padding: 6px;
        display: none;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-item {
        padding: 9px 12px;
        font-size: 0.86rem;
    }

    .navbar-collapse .btn-apply,
    .navbar-collapse .dropdown.ms-3 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 14px !important;
    }

    .navbar-collapse .dropdown.ms-3 .btn-apply {
        width: 100% !important;
        justify-content: center;
    }

    .navbar-collapse .btn-apply {
        justify-content: center;
        padding: 11px 20px;
    }
}

/* ==========================================================================
   6. PAGE HEADER HERO (SUBPAGES BANNER)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, rgba(6, 36, 56, 0.92) 0%, rgba(0, 77, 64, 0.88) 50%, rgba(10, 25, 41, 0.94) 100%), #07273b;
    padding: clamp(44px, 7vw, 76px) 16px clamp(32px, 5vw, 54px) !important;
    color: #ffffff !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 3px solid var(--primary-orange);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.st-badge,
.page-header .st-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fef08a !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.st-badge i,
.page-header .st-badge i {
    color: #fef08a !important;
    font-size: 0.8rem !important;
}

.page-header h1 {
    color: #ffffff !important;
    font-size: clamp(1.65rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
    line-height: 1.25 !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-header p {
    color: #f1f5f9 !important;
    font-size: clamp(0.88rem, 1.8vw, 1.02rem) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 680px !important;
    margin: 0 auto 18px !important;
    opacity: 0.95 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

/* Breadcrumb Badges */
.page-header .breadcrumb {
    display: inline-flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 8px !important;
    background: transparent !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.page-header .breadcrumb-item {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 5px 14px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.page-header .breadcrumb-item a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.page-header .breadcrumb-item a:hover {
    color: #fef08a !important;
}

.page-header .breadcrumb-item.active {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: var(--primary-orange) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.68rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* ==========================================================================
   7. CARD SYSTEM & SURFACES
   ========================================================================== */
.card,
.siparoki-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
    overflow: hidden;
}

.card:hover,
.siparoki-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 137, 123, 0.25);
}

.card-body {
    padding: 1.5rem;
}

/* News & Warta Card */
.news-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 137, 123, 0.3);
}

.news-card .card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.news-card .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-card:hover .card-thumb-wrap img {
    transform: scale(1.06);
}

.news-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary-teal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category-badge.announcement { background: #e11d48; }
.news-category-badge.reflection { background: #8b5cf6; }
.news-category-badge.article { background: #0284c7; }

.news-card .card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.news-card .card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.4;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card .card-title a:hover {
    color: var(--primary-teal);
}

.news-card .card-text {
    font-size: 0.86rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.btn-news {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-teal);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-news:hover {
    color: var(--primary-teal-hover);
    gap: 9px;
}

/* ==========================================================================
   8. BUTTONS & UI ACTIONS
   ========================================================================== */
.btn-konoha-teal,
.btn-teal {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: #ffffff !important;
    padding: 9px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    box-shadow: var(--shadow-teal);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-konoha-teal:hover,
.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 137, 123, 0.35);
    background: linear-gradient(135deg, #009688 0%, #00695c 100%);
    color: #ffffff !important;
}

.btn-konoha-amber,
.btn-amber {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
    color: #ffffff !important;
    padding: 9px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    box-shadow: var(--shadow-amber);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-konoha-amber:hover,
.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.4);
    color: #ffffff !important;
}

.btn-outline-teal {
    background: transparent;
    color: var(--primary-teal) !important;
    border: 2px solid var(--primary-teal);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 22px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-teal:hover {
    background: var(--primary-teal);
    color: #ffffff !important;
    box-shadow: var(--shadow-teal);
}

.btn-konoha-amber-outline {
    background: transparent;
    color: var(--primary-orange-hover) !important;
    border: 2px solid var(--primary-orange);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 22px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-konoha-amber-outline:hover {
    background: var(--primary-orange);
    color: #ffffff !important;
    box-shadow: var(--shadow-amber);
}

/* ==========================================================================
   9. FORMS & INPUTS
   ========================================================================== */
.form-control,
.form-select {
    border: 1.5px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: var(--font-primary);
    color: var(--text-heading);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px var(--primary-teal-soft);
    outline: none;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0f1e33;
    border-color: var(--border-color-strong);
    color: #f8fafc;
}

label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: inline-block;
}

/* ==========================================================================
   10. TABLES & RESPONSIVE DATA WRAPPERS
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-body);
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--surface-soft);
    color: var(--text-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    white-space: normal;
}

[data-theme="dark"] .table th {
    background-color: #162942;
    border-bottom-color: var(--border-color);
    color: #f8fafc;
}

[data-theme="dark"] .table td {
    border-bottom-color: var(--border-color);
    color: #cbd5e1;
}

/* ==========================================================================
   11. FOOTER & BACK TO TOP
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #071727 0%, #040d16 100%);
    color: #ffffff;
    padding: clamp(48px, 6vw, 68px) 0 20px;
    border-top: 3px solid var(--primary-orange);
    font-size: 0.88rem;
    margin-top: auto;
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 1.15rem;
    position: relative;
    padding-left: 12px;
    border-left: 3px solid var(--primary-orange);
}

.footer p {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.88rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.86rem;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary-orange);
    transform: translateX(4px);
}

.footer .social-icons a {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
    margin-right: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.footer .social-icons a:hover {
    background: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
}

/* Floating Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-teal);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
    transform: translateY(-3px);
}

/* ==========================================================================
   12. MOBILE & RESPONSIVE POLISH
   ========================================================================== */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.55rem;
    }

    .section-title p {
        font-size: 0.86rem;
    }

    .card-body {
        padding: 1.15rem;
    }

    .page-header {
        padding: 42px 14px 32px !important;
    }

    .page-header h1 {
        font-size: 1.55rem !important;
    }

    .page-header p {
        font-size: 0.85rem !important;
    }

    .page-header .breadcrumb-item {
        font-size: 0.74rem !important;
        padding: 4px 10px !important;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer h5 {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        width: 36px;
        height: 36px;
    }

    .navbar-brand .brand-title {
        font-size: 0.88rem;
    }

    .btn-apply,
    .btn-konoha-teal,
    .btn-konoha-amber {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    /* Prevent iOS auto-zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

