﻿
* {
    box-sizing: border-box;
}

body {
    background: #f4f7fb;
    font-family: "Segoe UI", "Roboto", "Open Sans", "Poppins", sans-serif;
    color: #1f2937;
    overflow-x: hidden;
}

.section-title {
    font-weight: 700;
    color: #003566;
    margin-bottom: 30px;
    position: relative;
    padding-left: 18px;
}


    .section-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 3px;
        width: 6px;
        height: 32px;
        background: #0d6efd;
        border-radius: 20px;
    }

/* HERO SECTION */

.hero-section {
    background: #ffffff;
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #003566;
    margin-bottom: 15px !important;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 20px;
}

.btn-custom {
    border-radius: 40px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
}

/* HERO MOBILE */

@media (max-width: 768px) {

    .hero-section {
        padding: 28px 0;
    }

    .hero-title {
        font-size: 1.7rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

.info-card {
    background: white;
    border: none;
    border-radius: 18px;
    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    height: 100%;
}

    .info-card:hover {
        transform: translateY(-6px);
    }

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(13,110,253,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .icon-box i {
        font-size: 20px;
        color: #0d6efd;
    }

/* NOTIFICATION PANEL */

.notification-panel {
    background: #f8fbff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

    .notification-item:hover {
        background: #f1f7ff;
        transform: translateX(5px);
    }

    .notification-item h6 {
        margin-bottom: 5px;
        color: #003566;
        font-weight: 600;
    }

    .notification-item small {
        color: #6b7280;
    }

    .notification-item i {
        font-size: 20px;
        color: #0d6efd;
    }

/* MOBILE */

@media (max-width: 991px) {

    .notification-panel {
        margin-top: 10px;
    }
}
/* HORIZONTAL TIMELINE */

.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 10px;
    padding: 20px 0 10px;
    width: 100%;
}

    .horizontal-timeline::before {
        content: "";
        position: absolute;
        top: 48px;
        left: 20px;
        right: 20px;
        height: 4px;
        background: linear-gradient(to right, #0d6efd, #003566);
        border-radius: 10px;
        z-index: 1;
    }

.timeline-step {
    position: relative;
    flex: 1;
    min-width: 0;
    text-align: center;
    z-index: 2;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    margin: 0 auto 18px;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.12);
}

.timeline-content {
    background: #ffffff;
    padding: 16px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

    .timeline-content:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .timeline-content h6 {
        font-size: 14px;
        font-weight: 700;
        color: #003566;
        margin-bottom: 8px;
        line-height: 1.4;
        min-height: 58px;
    }

    .timeline-content p {
        margin: 0;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.5;
    }
/* Updated Timeline Color Scheme */
.horizontal-timeline {
    --completed-color: #16a34a; /* Green */
    --active-color: #2563eb; /* Blue */
    --upcoming-color: #003566; /* Amber / Orange */
}

    /* Timeline Line */
    .horizontal-timeline::before {
        content: "";
        position: absolute;
        top: 18px;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #16a34a, #2563eb, #f59e0b);
        border-radius: 10px;
        z-index: 0;
    }

.horizontal-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Timeline Step */
.timeline-step {
    position: relative;
    flex: 1;
    min-width: 180px;
    text-align: center;
    z-index: 1;
}

/* Timeline Dot */
.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

/* COMPLETED */
.timeline-step.completed .timeline-dot {
    background: var(--completed-color);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.2);
}

.timeline-step.completed h6 {
    color: var(--completed-color);
}

/* ACTIVE */
.timeline-step.active .timeline-dot {
    background: var(--active-color);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25);
    animation: pulse 1.5s infinite;
}

.timeline-step.active h6 {
    color: var(--active-color);
    font-weight: 700;
}

/* UPCOMING */
.timeline-step.upcoming .timeline-dot {
    background: var(--upcoming-color);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
}

.timeline-step.upcoming h6 {
    color: var(--upcoming-color);
}

/* Timeline Card */
.timeline-content {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

/* Top Border Colors */
.timeline-step.completed .timeline-content {
    border-top-color: var(--completed-color);
}

.timeline-step.active .timeline-content {
    border-top-color: var(--active-color);
}

.timeline-step.upcoming .timeline-content {
    border-top-color: var(--upcoming-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Mobile */
@media (max-width: 768px) {

    .horizontal-timeline {
        flex-direction: column;
        gap: 25px;
    }

        .horizontal-timeline::before {
            display: none;
        }

    .timeline-step {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }

    .timeline-dot {
        margin: 5px 0 0;
        flex-shrink: 0;
    }

    .timeline-content {
        width: 100%;
    }
}

/* MOBILE */

@media (max-width: 992px) {

    .horizontal-timeline {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
        padding-bottom: 15px;
        scrollbar-width: thin;
    }

        .horizontal-timeline::before {
            width: 1400px;
            left: 0;
            right: auto;
        }

    .timeline-step {
        min-width: 220px;
        flex: 0 0 auto;
    }
}


#faqModal .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}
/* Header */
#faqModal .modal-header {
    background: linear-gradient(135deg, #0d6efd, #084298);
    border-bottom: 0;
    padding: 1rem 1.5rem;
}

#faqModal .modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

/* Body */
#faqModal .modal-body {
    background: #f4f7fc;
    padding: 1.5rem;
    color: #343a40;
    line-height: 1.8;
}

/* Footer */
#faqModal .modal-footer {
    background: #f4f7fc;
    border-top: 1px solid #dee2e6;
}

/* Accordion */
#faqModal .accordion-item {
    border: 0;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

#faqModal .accordion-button {
    background: #ffffff;
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}

    #faqModal .accordion-button:not(.collapsed) {
        background: #eaf2ff;
        color: #084298;
    }

    #faqModal .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

#faqModal .accordion-body {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
}

/* Section Headings */
#faqModal h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d6efd !important;
    margin-bottom: 1rem;
}

/* Paragraph */
#faqModal p {
    margin-bottom: 1rem;
}

.faq-list,
.faq-points,
.sub-points,
.inner-points {
    padding-left: 1.3rem;
    margin-bottom: 0;
}

    .faq-list > li,
    .faq-points > li,
    .sub-points > li,
    .inner-points > li {
        margin-bottom: 12px;
        line-height: 1.7;
    }

    /* Nested Lists */
    .faq-list ul,
    .faq-points ul {
        margin-top: 8px;
        padding-left: 1.3rem;
    }

        .faq-list ul li,
        .faq-points ul li {
            margin-bottom: 8px;
        }

/* Scrollbar */
#faqModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#faqModal .modal-body::-webkit-scrollbar-thumb {
    background: #b8c7e6;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 576px) {

    #faqModal .modal-dialog {
        margin: 0.75rem;
    }

    #faqModal .modal-body {
        padding: 1rem;
    }

    #faqModal .accordion-button {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }

    #faqModal .accordion-body {
        padding: 1rem;
    }

    .faq-list,
    .faq-points,
    .sub-points,
    .inner-points {
        padding-left: 1.1rem;
    }
}

.notice-box {
    background: #fff8e1;
    border-left: 6px solid #ffc107;
    padding: 20px;
    border-radius: 12px;
}


.carousel {
    background: #EEE;
}

.carousel-cell {
    width: 50%; /* half-width */
    height: 150px;
    margin-right: 10px;
}

.carousel-image {
    display: block;
    height: 200px;
    /* set min-width, allow images to set cell width */
    min-width: 150px;
    max-width: 100%;
    margin-right: 10px;
    /* vertically center */
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.carousel-image-p {
    display: block;
    height: 300px;
    /* set min-width, allow images to set cell width */
    min-width: 150px;
    max-width: 100%;
    margin-right: 10px;
    /* vertically center */
    top: 50%;
    transform: translateY(-50%)
}

.carousel.is-fullscreen .carousel-image {
    height: auto;
    max-height: 100%;
}

.carousel-cell:before {
    display: block;
    text-align: center;
    content: counter(carousel-cell);
    line-height: 200px;
    font-size: 80px;
    color: white;
}

.static-banner {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
}

.static-banner1 {
    left: 10px;
    top: 10px;
}

.static-banner2 {
    right: 10px;
    bottom: 10px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.blink {
    animation: blinker 1.5s linear infinite;
    color: red;
    font-family: sans-serif;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.loading-wrap {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

.card-header img {
    width: 100%;
    object-fit: cover;
    border-bottom: 2px solid #007bff;
}

.card-footer .btn {
    width: 100%; /* Ensures buttons are easy to tap on mobile */
}

.table-container {
    max-height: 600px; /* Fixed height */
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #dee2e6;
}

    .table-container table {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .table-container thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f8f9fa;
    }

    .table-container tbody td,
    .table-container tbody th {
        vertical-align: middle;
    }


/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

/* Table */
.enumeration-table {
    font-size: 0.95rem;
}

    /* Header */
    .enumeration-table thead th {
        background: #0f172a !important;
        color: #fff;
        vertical-align: middle;
        padding: 14px;
        border-color: #1e293b;
    }

    /* Body Cells */
    .enumeration-table td {
        padding: 12px 14px;
        vertical-align: middle;
    }

/* District Styling */
.district-name,
.district-sl {
    background: #eff6ff;
    color: #1e3a8a;
}

/* Hover */
.enumeration-table tbody tr:hover {
    background: #f8fafc;
}

/* Total Rows */
.total-row {
    background: #dbeafe !important;
    color: #1e3a8a;
}

/* Grand Total */
.grand-total-row {
    background: linear-gradient(to right, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 1rem;
}

    .grand-total-row td {
        padding: 16px 14px;
    }

/* Card */
#enumeration .card {
    border-radius: 18px;
}

/* Responsive */
@media (max-width: 768px) {

    .enumeration-table {
        font-size: 0.86rem;
    }

        .enumeration-table td,
        .enumeration-table th {
            padding: 10px;
        }

    .section-title {
        font-size: 1.5rem;
    }
}