.csl-plugin-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.post-content {
    margin: 20px 0;
}

.csl-post {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.entry-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.entry-content p {
    margin-bottom: 15px;
}

.download-section, .continue-section {
    text-align: center;
    margin: 20px 0;
}

.step-indicator {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.download-btn, .continue-btn, .final-btn {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    margin: 10px 0;
}

.download-btn:hover, .continue-btn:hover, .final-btn:hover {
    background: #005177;
}

#timer {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
}

.continue-section p {
    font-size: 16px;
    margin: 20px 0;
}

.continue-highlight {
    color: #00ff00;
    font-weight: bold;
}

.ad-block {
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased gap for better spacing */
}

.ad-full {
    width: 100%;
    max-width: 728px; /* Support 728x90 banner */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    position: relative; /* For aspect ratio control */
}

/* Handle specific banner sizes */
.ad-full.banner-728x90,
.ad-full.banner-300x250 {
    width: 100%;
    max-width: 728px; /* Maximum width for 728x90 */
    height: auto;
}

/* Ensure ad content is responsive */
.ad-full iframe,
.ad-full img,
.ad-full video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: none; /* Remove borders from iframes */
}

/* Specific handling for 728x90 banners */
.ad-full.banner-728x90 iframe,
.ad-full.banner-728x90 img {
    width: 100%;
    max-width: 728px;
    height: auto;
    aspect-ratio: 728 / 90; /* Maintain aspect ratio */
}

/* Specific handling for 300x250 banners */
.ad-full.banner-300x250 iframe,
.ad-full.banner-300x250 img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 250; /* Maintain aspect ratio */
}

.csl-shortener-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.csl-shortener-container h1 {
    margin-bottom: 20px;
}

.csl-shortener-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#csl-shortener-form input[type="url"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#csl-shortener-form button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#csl-shortener-form button:hover {
    background: #005177;
}

#csl-shortener-result {
    margin-top: 20px;
}

#csl-shortener-result a {
    color: #0073aa;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ad-full {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
    }

    .ad-full.banner-728x90,
    .ad-full.banner-300x250 {
        max-width: 100%;
    }

    .ad-full.banner-728x90 iframe,
    .ad-full.banner-728x90 img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 728 / 90;
    }

    .ad-full.banner-300x250 iframe,
    .ad-full.banner-300x250 img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 300 / 250;
    }

    .csl-post {
        max-width: 100%;
        padding: 0 10px;
    }

    .entry-title {
        font-size: 24px;
    }

    .csl-plugin-wrapper {
        max-width: 100%;
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .ad-full.banner-300x250 iframe,
    .ad-full.banner-300x250 img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}