@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-dark: #0B1E33;
    --primary-medium: #1A3B5E;
    --primary-light: #2B4C7C;
    --accent-gold: #D4AF37;
    --accent-gold-light: #e5c158;
    --text-white: #FFFFFF;
    --text-light: #F0F0F0;
    --text-muted: #CCCCCC;
    --dark-bg: #0a0f1a;
    --card-bg: rgba(20, 30, 45, 0.85);
    --input-bg: rgba(30, 40, 55, 0.9);
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --container-padding: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   FIXED FOOTER - BASE HTML/BODY STRUCTURE
   ======================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium), var(--primary-light));
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
}

/* Main content wrapper - pushes footer down */
main, .main-content, .content-wrapper {
    flex: 1 0 auto;
}

/* Container - also pushes content */
.container {
    flex: 1 0 auto;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ========================================
   HEADINGS - GOLD COLOR
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent-gold);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* ========================================
   RESPONSIVE NAVBAR
   ======================================== */
.navbar {
    background: rgba(10, 25, 47, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: var(--transition);
    border-radius: 2rem;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--accent-gold);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* Search Form in Navbar */
.navbar-search-form {
    min-width: 200px;
    margin: 0 0.5rem;
}

.navbar-search-form .input-group {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    overflow: hidden;
}

.navbar-search-form .form-control {
    background: rgba(30, 40, 55, 0.8);
    border: none;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.navbar-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search-form .btn {
    border-radius: 0;
    padding: 0.5rem 1rem;
}

/* ========================================
   CARDS - RESPONSIVE WITH DARK BACKGROUND
   ======================================== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-img-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    height: 180px;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.02);
}

/* ========================================
   BUTTONS - TOUCH FRIENDLY
   ======================================== */
.btn {
    border-radius: 2rem;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--text-white);
    background: transparent;
    color: var(--text-white);
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* ========================================
   FORMS - MOBILE FRIENDLY WITH DARK BACKGROUND
   ======================================== */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-white);
    font-weight: 400;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(40, 50, 65, 0.95);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    color: var(--text-white);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================================
   TABLES - RESPONSIVE
   ======================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-width: 600px;
}

.table thead th {
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.8rem;
    white-space: nowrap;
    color: var(--accent-gold);
}

.table td {
    padding: 0.8rem;
    vertical-align: middle;
    white-space: nowrap;
    color: var(--text-light);
}

/* ========================================
   STATS CARDS - RESPONSIVE GRID
   ======================================== */
.stats-card {
    background: rgba(20, 30, 45, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transition: transform 0.2s;
    padding: 1rem;
    text-align: center;
}

.stats-card h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border-radius: 2rem;
    background: rgba(20, 30, 45, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.8);
    border-color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.8);
    border-color: #28a745;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.75rem;
}

/* ========================================
   LINKS
   ======================================== */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* ========================================
   TEXT MUTED
   ======================================== */
.text-muted {
    color: var(--text-muted) !important;
}

/* ========================================
   MODAL
   ======================================== */
.modal-content {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--accent-gold);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --border-radius: 0.75rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        text-align: center;
    }
    
    .navbar-search-form {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    /* Search Form */
    .search-form .col-md-3,
    .search-form .col-md-2 {
        margin-bottom: 0.5rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    /* Stats Cards */
    .stats-number {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Forms */
    .form-control, .form-select {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.8rem;
        min-width: 550px;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Role Cards */
    .role-card {
        margin-bottom: 1rem;
    }
    
    /* Contact Page */
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .stats-number {
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .table {
        font-size: 0.7rem;
        min-width: 500px;
    }
    
    .badge {
        font-size: 0.7rem;
    }
}

/* Large Desktop (above 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
}

/* ========================================
   UTILITIES FOR TOUCH DEVICES
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn, .nav-link, .card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========================================
   FOOTER - STAYS PERMANENTLY AT BOTTOM
   ======================================== */
.footer {
    flex-shrink: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer a {
    color: var(--text-light);
}

.footer a:hover {
    color: var(--accent-gold);
}

.footer .container {
    flex: none;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    background: rgba(30, 40, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.pagination .page-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.pagination .active .page-link {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.dropdown-menu {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item {
    color: var(--text-light);
}

.dropdown-item:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ========================================
   LIST GROUP
   ======================================== */
.list-group-item {
    background: rgba(20, 30, 45, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ========================================
   NAV TABS
   ======================================== */
.nav-tabs .nav-link {
    color: var(--text-light);
}

.nav-tabs .nav-link.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}