/* =========================
   General
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

h1, h2, h3 {
    margin: 0 0 10px 0;
}

a {
    text-decoration: none;
    color: #1e90ff;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   Header & Navbar
========================= */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
}

header h1 {
    margin-bottom: 10px;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
}

/* =========================
   Welcome message
========================= */
header .welcome {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================
   Flash messages
========================= */
.flash-messages {
    margin: 10px 20px;
}

.flash {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* =========================
   Main content
========================= */
main {
    padding: 20px;
}

/* =========================
   Dashboard cards
========================= */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 250px; /* responsive width */
}

.card h3 {
    margin-bottom: 10px;
}

.card.success {
    border-left: 4px solid #28a745;
}

.card.warning {
    border-left: 4px solid #ffc107;
}

.card.admin {
    border-left: 4px solid #17a2b8;
}

/* =========================
   Buttons
========================= */
button, .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #1e90ff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

button:hover, .btn:hover {
    background-color: #0c7cd5;
}

/* =========================
   Tables
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f1f1f1;
}

/* =========================
   Footer
========================= */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text-container {
        padding: 0 15px;
    }
}

/* =========================
   Hero Section
========================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-container {
    text-align: center;
    color: #fff;
    max-width: 700px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;/* Navigation bar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #0000FF;
    padding: 12px 16px;

    box-shadow: 0 2px 6.bg-layer {
    position: fixed;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

.bg1 { opacity: 1; }
.bg2 { opacity: 0; }
px rgba(0, 0, 0, 0.3);
}

/* Nav links */
nav a {
    color: #fff;
    text-decoration: none;.bg-layer {
    position: fixed;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

.bg1 { opacity: 1; }
.bg2 { opacity: 0; }

    margin-right: 12px;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    text-decoration: underline;
    font-weight: bold;
}


/* Page spacing so content doesn’t hide behind nav */
body {
    margin: 0;
    padding-top: 0;
    font-family: Arial, sans-serif;
}

    margin-bottom: 15px;
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #d0d0d0;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3)/* Navigation bar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #0000FF;
    padding: 12px 16px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Nav links */
nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 12px;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    text-decoration: underline;
    font-weight: bold;
}


/* Page spacing so content doesn’t hide behind nav */
body {
    margin: 0;
    padding-top: 0;
    font-family: Arial, sans-serif;
}
;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 40px;
    background-color: #1e90ff;
    color: white;
    border: 2px solid #1e90ff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0c7cd5;
    border-color: #0c7cd5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 144, 255, 0.3);
    text-decoration: none;
}

.btn-secondary {
    padding: 12px 40px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e90ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Background image layers */
/* ===== BACKGROUND LAYERS ===== */

.bg-layer {
    position: fixed;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    will-change: opacity;
}

.bg1 { opacity: 1; }
.bg2 { opacity: 0; }

/* Make sure hero content sits above background */
.hero-section {
    position: relative;
    z-index: 1;
}

/* Optional dark overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
