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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Hero section styles */
.hero {
    position: relative;
    height: 18vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #404040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content {
    padding: 20px;
    max-width: 1000px;
    width: 100%;
}

.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.main-logo {
    max-width: 200px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.hero-title {
    font-size: 3em;
    margin: 0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.main-post {
    margin-bottom: 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h2 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.post-meta {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 300;
}

.post-meta span {
    margin: 0 15px;
    position: relative;
}

.post-meta span:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -18px;
    color: #999;
}

.featured-image {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    margin-bottom: 40px;
    max-width: 100%;
    height: auto;
    display: block;
}

.content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.content p {
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.8;
    color: #444;
}

/* Download button styles */
.download-btn {
    background-color: transparent;
    color: #1a1a1a;
    padding: 15px 35px;
    border: 2px solid #1a1a1a;
    cursor: pointer;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto;
    font-weight: 600;
}

.download-btn:hover {
    background-color: #1a1a1a;
    color: white;
}

/* Image Placement Styles */
.image-placement-container,
.image-placement-row,
.image-placement-grid {
    width: 100%;
    margin: 40px 0;
}

.image-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-placement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
    background-color: #f8f8f8;
}

.image-placeholder {
    background-color: #ffffff;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-direction: column;
}

.image-placeholder img{
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
}
.image-placeholder.wide {
    grid-column: 1 / -1;
    height: auto;
    min-height: 200px;
}

.placeholder-text {
    color: #333;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #333;
}

.image-placeholder:hover {
    border-color: #666;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Specific ad sizes */
.ad-container .ad-placeholder {
    width: 728px;
    height: 90px;
}

.ad-sidebar .ad-placeholder {
    width: 300px;
    height: 600px;
}

.ad-content .ad-placeholder {
    width: 728px;
    height: 90px;
}

.ad-section .ad-placeholder {
    width: 970px;
    height: 250px;
    margin: 0 auto;
}

/* Responsive adjustments for image placements */
@media screen and (max-width: 768px) {
    .image-box,
    .image-placement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .image-placeholder {
        min-height: 200px;
    }
    
    .image-placeholder.wide {
        height: auto;
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .image-box,
    .image-placement-grid {
        grid-template-columns: 1fr;
    }
    
    .image-placeholder {
        min-height: 180px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .ad-sidebar {
        float: none;
        margin: 40px auto;
        width: 100%;
    }
    
    .ad-sidebar .ad-placeholder {
        width: 320px;
        height: 250px;
    }

    .ad-banner .ad-placeholder,
    .ad-content .ad-placeholder,
    .ad-section .ad-placeholder {
        width: 320px;
        height: 100px;
    }
}

/* Related posts styles */
.related-posts {
    background-color: #f8f8f8;
    padding: 80px 0;
    margin: 80px 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #1a1a1a;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-card {
    background-color: white;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card a {

    text-decoration: none;
}


.post-card a img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
    text-decoration: none;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card h3 {
    margin: 20px 0 10px;
    font-size: 1.4em;
    color: #1a1a1a;
}

.post-card p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Comments section styles */
.comments-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.comments-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #1a1a1a;
}

.comment {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

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

.comment-content h4 {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 1.2em;
}

.comment-content p {
    color: #444;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-date {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1.1em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-post h1 {
        font-size: 2em;
    }

    .hero {
        height: 15vh;
    }

    .hero-title {
        font-size: 2.2em;
        letter-spacing: 2px;
    }

    .main-logo {
        max-width: 160px;
        max-height: 60px;
    }

    .logo-section {
        gap: 15px;
    }

    /* Responsive image adjustments for tablets */
    .featured-image {
        height: 50vh;
        margin-bottom: 30px;
    }

    .content {
        max-width: 100%;
        padding: 0 15px;
    }

    .image-placement-row {
        margin: 30px 0;
    }

    .image-placeholder.wide {
        height: auto;
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .comment {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-post h1 {
        font-size: 1.5em;
    }

    .post-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .hero {
        height: 12vh;
    }

    .hero-title {
        font-size: 1.8em;
        letter-spacing: 1.5px;
    }

    .main-logo {
        max-width: 140px;
        max-height: 50px;
    }

    .logo-section {
        gap: 12px;
        flex-direction: row;
    }

    /* Responsive image adjustments for mobile */
    .featured-image {
        height: 40vh;
        margin-bottom: 20px;
    }

    .content {
        padding: 0 10px;
    }

    .image-placement-row {
        margin: 20px 0;
    }

    .image-placeholder.wide {
        height: auto;
        min-height: 120px;
    }

    .post-header h2 {
        font-size: 2em;
        line-height: 1.3;
    }
}

/* Additional responsive image styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sponsored content image responsiveness */
.image-placeholder.wide img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
}

/* Force responsive behavior for all image placeholders */
.image-placeholder img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Ensure all images in content are responsive */
.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Responsive adjustments for very small screens */
@media screen and (max-width: 320px) {
    .featured-image {
        height: 30vh;
    }
    
    .image-placeholder.wide {
        height: auto !important;
        min-height: 100px;
    }
    
    .post-header h2 {
        font-size: 1.8em;
    }
}

/* Additional mobile-first responsive rules */
@media screen and (max-width: 768px) {
    .image-placeholder.wide {
        height: auto !important;
        min-height: 150px;
    }
    
    .image-placeholder.wide img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    .image-placeholder.wide {
        height: auto !important;
        min-height: 120px;
    }
    
    .image-placeholder.wide img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}
