:root {
    --emrs-blue: #005a9c; /* The blue from your logo */
    --emrs-black:  #4386D4; /* #4386D4;  #5aceb9 /* #000000; */
    --white: #ffffff;
    --nav-hover: #444444;
}

/* 1. Sets the whole page background to the blue variable */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    margin: 0; 
    padding: 0;
    background-color: var(--emrs-blue); 
}

/* 2. Header and Navigation are Black */
header { 
    background-color: var(--emrs-black); 
    padding: 20px 0; 
    text-align: center;
}

nav { 
    background-color: var(--emrs-black);
    border-top: 1px solid #333;
}

nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* Update this section in your style.css */
nav ul li a, 
nav ul li a:visited, 
nav ul li a:link { 
    color: var(--white) !important; /* Forces the text to stay white even if visited */
    padding: 15px 20px; 
    display: block; 
    text-decoration: none; 
    font-weight: bold;
}

nav ul li a:hover { 
    background-color: var(--nav-hover); 
    color: var(--white); /* Ensures it stays white on hover too */
}

/* 3. Main Content Area - Forces the blue variable to prevent black boxes */
main { 
    padding: 40px; 
    max-width: 1000px; 
    margin: 0 auto;
    background-color: var(--emrs-blue); /* This ensures the box matches the body */
    color: var(--white); /* Ensures text is readable on blue */
    min-height: 450px; 
}

main h1, main h3 {
    color: var(--white);
    font-weight: bold;
}

/* 4. Footer remains Black */
footer { 
    background-color: var(--emrs-black); 
    color: var(--white); 
    text-align: center; 
    padding: 30px 10px; 
}

footer p { margin: 5px 0; font-size: 0.9em; }


/* Styling for the Links Page */
.links-container {
    margin-top: 20px;
    text-align: left; /* Ensures links are easy to read in a list */
}

.link-group-title {
    color: #ffcc00; /* Yellow stands out well against the EMRS blue */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 1.5em;
}

.link-item {
    margin: 10px 0;
    padding-left: 15px;
    line-height: 1.6;
}

.link-item a {
    color: var(--white);
    text-decoration: underline;
}

.link-item a:hover {
    color: #ffcc00;
}


/* Exhibition Specific Styles */
.exhibition-hero {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #ffcc00;
    margin-bottom: 40px;
}

.exhibition-badge {
    background: #ffcc00;
    color: #000;
    display: inline-block;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.8em;
}

.exhibition-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.detail-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.detail-box strong {
    color: #ffcc00;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.section-title {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 40px;
}

.tour-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.tour-card h3 {
    margin-top: 0;
    color: #ffcc00;
}

.contact-notice {
    font-style: italic;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* Video List Layout */
.video-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.video-year-group h3 {
    color: #ffcc00; /* Matching your exhibition yellow */
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.video-year-group ul {
    list-style: none;
    padding: 0;
}

.video-year-group ul li {
    margin: 8px 0;
}

.video-year-group ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95em;
    transition: 0.2s;
}

.video-year-group ul li a:hover {
    color: #ffcc00;
    text-decoration: underline;
    padding-left: 5px; /* Subtle movement on hover */
}

/* Contact Form Styling */
.contact-form-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffcc00;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #f4f4f4;
}

.submit-btn {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
	color: #a1a1a1;
    background: #fff;
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.committee-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #ffcc00;
}

/* User Management Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background-color: var(--emrs-black);
    color: #ffcc00;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ffcc00;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Layout Link Styling */
.layout-link {
    color: #3399ff !important; /* A bright, clear blue */
    text-decoration: underline; /* The underscore look */
    transition: color 0.2s;
}

.layout-link:hover {
    color: #66b2ff !important; /* Lighter blue on hover */
    text-decoration: none; /* Optional: remove underline on hover for effect */
}

/* Ensure the H3 doesn't override the link color */
.layout-card h3 {
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}



/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3em;
    color: #ffcc00; /* Society Gold */
    margin: 0;
}

.tagline {
    font-size: 1.4em;
    color: #fff;
    margin-top: 10px;
}

/* Main Content Layout */
.home-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.meeting-times {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 4px solid #ffcc00;
    margin-top: 20px;
}

.home-cta {
    background: var(--emrs-black);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    height: fit-content;
    border: 1px solid #ffcc00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home-content {
        grid-template-columns: 1fr;
    }
}


/* Image Slider Styling */
.slider-container {
    width: 100%;
    max-width: 1000px; /* Adjust based on your image sizes */
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    border: 5px solid #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.slider {
    display: flex;
    height: 100%;
}


.slide {
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box without stretching */
}

/* Ensure the parent item stays in place */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Hide the sub-menu by default and position it underneath */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #000; /* Solid black to match your header */
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 0;
    margin: 0;
    border: 1px solid #ffcc00; /* Society Gold border */
}

/* Make the list items inside stack vertically */
.dropdown-content li {
    display: block;
    width: 100%;
}

/* Show the menu only when hovering over 'Manage' */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style the links inside the dropdown so they don't look like the main menu */
.dropdown-content li a {
    padding: 10px 15px;
    text-align: left;
    display: block;
    font-size: 0.9em;
}