:root {
    --color-gray-placeholder: #D9D9D9;
    --color-purple-primary: #481E9C;
    --color-purple-hover: #35157a;
    --color-text-dark: #333;
    --color-text-light: #666;
}

body {
    font-family: "Montserrat", sans-serif;
}

* {
    box-sizing: border-box;
}

#createPostBtn {
    display: none;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 6px 14px;
    background-color: var(--color-purple-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

body>main>section.whatsapp-section>a>div>div.whatsapp-icon {
    right: 8px;
}

.whatsapp-icon {
    right: 14px;
}

.blog-main-container {
    max-width: 1092px;
    margin: 160px auto;
    padding: 26px;
}

.post-body strong {
    font-weight: bold;
}

span strong {
    font-weight: bold;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}


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

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--color-gray-placeholder);
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-purple-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.pagination {
    margin-top: 50px;
    display: flex;
    gap: 10px;
}

.btn-page {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-purple-primary);
    background: transparent;
    color: var(--color-purple-primary);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-page.current-page,
.btn-page:hover {
    background: var(--color-purple-primary);
    color: #fff;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget h3 {
    color: var(--color-purple-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.search-box {
    position: relative;
    background: var(--color-gray-placeholder);
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    width: 100%;
    padding: 15px;
    padding-right: 50px;
    border: none;
    background: transparent;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: transparent;
    color: var(--color-purple-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.popular-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 15px;
}

.read-also-card {
    text-decoration: none;
    color: inherit;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-pill {
    background-color: var(--color-purple-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.tag {
    background-color: var(--color-purple-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
}

.load-more-tags {
    display: none;
    inline-flex: center;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #481E9C;
    text-decoration: none;
    transition: opacity 0.3s;
}

.load-more-tags:hover {
    opacity: 0.8;
}

.load-more-tags i {
    width: 28px;
    height: 28px;
    background-color: #481E9C;
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e0e0e0;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.rank-badge {
    background-color: var(--color-purple-primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: -5px;
    left: -5px;
}

.popular-thumb {
    width: 60px;
    height: 60px;
    background-color: #999;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-info h4 {
    font-size: 0.95rem;
    margin: 0;
    color: #000;
    font-weight: 700;
}

.post-featured-image img,
.card-img-placeholder img {
    font-size: 0;
    border-radius: 14px;
    color: transparent;
}

.newsletter-widget input[type="text"],
.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #e0e0e0;
    margin-bottom: 10px;
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #555;
}

.newsletter-widget button {
    width: 100%;
    padding: 12px;
    background-color: var(--color-purple-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-widget button:hover {
    background-color: var(--color-purple-hover);
}

.post-content-area {
    background: #fff;
    padding-right: 20px;
}

.post-date {
    color: #481E9C;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-body p {
    line-height: 1.6;
    color: #4b5563;
}

.share-section {
    margin: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #481E9C;
    color: white;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #e5e7eb;
    font-family: "Montserrat", sans-serif;
}

.read-also-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.read-also-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.read-also-img {
    width: 100%;
    height: 220px;
    background-color: #E5E7EB;
    border-radius: 20px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.post-content-area {
    background: #fff;
    padding-right: 20px;
}

.post-featured-image {
    background: #e5e7eb;
    width: 100%;
    height: 350px;
    border-radius: 12px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
}

.post-date {
    color: #481E9C;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-title {
    color: #333;
    margin-bottom: 25px;
    font-size: 2rem;
    line-height: 1.2;
}


.post-body p {
    line-height: 1.6;
    color: #4b5563;
    font-size: 1.05rem;
}

.post-body strong,
.post-body b {
    font-weight: bold;
}

.post-body h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #481E9C;
}

.post-body ul,
.post-body ol {
    list-style-type: disc;
    padding-left: 40px;
    line-height: 1.6;
    color: #4b5563;
    font-size: 1.05rem;
}

.post-body h3 {
    color: #481E9C;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

.post-author {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #6b7280;
}

.post-author p {
    margin-bottom: 0;
}


.share-section {
    margin: 40px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
}

.share-section h4 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #481E9C;
    text-decoration: none;
    transition: opacity 0.3s;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #481E9C;
    color: white;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}


.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    color: #481E9C;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.math-challenge {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #666;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
}

.privacy-label {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85em;
    cursor: pointer;
    color: #4b5563;
}

.privacy-label input {
    width: auto;
    margin-right: 8px;
}

.comment-form button {
    background: #481E9C;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
    font-family: "Montserrat", sans-serif;
}

.comment-form button:hover {
    opacity: 0.9;
}

.read-also-section {
    margin-top: 80px;
}

.read-also-section h3 {
    color: #481E9C;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.read-also-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.read-also-card {
    display: flex;
    flex-direction: column;
}

.read-also-img {
    width: 100%;
    height: 220px;
    background-color: #E5E7EB;
    border-radius: 20px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.read-also-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.read-also-info small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #481E9C;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.read-also-info p {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.read-also-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.read-also-info small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #481E9C;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.read-also-info small i {
    font-size: 1.1rem;
}

.read-also-info p {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

a.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.post-card-link:hover .post-card {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

a.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.post-link:hover article {
    transform: translateY(-5px);
    transition: transform 0.3s;
}

.math-challenge-box {
    margin-bottom: 25px;
}

.math-challenge-box p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 400;
}


.math-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}


.math-numbers {
    color: #581C87;
    font-weight: 800;
    font-size: 1.3rem;
}


.privacy-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.privacy-label input[type="checkbox"] {

    -webkit-appearance: none;
    appearance: none;


    width: 22px;
    height: 22px;
    border: 1px solid #581C87;
    border-radius: 6px;
    background-color: transparent;


    display: grid;
    place-content: center;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.privacy-label input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    box-shadow: inset 1em 1em white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
}

.privacy-label input[type="checkbox"]:checked {
    background-color: #581C87;
    border-color: #581C87;
}

.privacy-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-posts {
    grid-column: 1/-1;
    text-align: center;
}

.post-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.post-tag {
    background-color: var(--color-purple-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}

.post-tag:hover {
    background-color: var(--color-purple-hover);
}

.new-tag-input {
    margin-top: 10px;
}

.math-field {
    width: 50px;
    height: 28px;
    background-color: #D1D5DB;
    border: 1px solid #581C87;
    border-radius: 4px;

    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #581C87;
    outline: none;
}

.math-field:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(88, 28, 135, 0.2);
}

@media (min-width: 2560px) {
    .blog-main-container {
        max-width: 2400px;
        width: 95%;
        margin: 0 auto;
        padding-top: 180px;
    }

    .posts-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }


    body {
        font-size: 18px;
        margin-top: 80px;
    }

    h2[data-lang="blog-title"] {
        font-size: 3rem;
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-featured-image {
        height: 200px;
    }
    .sidebar-widget h3,
    .tags-cloud,
    .popular-post-item,
    #newsletter-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .search-box {
        width: 100%;
    }
    .search-box input {
        box-sizing: border-box;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        text-align: center;
    }

    .read-also-grid {
        grid-template-columns: 1fr;
    }

    .read-also-img {
        height: 180px;
    }

    .post-content-area {
        padding-right: 0;
    }

    .post-title {
        font-size: 1.6rem;
    }
}
@media (max-width: 480px) {
    .blog-main-container {
        padding: 15px;
    }
    .blog-card, .popular-posts-list {
        width: 90%;
    }
    .post-featured-image {
        height: 150px;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-body p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .blog-layout {
        gap: 15px;
    }
    .search-box, .newsletter-widget input[type="text"], .newsletter-widget input[type="email"], .newsletter-widget button, .privacy-check {
        width: 90%;
    }

}
@media (max-width: 375px) {
    .blog-card, .popular-posts-list, .tags-cloud {
        width: 80%;
    }
    .search-box, .newsletter-widget input[type="text"], .newsletter-widget input[type="email"], .newsletter-widget button, .privacy-check {
        width: 80%;
    }
}
@media (max-width: 320px) {
    .blog-card, .popular-posts-list, .tags-cloud {
        width: 70%;
    }
    .search-box, .newsletter-widget input[type="text"], .newsletter-widget input[type="email"], .newsletter-widget button, .privacy-check {
        width: 67%;
    }
}



