/* Global Variables */
:root {
    --primary-color: #ff3366;  /* Bold pink for branding */
    --secondary-color: #e74c3c;  /* Accent pink for highlights */
    --background-dark: #1a1a1a;  /* Dark background for edgy look */
    --background-light: #f4f4f4;  /* Light background for contrast */
    --text-color: #000;  /* Standard black text */
    --text-light: #f5f5f5;  /* Light text for contrast */
    --nav-bg: #2c2c2c;  /* Slightly lighter dark for contrast */
    --box-shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Header */
header {
    background-color: var(--nav-bg);
    color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

header h1, header h2 {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

/* Main Section */
main {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background-color: #333333;
    border-radius: var(--border-radius);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.6);
}

/* Footer */
footer {
    background-color: var(--nav-bg);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.5);
}

footer nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 15px;
}

footer nav ul li {
    margin: 0 15px;
}

footer nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: var(--text-light);
}

/* Image Gallery Section */
.image-gallery {
    margin: 30px 0;
    text-align: center;
}

.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.image-container img {
    width: 225px;
    height: 225px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
    border-color: #d43f7b;
}

/* Style for the boxes section */
.boxes-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}

.box {
    background-color: var(--background-light);
    padding: 20px;
    width: 30%;
    border-radius: var(--border-radius);
    box-shadow: 0px 2px 10px var(--box-shadow);
    border: 2px solid var(--secondary-color);
}

.box h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.box ul {
    list-style-type: none;
    padding-left: 0;
}

.box ul li {
    margin-bottom: 10px;
}

.box ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

.box ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Challenges Section */
.challenges-list {
    margin: 20px;
}

.challenge {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: 0px 2px 10px var(--box-shadow);
}

.challenge h2 {
    color: var(--primary-color);
}

.challenge p {
    color: var(--text-color);
}

/* Pagination Links */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 10px;
    margin: 0 5px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #c0392b;
}

.welcome {
    background-color: #ffe6f0;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.welcome h1 {
    color: #b30059;
}

.blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.category-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #ff6699;
    text-decoration: underline;
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


.single-post {
    margin-bottom: 20px;
}

.post-meta {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.featured-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.post-content {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.3;
}


.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dropdown styling */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    border: 1px solid var(--primary-color);
    list-style: none;
    padding: 10px;
    border-radius: var(--border-radius);
    z-index: 1000;
    min-width: 400px;
    text-align: left;
}

.dropdown-menu li {
    margin: 5px 0;
}

.dropdown-menu li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--primary-color);
    margin: 5px 0;
}

.authors-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.author-profile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio {
    color: #ccc;
    margin-top: 0.5rem;
}

.latest-post-preview {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.latest-post-preview a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.latest-post-preview a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.tag-cloud a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tag-cloud a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


.post-tags {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 8px;
}

.post-tags a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.bucket-list {
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: var(--border-radius);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

.bucket-list h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.bucket-list p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.bucket-items {
    list-style: none;
    padding: 0;
}

.bucket-items li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.bucket-items input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.bucket-filters {
    margin-bottom: 1.5rem;
}

.bucket-filters a {
    margin-right: 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

.bucket-filters a.active {
    color: var(--secondary-color);
    text-decoration: underline;
}

.difficulty-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
    color: white;
}

.difficulty-badge.easy {
    background-color: green;
}
.difficulty-badge.medium {
    background-color: orange;
}
.difficulty-badge.hard {
    background-color: red;
}

.bucket-tags {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.bucket-items a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.bucket-items a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.qa-question {
    background-color: #2a2a2a;
    border-left: 5px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* BOOK SECTION */
/* ============================= */
/* BOOK SECTION */
/* ============================= */

.book-announcement {
    margin: 30px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

/* layout */
.book-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* clamp anchor */
.book-cover {
    width: 130px !important;
    max-width: 130px !important;
    flex: 0 0 130px !important;
    display: block;
}

/* clamp image */
.book-cover img {
    width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
}

/* text side */
.book-details {
    flex: 1;
}

/* title link */
.book-details h2 a,
.book-details h2 a:visited {
    color: var(--text-light) !important;
    text-decoration: none !important;
}

.book-details h2 a:hover {
    text-decoration: underline !important;
}

/* button */
.book-button,
.book-button:visited {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--primary-color) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
}

.book-button:hover {
    background: var(--secondary-color) !important;
}

/* FORCE book image size no matter what */
.book-announcement a.book-cover {
    width: 140px !important;
    max-width: 140px !important;
    display: inline-block !important;
}

.book-announcement a.book-cover img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
}

/* stop flex stretch */
.book-wrapper {
    display: flex !important;
    align-items: flex-start !important;
}

/* kill blue links */
.book-announcement a {
    color: var(--text-light) !important;
}

.book-button {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 10px 16px;
    display: inline-block;
    border-radius: 6px;
    text-decoration: none !important;
}
