/* Home page specific styles */

/* fadeIn animation is defined in main.css */

/* ===== HERO SECTION ===== */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-in-out forwards;
}

.hero-content h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-on-dark);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--text-on-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 50px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 5%;
    background: #f8f9fa;
}

.about .container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.about-left, .about-right {
    flex: 1;
    min-width: 0;
}

.about h2 {
    font-size: 32px;
    font-weight: 200;
    margin-bottom: 25px;
    color: #0A2A2F;
    position: relative;
    padding-bottom: 15px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.about p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.about .hero-buttons {
    margin-top: 30px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #0A2A2F 0%, #164950 100%) !important;
    color: white;
}

.video-title {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.video-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.video-item {
    flex: 1;
    max-width: 350px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

.video-item.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 80vw;
    height: 80vh;
    z-index: 100;
}

.video-item.expanded .video-frame {
    width: 100%;
    height: 100%;
}

.video-frame {
    width: 100%;
    height: 250px;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.video-item h3 {
    font-size: 20px;
    font-weight: bold;
    color: #0A2A2F;
    margin-top: 10px;
}

.video-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #0A2A2F;
}

/* ===== EVENT SECTION ===== */
.event-upcoming {
    text-align: center;
    padding: 80px 5%;
    background: #f8f9fa;
    color: #f8f9fa;
    animation: fadeIn 1s ease-in-out forwards;
}

.event-title {
    font-size: 36px;
    font-weight: bold;
    color: Black;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.event-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: auto;
    padding-top: 20px;
}

.event-image {
    max-width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.event-image:hover {
    transform: scale(1.05);
}

.event-link {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* Event Details Block */
.event-block {
    background: #ffffff;
    color: #0A2A2F;
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1s ease-in-out forwards;
    position: relative;
    overflow: hidden;
}

.event-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.event-block h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0A2A2F;
}

.event-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-info p {
    font-size: 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.event-info p strong {
    color: #0A2A2F;
    margin-right: 10px;
    font-weight: 600;
}

/* ===== LIGHTBOX STYLING ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.lightbox.show .lightbox-content {
    transform: scale(1.2); /* Enlarges the image */
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .hero {
        height: 55vh;
        padding: 30px 15px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 17px;
    }
    
    .about {
        padding: 60px 4%;
    }
    
    .about .container {
        gap: 30px;
    }
    
    .about h2 {
        font-size: 28px;
    }
    
    .video-section {
        padding: 40px 15px;
    }
    
    .video-title {
        font-size: 32px;
    }
    
    .video-grid {
        gap: 15px;
    }
    
    .video-item {
        max-width: 320px;
    }
    
    .event-upcoming {
        padding: 60px 4%;
    }
    
    .event-title {
        font-size: 32px;
    }
    
    .event-container {
        max-width: 700px;
    }
    
    .event-image {
        max-width: 65%;
    }
}

/* Tablets (iPad, etc.) */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        padding: 25px 10px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .hero-buttons {
        padding-top: 40px;
        gap: 15px;
    }
    
    .about {
        padding: 50px 3%;
    }
    
    .about .container {
        flex-direction: column;
        gap: 25px;
    }
    
    .about h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .about p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .video-section {
        padding: 35px 10px;
    }
    
    .video-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .video-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .video-item {
        width: 100%;
        max-width: 400px;
        padding: 12px;
    }
    
    .video-item h3 {
        font-size: 18px;
    }
    
    .video-item p {
        font-size: 14px;
    }
    
    .event-upcoming {
        padding: 50px 3%;
    }
    
    .event-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .event-container {
        flex-direction: column;
        text-align: center;
        max-width: 600px;
        padding-top: 15px;
    }

    .event-image {
        max-width: 80%;
        margin-bottom: 20px;
    }

    .event-block {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .event-block h3 {
        font-size: 22px;
    }
    
    .event-info {
        padding: 20px;
    }
    
    .event-info p {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .lightbox-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }
}

/* Large Mobile Devices (iPhone Plus, etc.) */
@media (max-width: 576px) {
    .hero {
        height: 45vh;
        padding: 20px 8px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        gap: 12px;
    }
    
    .about {
        padding: 40px 2%;
    }
    
    .about .container {
        gap: 20px;
    }
    
    .about h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .about p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .video-section {
        padding: 30px 8px;
    }
    
    .video-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .video-grid {
        gap: 15px;
    }
    
    .video-item {
        max-width: 100%;
        padding: 10px;
    }
    
    .video-item h3 {
        font-size: 16px;
    }
    
    .video-item p {
        font-size: 13px;
    }
    
    .event-upcoming {
        padding: 40px 2%;
    }
    
    .event-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .event-container {
        max-width: 100%;
        padding-top: 12px;
    }
    
    .event-image {
        max-width: 85%;
        margin-bottom: 15px;
    }
    
    .event-block {
        max-width: 95%;
        padding: 25px 15px;
    }
    
    .event-block h3 {
        font-size: 20px;
    }
    
    .event-info {
        padding: 15px;
    }
    
    .event-info p {
        font-size: 13px;
        margin: 8px 0;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero {
        height: 40vh;
        padding: 15px 5px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .hero-buttons {
        padding-top: 25px;
        gap: 10px;
    }
    
    .about {
        padding: 30px 1%;
    }
    
    .about h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .about p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .video-section {
        padding: 25px 5px;
    }
    
    .video-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .video-item {
        padding: 8px;
    }
    
    .video-item h3 {
        font-size: 15px;
    }
    
    .video-item p {
        font-size: 12px;
    }
    
    .event-upcoming {
        padding: 30px 1%;
    }
    
    .event-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .event-image {
        max-width: 90%;
        margin-bottom: 12px;
    }
    
    .event-block {
        padding: 20px 12px;
    }
    
    .event-block h3 {
        font-size: 18px;
    }
    
    .event-info {
        padding: 12px;
    }
    
    .event-info p {
        font-size: 12px;
        margin: 6px 0;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .hero {
        height: 35vh;
        padding: 12px 3px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .hero-buttons {
        padding-top: 20px;
    }
    
    .about h2 {
        font-size: 20px;
    }
    
    .about p {
        font-size: 12px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-item h3 {
        font-size: 14px;
    }
    
    .video-item p {
        font-size: 11px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-block h3 {
        font-size: 16px;
    }
    
    .event-info p {
        font-size: 11px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 10px 20px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .hero-buttons {
        padding-top: 20px;
        gap: 10px;
    }
    
    .about {
        padding: 30px 2%;
    }
    
    .video-section {
        padding: 25px 10px;
    }
    
    .event-upcoming {
        padding: 30px 2%;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-item:hover {
        transform: none;
    }
    
    .video-item:active {
        transform: scale(1.02);
    }
    
    .event-image:hover {
        transform: none;
    }
    
    .event-image:active {
        transform: scale(1.02);
    }
    
    .event-link:hover {
        transform: none;
    }
    
    .event-link:active {
        transform: scale(1.02);
    }
}
