/* 
* CCVM Website Redesign
* Main Stylesheet
*/

:root {
    /* Colors */
    --primary-color: #38b383;
    --primary-dark: #2e9e72;
    --secondary-bg: #f7f7f7;
    --white: #ffffff;
    --text-main: #222222;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Poppins', 'Roboto', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Card Style */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Header & Nav */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-menu a:not(.btn):hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-bg);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    /* Placeholder path */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* News Section */
.news-section {
    background-color: var(--secondary-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    padding: 30px;
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-card .date {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Activities Teaser */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.activity-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.activity-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

/* Mission Section */
.mission-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.mission-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-text p {
    margin-bottom: 20px;
}

.mission-image {
    flex: 1;
}

.mission-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

@media (max-width: 768px) {
    .mission-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Page Header */
.page-header {
    background-color: var(--secondary-bg);
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 20px;
}

/* Activity Sections */
.activity-section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--secondary-bg);
}

.activity-block {
    display: flex;
    align-items: center;
    gap: 50px;
}

.activity-block.reverse {
    flex-direction: row-reverse;
}

.activity-text {
    flex: 1;
}

.activity-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.activity-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.activity-image {
    flex: 1;
}

.activity-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    height: 300px;
}

/* Gallery */
.gallery-section {
    padding-bottom: 80px;
}

.gallery-grid {
    color: #fff;
    margin-bottom: 15px;
    padding: 0 10px;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.lightbox-counter {
    font-size: 1rem;
    color: #ccc;
}

.lightbox-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    transition: color 0.3s ease;
    user-select: none;
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        bottom: -60px;
        font-size: 2.5rem;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-header {
        flex-direction: column;
        gap: 5px;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }
}

.schedule-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-bg);
    padding-bottom: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--secondary-bg);
    font-weight: 600;
    color: var(--text-main);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

/* Pricing */
.pricing-section {
    background-color: var(--secondary-bg);
}

.pricing-card {
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-color);
}

.pricing-card h2 {
    color: var(--text-main);
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.check-list {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 20px auto 0;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.check-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info-card h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-form-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.map-container {
    margin-top: 60px;
    height: 400px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hero Responsive */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Activity Responsive */
    .activity-block,
    .activity-block.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .activity-image img {
        height: auto;
    }

    /* Contact Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .schedule-table thead {
        display: none;
    }

    .schedule-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
    }

    .schedule-table td {
        display: block;
        text-align: right;
        border-bottom: none;
        position: relative;
        padding-left: 50%;
    }

    .schedule-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        text-align: left;
    }
}