:root {
    --e-global-color-primary: #2A3A80;
    --e-global-color-secondary: #DB504A;
    --main-font-family: 'Geomanist', sans-serif;
}

/* Geomanist Font */
@font-face {
    font-family: 'Geomanist';
    src: url('../fonts/Geomanist-Regular.woff2') format('woff2'),
         url('../fonts/Geomanist-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Geomanist', sans-serif;
    margin: 0;
    padding: 0; 
    background-color: #f5f5f5; 
    color: #333;
}

/* Added styles for the wrapper div */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure all text elements use Geomanist */
h1, h2, h3, h4, h5, h6, p, a, span, button, input, textarea, select, label, div {
    font-family: var(--main-font-family);
}

/* Navigation */
nav, header {
    background-color: var(--e-global-color-primary); /* Reverted to fully opaque */
    display: flex;
    justify-content: space-between;
    padding: 5px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    position: relative;
    overflow: visible;
    height: 60px; /* Fixed height for the navbar */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.logo-img {
    height: 100px; /* Even larger size */
    width: auto;
    margin-right: 15px;
    position: relative;
    top: 30px; /* Adjusted to make logo protrude downwards */
    transition: transform 0.3s ease;
    z-index: 1000; /* Ensures logo appears above other elements */
    border: 2px solid white; /* Added white border */
}

.logo-img:hover {
    transform: scale(1.1);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-list li {
    display: inline;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold; /* Browser will synthesize bold if Geomanist-Bold is not available */
    margin: 0 15px;
    font-family: 'Geomanist', sans-serif;
}

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

/* Header */
header {
    text-align: center;
    padding: 20px 15px;
    color: white;
}

header h1 {
    font-size: 1.75rem;
    font-weight: bold; /* Browser will synthesize bold if Geomanist-Bold is not available */
    color: var(--e-global-color-secondary);
}

header span {
    color: white;
}

/* Content */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-image: url('/static/images/background.jpg'); /* Added background image */
    background-size: cover; /* Added background size */
    background-position: center center; /* Added background position */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* News Section */
.news-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: var(--e-global-color-secondary);
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icons a {
    margin-right: 10px;
    text-decoration: none;
    color: var(--e-global-color-primary);
}

/* Login and Signup Containers */
.login-container, .signup-container {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
}

.home-container {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

/* Buttons and Badges */
.btn, button[type="submit"] {
    background-color: #2A3A80;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #0d6ecd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 76, 97, 0.3);
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 76, 97, 0.3);
}

.badge {
    font-size: 0.9em;
    padding: 0.5em 1em;
}

.badge.bg-success {
    background: linear-gradient(45deg, var(--e-global-color-primary), #083846) !important;
}

.badge.bg-info {
    background: linear-gradient(45deg, var(--e-global-color-secondary), #B13E39) !important;
}

/* Footer */
footer {
    background-color: var(--e-global-color-primary); /* Reverted to fully opaque */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    /* z-index: 1000; no longer needed for relative positioning in this context */
    font-family: var(--main-font-family);
    margin-top: auto; /* Helps push footer to bottom if content is short */
}