/* ==========================================
   EXAM PORTAL
   DAILY CURRENT AFFAIRS
   STYLE.CSS
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --secondary: #1d4ed8;
    --light: #f4f7fb;
    --white: #ffffff;
    --dark: #222;
    --gray: #666;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}


/*========================*/

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}


/*========================*/

.header {
    background: linear-gradient(135deg, #2563eb, #0f52ba);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.header h1 {
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 700;
}

.header h1 i {
    margin-right: 8px;
}

.header p {
    max-width: 750px;
    margin: auto;
    font-size: 17px;
    opacity: .95;
}


/*========================*/

.month-section {
    margin: 40px 0;
}

.month-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.month-btn {
    padding: 12px 28px;
    border: none;
    background: #fff;
    border-radius: 40px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
    box-shadow: var(--shadow);
}

.month-btn:hover {
    background: var(--primary);
    color: #fff;
}

.month-btn.active {
    background: var(--primary);
    color: #fff;
}


/*========================*/

.day-list {
    padding-bottom: 60px;
}

.day-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
}


/*========================*/

.day-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.day-card:hover {
    transform: translateY(-8px);
}

.day-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}


/*========================*/

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.date {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.date i {
    color: var(--primary);
    margin-right: 5px;
}

.news-count {
    background: #e8f0ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.day-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.day-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}


/*==========================================
READ BUTTON
==========================================*/

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
}

.read-btn:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

.read-btn i {
    transition: .3s;
}

.read-btn:hover i {
    transform: translateX(5px);
}


/*==========================================
PAGINATION
==========================================*/

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.pagination button {
    border: none;
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: .3s;
}

.pagination button:hover {
    background: var(--primary);
    color: #fff;
}

.active-page {
    background: var(--primary)!important;
    color: #fff!important;
}


/*==========================================
FOOTER
==========================================*/


/* footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 25px;
    font-size: 15px;
} */


/*==========================================
SCROLLBAR
==========================================*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #eee;
}


/*==========================================
CARD ANIMATION
==========================================*/

.day-card {
    animation: fadeUp .6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:992px) {
    .header h1 {
        font-size: 32px;
    }
    .day-list .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .header {
        padding: 40px 15px;
    }
    .header h1 {
        font-size: 28px;
    }
    .header p {
        font-size: 15px;
    }
    .month-btn {
        width: 100%;
    }
    .day-list .container {
        grid-template-columns: 1fr;
    }
    .day-card {
        padding: 20px;
    }
    .day-card h2 {
        font-size: 22px;
    }
    .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pagination {
        gap: 8px;
    }
    .pagination button {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media(max-width:480px) {
    .header h1 {
        font-size: 24px;
    }
    .day-card h2 {
        font-size: 20px;
    }
    .read-btn {
        width: 100%;
        justify-content: center;
    }
    footer {
        font-size: 13px;
    }
}


/*==========================================
PAGE TITLE ye day ka css code hai.
==========================================*/

.page-title {
    padding: 40px 0 20px;
    text-align: center;
}

.page-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    max-width: 800px;
    margin: auto;
}


/*==========================================
NEWS SECTION
==========================================*/

.news-section {
    padding: 20px 0 60px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 35px;
}


/*==========================================
CATEGORY
==========================================*/

.news-category {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}


/*==========================================
NEWS TITLE
==========================================*/

.news-card h2 {
    font-size: 30px;
    margin-bottom: 15px;
}


/*==========================================
DATE
==========================================*/

.news-date {
    color: #777;
    margin-bottom: 20px;
    font-size: 15px;
}

.news-date i {
    color: #2563eb;
    margin-right: 6px;
}


/*==========================================
SUMMARY
==========================================*/

.summary {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}


/*==========================================
LEARN MORE BUTTON
==========================================*/

.learn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: .3s;
    margin-bottom: 35px;
}

.learn-btn:hover {
    background: #1d4ed8;
}


/*==========================================
STATIC GK
==========================================*/

.static-gk {
    background: #f8f9fc;
    border-left: 5px solid #2563eb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
}

.static-gk h3 {
    margin-bottom: 18px;
}

.static-gk ul {
    padding-left: 20px;
}

.static-gk li {
    margin-bottom: 10px;
}


/*==========================================
MCQ SECTION
==========================================*/

.mcq-section {
    margin-top: 30px;
}

.mcq-section h3 {
    margin-bottom: 25px;
}

.mcq {
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.mcq h4 {
    margin-bottom: 15px;
    color: #222;
}

.mcq ul {
    list-style: none;
}

.mcq li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mcq li:last-child {
    border-bottom: none;
}


/*==========================================
PAGE NAVIGATION
==========================================*/

.page-navigation {
    padding-bottom: 60px;
}

.page-navigation .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    background: #2563eb;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    transition: .3s;
}

.nav-btn:hover {
    background: #1d4ed8;
}

.home-btn {
    background: #16a34a;
}

.home-btn:hover {
    background: #15803d;
}


/* Underline remove */

.month-section .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.month-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.month-btn:hover {
    background: #2f5ee5;
    color: #fff;
}

.month-btn.active {
    background: #2f5ee5;
    color: #fff;
}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:768px) {
    .news-card {
        padding: 22px;
    }
    .news-card h2 {
        font-size: 24px;
    }
    .page-title h2 {
        font-size: 26px;
    }
    .page-navigation .container {
        flex-direction: column;
    }
    .nav-btn {
        text-align: center;
    }
}

.nav-btn.disabled {
    pointer-events: none;
    opacity: .5;
    cursor: not-allowed;
}