﻿/* =====================================================
   PANEL BOXES (unified)
   ===================================================== */

.steps-box {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.steps-box-header {
    background: var(--green-primary);
    color: var(--gold);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.steps-box-body {
    padding: 16px 18px;
    font-size: 13px;
    color: var(--text-muted);
}

    .steps-box-body p {
        margin-bottom: 12px;
    }

        .steps-box-body p:last-child {
            margin-bottom: 0;
        }

/* Step list items */
.step-item {
    display: flex;
    gap: var(--space-1);
    margin-bottom: 16px;
}

    .step-item:last-child {
        margin-bottom: 0;
    }

.step-num {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-primary);
    color: var(--gold);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.step-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--green-primary);
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0;
}

/* =====================================================
   INFO BOX (index page)
   ===================================================== */

.info-box {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.info-box-header {
    background: var(--green-primary);
    color: var(--gold);
    padding: 14px 18px;
    font-weight: 600;
    text-align: center;
}

.info-box-body {
    padding: 18px;
    background: var(--cream);
    font-size: 14px;
}

    .info-box-body p {
        margin-bottom: 14px;
    }

/* =====================================================
   STAT ROW
   ===================================================== */

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 13px;
}

    .stat-row:last-child {
        border-bottom: none;
    }

.stat-value {
    font-weight: 700;
    color: var(--green-primary);
}

/* =====================================================
   MODAL ACTIONS
   ===================================================== */

.modal-actions {
    display: flex;
    gap: var(--space-1);
    justify-content: flex-end;
    margin-top: var(--space-3);
}

/* =====================================================
   HERO SECTION (Index)
   ===================================================== */

.hero-section {
    display: flex;
    gap: var(--space-3);
    padding-top: 24px;
    padding-bottom: 24px;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: stretch;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius);
    background-color: var(--green-darkest);
    background-size: cover;
    background-position: center;
    min-height: 320px;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
}

.hero-content {
    position: relative;
    padding: 24px;
    color: var(--white);
}

.hero-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

.hero-title {
    font-size: 26px;
    margin-top: 10px;
}

/* =====================================================
   SIDE NEWS LIST
   ===================================================== */

.side-news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
    width: 50%;
    flex-shrink: 0;
}

.side-news-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-light);
}

    .side-news-item:hover {
        background: var(--gray-light);
    }

    .side-news-item:last-child {
        border-bottom: none;
    }

.side-news-title {
    font-size: 14px;
    font-weight: 600;
}

.side-news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.side-news-thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: var(--radius);
    background-color: var(--green-primary);
    background-size: cover;
    background-position: center;
}

/* =====================================================
   ICON NAV ROW
   ===================================================== */

.icon-nav-row {
    background: var(--gray-light);
    padding: 24px 0;
}

.icon-nav-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    font-size: 14px;
    color: var(--green-primary);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
}

/* =====================================================
   NEWS GRID & CARDS
   ===================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.news-card {
    display: block;
}

.news-card-image {
    height: 160px;
    border-radius: var(--radius);
    background-color: var(--green-primary);
    background-size: cover;
    background-position: center;
}

.news-card-body {
    padding-top: 12px;
}

.news-card-title {
    font-weight: 600;
    font-size: 15px;
}

.news-card-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* =====================================================
   INFO BOX ROW
   ===================================================== */

.info-box-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin: 30px 0;
}

.quote-text {
    font-size: 15px;
    line-height: 1.9;
    border-right: 3px solid var(--gold);
    padding-right: 12px;
}

.quote-source {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 10px;
}

.roster-date {
    font-size: 12px;
    color: var(--text-muted);
}

.roster-title {
    font-weight: 700;
    margin: 6px 0 10px;
}

.roster-year {
    display: inline-block;
    margin-top: 10px;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* =====================================================
   MARTYR GRID & CARDS
   ===================================================== */

.martyrs-today-section {
    background: var(--green-primary);
    padding: 40px 0;
}

.martyr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.martyr-card {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
}

.martyr-name {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
}

.martyr-group, .martyr-op {
    color: var(--cream-alt);
    font-size: 12px;
    margin-top: 4px;
}

.martyr-group {
    color: var(--gold);
}

.martyr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    color: var(--cream-alt);
    background: linear-gradient(135deg, #4A6156 0%, #20302A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* =====================================================
   EVENT GRID & CARDS
   ===================================================== */

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.event-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

    .event-card .event-date-badge {
        background: var(--green-primary);
        color: var(--gold);
        padding: 14px 18px;
        display: flex;
        justify-content: space-between;
        font-size: 13px;
    }

.event-body {
    padding: 18px;
}

.event-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.event-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.event-tag {
    font-size: 12px;
    color: var(--gold);
}

/* =====================================================
   ALBUM GRID & CARDS
   ===================================================== */

.album-section {
    background: var(--gray-light);
    padding: 40px 0;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
}

.album-thumb {
    height: 180px;
    border-radius: var(--radius);
    background-color: var(--green-primary);
    background-size: cover;
    background-position: center;
}

.album-name {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================================
   MEMORY GRID & CARDS
   ===================================================== */

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin: 0 0 40px;
}

.memory-card {
    background: var(--cream);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
}

.memory-quote {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.memory-author {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 13px;
    color: var(--text-muted);
}

.memory-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--green-primary);
    background-size: cover;
    background-position: center;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact-section {
    background: var(--green-primary);
    padding: 50px 0;
}

.contact-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.contact-form {
    width: 46%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-text {
    flex: 1;
    min-width: 280px;
}

    .contact-text h2 {
        color: var(--gold);
        font-size: 24px;
        margin-bottom: 14px;
    }

    .contact-text p {
        color: var(--text-green-light2);
        font-size: 14px;
        line-height: 1.9;
    }

.file-drop {
    padding: 14px;
    text-align: center;
    color: var(--text-green-light);
    font-size: 13px;
    margin-bottom: 14px;
}

/* =====================================================
   NO EVENT BOX
   ===================================================== */

.no-event-box {
    border: 1px dashed var(--gray-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* =====================================================
   SEARCH BOX ROW (wills)
   ===================================================== */

.search-box-row {
    display: flex;
    gap: var(--space-1);
    margin-top: 24px;
}

.search-box-input {
    flex: 1;
    height: 46px;
    border-radius: var(--radius);
    border: none;
    outline: none;
    padding: 0 16px;
    background: var(--green-light);
    color: var(--white);
    font-size: 14px;
}

    .search-box-input::placeholder {
        color: #C7CFC9;
    }

/* =====================================================
   LOAD MORE
   ===================================================== */

.load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.load-more-btn {
    padding: 12px 28px;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--green-primary);
    font-size: 13px;
    cursor: pointer;
}

    .load-more-btn:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

/* =====================================================
   GUIDE CARDS (submit-content)
   ===================================================== */

.guide-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding: 40px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.guide-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 22px;
}

.guide-num {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 8px;
}

.guide-title {
    font-weight: 700;
    color: var(--green-primary);
    font-size: 16px;
    margin-bottom: 10px;
}

.guide-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =====================================================
   CONSENT ROW (submit-content)
   ===================================================== */

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* =====================================================
   DETAIL GRID (submissions modal)
   ===================================================== */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-1);
    font-size: 13px;
    margin-bottom: var(--space-2);
}

.detail-label {
    font-weight: 700;
    color: var(--green-primary);
    margin-left: 6px;
}

.detail-file {
    margin-bottom: var(--space-2);
}

.detail-file-image {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
}

/* =====================================================
   UPLOAD MEDIA
   ===================================================== */

.img-upload {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.img-upload-preview {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 6px;
    background-color: #F0EFE9;
    background-size: cover;
    background-position: center;
    border: 1px solid #F0EFE9;
}

    .img-upload-preview.empty {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: var(--text-muted);
        text-align: center;
        padding: 6px;
    }

.img-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.img-upload-file {
    font-size: 12px;
    color: var(--text-muted);
}

.img-upload-status {
    font-size: 12px;
    color: var(--gold);
}

.img-upload-clear {
    font-size: 12px;
    color: #A34A4A;
    cursor: pointer;
    width: fit-content;
}

    .img-upload-clear:hover {
        text-decoration: underline;
    }

.media-upload {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.media-upload-preview {
    width: 160px;
    min-width: 160px;
}

.media-upload-empty {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    background-color: #F0EFE9;
    border: 1px solid #F0EFE9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6E7871;
}

.media-upload-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #F0EFE9;
}

.media-upload-video {
    width: 100%;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #F0EFE9;
}

.media-upload-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100px;
    border-radius: 6px;
    border: 1px solid #F0EFE9;
    background: #FCFBF8;
    font-size: 11px;
    color: #33473F;
    text-align: center;
    padding: 8px;
    word-break: break-word;
}

.media-upload-doc-icon {
    font-size: 22px;
}

.media-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .martyr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-box-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }

    .side-news-list {
        width: 100%;
    }

    .hero-banner {
        min-height: 240px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .martyr-grid {
        grid-template-columns: 1fr;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .icon-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .hero-title {
        font-size: 20px;
    }
}