/* =========================================
 Global Drishti Premium Sarkari Theme
 Styles for Front Page,Categories,and Posts
 ========================================= */

:root {
    --primary-blue: #0A2463;
    --primary-red: #D90429;
    --primary-green: #2ecc71;
    --accent-orange: #f39c12;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --font-heading: 'Roboto', 'Helvetica', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: color 0.2s ease-out, opacity 0.2s ease-out;
}

a:hover {
    text-decoration: none;
}


.sarkari-top-bar {
    background: #000;
    color: #ccc;
    padding: 5px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
}

.sarkari-main-header {
    background: #fff;
    padding: 0;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: -1px;
}

.site-branding .site-description {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.sarkari-navbar-wrapper {
    background: linear-gradient(90deg, var(--primary-blue), #0d2c75);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sarkari-navbar {
    padding: 0;
}

.sarkari-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 15px 18px !important;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: background 0.3s;
}

.sarkari-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffeb3b !important;
}

.sarkari-navbar .nav-link i {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.header-search-icon a {
    color: #fff;
    font-size: 1.2rem;
    padding: 15px;
    display: inline-block;
}

.search-dropdown {
    background: #fff;
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}




.sarkari-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    padding: 50px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sarkari-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 36, 99, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hero-title .highlight {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 3.6rem;
    /* Stable space for 2 lines */
    display: block;
}


.portal-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.job-card::after {
    background: var(--primary-blue);
}

.scheme-card::after {
    background: var(--primary-green);
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 45px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(240, 244, 255, 0.8);
    border-radius: 50%;
}

.job-card .card-icon {
    color: var(--primary-blue);
}

.scheme-card .card-icon {
    color: var(--primary-green);
    background: rgba(235, 250, 235, 0.8);
}

.portal-card h2 {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.portal-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-portal {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-portal {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-portal:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-blue {
    background: linear-gradient(45deg, var(--primary-blue), #1e4b9e);
}

.btn-green {
    background: linear-gradient(45deg, var(--primary-green), #27ae60);
}


.sarkari-marquee-container {
    background: linear-gradient(90deg, var(--primary-blue), #0d2c75);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 45px;
    /* Fixed height for marquee to stop shifting */
    overflow: hidden;
}

.marquee-label {
    background: linear-gradient(45deg, var(--primary-red), #ff3355);
    padding: 6px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 2;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.marquee-item {
    margin-right: 40px;
}

.marquee-item a {
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
}

.marquee-item a:hover {
    color: #ffeb3b;
    text-decoration: none;
}

.badge-danger {
    background-color: var(--primary-red);
    margin-right: 8px;
    font-weight: 600;
    padding: 4px 8px;
}

.sarkari-new-badge {
    background: #ff0000;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}


.sarkari-content-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    border: 1px solid #f0f0f0;
    min-height: 800px;
    /* Increased to accommodate content fully */
    contain: layout;
    /* Prevent internal shifts from affecting external elements */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header h3 i {
    margin-right: 10px;
    color: var(--primary-red);
}

.view-all-link {
    font-size: 0.95rem;
    color: var(--primary-red);
    font-weight: 700;
    padding: 8px 15px;
    background: #fff4f4;
    border-radius: 20px;
}

.view-all-link:hover {
    background: var(--primary-red);
    color: #fff;
}


.sarkari-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width:768px) {
    .sarkari-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.sarkari-box {
    border: 1px solid #e1e8ed;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.sarkari-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.box-header {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.header-result {
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
}

.header-admit {
    background: linear-gradient(135deg, var(--primary-blue), #1565c0);
}


.header-jobs {
    background: linear-gradient(135deg, var(--accent-orange), #e65100);
}

.header-scheme {
    background: linear-gradient(135deg, var(--primary-green), #2bad58);
}

.box-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-content li {
    border-bottom: 1px solid #f5f5f5;
}

.box-content li a {
    display: block;
    padding: 12px 18px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.box-content li a:hover {
    background: #fdfdfd;
    color: var(--primary-blue);
    padding-left: 22px;
    font-weight: 600;
    border-left-color: var(--primary-blue);
}

.more-link {
    text-align: right;
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 0.9rem !important;
    background: #f9f9f9;
}

.more-link:hover {
    background: #eee;
}

.no-data {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}


.scheme-post-card {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.scheme-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.scheme-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.scheme-post-card:hover .scheme-thumb img {
    transform: scale(1.05);
}

.fallback-thumb {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-green), #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.scheme-details {
    padding: 20px;
}

.scheme-details h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.scheme-details h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.scheme-details h4 a:hover {
    color: var(--primary-green);
}

.scheme-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.read-more {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    text-decoration: underline;
}


.archive-header {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    border-left: 6px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.archive-title {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 800;
}

.archive-desc {
    margin-top: 15px;
    color: #555;
    font-size: 1.05rem;
}

.sarkari-table-container {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.table-sarkari {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-sarkari th {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.table-sarkari th:first-child {
    border-top-left-radius: var(--radius);
}

.table-sarkari th:last-child {
    border-top-right-radius: var(--radius);
}

.table-sarkari td {
    border-bottom: 1px solid #eee;
    padding: 15px;
    font-size: 0.95rem;
}

.table-sarkari tr:last-child td {
    border-bottom: none;
}

.table-sarkari tr:hover {
    background-color: #f8f9ff;
}



.sarkari-footer {
    background: linear-gradient(to right, #051636, #0A2463);

    color: #fff;
    padding: 50px 0 30px;
    margin-top: 50px;
    position: relative;
    border-top: 5px solid var(--primary-red);
}

.footer-brand .footer-logo {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-links .sep {
    color: rgba(255, 255, 255, 0.3);
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);

    border-radius: 50%;
    margin-left: 10px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social .social-icon:hover {
    transform: translateY(-3px);
    background: #fff;
}

.footer-social .social-icon.fb:hover {
    color: #3b5998;
}

.footer-social .social-icon.tw:hover {
    color: #000;
}

.footer-social .social-icon.in:hover {
    color: #e1306c;
}

.footer-social .social-icon.tg:hover {
    color: #0088cc;
}

@media (max-width:768px) {
    .sarkari-footer {
        padding: 30px 0;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-social {
        margin-bottom: 20px;
    }

    .footer-social {
        text-align: center !important;
        justify-content: center;
        display: flex;
    }

    .footer-links a {
        display: block;
        margin: 5px 0;
    }

    .footer-links .sep {
        display: none;
    }
}


@media (max-width:991px) {


    .hero-title {
        font-size: 2.2rem;
    }

    .card-icon {
        font-size: 35px;
        padding: 12px;
    }

    .sarkari-grid-wrapper {
        gap: 20px;
    }
}

@media (max-width:767px) {



    .site-branding .site-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .site-branding .site-description {
        text-align: center;
        margin-bottom: 10px;
    }

    .sarkari-navbar .nav-link {
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-search-icon {
        text-align: center;
    }


    .sarkari-hero-section {
        padding: 30px 0;
        text-align: center;
    }

    .sarkari-hero-section::before {
        display: none;

    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }


    .portal-card {
        margin-bottom: 20px;
        padding: 25px 15px;
    }


    .sarkari-grid-wrapper {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .sarkari-table-container {
        padding: 15px;
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .table-sarkari {
        min-width: 600px;

    }


    .sarkari-content-section {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .view-all-link {
        align-self: flex-start;
    }


    .footer-brand .footer-logo {
        font-size: 1.8rem;
    }


    .marquee-label {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}


.schema-faq details {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.schema-faq details[open] {
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.schema-faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    outline: none;
    color: var(--primary-blue);
    font-size: 1.05rem;
    position: relative;
    padding-right: 20px;
}

.schema-faq summary::-webkit-details-marker {
    display: none;
}


.schema-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-red);
    transition: transform 0.3s;
}

.schema-faq details[open] summary::after {
    transform: rotate(45deg);

    content: '-';
    transform: none;
}

.schema-faq p {
    margin-top: 15px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* ======================================================= 
   🔥🔥 START: INTERACTIVE REVOLUTION (Inspired by 1WE) 🔥🔥 
   ======================================================= */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --neon-blue: #3b82f6;
    --neon-purple: #8b5cf6;
}

/* Glassy Card Upgrade */
.sarkari-box,
.sarkari-content-section,
.portal-card,
.gd-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 12px !important;
}

/* Advanced Hover Interactions */
.sarkari-box:hover,
.portal-card:hover,
.gd-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.12) !important;
    border-color: var(--neon-blue) !important;
}

/* Neon Glow Buttons */
.btn-portal,
.gd-btn,
.view-all-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-portal:hover,
.gd-btn:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

/* Micro-Interactions for Links */
.box-content li a:hover {
    color: var(--neon-blue) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    padding-left: 22px !important;
}

/* Animated Title Glow */
.hero-title .highlight {
    background: linear-gradient(120deg, #d90429, #ff3355, #d90429);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-animation 3s linear infinite;
}

@keyframes shine-animation {
    to {
        background-position: 200% center;
    }
}

/* Card Entry Animations (App-like load) */
.sarkari-box,
.portal-card,
.gd-card {
    animation: cardReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delay for cards */
.sarkari-grid-wrapper .sarkari-box:nth-child(1) {
    animation-delay: 0.1s;
}

.sarkari-grid-wrapper .sarkari-box:nth-child(2) {
    animation-delay: 0.2s;
}

.sarkari-grid-wrapper .sarkari-box:nth-child(3) {
    animation-delay: 0.3s;
}


/* Responsive Table interactivity */
.gd-table tr,
.table-sarkari tr {
    transition: background 0.2s;
}

.gd-table tr:hover,
.table-sarkari tr:hover {
    background: rgba(59, 130, 246, 0.03) !important;
}

/* Smooth Image Reveal */
.scheme-thumb img,
.featured-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Premium Meta Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ======================================================= 
   🔥🔥 END: INTERACTIVE REVOLUTION 🔥🔥 
   ======================================================= */