/* Page Header Section */
.pg-header {
    background-image: url('https://www.dxn2u.com/gallery/images/Slider-Gallery.jpg');
}

/* Branches Section Styles */
.gallery-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}

/* Sidebar Styles */
.gallery-sidebar {
    width: 250px;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    height: fit-content;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    background-color: #f5f5f5;
    position: relative;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: #19B5B8;
}

.sidebar-item img {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

.sidebar-item span {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-item:hover span, .sidebar-item.active span {
    color: white;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #19B5B8;
    border-radius: 0 2px 2px 0;
}

/* Content Area Styles */
.gallery-content {
    flex: 1;
}

.gallery-content h2 {
    color: #ff4b4b;
    margin: 0.5rem 0 1.5rem;
}

.content-section {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.content-section h3 {
    margin-bottom: 1.5rem;
}

/* Image Grid Styles */
.image-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item, .video-item {
    contain: content;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item img, .video-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-item p, .video-item p {
    padding: 1rem;
    font-size: 0.9rem;
    color: #333;
}

/* Video Thumbnail Styles */
.video-thumbnail {
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button i {
    color: white;
    font-size: 1.2rem;
} 

/* Footer Styles */
footer {
    background: #1A1A1A;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 5rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

/* Add line after h3 */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.1) 100%);
}

/* Remove line from last section (BECOME A DISTRIBUTOR) */
.footer-section:last-child h3::after {
    display: none;
}

.footer-section address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #E74C3C;
}

.footer-section .join-us-btn {
    display: inline-block;
    background: #00BFB3;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin: 15px 0;
    transition: background 0.3s ease;
}

.footer-section .join-us-btn:hover {
    background: #009B91;
}

.footer-image {
    margin-top: 20px;
}

.footer-image img {
    width: 100%;
    height: auto;
    max-width: 200px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: #888;
    margin-bottom: 10px;
}

.footer-links {
    color: #888;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #E74C3C;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        padding: 20px 2rem;
    }
    
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

/* Add after the hero section styles */
.healthy-wealthy {
    padding: 4rem 0;
    background-color: white;
}

.healthy-wealthy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.healthy-wealthy .image-content {
    width: 100%;
    max-width: 800px;
}

.healthy-wealthy .image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.healthy-wealthy .text-content {
    width: 100%;
    text-align: center;
}

.healthy-wealthy .text-content h2 {
    color: #0047AB;
    font-size: 2.5rem;
    text-align: center;
    margin: 1rem auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .healthy-wealthy .text-content h2 {
        font-size: 2rem;
    }
} 

.entrepreneur-text {
    text-align: center;
    padding: 2rem 0;
    background-color: #f5f5f5;
}

.entrepreneur-text p {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    margin: 0;
} 

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Latest News Slider Styles */
.latest-news-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #00b8b8;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background: #009999;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Ensure news-item in slider maintains its style */
.latest-news-slider .news-item {
    margin: 0 auto;
    max-width: 800px;
} 

/* Image News Slider Styles */
.image-news-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-news-slider .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-news-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-news-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    gap: 20px;
}

.slide-info .news-date {
    background: white;
    min-width: 120px;
}

.slide-info .news-details {
    color: white;
}

.slide-info .news-details h3 {
    color: white;
    font-size: 1.2rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #19B5B8;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background: rgba(0,184,184,1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-news-slider {
        height: 300px;
    }

    .slide-info {
        flex-direction: column;
        align-items: flex-start;
    }
} 

/* Update Video Grid Styles */
.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 150px;
    height: 0;
    overflow: hidden;
}

.video-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

.video-frame iframe {
    pointer-events: none; /* Prevent direct interaction with iframe */
    width: 100%;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item p {
    padding: 1rem;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* Remove old video thumbnail styles */
.video-thumbnail,
.play-button {
    display: none;
} 

/* Add these styles for content tabs */
.content-tab {
    will-change: transform, opacity;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: translate3d(0, 10px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
} 

/* Songs Section Styles */

.songs-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.download-note, .download-tip {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    font-style: italic;
}

.songs-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.song-item {
    flex-basis: 50%;
}

.song-item h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.song-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.song-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.song-link:hover {
    text-decoration: underline;
}

.song-lyrics {
    margin-bottom: 2rem;
}

.song-lyrics h4 {
    color: #333;
    margin-bottom: 1rem;
}

.song-lyrics p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.song-video {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.25%;
    height: 0;
    margin: 2rem 0;
}

.song-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .songs-section {
        padding: 1rem;
    }

    .song-video {
        max-width: 100%;
    }
}

/* Add this to your existing animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .gallery-section {
        padding: 3rem;
    }

    .image-grid, .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-container {
        flex-direction: column;
    }

    .gallery-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }

    .sidebar-item {
        padding: 0.75rem 1rem;
    }

    .image-grid, .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .gallery-content h2 {
        font-size: 1.5rem;
    }

    .image-grid, .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 1rem;
    }

    .image-grid, .video-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1rem;
    }

    .gallery-item p, .video-item p {
        font-size: 0.85rem;
    }

    .sidebar-item {
        padding: 0.5rem 0.75rem;
    }

    .sidebar-item span {
        font-size: 0.85rem;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.main-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.prev { left: -60px; }
.nav-btn.next { right: -60px; }

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.thumb {
    flex: 0 0 100px;
    height: 70px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #19B5B8;
}

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

/* Video Lightbox Styles */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.video-lightbox-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-lightbox-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Make video items clickable */
.video-item {
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
}