/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --dark-bg: #111827;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin-right: 15px;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-links a.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    top: 100%;
    right: 0;
    /* Align to right for better responsiveness if near edge */
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-content a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Cards (News, Gallery, etc.) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Admin Specific */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 1rem;
}

.sidebar a {
    display: block;
    padding: 15px 20px;
    color: #ccc;
    border-bottom: 1px solid #444;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary-color);
    color: var(--white);
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: #f1f1f1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background: var(--primary-color);
    color: var(--white);
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending {
    background: #ffeeba;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    .burger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        display: none;
        gap: 10px;
    }

    .nav-links a {
        display: block;
        text-align: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

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