/* =======================================================
   VIDEO GALLERY SECTION (Theme: Navy #041e42 & Gold #c6a258)
======================================================= */
.hr-section { padding: 80px 0; background-color: #D9E6FF; position: relative; z-index: 0; }

/* --- Category Filter Tabs --- */
.hr-filter-tabs .nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; padding: 0; list-style: none; }
.hr-filter-tabs .nav-item .nav-link {
    background-color: #ffffff; color: #041e42; font-size: 1.2vw; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; border: 2px solid transparent; border-radius: 30px; padding: 12px 28px;
    box-shadow: 0 4px 15px rgba(4, 30, 66, 0.05); transition: all 0.3s ease; cursor: pointer;
}
.hr-filter-tabs .nav-item .nav-link:hover, .hr-filter-tabs .nav-item .nav-link.active {
    background-color: #041e42; color: #c6a258; border-color: #041e42; box-shadow: 0 8px 20px rgba(4, 30, 66, 0.15);
}

@media (max-width: 991px) {
    .hr-filter-tabs .nav-item .nav-link { font-size: 14px; }
}

/* --- Modern CSS Grid --- */
.hr-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}
.hr-filter { display: block; transition: all 0.4s ease; }
.hr-filter.hidden { display: none; }

/* --- Video Card Styling --- */
.hr-gallery-card {
    border-radius: 12px; overflow: hidden; background: #fff;
    box-shadow: 0 10px 30px rgba(4, 30, 66, 0.08); position: relative;
    display: block; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hr-gallery-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(4, 30, 66, 0.15); }

/* Force 16:9 Aspect Ratio */
.hr-gallery { position: relative; width: 100%; padding-top: 56.25%; background-color: #041e42; overflow: hidden; }
.hr-gallery img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hr-gallery::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(4, 30, 66, 0.4); opacity: 0; transition: opacity 0.4s ease; z-index: 1; }
.hr-gallery-card:hover .hr-gallery::after { opacity: 1; }
.hr-gallery-card:hover .hr-gallery img { transform: scale(1.08); }

/* --- Play Button Overlay --- */
.hr-hover-plus { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; justify-content: center; }
.hr-hover-plus::before { content: ''; position: absolute; width: 60px; height: 60px; background: rgba(198, 162, 88, 0.6); border-radius: 50%; animation: pulse-ring 2s infinite; z-index: -1; }
.hr-hover-plus span.fa-play-circle { font-size: 55px; color: #ffffff; background: radial-gradient(circle, #041e42 40%, transparent 45%); border-radius: 50%; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.hr-gallery-card:hover .hr-hover-plus span.fa-play-circle { color: #c6a258; background: radial-gradient(circle, #ffffff 40%, transparent 45%); transform: scale(1.1); }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* =======================================================
   CUSTOM MODAL & CLOSE BUTTON STYLING
======================================================= */
.custom-video-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(4, 30, 66, 0.92); 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
}
.custom-video-modal.show { 
    display: flex; 
    opacity: 1; 
}

.modal-wrapper-inner {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.modal-video-container { 
    position: relative; 
    width: 100%; 
    max-width: 900px; 
    background: #000000; 
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
    overflow: hidden; 
}

.modal-video-container iframe, 
.modal-video-container video { 
    width: 100%; 
    aspect-ratio: 16/9; 
    border: none; 
    display: block; 
}

/* Redesigned Floating Close Button */
.modal-close-btn { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    color: #ffffff; 
    background: rgba(4, 30, 66, 0.85);
    border: 1px solid #c6a258;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 28px; 
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.modal-close-btn:hover { 
    color: #041e42; 
    background-color: #c6a258;
    transform: scale(1.1) rotate(90deg);
}

.advisor-section {
    background-color: #D9E6FF;
    color: #ffffff;
    padding: 100px 0 20px;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* --- Top Header Area --- */
.advisor-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advisor-heading {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.advisor-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.advisor-intro-text strong {
    color: #ffffff;
}

/* --- Center Arched Image --- */
.center-img-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.arched-img-wrapper {
    position: relative;
    width: 100%;
    /*max-width: 380px;*/
    margin: 0 auto;
}

.bg-swoosh {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    /*background-color: #ffc107;
    border-radius: 250px 250px 0 0;*/
    z-index: 0;
}

.arched-img {
    position: relative;
    width: 35vw;
    /*height: 550px;*/
    object-fit: cover;
    object-position: top center;
    /*border-radius: 250px 250px 0 0;*/
    z-index: 1;
    /*box-shadow: 0 15px 40px rgba(0,0,0,0.3);*/
}

/* --- Overlapping Cards --- */
.advisor-card {
    background:radial-gradient(circle at center, #0e3552 0%, #000 70%) !important;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.advisor-card:hover {
    transform: translateY(-5px);
}

.card-content h4 {
    font-size:1.5vw;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.card-content p {
    font-size: 1.2vw;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.card-icon {
    width: 55px;
    height: 55px;
    background-color: #cda85f;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.author-sign {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    color: #cda85f;
    font-style: italic;
    font-size: 1.1vw;
}

/* Overlapping Logic for Desktop */
@media (min-width: 992px) {
    .left-card-col {
        margin-right: 0%; /* Pulls cards over the image */
        position: relative;
    }
    .right-card-col {
        margin-left: 0%; /* Pulls cards over the image */
        position: relative;
    }
    .left-card {
        padding-right: 40px; /* Extra padding near the overlap */
    }
    .right-card {
        padding-left: 40px; /* Extra padding near the overlap */
    }
}

/* Mobile / Tablet Responsive Adjustments */
@media (max-width: 991px) {
    .advisor-heading { font-size: 2.2rem; margin-bottom: 20px; }
    .advisor-card { width: 100%; flex-direction: row !important; text-align: left !important; }
    .left-card, .right-card { padding: 25px; }
    .left-card .card-content { order: 2; }
    .left-card .card-icon { order: 1; } /* Force icons to the left on mobile for consistency */
    
    /* Adjust image size on small screens */
    .arched-img { height: auto;width:320px }
    .bg-swoosh { left: -10px; top: 10px; }
    
    /* Space out the center image on mobile */
    .center-img-col { margin-top: 40px; margin-bottom: 40px; }
}
@media(max-width: 767.98px){
	.hr-filter-tabs .nav-item .nav-link{
		font-size: 16px;
	}
	.card-content h4{
		font-size: 24px;
	}
	.card-content p{
		font-size: 18px;
	}
	.author-sign {
		font-size: 18px;
	}
}