/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f8f8;
    background-image: linear-gradient(to bottom, #f8f8f8, #fce9e9 100%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: #e33535;
    transition: color 0.3s, border-bottom 0.3s;
}

a:hover {
    color: #d21c1c;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    margin: 2rem 0 1.2rem;
    color: #1a1a1a;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}


h3 {
    margin: 1.5rem 0 1rem;
    color: #871212;
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Container for layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #d21c1c;
}

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

.logo a {
    font-size: 1.7rem;
    font-weight: bold;
    color: #1a1a1a;
    font-family: 'Noto Serif', Georgia, serif;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo a::before {
    content: '氣';
    display: inline-block;
    margin-right: 10px;
    color: #d21c1c;
    font-size: 1.8rem;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin-left: 1.5rem;
}

.nav-menu a {
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d21c1c;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #d21c1c;
}

/* Dropdown menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 100;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
}

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

.dropdown-menu a:hover {
    background-color: #fce9e9;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
}

/* Mobile navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

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

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    margin-top: 2rem;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-dropdown-menu {
    display: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Main content styles */
main {
    padding: 2rem 0 0 0;
}

.hero {
    text-align: center;
    padding: 6rem 1rem; /* Adjusted padding */
    /* background-color: #fce9e9; */
    /* background-image: linear-gradient(135deg, #fce9e9 0%, #e6eeff 100%); */
    background: linear-gradient(135deg, #1a1a1a 0%, #d21c1c 100%);
    color: #fff; /* Changed default text color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Added text shadow */
    border-radius: 8px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hero::before {
    content: '氣';
    position: absolute;
    font-size: 20rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f3a5a5;
    z-index: 0; /* Keep Ki symbol behind overlay */
}

/* Added overlay for hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 0; /* Behind content, above background image */
    border-radius: 8px; /* Match parent */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above overlay */
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: #fff; /* Adjusted for contrast */
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.1); */ /* Replaced by hero text-shadow */
}

.quote {
    font-style: italic;
    color: #eee; /* Adjusted for contrast */
    max-width: 800px;
    margin: 1.5rem auto;
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    padding: 0 2rem;
}

.quote::before,
.quote::after {
    content: '"';
    font-size: 2rem;
    color: #d21c1c;
    position: absolute;
    opacity: 0.5;
}

.quote::before {
    left: 0;
    top: -10px;
}

.quote::after {
    right: 0;
    bottom: -10px;
}

.content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #d21c1c, #f04242); /* 6a5acd */
}

/* Schedule & Fees Grid */
.schedule-fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Use auto-fit for flexibility */
    gap: 2rem;
    margin: 2rem 0;
}

.schedule-item,
.fee-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Fees page styles - .fee-table selector removed as grid handles layout now */

.fee-item h3,
.schedule-item h3 { /* Add icons to headers */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.note {
    background-color: #fce9e9;
    padding: 1rem;
    border-left: 4px solid #d21c1c;
    margin: 2rem 0;
}

/* Location page styles */
.location-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.directions {
    margin: 2rem 0;
}

.direction-item {
    margin-bottom: 1.5rem;
}

.direction-item ol {
    margin-left: 1.5rem;
    list-style-type: decimal;
}

/* Instructors page styles */
.instructor {
    margin-bottom: 3rem;
}

.instructor-info {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.instructor-image img {
    width: 100%;
    border-radius: 8px;
}

/* Events page styles */
.event {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.event:last-child {
    border-bottom: none;
}

.event-details {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.event-description ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1rem;
}

/* FAQs page styles */
.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    background-color: #fce9e9;
    padding: 0.8rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.faq-answer {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

/* Contact page styles */
.contact-info {
    margin-bottom: 2rem;
}

.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    background-color: #d21c1c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #e33535;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer styles */
footer {
    background-color: #201313;
    color: #fff;
    padding: 3rem 5%;
    text-align: center;
    /* margin-top: 5rem; */
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '氣';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #d21c1c;
    transform: translateY(-5px);
}

.footer-quote {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #fff;
    padding-top: 1.5rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .location-info,
    .instructor-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    /* .schedule and .fee-table selectors removed */
}

/* Home page CTA buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

.cta-button {
    display: inline-block;
    background-color: #d21c1c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(234, 98, 98, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button:hover {
    background-color: #e33535;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(234, 98, 98, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button-green {
    background-color: #2ea043;
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.3);
}

.cta-button-green:hover {
    background-color: #26883a;
    box-shadow: 0 7px 20px rgba(46, 160, 67, 0.4);
}

.cta-button-secondary {
    background-color: transparent;
    color: #d21c1c;
    border: 2px solid #f9d2d2;
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.cta-button-secondary::before {
    display: none;
}

.cta-button-secondary:hover {
    background-color: #fce9e9;
    color: #e33535;
    border-color: #d21c1c;
    box-shadow: none;
    transform: translateY(-2px);
}

/* Combined section with video sidebar */
.combined-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}

.text-content {
    order: 1;
}

.video-sidebar {
    order: 2;
}

.video-container-small {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 5px solid white;
}

.video-container-small:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-container-small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sidebar-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 5px solid white;
}

.sidebar-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mind-body-paths {
    background-color: #f2f2f2; /* fce9e9 */
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: inset 0 0 15px rgba(234, 98, 98, 0.1);
    border-left: 4px solid #d21c1c;
    position: relative;
}

.mind-body-paths::before {
    content: '氣';
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 3rem;
    opacity: 0.1;
    color: #d21c1c;
}

.mind-body-paths ul {
    margin: 1rem 0 0.5rem 1.5rem;
    list-style-type: disc;
}

.mind-body-paths li {
    margin-bottom: 0.5rem;
}

/* Offerings grid */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.offering-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.offering-item:hover {
    transform: translateY(-5px);
    border-top: 4px solid #d21c1c;
}

.offering-item i {
    font-size: 2.5rem;
    color: #d21c1c;
    margin-bottom: 1rem;
    display: block;
}

.offering-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Testimonial styles */
.testimonial {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: #d21c1c;
    opacity: 0.1;
    line-height: 1;
}

.testimonial p {
    position: relative;
    z-index: 1;
}

.testimonial cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
}

.new-student-section {
    background-color: #fce9e9;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .new-student-section {
        padding: 1.0rem;
    }
}

/* Responsive adjustments for combined section */
@media (max-width: 768px) {
    .combined-section {
        grid-template-columns: 1fr;
    }
    
    .text-content {
        order: 2;
    }
    
    .video-sidebar {
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .video-container-small {
        padding-bottom: 56.25%; /* Return to 16:9 on mobile */
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}
/* Resources page styles */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.book-list {
    margin: 2rem 0;
}

.book-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.book-item:last-child {
    border-bottom: none;
}

.affiliates {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.affiliate-link {
    display: inline-block;
    background-color: #fce9e9;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    color: #d21c1c;
    transition: background-color 0.3s;
}

.affiliate-link:hover {
    background-color: #fce9e9;
}

/* Three-column grid for new student section */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.column-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .column-item {
        padding: 1rem;
    }
}

.column-item h3 {
    color: #d21c1c;
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}


/* Added styles for icons in column headers */
.column-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-compact p {
    margin-bottom: 0.5rem;
}

.testimonial-compact {
    font-style: italic;
    position: relative;
}

.testimonial-compact p {
    position: relative;
    z-index: 1;
}

.testimonial-compact cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-weight: bold;
    font-style: normal;
}

/* Media query for responsive three-column grid */
@media (max-width: 992px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .three-column-grid {
        grid-template-columns: 1fr;
    }
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 98, 98, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-bottom: 3px solid #d21c1c;
}

.benefit-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d21c1c;
    margin-bottom: 1rem;
}

.benefit-item i {
    font-size: 1.2rem;
}

.quote-author {
    text-align: right;
    font-style: italic;
    margin-top: 0.5rem;
}
