/* =================================================== */
/* CSS MODULE: GLOBAL VARIABLES & BASE    masterStyle_w.css       */
/* =================================================== */
:root {
    /* Layout */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333333; /*var(--text-dark);*/
    background-color: #f8f9fa; /*var(--bg-light);*/
}


/* =================================================== */
/* CSS MODULE: NAVIGATION (Module 0)                  */
/* =================================================== */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { /* Note 1: may not need */
    flex-shrink: 0;
}

.nav-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c5530; /*var(--primary-color);*/
    text-decoration: none;
    letter-spacing: -0.5px;
    padding: 5px 0; /* Note 2: may not need */
    display: block;
}

.nav-menu { 
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #333333; /*var(--text-dark);*/
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: #2c5530; /*var(--primary-color);*/
    background: rgba(44, 85, 48, 0.05);
}

.nav-link.active {
    color: #2c5530; /*var(--primary-color);*/
    background: rgba(44, 85, 48, 0.1);
    font-weight: 600;
}

/* Dropdown Styles */ /* Note 3: misting in the new version*/
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; /*var(--bg-white);*/
    min-width: 180px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333333; /*var(--text-dark);*/
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #2c5530; /*var(--primary-color);*/
    color: white;
    padding-left: 20px;
}

.chinese-link {
    background: #2c5530; /*var(--primary-color);*/
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 6px;
    margin-left: 10px;
    font-weight: 600 !important;
}

.chinese-link:hover {
    background: #1e3a21; /*var(--primary-dark);*/
    color: white !important;
}
/* Note 3: mist in the new version*/

/* =================================================== */
/* CSS MODULE: HERO VIDEO (Module 1)                  */
/* =================================================== */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* Combined Filter: Increase Brightness + Boost Contrast + Slight Saturation Enhancement */
    filter: brightness(1.3) contrast(1.1) saturate(1.1);
}

/* Video element styling - REMOVED TRANSITION DURATION */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /*transition: opacity 0.5s ease-in-out; * Keep only the transition effects, with the duration controlled by JS.*/
    z-index: 1;
}

/* Video overlay for better text visibility */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Video content (text messages) - REMOVED TRANSITION DURATION */
.hero-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 4;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    visibility: hidden;
    /*transition: opacity 0.5s ease-in-out; * Keep only the transition effects, with the duration controlled by JS.*/
}

.hero-content.active {
    opacity: 1;
    visibility: visible;
}

/* Video title styling */
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

/* Video subtitle styling */
.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

/* Video indicators (dots) */
.video-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
}

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

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* =================================================== */
/* CSS MODULE: PROGRAMS (Module 2)                    */
/* =================================================== */
/* moved here */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1e3a21; /*var(--primary-dark);*/
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35; /*var(--accent-color);*/
}

.section-description {
    font-size: 1.1rem;
    color: #666666; /*var(--text-light);*/
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.bg-light {
    background:  #f8f9fa; /*var(--bg-light);*/
}
/* moved here */

.registration-banner {
    background: linear-gradient(135deg,  #3a7b3d, #2c5530); /*var(--primary-color),var(--primary-light)*/ 
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.registration-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #2c5530; /*var(--primary-color);*/
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.registration-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    background: #ff6b35; /* note 5: added for change color*/
    color: white;
}


.programs-grid { /* 2+2  columns program */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.program-card { /* program column */
    background: #ffffff; /*var(--bg-white);*/
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.program-card .card-image {
    height: 250px; /* note 5: changed from 220px to 250 px for better view*/
    overflow: hidden;
}

.program-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .card-image img {
    transform: scale(1.05);
}

.program-card .card-content {
    padding: 25px;
}

.program-card .card-content h3 {
    color: #1e3a21; /*var(--primary-dark);*/
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    color: #666666; /*var(--text-light);*/
}

.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5530; /*var(--primary-color);*/
    font-weight: bold;
}

/* =================================================== */
/* CSS MODULE: CAMPS (Module 3)                       */
/* =================================================== */
.camps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.camp-card {
    background: #ffffff; /*var(--bg-white);*/
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.camp-card .card-header {
    background: #2c5530; /*var(--primary-color);*/
    padding: 15px;
    text-align: center;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: #ff6b35; /* note 6: added for change color*/
}

.camp-card .card-image {
    height: 200px;
    overflow: hidden;
}

.camp-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.camp-card:hover .card-image img {
    transform: scale(1.05);
}

.camp-card .card-content {
    padding: 25px;
    flex-grow: 1;
}

.focus-areas { /* Note 7: for better view */
    padding: 16px 0 0 0;
    flex-grow: 1;
}

.ul_camp { /* Note 7: for better view */
    padding: 0 0 0 16px;
    flex-grow: 1;
}

/* =================================================== */
/* CSS MODULE: TEACHING SYSTEM (Module 4)             */
/* =================================================== */

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.teaching-card {
    /*flex: 0 0 300px;*/
    background: #ffffff; /*var(--bg-white);*/
    border-radius: var(--radius);
   padding: 25px;
   overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /*border: 1px solid rgba(0, 0, 0, 0.05);*/
    display: flex;
    flex-direction: column;
}

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

.teaching-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 5px);
    margin-bottom: 20px;
}

.teaching-card h3 {
    color: #1e3a21; /*var(--primary-dark);*/
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.teaching-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teaching-card ul li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    color: #666666; /*var(--text-light);*/
}

.teaching-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c5530; /*var(--primary-color);*/
    font-size: 18px;
}

@keyframes scrollTeaching {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 3)); }
}

/* =================================================== */
/* CSS MODULE: PGA (Module 5)   Note: same as Program (Module 2)  */
/* =================================================== */


/* =================================================== */
/* CSS MODULE: PARTNERS (Module 6) same as Module 4    */
/* =================================================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    flex: 0 0 350px;
    background: #ffffff; /*var(--bg-white);*/
    border-radius: var(--radius);
    padding: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.partner-card img { /*.partner-card img {*/
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 5px);
    margin-bottom: 20px;

}


.partner-card h3 {
    color: #1e3a21; /*var(--primary-dark);*/
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.partner-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.partner-card ul li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    color: #666666; /*var(--text-light);*/
    font-size: 0.9rem;
}

.partner-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5530; /*var(--primary-color);*/
    font-weight: bold;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 3)); }
}

/* =================================================== */
/* CSS MODULE: CONTACT (Module 7)                     */
/* =================================================== */
.contact-section {
    background: linear-gradient(135deg, #1e3a21,  #2c5530); /*var(--primary-color), var(--primary-dark);*/
    color: white;
} 

.contact-section .section-header h2,
.contact-section .section-description {
    color: white;
}

.contact-section .section-header h2::after {
    background: #ff6b35; /*var(--accent-color);*/
}

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

.contact-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: #ff6b35; /*var(--accent-color);*/
    margin-bottom: 20px;
}

.contact-item h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 1;
    color: #ff6b35; /*var(--accent-color);*/
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* =================================================== */
/* CSS MODULE: FOOTER                                  */
/* =================================================== */
.modern-footer {
    background: #1e3a21; 
    color: white;
    padding: 60px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* =================================================== */
/* CSS MODULE: RESPONSIVE DESIGN                      */
/* =================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .programs-grid,
    .pga-grid,
    .camps-grid  {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 24px;
    }

    .teaching-grid
    .partner-grid,
    .contact-grid {
        display: grid;
        gap: 24px;
    }

    .teaching-card,
    .partner-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {

    .nav-menu {
        justify-content: center;
        gap: 8px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .chinese-link {
        order: 1; /* Ensure that Chinese links are in the appropriate position */
    }


    .hero-section { margin-top: 100px; height: calc(100vh - 100px); }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 2rem; }
    
    .programs-grid,
    .camps-grid,
    .pga-grid,
    .teaching-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }
   

    .registration-button { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {  /*480*/

    .nav-logo { display: none !important; /* Logo is hidden on mobile devices */ }
    .dropdown-content { display: none !important; /* dropdown-content is hidden on mobile devices*/ }

    .indicator { width: 14px; height: 14px;   }

    .hero-video {
        object-position: -300px 0px;;
    }

    .hero-section { margin-top: 30px; height: calc(100vh - 120px); }
    .hero-title { font-size: 2.0rem; }
    .hero-subtitle { font-size: 1.0rem; }
    
    .section { padding: 50px 0; }
    
    .nav-container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 5px 8px;
    }
    
    .contact-grid,
    .teaching-grid,
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-card img {
        object-fit:contain;
    }
}

