body{
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    color: black;
}

.ma-main {
    max-width: 50%;
    margin: 0 auto;
    padding-top: 80px;
  }

  .topic {
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 1.4em;
}


.Line1 {
  position: absolute;
  border: none;
  border-top: 0.5px solid #ccc;
  width: 70vw;
  left: 15vw;
  /* margin: 10px auto; */
}

.articles-container{
    margin: 6rem 0 2rem 0;
}

.article-card{
    display: block;
    margin: 3rem 0;
}

.article-card h3{
  font-family: "Circular Std", "Montserrat", sans-serif;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1.27rem;
}

.date{
    margin: 0.2rem 0 0.6rem 0;
}

.date + p{
    font-family: "Roboto", sans-serif;
    font-size: 1rem;

}

.article-card + hr{
        border: none;
    border-top: 1px solid #ccc;

}

p + a{
    margin-top: -50rem;
}

.text-red{
            color: #d73634;
}


/* ============Related Articles End===============*/


/* media query */

@media (max-width: 768px) {
    .ma-main {
        max-width: 90%;
        margin: 1rem auto;
        padding: 1rem;
        margin-top: 2rem;
        padding-top: 70px;
    }

    .articles-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ma-main h2 {
        font-size: 1.5rem;
    }

    .article-card h2 {
        font-size: 1.2rem;
    }
}



/* ======--- Pagination Container (Fixed Bottom) ---====== */
        .pagination-bar {
            width: 100%;
            display: flex;
            justify-content: center;
            padding-top: 2rem;
            padding-bottom: 3rem;
            background: linear-gradient(to top, #f9fafb 80%, transparent);
            /* position: sticky; */
            /* bottom: 0; */
        }

        .pagination-wrapper {
            display: flex;
            align-items: center;
            gap: 1rem;
            user-select: none;
        }

        /* --- Buttons & Arrows --- */
        .arrow-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: #9ca3af;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s ease;
        }

        .arrow-btn:hover {
            color: #4b5563;
        }

        .arrow-btn svg {
            width: 12px;
            height: 12px;
            fill: currentColor;
        }

        /* Number Buttons */
        #pages-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        /* Base Desktop Sizes */
        .page-circle {
            width: 2.5rem; /* 40px */
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            font-family: "Roboto", sans-serif;
            font-size: 1rem;
        }

        .page-circle.inactive {
            background-color: #e5e7eb;
            color: #6b7280;
        }

        .page-circle.inactive:hover {
            background-color: #d1d5db;
        }

        .page-circle.active {
            width: 3.5rem; /* 56px */
            height: 3.5rem;
            background-color: #A93836;
            color: white;
            font-size: 1.25rem;
            font-weight: 700;
            z-index: 2;
            transform: scale(1.1);
        }

        .page-circle.placeholder {
            background-color: #f3f4f6;
            cursor: default;
        }

        /* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

        /* Tablet Devices (max-width: 768px) */
        @media (max-width: 768px) {
            .pagination-bar {
                padding-top: 1.5rem;
                padding-bottom: 1.5rem;
            }

            .pagination-wrapper {
                gap: 0.75rem;
            }

            .page-circle {
                width: 2.25rem; /* Slightly smaller */
                height: 2.25rem;
            }

            .page-circle.active {
                width: 3rem; /* Smaller active state */
                height: 3rem;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 550px) {
              .Line1 {
                    width: 100vw;
                    left: 0;
                }

                .topic {
                    font-size: 0.95rem;
                }
        }


        /* Mobile Devices (max-width: 480px) */
        @media (max-width: 480px) {
            .pagination-bar {
                padding-top: 1rem;
                padding-bottom: 1.25rem; /* Tighter to bottom */
                background: linear-gradient(to top, #f9fafb 90%, transparent); /* Stronger fade */
            }

            .pagination-wrapper {
                gap: 0.5rem; /* Reduce gap between arrows and numbers */
            }

            #pages-container {
                gap: 0.25rem; /* Tighter number spacing */
            }

            .page-circle {
                width: 2rem; /* 32px - Standard mobile touch target */
                height: 2rem;
                font-size: 0.9rem;
            }

            .page-circle.active {
                width: 2.75rem; /* 44px */
                height: 2.75rem; 
                font-size: 1rem;
                transform: scale(1.05); /* Less aggressive zoom */
            }

            .arrow-btn {
                padding: 0.25rem;
            }
        }





/* EXTRA for filter functionality*/
.hidden {
    display: none !important;
}


/* =========================
   SKELETON LOADER STYLES
   ========================= */

/* 1. Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* 2. Base Skeleton Class */
.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%; 
    display: block;
    position: relative;
    animation: shimmer 1.2s infinite linear forwards;
    border-radius: 4px;
}

/* 3. Feed Item Shapes */
.sk-card {
    display: block;
    margin: 3rem 0; /* Matches .article-card margin */
}

.sk-title {
    height: 24px;
    width: 60%;
    margin-bottom: 0.8rem;
}

.sk-date {
    height: 14px;
    width: 100px;
    margin-bottom: 1rem;
}

.sk-summary {
    height: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.sk-summary.short {
    width: 80%;
}

.sk-hr {
    height: 1px;
    background-color: #ccc;
    margin: 2rem 0;
    width: 100%;
    border: none;
}

/* 4. Utilities */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.date, .result-date {
    text-transform: uppercase;
}