/* Container & Navigation Bar */
.mhp-container {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mhp-tab-bar {
    display: flex;
    justify-content: center;
    background: #1e62a8;
    border-radius: 30px;
    padding: 4px;
    max-width: 450px;
    margin: 0 auto 40px auto;
}

.mhp-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mhp-tab-btn.active {
    background: #9bc5ed;
    color: #0d3b66;
}

/* -------------------------------------------------------------
   HOMEPAGE WIDGET & CARDS DESIGN
------------------------------------------------------------- */
.mhp-home-widget {
    width: 100%;
    margin: 30px auto;
}

.mhp-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .mhp-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mhp-home-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Container */
.mhp-home-card {
    display: block;
    position: relative;
    background: #ffffff;
    border: 1px solid #bce0fd;
    border-radius: 16px;
    padding: 35px 25px 25px 25px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.mhp-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 98, 168, 0.12);
}

/* Top-Left Solid Blue Badge/Ribbon */
.mhp-home-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #19589d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px 6px 16px;
    border-bottom-right-radius: 8px;
    letter-spacing: 0.3px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.08);
}

.mhp-home-content {
    margin-top: 10px;
}

/* Blue Date Label */
.mhp-home-date {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1e62a8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Card Main Title */
.mhp-home-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
    color: #2c3e50;
    margin: 0;
}

/* -------------------------------------------------------------
   3-COLUMN GRID & STANDARD CARDS
------------------------------------------------------------- */
.mhp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

@media (max-width: 900px) {
    .mhp-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mhp-cards-grid {
        grid-template-columns: 1fr;
    }
}

.mhp-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mhp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mhp-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: #e2e8f0;
}

.mhp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: top;
}

.mhp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mhp-play-button svg {
    width: 26px;
    height: 26px;
    fill: #000;
}

.mhp-inline-player {
    display: none;
    width: 100%;
    background: #000;
}

.mhp-inline-player iframe, 
.mhp-inline-player video {
    width: 100%;
    height: 220px;
    display: block;
}

.mhp-card-body {
    padding: 18px 20px 22px 20px;
}

.mhp-card-date {
    font-size: 13px;
    color: #718096;
    display: block;
    margin-bottom: 6px;
}

.mhp-card-title {
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.35;
    color: #1a202c;
    margin: 0;
}

/* -------------------------------------------------------------
   ALBUM DETAILS VIEW
------------------------------------------------------------- */
.mhp-album-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

.mhp-featured-col {
    flex: 0 0 320px;
}

.mhp-photos-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .mhp-album-layout {
        flex-direction: column;
    }
    .mhp-featured-col {
        flex: 100%;
    }
}

/* Featured Card Container Fix */
.mhp-featured-card {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 580px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: top left !important; 
    background-repeat: no-repeat !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* White Pinned Info Card at Bottom */
.mhp-featured-info {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mhp-featured-date {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1e62a8 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
}

.mhp-featured-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

/* 3-Column Photo Grid */
.mhp-album-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    flex: 1;
}

@media (max-width: 600px) {
    .mhp-album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mhp-photo-item {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mhp-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mhp-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: top;
    display: block;
}

.mhp-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 16px;
}

/* Centered Rounded Pagination Bar */
.mhp-album-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.mhp-album-page-num, 
.mhp-album-page-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #1e62a8;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mhp-album-page-num.active {
    background: #133c69;
}

.mhp-album-page-num:hover, 
.mhp-album-page-nav:hover {
    background: #133c69;
}

/* Back Button */
.mhp-back-btn {
    background: #1e62a8;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Main View Pagination Bar */
.mhp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.mhp-page-num, .mhp-page-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1e62a8;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mhp-page-num.active {
    background: #133c69;
}

/* -------------------------------------------------------------
   LIGHTBOX CAROUSEL MODAL
------------------------------------------------------------- */
.mhp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhp-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #111;
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
}

.mhp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
}

.mhp-carousel-header {
    color: #fff;
    margin-bottom: 15px;
}

.mhp-carousel-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #fff;
}

.mhp-carousel-header span {
    color: #a0aec0;
    font-size: 13px;
}

.mhp-carousel-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.mhp-carousel-track {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mhp-carousel-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.mhp-carousel-slide.active {
    display: block;
}

.mhp-carousel-slide img {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 8px;
}

.mhp-carousel-prev,
.mhp-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}

.mhp-carousel-prev:hover,
.mhp-carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mhp-carousel-prev { left: -10px; }
.mhp-carousel-next { right: -10px; }

.mhp-carousel-counter {
    text-align: center;
    color: #a0aec0;
    margin-top: 15px;
    font-size: 14px;
}