/* ==================================================
   SUCCESS MESSAGE
================================================== */

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}


/* ==================================================
   HOME PAGE
================================================== */

.home-container {
    width: 100%;
    max-width: none;
    margin: 0;
}


/* ==================================================
   HERO SECTION
================================================== */

.hero-section {
    height: 650px;
    width: 100%;

    background:
        linear-gradient(
            rgba(75, 46, 131, 0.55),
            rgba(75, 46, 131, 0.55)
        ),
        url('../images/home/home-bg.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 85%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-left h1 {
    font-size: 50px;
    color: #4B2E83;
    font-weight: 700;
}

.hero-left h1 span {
    color: #DCCEFF !important;
}

.hero-left span {
    color: #6F42C1;
}

.hero-left p {
    font-size: 18px;
    line-height: 30px;
    color: white;
}


/* ==================================================
   HOME INFORMATION
================================================== */

.home-info-grid {
    width: 85%;

    margin: 40px auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;
}


/* ==================================================
   MPP OFFICE OPERATING HOURS
================================================== */

.collection-card {
    background: #fff;

    min-height: 260px;

    padding: 30px;

    border-radius: 18px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection-card h2 {
    color: #45208C;

    font-size: 28px;

    margin-bottom: 20px;
}

.collection-card h3 {
    color: #6F42C1;

    margin-bottom: 15px;
}

.collection-card p {
    color: #555;

    line-height: 30px;
}


/* ==================================================
   SYSTEM HIGHLIGHTS
================================================== */

.highlights-card {
    background: white;

    padding: 35px;

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.highlights-card h2 {
    color: #45208C;

    font-size: 28px;

    margin-bottom: 25px;
}

.highlight-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.highlight-card {
    background: #F5EDFF;

    padding: 22px;

    border-radius: 18px;

    text-align: center;
}

.highlight-card strong {
    display: block;

    color: #45208C;

    font-size: 30px;

    margin-bottom: 8px;
}

.highlight-card span {
    color: #555;

    font-size: 15px;
}


/* ==================================================
   LATEST LOST & FOUND POSTERS
================================================== */

.latest-section {
    width: 90%;
    max-width: 1300px;

    margin: 40px auto 60px;

    background: #F7F3FF;

    padding: 40px;

    border-radius: 30px;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 35px;
}

.section-header h2 {
    color: #45208C;
}


/* ==================================================
   POSTER SLIDER
================================================== */

.poster-slider {
    display: flex !important;

    flex-direction: row !important;

    flex-wrap: nowrap !important;

    justify-content: center;

    gap: 35px;

    overflow-x: auto;

    padding-bottom: 20px;
}

.poster-card {
    flex: 0 0 360px;

    background: white;

    border-radius: 20px;

    padding: 15px 15px 10px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.poster-image {
    width: 100%;

    height: 420px;

    object-fit: contain;

    border-radius: 15px;
}

/* ==================================================
   POSTER PREVIEW MODAL
================================================== */

.poster-modal {
    display: none;

    position: fixed;

    z-index: 9999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(20, 10, 40, 0.78);

    justify-content: center;
    align-items: center;

    flex-direction: column;

    padding: 30px;

    box-sizing: border-box;
}


/* POSTER IMAGE */

.poster-modal img {
    width: 600px;

    max-width: 80vw;
    max-height: 75vh;

    object-fit: contain;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    background: white;
}


/* CLOSE BUTTON */

.close-modal {
    position: absolute;

    top: 25px;
    right: 35px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 38px;

    font-weight: 400;

    cursor: pointer;

    border-radius: 50%;

    transition: 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.15);

    transform: scale(1.05);
}


/* ==================================================
   POSTER ACTION BUTTONS
================================================== */

.poster-modal .poster-actions {
    position: static !important;

    display: flex !important;

    flex-direction: row !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 12px !important;

    width: 100% !important;

    margin-top: 18px !important;
    margin-bottom: 0 !important;

    box-sizing: border-box;
}

.poster-modal .poster-actions button {
    position: static !important;

    border: none;

    padding: 12px 22px;

    border-radius: 10px;

    background: #6F42C1;

    color: white;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;

    box-shadow:
        0 5px 15px rgba(111, 66, 193, 0.25);
}

.poster-modal .poster-actions button:hover {
    background: #542b9d;

    transform: translateY(-2px);
}
