/* Single Blog Post Styles */

.p-upper-wrapper {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
}

.post-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.post-Main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.post-Sub-title {
    font-size: 24px;
    font-weight: 500;
    color: #555555;
    margin-bottom: 40px;
    line-height: 1.4;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.p-image1,
.p-image2 {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
}

.p-image1 img,
.p-image2 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.p-Small-heading1,
.p-Small-heading2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.p-Paragraph1,
.p-Paragraph2,
.p-Paragraph3 {
    font-size: 18px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 30px;
}

.p-Paragraph1 p,
.p-Paragraph2 p,
.p-Paragraph3 p {
    margin-bottom: 20px;
}

.p-Paragraph1 strong,
.p-Paragraph2 strong,
.p-Paragraph3 strong {
    font-weight: 700;
    color: #1a1a1a;
}

.p-blog-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444444;
    margin: 30px 0;
    font-family: 'Montserrat', sans-serif;
}

.p-blog-content p {
    margin-bottom: 20px;
}

/* Center aligned paragraphs containing images */
.p-blog-content p.aligncenter {
    text-align: center;
}

.p-blog-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.p-blog-content h1,
.p-blog-content h2,
.p-blog-content h3,
.p-blog-content h4 {
    font-weight: 600;
    color: #2c2c2c;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.p-blog-content h1 {
    font-size: 32px;
}

.p-blog-content h2 {
    font-size: 28px;
}

.p-blog-content h3 {
    font-size: 24px;
}

.p-blog-content h4 {
    font-size: 20px;
}

.p-blog-content ul,
.p-blog-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.p-blog-content li {
    margin-bottom: 10px;
}

.p-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.p-blog-content a {
    color: #0066cc;
    text-decoration: underline;
}

.p-blog-content a:hover {
    color: #0052a3;
}

/* WordPress Caption and Image Alignment Styles */
.p-blog-content .wp-caption {
    max-width: 100%;
}

.p-blog-content .wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.p-blog-content .wp-caption img {
    display: block;
    margin: 0;
    width: 100%;
    height: auto;
}

.p-blog-content .wp-caption-text {
    font-size: 14px;
    font-style: italic;
    color: #666666;
    text-align: center;
    margin-top: 10px;
    padding: 5px 10px;
    line-height: 1.5;
}

/* WordPress Block Editor Figure/Image Styles */
.p-blog-content figure {
    margin: 30px 0;
    max-width: 100%;
}

.p-blog-content figure.wp-block-image {
    margin: 30px 0;
}

.p-blog-content figure.wp-block-image.aligncenter,
.p-blog-content figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.p-blog-content figure.wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.p-blog-content figure.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

.p-blog-content figcaption {
    font-size: 14px;
    font-style: italic;
    color: #666666;
    text-align: center;
    margin-top: 10px;
    padding: 5px 10px;
    line-height: 1.5;
}

/* Image alignment - handles both direct img alignment and wrapped alignment */
.p-blog-content .aligncenter {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.p-blog-content img.aligncenter,
.p-blog-content .aligncenter img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.p-blog-content .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.p-blog-content .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.p-cta-button {
    display: inline-block;
    margin-top: 20px;
    background-color: black;
    color: white;
    border: 1px solid #EAEAEA;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Phudu", sans-serif;
    text-decoration: none;
}

.p-cta-button:hover {
    background-color: #ffffff;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */

@media (max-width: 768px) {
    .p-upper-wrapper {
        padding: 40px 15px;
    }

    .post-wrapper {
        padding: 20px;
    }

    .post-Main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .post-Sub-title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .p-Small-heading1,
    .p-Small-heading2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .p-Paragraph1,
    .p-Paragraph2,
    .p-Paragraph3,
    .p-blog-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .p-blog-content h1 {
        font-size: 26px;
    }

    .p-blog-content h2 {
        font-size: 22px;
    }

    .p-blog-content h3 {
        font-size: 20px;
    }

    .p-blog-content h4 {
        font-size: 18px;
    }

    .p-cta-button {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .p-image1,
    .p-image2 {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .post-Main-title {
        font-size: 28px;
    }

    .post-Sub-title {
        font-size: 16px;
    }

    .p-Small-heading1,
    .p-Small-heading2 {
        font-size: 20px;
    }

    .p-Paragraph1,
    .p-Paragraph2,
    .p-Paragraph3,
    .p-blog-content {
        font-size: 15px;
    }

    .p-blog-content h1 {
        font-size: 24px;
    }

    .p-blog-content h2 {
        font-size: 20px;
    }

    .p-blog-content h3 {
        font-size: 18px;
    }

    .p-blog-content h4 {
        font-size: 16px;
    }
}

/* Popular Blog Section */

.popular-section {
    max-width: 1180px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.title-divider {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.title-divider h2 {
    margin: 0;
    color: black;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    font-weight: 600;
    white-space: nowrap;
    padding-bottom: 1%;
}

.title-divider .line {
    flex-grow: 1;
    height: 2px;
    background-color: gray;
}

.single-line {
    height: 2px;
    background-color: gray;
    width: 100%;
    margin-top: 2%;
    margin-bottom: 5%;
}

.single-post-container {
    margin-top: 1rem;
}

.list-post-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgb(245, 245, 245);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.list-post-wrapper:hover {
    transform: translateY(-5px);
}

.list-post-image-wrapper {
    flex-shrink: 0;
    width: 50%;
    max-width: 600px;
}

.list-post-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-color: gray;
    border-width: 1px;
    border-radius: 10px;
}

.list-post-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.published-date {
    color: black;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

.post-list-title {
    font-size: clamp(0.5rem, 0.5rem + 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    font-family: 'Montserrat', sans-serif;
}

.post-list-title a {
    color: inherit;
    text-decoration: none;
}

.post-list-title a:hover {
    color: gray;
}

.post-list-descriptions {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
    color: black;
    padding-right: 10%;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.post-list-readmore {
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.1rem);
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    background: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.post-list-readmore:hover {
    color: gray;
}

/* Newsletter Banner */

.newsletter-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: #a39cd8;
    border-radius: 10px;
    padding: 3rem 4rem;
    margin-top: 2%;
    border: solid;
    border-color: gray;
    margin-bottom: none;
}

.newsletter-banner h2 {
    color: white;
    font-size: clamp(2rem, 1rem + 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    flex-shrink: 0;
}

.newsletter-banner form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}

.newsletter-banner input[type="email"] {
    background-color: #EFEFEF;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: #333;
    box-sizing: border-box;
}

.newsletter-banner input[type="email"]::placeholder {
    color: #888;
    font-weight: 600;
}

.newsletter-btn {
    background-color: #000 !important;
    color: white;
    font-weight: 700;
    font-size: clamp(1.5rem, 0.5rem + 0.5vw, 2rem) !important;
    font-family: "Phudu", sans-serif;
    border: none !important;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.5s ease !important;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-btn:hover {
    transform: scale(1.05);
    color: black !important;
    background-color: rgb(245, 245, 245) !important;
}

/* Newsletter message styles */
.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee Section */

.container {
    width: 100%;
    overflow: hidden;
}

.marquee {
    background-color: #9195d0;
    overflow: hidden;
    user-select: none;
    display: flex;
    transform: rotate(0deg);
    margin-bottom: 40px;
}

.marquee-content {
    background-color: #9195d0;
    list-style: none;
    flex-shrink: 0;
    display: flex;
    min-width: 100%;
    align-items: center;
    gap: var(--gap);
    animation: marquee 36s linear infinite;
}

.marquee .text {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 50px;
    white-space: nowrap;
    font-family: 'Phudu', sans-serif;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

/* Follow Section */

.follow-section {
    font-family: "Phudu", sans-serif;
    text-align: center;
}

.follow-upper {
    margin-bottom: 40px;
}

.follow-title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
    padding: 10px;
}

.follow-title .title-blue {
    color: #6a6cff;
}

.follow-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.follow-button {
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.follow-button:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
}

.follow-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Additional Responsive Styles for Template Parts */

@media screen and (max-width: 1225px) {
    .newsletter-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    .newsletter-banner h2 {
        text-align: center;
        width: 100%;
    }

    .newsletter-banner form {
        max-width: none;
        align-items: center;
    }
}

@media screen and (max-width: 1050px) {
    .list-post-wrapper .post-list-descriptions {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .list-post-wrapper .published-date {
        display: none !important;
    }

    .list-post-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .list-post-image-wrapper {
        width: 100%;
        max-width: none;
    }

    .post-list-descriptions {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .marquee .text {
        font-size: 25px;
    }
}
