/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #222;
    --background-light: #f4f4f4;
    --background-dark: #1a1a1a;
    --text-light: #fff;
    --text-dark: #222;
    --box-shadow: rgba(0, 0, 0, 0.1);
}




h1 {
    font-size: 27px;
    color: #fff;
    margin-left: 40px;
}

.header-p {
    font-size: 18px;
    color: yellow;
    margin-left: 40px;
}


/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-light);
    margin: 0;
    padding: 0;
    display: flex;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    box-shadow: 4px 0 10px var(--box-shadow);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.sidebar .logo {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}
.sidebar .nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar .nav-links li {
    margin: 0;
}
.sidebar .nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}
.sidebar .nav-links a:hover, .sidebar .nav-links .active {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    margin-left: 290px;
    padding: 30px;
    flex: 1;
}

/* Header */
.main-content header {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}


.main-content header {
    
    background-color: #1f4b7b;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 22px;
    font-weight: 250;
    margin-bottom: 25px;
    margin-left: 45px;
    padding-left: 25px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}






/* General Styles for Resources Page */
.hero-resources {
    text-align: center;
    padding: 80px 20px;
    background: url('../images/resources-hero.jpg') center/cover no-repeat;
    color: white;
}

.hero-resources h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-resources p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* Categories Section */
.categories {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.categories h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.category-card {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.category-card:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Featured Resources Section */
.resources-list {
    text-align: center;
    padding: 50px 20px;
}

.resources-list h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.resource-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.resource-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 320px;
    transition: 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.resource-card img {
    width: 100%;
    border-radius: 5px;
}

.btn-secondary {
    display: block;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* Call to Action Section */
.cta {
    text-align: center;
    padding: 50px 20px;
    background-color: #007bff;
    color: white;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}