:root {
    /* Color Palette */
    --primary-color: #0a3350;
    /* Deep Navy */
    --primary-dark: #062033;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-hover: #b5952f;
    --secondary-color: #f4f6f9;
    /* Light Blue/Gray Background */
    --text-color: #333333;
    /* Dark Gray Text */
    --text-light: #6c757d;
    /* Light Gray Text */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-md);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 10px rgba(10, 51, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 51, 80, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-left: 1rem;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--white);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.bg-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    margin-bottom: 0 !important;
    /* Override bootstrap */
    border-radius: 0 !important;
}

.bg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 51, 80, 0.9), rgba(10, 51, 80, 0.7));
    z-index: 1;
}

.bg-hero>.container-fluid {
    position: relative;
    z-index: 2;
}

.bg-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Feature Icons */
.feature-icon-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--white), #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-item:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--white);
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--accent-color);
}

/* Sidebar */
#sidebarMenu {
    background-color: var(--primary-color);
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#sidebarMenu .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-color);
}

#sidebarMenu .nav-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* Login Page */
.login-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
    background: url('https://images.unsplash.com/photo-1555431110-e744d2e96d8e?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 51, 80, 0.85);
}

.login-header h3 {
    position: relative;
    color: var(--white);
    z-index: 1;
    margin: 0;
}

.form-control {
    border-radius: var(--border-radius-md);
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(10, 51, 80, 0.1);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}