/* 🌞 General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #FFB75E, #ED8F03); /* Sunset gradient */
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 📖 Blog Container */
.blog-container {
    flex: 1;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 🏖 Blog Title */
h1, h2 {
    color: #FF6200;
    font-weight: bold;
    /* text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.5); */
}

/* 🔧 Fix missing icons (FontAwesome as backup) */
h2::before {
    font-family: "Arial", sans-serif;
    font-size: 1.2em;
    margin-right: 8px;
}

h2.tips::before { content: "🕶️"; } /* Safe & Even Tan */
h2.uv-index::before { content: "🌞"; } /* UV Index */

/* 🏝 Blog Post Listing */
ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    color: #fff;
}

ul li {
    padding: 5px 0;
    font-size: 1.1em;
}

/* 🌡️ Color-Coded UV Index List */
.uv-list li {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 5px 0;
}

.uv-low { background: #4CAF50; } /* Green - Safe */
.uv-moderate { background: #FFC107; } /* Yellow - Moderate */
.uv-high { background: #FF9800; } /* Orange - High */
.uv-very-high { background: #F44336; } /* Red - Risky */
.uv-extreme { background: #9C27B0; } /* Purple - Extreme */

/* 📖 Blog Post Container */
.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Darker background to match "Published on" */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

/* 📄 Post Content Styling */
.post-content {
    text-align: left;
    line-height: 1.6;
    font-size: 1.1em;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* ✍️ Published Date */
.blog-post small,
.blog-container ul li small {
    display: block;
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6); /* Dark background for contrast */
    color: #f8f8f8; /* Light text for readability */
}

/* 📷 Blog Image Styling */
.blog-image, 
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    object-fit: contain;
    max-height: 400px;
}

/* 🌞 Back to Blog Link */
.blog-post p a,
.back-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.blog-post p a:hover,
.back-link:hover {
    color: #ffeb3b; /* Bright yellow for hover effect */
    text-decoration: underline;
}

/* 🎨 Accessibility Enhancements */
a, button, .btn {
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

/* 💡 Improved Button Contrast */
button, .btn {
    background-color: #ff9800;
}

button:hover, .btn:hover {
    background-color: #e65100;
}

/* 🏷️ Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #ffeb3b;
    color: #000;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
}

.skip-link:focus {
    top: 10px;
}
/* 🏝 Blog Listing Container */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 📜 Blog Card Styling */
.blog-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Darker background for better contrast */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover {
    transform: scale(1.03);
}


/* 🖼 Thumbnail Styling */
.blog-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 📝 Blog Info Section */
.blog-info {
    flex-grow: 1;
    text-align: left;
}

/* 🏷 Blog Title */
.blog-info h3 {
    margin: 0;
    font-size: 1.4em;
}

.blog-info h3 a {
    color: #FF6200;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-info h3 a:hover {
    color: #ffeb3b;
}

/* 🕒 Blog Meta Info */
.blog-meta {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* 📖 Blog Excerpt */
.blog-excerpt {
    margin: 10px 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* 📎 Read More Link */
.read-more {
    font-weight: bold;
    color: #ffeb3b;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
    color: white;
}
