/* New Theme Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #333;
    --header-height: 70px;
    --sponsor-section-width: 20%;
    --content-width: 60%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    /* No reserved space at top since we use the original sticky navbar */
    padding-top: 0;
}

/* Sticky Header */
/* Hide the new theme header bar if any remnants exist in markup */
.header { display: none !important; }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Main Layout */
.main-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Sponsor Sections */
.sponsor-section {
    width: var(--sponsor-section-width);
    padding: 20px;
    background-color: #f1f1f1;
    overflow-y: auto;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sponsor-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.sponsor-text {
    font-size: 0.9rem;
    color: #555;
}

/* Main Content */
.main-content {
    width: var(--content-width);
    padding: 20px;
    background-color: white;
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sponsor-section {
        display: none; /* Hide sponsor sections on smaller screens */
    }
    
    .main-content {
        width: 100%;
    }
}

/* Admin Panel Styles */
.admin-panel {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.upload-area {
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background-color: #f0f8ff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.preview-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: white;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-save {
    background-color: #27ae60;
}

.btn-save:hover {
    background-color: #219653;
}
