/* --------------------- Body & Banner --------------------- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #1e1e2c, #3b3b5a);
    font-family: Arial, sans-serif;
    color: white;
}

.banner-container {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.banner-container .banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------- Navigation --------------------- */
.belowHeader {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    background-color: rgba(44, 44, 68, 0.95);
    margin: 0;
    padding: 10px 20px;
    font-family: 'Brush Script MT', cursive;
    font-size: clamp(14px, 2vw, 30px);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.belowHeader a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: text-decoration 0.2s, transform 0.2s;
}

.belowHeader a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* --------------------- Latest Videos --------------------- */
#latest-videos-section {
    text-align: center; /* Center title */
    margin: 20px auto;
}

#videos-container {
    display: flex;
    flex-direction: column; /* stack batches vertically */
    align-items: center;
    width: 100%;
}

.videos-batch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center; /* center grid items */
    width: 100%;
    margin-bottom: 30px;
}

.video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px; /* grows on wider screens */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.video-card.show {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover .video-wrapper iframe {
    transform: scale(1.05);
}

.video-card:hover .video-wrapper {
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.video-title {
    margin-top: 10px;
    font-size: clamp(14px, 1.2vw, 20px); /* scales with viewport width */
    font-weight: bold;
    text-align: center;
    color: white; /* white text */
}


.video-wrapper {
    width: 100%;
    max-width: 600px; /* max width for large screens */
    aspect-ratio: 16 / 9; /* maintain 16:9 aspect ratio */
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}


#load-more-btn {
    display: block;
    margin: 30px auto 0 auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#load-more-btn:hover {
    background-color: #373b3b;
}

/* --------------------- Personal Favorites --------------------- */
#personal-favorites {
    text-align: center;
    margin: 60px auto;
    max-width: 1200px;
    padding: 20px;
}

#personal-favorites h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 50px;
    color: white;
}

.favorite-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px; /* consistent spacing */
    flex-wrap: wrap;
    position: relative;
    opacity: 0;
    transform: translateY(80px); /* initial slide-up */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.favorite-video.visible {
    opacity: 1;
    transform: translateY(0); /* slide up to normal */
}

/* Zig-zag layout for even videos */
.favorite-video:nth-child(even) {
    flex-direction: row-reverse;
}

.favorite-video iframe {
    width: 480px;
    height: 270px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.favorite-video iframe:hover {
    transform: scale(1.03);
}

.video-info {
    max-width: 500px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.video-info:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.video-info h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 16px;
    color: #d3d3d3;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .favorite-video {
        flex-direction: column !important;
        text-align: center;
        transform: none !important;
        margin-bottom: 60px;
    }

    .video-info {
        text-align: center;
    }

    .favorite-video iframe {
        width: 100%;
        max-width: 500px;
        height: auto;
    }
}

#history-section {
    text-align: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

#history-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 40px;
    color: white;
}

.history-item {
    margin-bottom: 60px;
    text-align: center; /* Center content inside each item */
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.history-item h3 {
    color: white;
    margin-bottom: 15px;
}

.history-item iframe {
    display: block;      /* Make iframe a block element */
    margin: 0 auto 10px; /* Center horizontally and add bottom margin */
    width: 100%;
    max-width: 600px;    /* Keeps it from being too wide on large screens */
    aspect-ratio: 16/9;
    border-radius: 12px;
}

.history-item p {
    color: #d3d3d3;
    line-height: 1.5;
}

.history-intro {
    max-width: 900px;
    margin: 0 auto 50px auto; /* center and space below heading */
    text-align: left;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: #d3d3d3;
}

.history-intro a {
    color: #a0c4ff; /* light blue link */
    text-decoration: underline;
}

.history-intro a:hover {
    color: #ffd166; /* optional hover effect */
}


/* Fade-in + scroll-up animation for history videos */
.history-video {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.history-video.visible {
    opacity: 1;
    transform: translateY(0);
}

#reach-out-section {
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

#reach-out-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 30px;
    color: white;
}

/* Centered intro text */
.reach-out-intro {
    color: #d3d3d3;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center; /* Centered */
}

/* Email block styles */
.reach-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
    text-align: center; /* Center content */
    opacity: 0; /* For scroll animation */
    transform: translateY(80px); /* Initial slide down */
}

.reach-item:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.reach-item h3 {
    color: white;
    margin-bottom: 10px;
}

.reach-item a {
    color: #a0c4ff;
    text-decoration: underline;
    font-size: 16px;
}

.reach-item a:hover {
    color: #ffd166;
}

/* Fade-in scroll animation */
.reach-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about-us-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

#about-us-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 40px;
    color: white;
}

.about-intro {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: #d3d3d3;
    margin-bottom: 50px;
    text-align: center;
}

/* Team Members */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.team-member h3 {
    color: white;
    margin-bottom: 20px;
}

.member-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.member-img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    max-width: 600px;
    text-align: left;
    color: #d3d3d3;
    font-size: clamp(16px, 1.2vw, 18px);
}

.member-info a {
    color: #a0c4ff;
    text-decoration: underline;
}

.member-info a:hover {
    color: #ffd166;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .member-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-info {
        text-align: center;
    }
}

/* About Us Section */
#about-us-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

#about-us-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 40px;
    color: white;
}

.about-intro {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: #d3d3d3;
    margin-bottom: 50px;
    text-align: center;
}

/* Team Members */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.team-member h3 {
    color: white;
    margin-bottom: 20px;
}

.member-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Zig-Zag Layout */
.team-member:nth-child(even) .member-content {
    flex-direction: row-reverse;
}

.member-img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    max-width: 600px;
    text-align: left;
    color: #d3d3d3;
    font-size: clamp(16px, 1.2vw, 18px);
}

.member-info a {
    color: #a0c4ff;
    text-decoration: underline;
}

.member-info a:hover {
    color: #ffd166;
}

/* Scroll Animation for About Us */
.about-video {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-video.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .member-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-info {
        text-align: center;
    }
}

/* Hover effect for team images */
.member-img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Fade-in scroll animation for Reach Out */
.reach-video {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reach-video.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Fade-in & Scroll-up for History & Reach Out ---------------- */
.reach-fade, .history-fade {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reach-fade.visible, .history-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Hover Effects ---------------- */
.reach-item, .history-video {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reach-item:hover, .history-video:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ---------------- Layout ---------------- */
.reach-out-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 40px auto;
    max-width: 600px;
}

.reach-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(5px);
}

.reach-item a {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
}

.reach-item a:hover {
    text-decoration: underline;
}

.history-video iframe {
    width: 80%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
    margin: 40px auto;
}

/* ---------------- OUR HISTORY STYLING ---------------- */
#our-history-section {
    text-align: center;
    margin: 60px auto;
    max-width: 900px;
    padding: 20px;
}

#our-history-section h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 30px;
    color: white;
}

.history-text {
    text-align: left;
    color: #dcdcdc;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 25px 30px;
    backdrop-filter: blur(4px);
}

.history-text a {
    color: #00aaff;
    text-decoration: none;
}

.history-text a:hover {
    text-decoration: underline;
}

/* Video Cards */
.history-video {
    margin: 60px auto;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 25px;
    max-width: 700px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.history-video:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.history-video h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 22px;
}

.history-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

/* Animation */
.history-fade {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.history-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------- Simple Footer --------------------- */
.site-footer {
    width: 100%;
    height: 120px; /* height of the bar */
    background-color: #2c2c44; /* dark blue */
    margin-top: 40px; /* space above footer */
}
