/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: white;
    color: #333;
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: normal;
    text-shadow: none;
    color: #000;
}

.logo-script {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 1em;
    text-transform: lowercase;
    letter-spacing: 0;
    font-style: normal;
    margin: 0 10px;
    color: #52c563;
    transform: rotate(-5deg);
    display: inline-block;
}

.logo a {
    color: #000;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.logo a .logo-script {
    color: #52c563;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: #000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #666;
}

nav a.active {
    color: #333;
    font-weight: 500;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #333;
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}



/* Category sections */
.category-sections {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* Featured articles section */
.featured-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e9ecef;
}

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #333;
    margin: 0;
    padding: 0 2rem;
    background: white;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.featured-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.featured-articles {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.featured-slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-slides {
    display: flex;
    transition: transform 0.8s ease;
    height: 100%;
}

.featured-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.featured-article-card {
    display: flex;
    width: 100%;
    height: 100%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-article-card:hover {
    background: #f8f9fa;
}

.featured-article-image {
    width: 50%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.featured-article-info {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-category {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.featured-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.featured-article-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.featured-article-author {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured slider navigation */
.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(0,0,0,0.6);
    border: 2px solid rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.featured-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(0,0,0,0.6);
    color: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.featured-prev {
    left: 20px;
}

.featured-next {
    right: 20px;
}

.featured-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-dot.active {
    background: rgba(0,0,0,0.7);
    border-color: rgba(0,0,0,0.8);
    transform: scale(1.3);
}

.featured-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    color: rgba(0,0,0,0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    margin: 0;
    padding: 0 2rem;
    background: white;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.category-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-article-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.category-article-card:hover {
    transform: translateY(-5px);
}

.category-article-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.category-article-info {
    padding: 0 1rem 1.5rem 1rem;
}

.category-article-category {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.category-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.category-article-author {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Articles grid (for filtered view) */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    min-height: 240px;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-content-wrapper {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info h3 {
    font-size: 1.7rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.5px;
    font-family: 'Georgia', serif;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-date {
    font-weight: 500;
}

.article-author {
    color: #666;
}

.article-author::before {
    content: "BY ";
    font-weight: bold;
}

.article-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-family: 'Arial', sans-serif;
}

.article-actions {
    margin-top: auto;
}

.continue-reading {
    color: #d63384;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-reading:hover {
    text-decoration: underline;
}

.article-image-wrapper {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.podcast-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #333;
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Article detail page */
.article-detail {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.article-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-date {
    color: #666;
    font-style: italic;
}

/* Image gallery slider */
.image-gallery {
    position: relative;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0,0,0,0.05);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #333;
    transform: scale(1.2);
}

.gallery-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 10;
}

/* Article content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Navigation */
.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:disabled {
    background-color: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* Image modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        gap: 1.5rem;
    }
    
    .logo {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .logo-script {
        font-size: 0.9em;
        margin: 0 8px;
        transform: rotate(-3deg);
    }
    
    .logo a::after {
        width: 80px;
        height: 1px;
        bottom: -10px;
    }
    
    nav ul {
        gap: 1.5rem;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    .featured-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .featured-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding: 0 1.5rem;
    }
    
    .featured-slider-container {
        height: 400px;
    }
    
    .featured-article-card {
        flex-direction: column;
    }
    
    .featured-article-image {
        width: 100%;
        height: 50%;
    }
    
    .featured-article-info {
        width: 100%;
        height: 50%;
        padding: 2rem;
    }
    
    .featured-article-title {
        font-size: 1.4rem;
    }
    
    .featured-nav {
        width: 50px;
        height: 50px;
        font-size: 16px;
        border-width: 1px;
    }
    
    .featured-prev {
        left: 15px;
    }
    
    .featured-next {
        right: 15px;
    }
    
    .category-sections {
        gap: 3rem;
    }
    
    .category-title {
        font-size: 1rem;
        letter-spacing: 1.5px;
        padding: 0 1.5rem;
    }
    
    .category-articles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-article-image {
        height: 200px;
    }
    
    .articles-grid {
        gap: 1.5rem;
    }
    
    .article-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .article-content-wrapper {
        padding: 1.5rem;
    }
    
    .article-image-wrapper {
        width: 100%;
        height: 220px;
        order: -1; /* Put image at top on mobile */
    }
    
    .article-info h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .article-detail {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-buttons {
        justify-content: space-between;
    }
    
    .gallery-container {
        height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .logo-script {
        font-size: 0.8em;
        margin: 0 6px;
        transform: rotate(-2deg);
    }
    
    .logo a::after {
        width: 60px;
        height: 1px;
        bottom: -8px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.75rem;
    }
    
    .article-detail {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
