/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color, #ffffff);
    color: var(--text-color, #333333);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background-color: #FFD700;
    padding: 20px;
    text-align: center;
}

.header h1 {
    color: #000;
    margin-bottom: 5px;
}

/* Main menu */
.main-menu {
    background-color: transparent;
    padding: 15px;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #09aadb;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #035bfd;
}

/* Request button */
.request-button {
    background-color: #09aadb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.request-button:hover {
    background-color: #035bfd;
}

/* Main wrapper */
.main-wrapper {
    display: flex;
    min-height: 600px;
}

/* Slider / Sidebar */
.slider {
    width: 250px;
    background-color: #C0C0C0;
    padding: 20px;
    border-right: 3px solid #ffffff;
}

.slider-container h3 {
    margin-bottom: 15px;
    text-align: center;
}

.slider-items {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.slider-item {
    display: none;
    text-align: center;
}

.slider-item.active {
    display: block;
}

.slider-item img {
    width: 100%;
    margin-bottom: 10px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.slider-controls button {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 20px;
}

.slider-controls button:hover {
    background-color: #333;
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Carousel */
#carousel-track-1 {
    display: flex;
    gap: 15px;
    width: 160px;
    animation: slideLeft 5s linear infinite;
}

@keyframes slideLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#carousel-container-1:hover #carousel-track-1 {
    animation-play-state: paused;
}

.carousel-slide-1 {
    flex-shrink: 0;
    width: 160px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.carousel-slide-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#featured-header-1 {
    background: #829c49;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#featured-header-1 img {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
}

#featured-header-1 span {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#carousel-container-1 {
    background: transparent;
    overflow-x: hidden;
    overflow-y: hidden;
    user-select: none;
}

/* Content */
.content {
    background-color: #ADD8E6;
    padding: 30px;
    flex: 1;
}

.content h2 { margin-bottom: 15px; }
.content h3 { margin: 25px 0 10px; }
.content p { margin-bottom: 15px; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.content-card {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 5px;
}

.content-card h4 { margin-bottom: 10px; }

/* Dark / Light mode variables */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body.dark-mode {
    --bg-color: #4a4a4a;
    --text-color: #e0e0e0;
    --header-bg: #2d2d2d;
    --border-color: #404040;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.theme-toggle:hover { transform: scale(1.05); }

body.dark-mode .sun-icon { display: none; }
body:not(.dark-mode) .moon-icon { display: none; }

/* Sidebar */
.sidebar {
    width: 310px;
    background: transparent;
    padding: 1px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

.sidebar-title {
    font-size: 20px;
    background: #829c49;
    font-weight: bold;
    margin-bottom: 10px;
}

.sidebar-subtitle {
    background: #cecece;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.grid-item {
    width: 100%;
    height: auto;
}

.grid-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .slider {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #ffffff;
    }
    
    .main-menu ul {
        flex-direction: column;
        gap: 10px;
    }
}
