/* Custom styles */
:root {
    --primary-color: #23426e;    /* Deep navy blue */
    --secondary-color: #2c608f;  /* Lighter blue */
    --accent-color: #d83933;     /* Government red */
    --text-color: #1b1b1b;       /* Dark text */
    --light-bg: #ffffff;         /* White background */
    --border-color: #dfe1e2;     /* Border color */
    --shadow: 0 1px 3px rgba(0,0,0,0.08); /* Subtle shadow */
    --header-bg-gradient: linear-gradient(to right, #15305b, #1a4480);
    --footer-bg-color: #1f2937;
    --secondary-button-color: #2563eb; /* Blue color for Login button/border */
}

body {
    font-family: -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: #F8F9FA;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header Styles */
header {
    background-color: var(--primary-color); /* Solid blue from banner */
    border-bottom: none;
    color: #ffffff;
}

header .container {
    flex-wrap: wrap;
}

.meghalaya-logo {
    height: 60px; /* Desktop */
}

.amrit-mahotsav-logo {
    height: 50px; /* Adjust as needed */
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.header-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

header .d-flex.align-items-end {
    justify-content: flex-end; /* Ensure button aligns to right */
}

/* Responsive navbar - mobile (Log In always visible) */
@media (max-width: 991.98px) {
    .navbar-brand {
        flex-wrap: wrap;
        max-width: calc(100% - 130px); /* Leave more space for Log In button */
    }

    .meghalaya-logo {
        height: 45px;
    }

    .header-text h1 {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100% - 110px);
    }

    .header-text h1 {
        font-size: 0.9rem;
    }

    .meghalaya-logo {
        height: 40px;
    }

    header .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Full-page Banner Placeholder */
.banner-placeholder {
    background-color: var(--primary-color);
    height: auto; /* Increased height */
    position: relative;
    overflow: hidden; /* Ensure overflow is hidden for inner elements */
    padding-top: 60px; /* Push content down */
}

.banner-placeholder .container {
    height: 100%; /* Ensure the container takes full height */
    padding-top: 0px; /* Additional padding to push content down */
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.banner-placeholder .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    align-items: flex-start;
}

.banner-placeholder h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner-placeholder h2 {
    font-size: 2.2rem; /* Adjusted from 2.8rem */
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.banner-placeholder p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 90%;
}

.banner-placeholder .btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 50px;
}

.service-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    padding-right: 20px; /* Space for the vertical line */
}

.service-list::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: white; /* White vertical line */
    border-radius: 2px;
}

.service-item {
    font-size: 1.2rem; /* Adjusted from 1.8rem */
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #87CEEB; /* Light blue color for the text */
    text-align: right;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-item:hover {
    color: #ADD8E6; /* Slightly lighter blue on hover */
}

/* Online Services Section */
.section-title,
.charts-section .card-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding: 1rem;
}

.section-title::after, .card-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.service-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.service-icon {
    color: var(--primary-color);
}

.section-title {
    margin-bottom: 2rem !important;
}

.timeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    padding: 2rem 0;
}

.timeline-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 1.5rem 1rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px; /* Increased height for better look */
    transition: all 0.3s ease;
}

.timeline-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Arrow shape using pseudo-elements */
.timeline-step::before,
.timeline-step::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px; /* Width of the arrow point */
    background: inherit;
    height: 100%;
    z-index: 1;
}

.timeline-step::before {
    left: -15px;
    transform: skewX(-20deg);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.timeline-step::after {
    right: -15px;
    transform: skewX(20deg);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Overlap for the arrow effect */
.timeline-step + .timeline-step::before {
    left: -30px;
    z-index: 2;
}

.timeline-step:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.timeline-step:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.timeline-step .step-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    z-index: 3;
}

.timeline-step .step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 3;
}

.timeline-step .step-description {
    font-size: 0.8rem;
    opacity: 0.9;
    position: relative;
    z-index: 3;
}

.timeline-step .step-icon {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 3;
}

/* Responsive adjustments for timeline */
@media (max-width: 991px) {
    .timeline-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }

    .timeline-step {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        border-radius: 12px !important; /* Ensure rounded corners on smaller screens */
    }

    .timeline-step::before,
    .timeline-step::after {
        display: none; /* Hide arrows on smaller screens */
    }
}

/* Remove old .apply-step styles */
.apply-step {
    display: none; 
}


/* Charts Section */
.charts-section .card {
    border: 1px solid var(--border-color);
    margin: 10px;
}

.charts-section .chart-value {
    color: var(--accent-color);
    font-weight: 700;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg-color);
    color: #f3f4f6;
    padding: 0rem 0;
}

footer p {
    font-size: 0.85rem;
}

/* General Bootstrap Overrides/Adjustments */
.btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.btn-primary:hover {
    background-color: #b73229 !important;
    border-color: #b73229 !important;
}

.btn-outline-secondary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-light {
    background-color: var(--light-bg) !important;
    border-color: var(--secondary-button-color) !important;
    color: var(--secondary-button-color) !important;
}

.btn-light:hover {
    background-color: var(--secondary-button-color) !important;
    color: white !important;
}

.dropdown-toggle::after {
    vertical-align: middle;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.dropdown-item:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* Registration Type Cards */
.registration-type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    min-height: 120px;
}

.registration-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

.registration-type-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.registration-type-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.registration-type-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.registration-type-card small {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Target the dialog inside the modal */
#dynamicModal .modal-dialog {
    max-width: 75vw;
    width: 75vw;
    margin: 1vh auto;
}

/* Target the content area for the height */
#dynamicModal .modal-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Make sure the body expands to fill the space and scrolls */
#dynamicModal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}