/* =========================================
   GALLERY PAGE STYLES
========================================= */
.ahps-img-banner {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ahps-img-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11,44,82,0.85), rgba(11,44,82,0.65));
}
.ahps-banner-title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ahps-events-section {
    padding: 80px 0;
    background: #f8fbff;
}
.ahps-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ahps-event-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(11, 44, 82, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.ahps-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(11, 44, 82, 0.14);
    border-color: #dca331;
}
.ahps-event-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.ahps-event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ahps-event-card:hover .ahps-event-img-wrap img {
    transform: scale(1.08);
}
.ahps-event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid #dca331;
}
.ahps-event-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ahps-event-body h3 {
    font-family: var(--font-head);
    color: var(--primary-blue);
    font-size: 1.35rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.ahps-event-snippet {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.ahps-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
}
.ahps-event-card:hover .ahps-event-link {
    color: #dca331;
}

/* Event Detail Section below grid */
.ahps-event-detail-box {
    margin-top: 50px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--primary-blue);
    border-top: 6px solid #dca331;
    box-shadow: 0 10px 30px rgba(11,44,82,0.08);
    display: none;
    animation: ahpsFadeIn 0.4s ease-out forwards;
}
.ahps-event-detail-box.active {
    display: block;
}
@keyframes ahpsFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.ahps-event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}
.ahps-event-detail-title {
    font-family: var(--font-head);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 0 0 5px 0;
}
.ahps-event-detail-meta {
    color: #dca331;
    font-weight: 700;
    font-size: 0.9rem;
}
.ahps-event-detail-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #475569;
    transition: all 0.2s ease;
}
.ahps-event-detail-close:hover {
    background: var(--primary-blue);
    color: #ffffff;
}
.ahps-event-detail-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}
/* Media Coverage & Press Cards */
.ahps-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ahps-media-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(11, 44, 82, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.ahps-media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 44, 82, 0.12);
    border-color: #dca331;
}
.ahps-media-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0b2c52;
}
.ahps-media-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ahps-media-card:hover .ahps-media-img-wrap img {
    transform: scale(1.06);
}
.ahps-media-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dca331;
    color: var(--primary-blue);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ahps-media-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ahps-media-source {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.ahps-media-body h3 {
    font-family: var(--font-head);
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    line-height: 1.35;
}
.ahps-media-body p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Awards & Honors Showcase Cards */
.ahps-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ahps-award-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    border: 1px solid #e2e8f0;
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 8px 25px rgba(11, 44, 82, 0.05);
    transition: all 0.35s ease;
    text-align: center;
    position: relative;
}
.ahps-award-card:hover {
    transform: translateY(-8px);
    border-top-color: #dca331;
    box-shadow: 0 18px 40px rgba(11, 44, 82, 0.12);
}
.ahps-award-trophy-icon {
    width: 75px;
    height: 75px;
    background: rgba(220, 163, 49, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dca331;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    border: 2px solid #dca331;
    transition: all 0.3s ease;
}
.ahps-award-card:hover .ahps-award-trophy-icon {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: scale(1.08) rotate(5deg);
}
.ahps-award-year-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ahps-award-card h3 {
    font-family: var(--font-head);
    color: var(--primary-blue);
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.ahps-award-authority {
    color: #dca331;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.ahps-award-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Award Image & PDF Elements */
.ahps-award-img-container {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}
.ahps-award-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ahps-award-img-container:hover img {
    transform: scale(1.05);
}

.ahps-award-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ahps-award-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.ahps-award-pdf-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Modal for Inline PDF & Image Viewer */
.ahps-viewer-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 44, 82, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ahps-viewer-modal-overlay.active {
    display: flex;
}
.ahps-viewer-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 920px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.ahps-viewer-modal-header {
    background: #0b2c52;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ahps-viewer-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ahps-viewer-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.ahps-viewer-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ahps-viewer-modal-body {
    flex: 1;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ahps-viewer-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.ahps-viewer-modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Photo & Video Gallery Specific Styles */
.ahps-gallery-section {
    padding: 80px 0;
    background: #f8fbff;
}
.ahps-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.ahps-gallery-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(11, 44, 82, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.ahps-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(11, 44, 82, 0.15);
}
.ahps-gallery-card img,
.ahps-gallery-card video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-bottom: 3px solid #dca331;
    background-color: #f1f5f9;
}
.ahps-gallery-caption {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    font-family: var(--font-main);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* =========================================
   LIGHTBOX POPUP MODAL STYLES
========================================= */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(11, 25, 44, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
}
.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.15);
}
.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-main, sans-serif);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    border-radius: 20px;
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.25s ease;
}
.lightbox-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

