/********** Achievers Sisters Club Custom CSS **********/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

/********** Achievers Sisters Club Custom CSS **********/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

/* Color Palette Override */
:root {
    --bs-primary: #C75B7A;
    --bs-secondary: #D4A574;  /* Changed from yellow to warm beige */
    --bs-accent: #D4A574;     /* Changed from yellow to warm beige */
    --bs-dark: #222222;
    --bs-white: #FFFFFF;
    --bs-light: #F9E0E8;
    --bs-tertiary: #797E88;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
}

body, p, a, li, span, input, textarea, button, .btn {
    font-family: 'Poppins', sans-serif !important;
}

/* Top Navigation Heading Size Fix */
.top-bar h1 {
    font-size: 1.5rem !important; /* Smaller size for top nav */
    font-weight: 600 !important;
}

/* Button Styling */
.btn {
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background-color: #C75B7A !important;
    border-color: #C75B7A !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #a84a65 !important;
    border-color: #a84a65 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 91, 122, 0.3);
}

.btn-secondary {
    background-color: #D4A574 !important;  /* Updated to new color */
    border-color: #D4A574 !important;      /* Updated to new color */
    color: #222222 !important;
}

.btn-secondary:hover {
    background-color: #b8955e !important;  /* Updated hover color */
    border-color: #b8955e !important;      /* Updated hover color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);  /* Updated shadow */
}

.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
}


.navbar-brand {
    color: #FFFFFF !important;
    gap: 0.5rem;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.3s ease;
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, max-width 0.3s ease, transform 0.3s ease;
}

.nav-bar.nav-brand-visible .navbar-brand .brand-text {
    opacity: 1;
    max-width: 260px;
    transform: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #FFFFFF !important;
}

.navbar-toggler {
    margin-left: auto;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif !important;
}

body, p, a, li, span, input, textarea, button, .btn {
    font-family: 'Poppins', sans-serif !important;
}

/* Button Styling */
.btn {
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background-color: #C75B7A !important;
    border-color: #C75B7A !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #a84a65 !important;
    border-color: #a84a65 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 91, 122, 0.3);
}

.btn-secondary {
    background-color: #D4A574 !important;  /* Updated to new color */
    border-color: #D4A574 !important;      /* Updated to new color */
    color: #222222 !important;
}

.btn-secondary:hover {
    background-color: #b8955e !important;  /* Updated hover color */
    border-color: #b8955e !important;      /* Updated hover color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);  /* Updated shadow */
}

/* Background Colors */
.bg-primary {
    background-color: #C75B7A !important;
}

.bg-secondary {
    background-color: #F9E0E8 !important;
}

.bg-light {
    background-color: #F9E0E8 !important;
}

/* Text Colors */
.text-primary {
    color: #C75B7A !important;
}

.text-secondary {
    color: #D4A574 !important;  /* Updated to new color */
}

.text-dark {
    color: #222222 !important;
}

/* Tagline color fix */
.tagline {
    font-size: 1.1rem;
    color: #D4A574 !important;  /* Updated to new color */
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.25rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.header-carousel .carousel-img {
    max-width: 900px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
}

.header-carousel .carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer .row.g-2 .col-4 {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.footer .row.g-2 .col-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

.program-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.program-card-body {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-card-body p {
    flex: 1;
    margin-bottom: 0;
}

/* Social Media Icons hover fix */
.social-icon:hover {
    background: #D4A574 !important;  /* Updated to new color */
    color: #222222;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0 1.5rem;
    }

    .navbar-brand {
        margin-right: auto !important;
    }

    .navbar-brand .brand-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand .brand-text {
        font-size: 0.95rem;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }
}

/* Gallery Filter */
#gallery-flters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#gallery-flters button {
    background-color: transparent;
    border: 2px solid var(--bs-primary);
    color: var(--bs-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#gallery-flters button.active,
#gallery-flters button:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Native Video Controls and Layout */
.gallery-item video {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* Hide native video controls in grid (videos only play in modal) */
.gallery-item video::-webkit-media-controls-panel {
    display: none !important;
}

.gallery-item video::-webkit-media-controls,
.gallery-item video::-webkit-media-controls-play-button,
.gallery-item video::-webkit-media-controls-current-time-display,
.gallery-item video::-webkit-media-controls-time-remaining-display,
.gallery-item video::-webkit-media-controls-timeline,
.gallery-item video::-webkit-media-controls-volume-slider,
.gallery-item video::-webkit-media-controls-fullscreen-button,
.gallery-item video::-webkit-media-controls-mute-button,
.gallery-item video::-webkit-media-controls-volume-slider-container {
    display: none !important;
}

/* Video poster/thumbnail styling - shows actual video frame */
.gallery-item video[poster] {
    object-position: center;
}

.gallery-item:hover video {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Video indicators - play button and badge */
.gallery-item.video {
    position: relative;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(199, 91, 122, 0.95);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(199, 91, 122, 0.4);
}

.video-play-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 22px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.gallery-item.video:hover .video-play-overlay {
    background: rgba(199, 91, 122, 1);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: white;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(199, 91, 122, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive video indicators */
@media (max-width: 768px) {
    .video-play-overlay {
        width: 40px;
        height: 40px;
    }

    .video-play-overlay::before {
        border-left-width: 14px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }

    .video-badge {
        font-size: 10px;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 575.98px) {
    .video-play-overlay {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }

    .video-play-overlay::before {
        border-left-width: 12px;
        border-top-width: 7px;
        border-bottom-width: 7px;
        margin-left: 3px;
    }

    .video-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* Hide video badge when video is playing */
.gallery-item.video.playing .video-badge {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.gallery-item.video:hover .video-badge {
    opacity: 1;
    visibility: visible;
}

/* Media Modal Styles */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

.media-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.media-modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

.media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bs-primary);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.media-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.media-modal-content {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow: auto;
}

.media-modal-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #000;
}

.media-modal-item img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
}

.media-modal-item video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
    background: #000;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .media-modal-container {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }

    .media-modal-header {
        padding: 16px 20px;
    }

    .media-modal-title {
        font-size: 18px;
    }

    .media-modal-close {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }

    .media-modal-content {
        max-height: calc(95vh - 70px);
    }

    .media-modal-item {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .media-modal-container {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 8px;
    }

    .media-modal-header {
        padding: 12px 16px;
    }

    .media-modal-title {
        font-size: 16px;
    }

    .media-modal-close {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }

    .media-modal-content {
        max-height: calc(98vh - 60px);
    }

    .media-modal-item {
        min-height: 250px;
    }
}

/* Video specific responsive layout */
.gallery-item {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Enhanced responsive gallery grid */
@media (min-width: 1400px) {
    .gallery-grid {
        column-count: 4;
        column-gap: 1.5rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 1.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }

    .gallery-item {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.5rem;
    }

    .gallery-item {
        margin-bottom: 0.5rem;
    }

    .gallery-item video {
        min-height: 150px;
    }
}

/* Videos maintain proper aspect ratio */
.gallery-item video {
    aspect-ratio: 16/9;
}

/* Special layout for Videos tab - when only videos are shown */
.gallery-grid .gallery-item.video {
    width: 100%;
}

@media (min-width: 992px) {
    /* Desktop: 3 videos per row in Videos tab */
    .gallery-grid .gallery-item.video {
        width: calc(33.333% - 1rem);
        margin-right: 1rem;
        margin-bottom: 1rem;
        float: left;
    }

    .gallery-grid .gallery-item.video:nth-child(3n) {
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet: 2 videos per row */
    .gallery-grid .gallery-item.video {
        width: calc(50% - 0.5rem);
        margin-right: 1rem;
        margin-bottom: 1rem;
        float: left;
    }

    .gallery-grid .gallery-item.video:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    /* Mobile: 2 videos per row */
    .gallery-grid .gallery-item.video {
        width: calc(50% - 0.375rem);
        margin-right: 0.75rem;
        margin-bottom: 0.75rem;
        float: left;
    }

    .gallery-grid .gallery-item.video:nth-child(2n) {
        margin-right: 0;
    }

    .gallery-item video {
        min-height: 160px;
    }
}
