/* Modern CSS for the site */

/* Base styles */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Panel styling */
.panel {
    border: none;
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.panel-header {
    padding: 15px 20px;
    background-color: #2c3e50;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 500;
    font-size: 1.2rem;
}

.panel-content {
    padding: 10px;
}

/* Menubar styling */
.menubar {
    background-color: #2c3e50;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menubar .menuitem {
    display: inline-block;
    padding: 15px 20px;
    text-decoration: none;
    color: #1c83ce;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.menubar .menuitem:hover {
    background-color: #1c83ce;
    border-radius: 0;
    color: white;
}

/* Grid layout */
.grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.grid-row {
    display: flex;
    width: 100%;
}

.grid-cell {
    flex: 1;
    padding: 15px;
    vertical-align: top;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.03);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Content area */
.center_content {
    background-color: #ecf0f1;
    padding: 30px;
    border-radius: 8px;
}

/* Footer */
#bottom {
    margin-top: 30px;
}

#bottom .panel {
    background-color: #2c3e50;
    color: white;
}

#bottom .panel-content p {
    color: white;
    margin: 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-row {
        flex-direction: column;
    }

    .grid-cell {
        width: 100%;
    }

    .menubar .menuitem {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f5f5f5;
}

/* List styling */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* Top header area */
#top .panel {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    margin-bottom: 0;
}

#top .panel-content {
    padding: 5px;
}

#top .panel-content * {
    line-height: 1.2;
}

#top h1 {
    color: white;
    border-bottom: none;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

#top p {
    color: white;
    margin-bottom: 5px;
}

#top a {
    color: #3498db; /* Matching menubar link color */
    margin-bottom: 5px;
    text-decoration: underline;
}

#top a:hover {
    color: #3498db; /* White on hover */
    text-decoration: underline;
    font-weight: bold;
}
