/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #4318D1;
    font-size: 18px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #4318D1;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

nav a:hover {
    background-color: #f0f0f0;
}

/* Carousel Styles */
.carousel-section {
    padding: 40px 0;
    background-color: #e9ecef;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 500px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* No image placeholder for carousel */
.no-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.no-image-placeholder span {
    font-size: 24px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
}

.carousel-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-content p {
    margin-bottom: 10px;
}

.read-more {
    background-color: #4318D1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

.read-more:hover {
    background-color: #9778ff;
}

/* Carousel Navigation Buttons */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255,255,255,1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Blog Section */
.blog-section {
    padding: 40px 0;
}

.blog-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* No image placeholder for blog cards */
.blog-card-no-image {
    width: 100%;
    height: 200px;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-no-image span {
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 20px;
}

.blog-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.blog-card .author {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-card .date {
    color: #999;
    font-size: 12px;
}

/* Footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }
    
    .prev-btn, .next-btn {
        padding: 5px 10px;
        font-size: 18px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}