/*
Theme Name: HSNP Yoga Center
Theme URI: https://hsnpyoga.my
Author: HSNP Yoga Studio
Author URI: https://hsnpyoga.my
Description: A modern, fully editable theme for HSNP Sivananda Yoga Centre, Klang. Converted from the HSNP Yoga Center website. Edit the hero, about section, contact details, social links, and footer from the Customizer; manage Classes, Instructors, Testimonials, Pricing and Schedule under the Yoga menu; run the Journal from regular posts. Menus and footer widgets are editable in Appearance.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsnp-yoga-center
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
    --primary: #7c9a6e;
    --primary-dark: #5a7a4e;
    --accent: #d4a574;
    --cream: #faf7f2;
    --dark: #2c2c2c;
    --light: #ffffff;
    --text: #4a4a4a;
    --text-light: #7a7a7a;
    --line: #ece5db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--cream); line-height: 1.7; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.narrow { max-width: 760px; margin: 0 auto; }
.alignwide { margin-left: auto; margin-right: auto; }

nav {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000; transition: all 0.3s ease;
}
nav.scrolled { padding: 0.85rem 5%; box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
.logo img { height: 96px; width: auto; transition: height 0.3s ease; }
nav.scrolled .logo img { height: 60px; }
.logo:hover { opacity: 0.85; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); font-size: 0.85rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.menu-toggle { display: none; color: var(--dark); font-size: 1.5rem; cursor: pointer; }

.home nav { background: transparent; box-shadow: none; }
.home nav .nav-links a { color: var(--light); }
.home nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.home nav.scrolled .nav-links a { color: var(--text); }
.home .menu-toggle { color: var(--light); }
.home nav.scrolled .menu-toggle { color: var(--dark); }

.nav-spacer { height: 120px; background: var(--cream); }

.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light);
    position: relative;
}
.hero-content h1 { font-size: 4.5rem; letter-spacing: 3px; margin-bottom: 0.5rem; font-weight: 300; }
.hero-content p { font-size: 1.1rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 2rem; font-weight: 300; }

.btn {
    display: inline-block; padding: 1rem 2.5rem; border: 2px solid var(--light);
    color: var(--light); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; transition: all 0.3s;
}
.btn:hover { background: var(--light); color: var(--dark); }
.btn-primary { background: #E55451; border-color: #E55451; color: var(--light); }
.btn-primary:hover { background: #c94442; border-color: #c94442; }
.pricing-card .btn, .hero .btn { border-color: var(--light); color: var(--light); }
.pricing-card .btn:hover, .hero .btn:hover { background: var(--light); color: var(--dark); }
.pricing-card.featured .btn { border-color: var(--light); color: var(--light); }
.pricing-card.featured .btn:hover { background: var(--light); color: #E55451; }

section { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; color: var(--dark); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
.section-header .line { width: 60px; height: 2px; background: var(--accent); margin: 1rem auto; }

.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-image img { width: 100%; height: 500px; object-fit: cover; }
.about-text h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--dark); }
.about-text p { line-height: 1.8; margin-bottom: 1.5rem; color: var(--text); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; }
.feature-item i { color: var(--primary); font-size: 1.2rem; }
.feature-item span { font-size: 0.9rem; font-weight: 500; }

.classes { background: var(--cream); }
.classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.class-card { background: var(--light); overflow: hidden; transition: transform 0.3s; }
.class-card:hover { transform: translateY(-5px); }
.class-card img { width: 100%; height: 250px; object-fit: cover; }
.class-info { padding: 1.5rem; }
.class-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--dark); }
.class-info .schedule { color: var(--primary); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif; }
.class-info p { font-size: 0.9rem; line-height: 1.6; color: var(--text-light); }

.schedule-section { background: var(--light); }
.schedule-table { max-width: 1100px; margin: 0 auto; width: 100%; border-collapse: collapse; }
.schedule-table th { background: #E55451; color: var(--light); padding: 1rem; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.schedule-table td { padding: 0.85rem; text-align: center; border-bottom: 1px solid #eee; font-size: 0.85rem; }
.schedule-table tr:hover td { background: var(--cream); }
.schedule-table .time { font-weight: 600; color: var(--dark); }
.schedule-table .class-name { color: var(--primary-dark); font-weight: 500; }

.instructors { background: var(--cream); }
.instructors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.instructor-card { text-align: center; }
.instructor-card img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--light); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.instructor-card h4 { font-size: 1.3rem; margin-bottom: 0.25rem; color: var(--dark); }
.instructor-card .specialty { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-family: 'Montserrat', sans-serif; }
.instructor-card p { font-size: 0.85rem; color: var(--text-light); margin-top: 0.75rem; line-height: 1.6; }

.pricing { background: var(--light); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: var(--cream); padding: 3rem 2rem; text-align: center; transition: transform 0.3s; }
.pricing-card.featured { background: #E55451; color: var(--light); transform: scale(1.05); }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 3rem; font-family: 'Cormorant Garamond', serif; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; }
.pricing-card ul { list-style: none; margin: 1.5rem 0; }
.pricing-card ul li { padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
.pricing-card.featured ul li { border-color: rgba(255,255,255,0.2); }
.pricing-card .btn { margin-top: 1rem; }

.testimonials { background: #E55451; color: var(--light); }
.testimonials .section-header h2 { color: var(--light); }
.testimonials .section-header p { color: var(--light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: rgba(255,255,255,0.1); padding: 2rem; border-radius: 4px; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; }
.testimonial-card .stars .far { color: rgba(255,255,255,0.35); }
.testimonial-card p { font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; }
.testimonial-card .author { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .location { font-size: 0.8rem; opacity: 0.8; }

.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1100px; margin: 0 auto; }
.contact-info h3, .contact-form h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--dark); }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item i { color: #E55451; font-size: 1.2rem; margin-top: 0.2rem; }
.contact-item h4 { font-size: 1rem; margin-bottom: 0.25rem; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.contact-item p, .contact-item a { color: var(--text-light); font-size: 0.9rem; text-decoration: none; }
.contact-item a:hover { color: var(--primary-dark); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { width: 45px; height: 45px; border: 2px solid #E55451; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #E55451; text-decoration: none; transition: all 0.3s; }
.social-links a:hover { background: #E55451; color: var(--light); }
.form-group { margin-bottom: 1.25rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 1rem; border: 1px solid #ddd; background: var(--light);
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

footer { background: var(--dark); color: var(--light); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-about .logo { font-size: 1.5rem; color: var(--light); display: inline-block; margin-bottom: 1rem; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; color: var(--text-light); }
footer h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--light); }
.widget { margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: var(--text-light); }

.page-hero {
    padding: 12rem 5% 4rem;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=1600') center/cover;
    color: var(--light); text-align: center;
}
.page-hero h1 { font-size: 3.5rem; letter-spacing: 3px; margin-bottom: 0.5rem; font-weight: 300; }

.page-content, .about-content {
    max-width: 900px; margin: 0 auto; padding: 4rem 5% 6rem;
    background: var(--light);
}
.page-content p, .about-content p, .entry-content p { line-height: 1.9; margin-bottom: 1.5rem; font-size: 1rem; color: var(--text); }
.page-content h2, .about-content h2, .entry-content h2 { font-size: 2rem; margin: 2.5rem 0 1rem; color: var(--dark); }
.page-content h3, .about-content h3, .entry-content h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark); }
.about-content blockquote, .entry-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-style: italic; text-align: center;
    color: var(--dark); margin: 2.5rem 0; padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent); background: var(--cream);
}
.entry-content ul, .about-content ul, .page-content ul { list-style: disc; margin: 0 0 1.5em 1.4em; }
.entry-content li, .about-content li, .page-content li { margin-bottom: 0.6em; }
.entry-content img, .about-content img, .page-content img { border-radius: 8px; margin: 1.5rem 0; }
.entry-content a, .about-content a, .page-content a { color: var(--primary-dark); }
.entry-content a:hover, .about-content a:hover, .page-content a:hover { color: var(--dark); }

.blog-hero { text-align: center; padding: 150px 0 48px; background: var(--cream); }
.eyebrow { color: var(--primary-dark); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--dark); margin: 12px 0 14px; }
.blog-hero p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 40px; }
.filter-btn {
    padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--light); color: var(--text-light); font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem; letter-spacing: 0.5px; cursor: pointer; transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.filter-btn.active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.featured-card {
    display: grid; grid-template-columns: 1.15fr 1fr; background: var(--light);
    border-radius: 18px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 8px 30px rgba(44,44,44,0.08);
}
.featured-card .fc-img { position: relative; overflow: hidden; min-height: 320px; }
.featured-card .fc-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s ease; }
.featured-card:hover .fc-img img { transform: scale(1.05); }
.featured-card .fc-img .badge {
    position: absolute; top: 18px; left: 18px; background: #E55451; color: #fff;
    font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.featured-card .fc-body { padding: 42px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--dark); line-height: 1.2; }
.featured-card h2 a:hover { color: var(--primary-dark); }
.featured-card p { color: var(--text-light); }
.featured-card .fc-body .cat { align-self: flex-start; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 80px; }
.card {
    background: var(--light); border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(44,44,44,0.06); display: flex; flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(44,44,44,0.12); }
.card .card-img { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card .cat {
    position: absolute; top: 14px; left: 14px; background: rgba(122,154,110,0.95); color: #fff;
    font-size: 0.68rem; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.35rem; color: var(--dark); line-height: 1.3; }
.card h3 a:hover { color: var(--primary-dark); }
.card p { font-size: 0.9rem; color: var(--text-light); flex: 1; }
.card .meta { font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.card .meta i, .post-meta i { color: var(--primary); margin-right: 5px; }
.cat-tag {
    display: inline-block; background: rgba(122,154,110,0.15); color: var(--primary-dark);
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}

.post-head { text-align: center; padding: 150px 0 36px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; max-width: 800px; margin: 0 auto; }
.post-head .deck { color: var(--text-light); max-width: 560px; margin: 18px auto 0; font-size: 1.05rem; }
.post-meta { margin-top: 22px; font-size: 0.85rem; color: var(--text-light); letter-spacing: 0.5px; }
.post-meta i { margin: 0 4px 0 14px; }
.post-meta i:first-child { margin-left: 0; }

.hero-img { max-width: 1000px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(44,44,44,0.12); }
.hero-img img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

.article-body { padding: 52px 0 30px; font-size: 1.06rem; }
.article-body p { margin-bottom: 1.5em; }
.article-body p:first-of-type::first-letter { font-family: 'Cormorant Garamond', serif; font-size: 3.2em; line-height: 0.85; float: left; padding: 6px 14px 0 0; color: var(--primary-dark); }
.article-body h2 { font-size: 1.75rem; margin: 1.8em 0 0.7em; line-height: 1.25; }
.article-body ul { margin: 0 0 1.5em 1.4em; }
.article-body li { margin-bottom: 0.6em; }
.article-body strong { color: var(--dark); }

.blog-cta { background: linear-gradient(150deg, var(--primary-dark), #43643c); color: #fff; border-radius: 18px; padding: 36px 32px; margin: 2.2em 0; text-align: center; }
.blog-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.blog-cta p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 18px; }

.back-link { display: inline-block; margin: 10px 0 60px; color: var(--primary-dark); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.back-link:hover { color: var(--dark); }

.related { padding-bottom: 72px; }
.related h2 { font-size: 2rem; margin-bottom: 6px; }
.related .sub { color: var(--text-light); margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mini-card { background: var(--light); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(44,44,44,0.06); transition: all 0.28s ease; display: flex; flex-direction: column; }
.mini-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(44,44,44,0.12); }
.mini-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.mini-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mini-card h3 { font-size: 1.2rem; line-height: 1.3; }
.mini-card .meta { font-size: 0.78rem; color: var(--text-light); }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 0 0 80px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: 8px; background: var(--light); color: var(--text); font-size: 0.85rem; border: 1px solid var(--line); }
.pagination .current { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }

.search-no-results, .no-results, .error-404 { text-align: center; padding: 80px 5% 120px; }
.search-no-results h2, .no-results h2, .error-404 h1 { font-size: 2.6rem; color: var(--dark); margin-bottom: 1rem; }
.search-no-results p, .no-results p, .error-404 p { color: var(--text-light); margin-bottom: 2rem; }

@media (max-width: 968px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .classes-grid, .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; }
    .instructors-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card .fc-img { position: relative; min-height: 0; aspect-ratio: 3/2; }
    .featured-card .fc-img img { position: static; height: 100%; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .pricing-card.featured { transform: scale(1); }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: var(--dark);
        flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
        transition: right 0.3s; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--light) !important; font-size: 1rem; }
    .home .nav-links a { color: var(--light); }
    .hero-content h1 { font-size: 2.5rem; }
    .about-features, .form-row { grid-template-columns: 1fr; }
    .instructors-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .featured-card .fc-body { padding: 28px; }
    .related-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2.5rem; }
}
