﻿/* =============================
   Advanced Skill Development Center
   Home Page Styles (ASDC_HomePage.aspx)
   ============================= */

:root {
    --primary-color: #0c7d7b;
    --primary-color-dark: #052f1a;
    --dark-text: #1a202c;
    --secondary-text: #4a5568;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --footer-bg: #1a202c;
    --footer-text: #a0aec0;
    --footer-heading: #ffffff;
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    background-color: var(--background-light);
    color: var(--secondary-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- HEADER ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: var(--background-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .nav-left img {
        height: 50px;
    }

    .nav-left h1 {
        font-size: 1.1rem;
        color: var(--dark-text);
        margin: 0;
        font-weight: 700;
    }

.nav-center-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--secondary-text);
        font-weight: 600;
        transition: color 0.3s ease;
        padding: 5px 0;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-color);
        }

.nav-right img {
    height: 50px;
}

/* ----- BUTTONS ----- */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-color-dark);
        border-color: var(--primary-color-dark);
    }

/* ----- HERO SECTION ----- */
.hero-section {
    padding: 20px 0;
    background: var(--background-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 20px;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.2;
    margin: 0 0 24px 0;
}

    .hero-content h2 .highlight {
        color: var(--primary-color);
    }

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

/* ----- SLIDESHOW ----- */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mySlides {
    display: none;
}

    .mySlides img {
        vertical-align: middle;
        height: 500px;
        width: 100%;
        object-fit: cover;
    }

.fade {
    animation: fade 1.5s;
}

@keyframes fade {
    from {
        opacity: .4;
    }

    to {
        opacity: 1;
    }
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: 0.3s;
}

.next {
    right: 0;
}

    .prev:hover, .next:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
}

    .active, .dot:hover {
        background-color: #ffffff;
    }

/* ----- ABOUT SECTION ----- */
#about {
    background-color: var(--background-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ----- EVENTS SECTION ----- */
#events {
    background-color: var(--background-white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    }

/* ----- GALLERY SECTION ----- */
#gallery {
    background-color: var(--background-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.album-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 280px;
    transition: 0.3s;
}

    .album-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
}

/* ----- FOOTER ----- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 4px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 820px) {
    .nav-center-right {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 82px; /* matches header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 82px);
    background-color: var(--background-white);
    z-index: 999;
    padding-top: 20px;
}

/* 🌙 Footer Styles */
.site-footer {
    background: linear-gradient(145deg, #0c7d7b, #052f1a);
    color: #ffffff;
    padding: 70px 0 0 0;
    font-family: 'Public Sans', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    padding: 6px;
    margin-bottom: 15px;
}

.footer-brand h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-brand p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
    border-left: 4px solid #ffffff;
    padding-left: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 10px 0;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 8px 0;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* --- Bottom Section --- */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    color: #cbd5e0;
    font-size: 14px;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-inline a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-links-inline a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links-inline {
        justify-content: center;
    }
}
