/*
Theme Name: Khangchen
Theme URI: https://khangchen.com
Author: Shiba Sunuwar
Description: A custom WordPress theme for Khangchen Travels & Tours
Version: 1.0
Text Domain: khangchen-travels
*/

/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #026757;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --secondary: #0c4a6e;
    --accent: #026757;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --container-width: 1200px;
    --radius: 16px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 0.95rem;
    text-align: justify
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; font-family: inherit; }
p { margin-bottom: 1rem; }

/* --- UTILITY CLASSES --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 4rem 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 2rem; }
.section-header { margin-bottom: 3rem; }
.sub-title { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; display: flex; margin-bottom: 0.5rem; }
.main-title { font-family: var(--font-serif); font-size: 2.25rem; color: var(--text-main); line-height: 1.2; display: flex;}
.bg-light { background-color: var(--bg-light); }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; transition: var(--transition); box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 15px rgba(14, 165, 233, 0.3); }

.btn-link {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}
.btn-link:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- NAVIGATION --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); color: var(--white); }
.navbar.scrolled { background: var(--white); color: var(--text-main); padding: 1rem 0; box-shadow: var(--shadow); }
.nav-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo i { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links li { display: inline-block; position: relative; } /* Added relative positioning for dropdown */
.nav-link { font-weight: 500; cursor: pointer; display: block; padding: 0.5rem 0; }
.nav-link:hover { color: var(--primary-light); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }

/* Sub-menu Arrow Indicator */
.nav-links .menu-item-has-children > a {
    padding-right: 1.2rem;
    position: relative;
}

.nav-links .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 42%;
    transition: transform 0.3s ease;
}

.nav-links .menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
    top: 50%;
}

/* --- SUB-MENU STYLES --- */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    text-align: left;
    margin-top: 0.5rem; /* Gap between link and menu */
}

/* Show Sub-menu on Hover */
.nav-links li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu Items */
.nav-links .sub-menu li {
    display: block;
    margin: 0;
}

.nav-links .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main); /* Always dark text */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.nav-links .sub-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 1.75rem; /* Slide effect */
}

/* Mobile Sub-Menu */
@media (max-width: 768px) {
    .mobile-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1.5rem;
        display: none; /* Hidden by default on mobile, needs JS toggle or CSS hover */
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    .mobile-menu li:hover .sub-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Logo Styles */
.nav-logo-wrapper {
    display: flex;
    align-items: center;
}
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .custom-logo-link img { max-height: 40px; }
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-btn { 
    display: none; 
    font-size: 1.5rem; 
    background: none; 
    color: inherit; 
    cursor: pointer;
}
.mobile-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
}
.mobile-menu.active { display: flex; }
.mobile-menu li { list-style: none; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; }
.mobile-menu a { color: #1e293b; font-weight: 600; font-size: 1.1rem; display: block; }

/* --- HERO SECTION --- */
.hero-section { position: relative; height: 90vh; display: flex; align-items: center; justify-content: center; color: var(--white); overflow: hidden; }
.slider-container, .slide, .slide::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; z-index: -1; }
.slide::after { content: ''; background: rgba(0,0,0,0.4); }
.slide.active { opacity: 1; transform: scale(1.05); transition: opacity 1.5s ease, transform 6s linear; }

/* Hero Content */
.hero-content {
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 1050px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4); padding: 0.5rem 1.25rem;
    border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
    color: #ffffff; margin-bottom: 1.5rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease;
}
.hero-badge:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.25); }
.hero-title {
    font-family: var(--font-serif); font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 2rem;
    color: #ffffff; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.hero-text {
    font-size: 1.25rem; color: #f1f5f9; max-width: 700px;
    line-height: 1.7; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); font-weight: 500;
}

/* Trip Finder Widget */
.trip-finder-form { max-width: 1050px; margin: 0 auto; position: relative; z-index: 20; }
.trip-finder-wrapper {
    background: #ffffff; border-radius: 100px; padding: 0.75rem 2rem; display: flex; align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); transition: transform 0.3s ease;
}
.trip-finder-wrapper:hover { transform: translateY(-2px); }
.finder-item { display: flex; align-items: center; flex: 1; padding: 0 1.5rem; }
.finder-icon { font-size: 1.5rem; color: var(--primary); margin-right: 1rem; display: flex; align-items: center; }
.finder-input-group { display: flex; flex-direction: column; width: 100%; }
.finder-input-group label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin-bottom: 2px; letter-spacing: 0.5px;
}
.finder-select {
    border: none; background: transparent; font-size: 0.95rem; color: var(--text-main); font-weight: 600;
    width: 100%; outline: none; cursor: pointer; padding: 0; appearance: none; -webkit-appearance: none;
}
.finder-divider { width: 1px; height: 40px; background-color: #e2e8f0; margin: 0 0.5rem; }
.finder-btn-wrapper { padding-left: 1rem; }
.finder-submit-btn {
    background-color: var(--primary); color: white; border: none; border-radius: 50px; padding: 1rem 3rem;
    font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(12, 162, 10, 0.4);
}
.finder-submit-btn:hover {
    background-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(12, 162, 10, 0.5);
}
@media (max-width: 768px) {
    .trip-finder-wrapper { flex-direction: column; border-radius: 20px; padding: 1.5rem; gap: 1rem; }
    .finder-item { width: 100%; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
    .finder-divider { display: none; }
    .finder-btn-wrapper { width: 100%; padding: 0; margin-top: 0.5rem; }
    .finder-submit-btn { width: 100%; }
}

.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 20; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: white; transform: scale(1.2); }

/* --- CARDS & GRIDS --- */
/* Added .grid-2 for Blog Pages - Changed to 1 column for row-wise display */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; height: 400px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover img { transform: scale(1.1); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: white; }
.tag { background: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 4px; align-self: flex-start; margin-bottom: 0.5rem; color: white; }

/* --- TOUR CARDS --- */
.tour-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.tour-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.tour-img { height: 200px; position: relative; overflow: hidden; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.tour-content { padding: 1.25rem; }
.tour-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.tour-footer { border-top: 1px solid #f1f5f9; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }

/* --- REVIEWS --- */
.review-card { background: var(--white); padding: 2rem; border-radius: var(--radius); border: 1px solid #f1f5f9; transition: var(--transition); }
.stars { color: var(--accent); margin-bottom: 1rem; }
.reviewer { display: flex; align-items: center; gap: 1rem; }
.reviewer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }

/* --- BLOG --- */
.blog-card { cursor: pointer; }
.blog-img { border-radius: var(--radius); overflow: hidden; height: 240px; margin-bottom: 1rem; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

/* --- SINGLE PAGE LAYOUT --- */
.detail-hero { height: 50vh; position: relative; overflow: hidden; display: flex; align-items: flex-end; color: white; padding-bottom: 4rem; margin-top: 0;}
.detail-hero.hero-fallback { background-color: #1e293b; }
.detail-hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.detail-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); z-index: 0; }
.detail-content { position: relative; z-index: 1; width: 100%; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-top: 1rem; padding-bottom: 4rem;}
.booking-sidebar { position: sticky; top: 120px; }
.booking-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }

/* --- PAGE TEMPLATE SPECIFICS --- */
.page-hero-title { font-size: 2.5rem; margin-bottom: 0; }
.page-content-wrapper { padding-top: 4rem; }

/* --- NEWSLETTER --- */
.newsletter { background: var(--primary); color: white; text-align: center; padding: 40px 0; }
.newsletter-form { display: flex; flex-direction: column; max-width: 500px; margin: 20px auto 0; gap: 10px; }
.newsletter-form input { padding: 15px; border: none; border-radius: 30px; font-size: 1rem; }
.newsletter-form button { background: var(--secondary); color: white; border: none; padding: 15px; border-radius: 30px; font-weight: 600; cursor: pointer; }

/* --- ANNOUNCEMENT --- */
.announcement-container { background-color: var(--secondary); color: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.announcement-text { width: 90%; max-width: 1200px; display: grid; margin: 0 auto; }
.breaking-update { display: flex; align-items: flex-start; }
.breaking-label { font-weight: 700; background-color: var(--accent); padding: 4px 10px; border-radius: 4px; margin: 10px; font-size: 14px; white-space: nowrap; animation: pulse 5s infinite; }
.breaking-items { height: 55px; position: relative; width: 100%; }
.breaking-item { position: absolute; width: 100%; font-size: 14px; margin-top: 14px; opacity: 0; animation: slideDown 12s infinite; }
.breaking-item:nth-child(1) { animation-delay: 0s; }
.breaking-item:nth-child(2) { animation-delay: 6s; }
@keyframes slideDown {
    0% { top: 40px; opacity: 0; } 10% { top: 0; opacity: 1; } 50% { top: 0; opacity: 1; } 60% { top: -40px; opacity: 0; } 100% { top: -40px; opacity: 0; }
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* --- REVIEWS SLIDER --- */
.review-slider-container { overflow-x: auto; padding-bottom: 2rem; -ms-overflow-style: none; scrollbar-width: none; }
.review-slider-container::-webkit-scrollbar { display: none; }
.review-slider-wrapper { display: flex; gap: 2rem; width: max-content; padding: 0 1rem; }
.review-slider-wrapper .review-card { width: 350px; min-width: 350px; flex-shrink: 0; }

/* --- SIDEBAR & WIDGETS --- */
.blog-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.widget-area { align-self: start; position: sticky; top: 120px; }
.widget { background: #ffffff; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.widget-title { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); color: var(--text-main); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.widget ul li a:hover { color: var(--primary); padding-left: 5px; }

/* Search Widget Styling */
.widget_search .wp-block-search__button-inside .wp-block-search__inside-wrapper { border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px; display: flex; }
.widget_search input.wp-block-search__input { border: none; padding: 8px 12px; width: 100%; outline: none; background: transparent; }
.widget_search button.wp-block-search__button { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.widget_search button.wp-block-search__button:hover { background: var(--primary-dark); }
.wp-calendar-table { width: 100%; text-align: center; }
.wp-calendar-table th { background: var(--bg-light); padding: 5px; font-size: 0.85rem; }
.wp-calendar-table td { padding: 5px; border: 1px solid #f1f5f9; }
.wp-block-tag-cloud a { display: inline-block; background: var(--bg-light); padding: 4px 10px; border-radius: 20px; font-size: 0.85rem !important; margin: 2px; color: var(--text-muted); border: 1px solid #e2e8f0; }
.wp-block-tag-cloud a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* --- FOOTER --- */
.footer { background: var(--secondary); color: #cbd5e1; padding: 5rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; }
.footer-title { color: var(--white); font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 1.5rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 0.75rem; }
.footer-widget a { color: #cbd5e1; transition: color 0.3s ease; }
.footer-widget a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; font-size: 0.85rem; color: #94a3b8; }

/* --- COMMENTS SECTION STYLES --- */
.comments-area { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.comments-title { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 2rem; color: var(--text-main); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { background: #ffffff; padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid #e2e8f0; position: relative; }
.comment-meta { display: flex; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.avatar { border-radius: 50%; width: 50px; height: 50px; object-fit: cover; }
.fn { font-weight: 700; font-size: 1.05rem; color: var(--text-main); font-style: normal; }
.comment-metadata a { color: var(--text-muted); font-size: 0.85rem; }
.comment-content p { margin-bottom: 1rem; color: var(--text-main); }
.reply a { display: inline-block; padding: 0.25rem 0.75rem; background: var(--primary-light); color: var(--primary-dark); border-radius: 4px; font-weight: 600; font-size: 0.85rem; }
.reply a:hover { background: var(--primary); color: white; }

/* Comment Form */
.comment-respond { background: #f8fafc; padding: 2rem; border-radius: var(--radius); margin-top: 3rem; }
.comment-reply-title { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text-main); }
.comment-form-comment label, .comment-form-author label, .comment-form-email label, .comment-form-url label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #475569; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: 1.5rem; font-family: inherit; }
.form-submit .submit { background-color: var(--primary); color: white; border: none; padding: 0.75rem 2rem; border-radius: 50px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.form-submit .submit:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* Write Review Section */
.write-review-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem; margin-top: 3rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.tour-reviews-list { margin-top: 2rem; }
.single-review-item { background: #f8fafc; padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; border: 1px solid #e2e8f0; }

/* Interactive Star Rating */
.star-rating-input { display: flex; gap: 0.5rem; font-size: 1.5rem; cursor: pointer; }
.star-rating-input i { color: #cbd5e1; transition: color 0.2s; }
.star-rating-input i.active, .star-rating-input i:hover, .star-rating-input i:hover ~ i { color: var(--accent); }

/* --- STYLISH REVIEW SECTION --- */
.tour-reviews-section { background: #fff; border-top: 1px solid #f1f5f9; padding-top: 3rem; }
.review-summary-card { display: flex; align-items: center; background: #f8fafc; padding: 2rem; border-radius: var(--radius); margin-bottom: 2rem; border: 1px solid #e2e8f0; gap: 2rem; }
.summary-left { text-align: center; border-right: 1px solid #e2e8f0; padding-right: 2rem; min-width: 150px; }
.huge-rating { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.summary-stars { color: #fbbf24; font-size: 1.1rem; margin: 0.5rem 0; }
.total-count { color: var(--text-muted); font-size: 0.9rem; display: block; }
.summary-right { flex-grow: 1; }
.stylish-review-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #f1f5f9; }
.stylish-review-item:last-child { border-bottom: none; }
.review-avatar-placeholder { width: 45px; height: 45px; background: var(--primary-light); color: var(--primary-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.review-main-content { flex-grow: 1; }
.review-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.reviewer-name { font-weight: 700; font-size: 1.05rem; margin: 0; color: var(--text-main); }
.review-date-badge { font-size: 0.75rem; color: var(--text-muted); background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.review-item-stars { color: #fbbf24; font-size: 0.85rem; margin-bottom: 0.75rem; }
.review-body-text { color: var(--text-main); line-height: 1.7; font-size: 0.95rem; font-style: italic; background: #fdfdfd; padding: 1rem; border-radius: 8px; border-left: 3px solid var(--primary); }
.no-reviews-placeholder { text-align: center; padding: 3rem; color: var(--text-muted); border: 2px dashed #e2e8f0; border-radius: var(--radius); }
.no-reviews-placeholder i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--primary-light); }

/* --- MODAL POPUP STYLES --- */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden;
    background-color: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px); align-items: center; justify-content: center;
}
.modal.open { display: flex !important; }
.modal-content {
    background-color: #ffffff; margin: auto; padding: 3rem 2.5rem; border: none; border-top: 6px solid var(--primary);
    width: 90%; max-width: 550px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); position: relative;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background-color: #f1f5f9; border-radius: 50%; font-size: 1.25rem; color: #64748b; cursor: pointer; transition: all 0.2s ease; line-height: 1;
}
.close-modal:hover { background-color: #fee2e2; color: #ef4444; transform: rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 2.5rem; }
.modal-header h2 { font-size: 2rem; color: #0f172a; margin-bottom: 0.75rem; font-family: var(--font-serif); }
.modal-form .form-group { margin-bottom: 1.5rem; }
.modal-form label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: #334155; font-size: 0.9rem; }
.modal-form input, .modal-form select, .modal-form textarea {
    width: 100%; padding: 0.875rem 1.25rem; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 0.95rem; color: #1e293b; background-color: #f8fafc;
    transition: all 0.2s ease; font-family: inherit;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
    border-color: var(--primary); background-color: #fff; outline: none; box-shadow: 0 0 0 4px var(--primary-light);
}
.submit-btn {
    width: 100%; padding: 1.125rem; font-size: 1.05rem; margin-top: 1.5rem; border-radius: 12px; background-color: var(--primary); color: white;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2); transition: all 0.3s ease;
}
.submit-btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4); }

.form-message { padding: 12px; margin-bottom: 15px; border-radius: 8px; font-size: 0.9rem; text-align: center; font-weight: 500; }
.form-message.success { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-message.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@keyframes slideIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) { 
    .grid-3, .grid-4, .detail-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); } 
    .hero-title, .page-hero-title { font-size: 3rem; } 
}

@media (max-width: 900px) { 
    .blog-layout-grid { grid-template-columns: 1fr; } 
    .widget-area { position: static; margin-top: 3rem; } 
}

/* ADDED .grid-2 to Mobile View Stack with !important to force layout */
@media (max-width: 768px) { 
    .nav-links { display: none; } 
    .mobile-menu-btn { display: block; } 
    
    /* Ensure container has consistent padding on mobile for all pages */
    .container {
        padding: 0 1.25rem;
        width: 100%;
    }
    
    .section-padding { padding: 2.5rem 0; }

    /* Force 1 column on mobile */
    .grid, .grid-2, .grid-3, .grid-4, .detail-grid { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem; /* Reduce gap on mobile */
    } 
    
    .hero-text { font-size: 1rem; } 
    .hero-title, .page-hero-title { font-size: 2.25rem; } /* Smaller title on mobile */
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } 
    
    /* Responsive Stylish Reviews */
    .review-summary-card { flex-direction: column; text-align: center; }
    .summary-left { border-right: none; padding-right: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 1.5rem; width: 100%; }
    .stylish-review-item { flex-direction: column; gap: 1rem; }
    .review-avatar-placeholder { width: 40px; height: 40px; font-size: 1rem; }
}

/* --- GALLERY STYLES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}
.gallery-img-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}
.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.open {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); color: var(--primary); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10001;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .lightbox-nav { font-size: 1.5rem; padding: 0.5rem; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }

}
@media (max-width: 500px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Features Grid */
.section-feature {
    background: var(--secondary);
    padding: 4rem 1rem;
}
.section-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: flex;
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
    }
}
.contact-us {
  max-width: 600px;
}

.contact-us h2 {
  margin-bottom: 20px;
  text-decoration: underline;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-info .item {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-info i {
  color: #2e7d32;
  font-size: 18px;
}
/* Social Media  */
.social-media {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social:hover {
  transform: translateY(-4px) scale(1.05);
  opacity: 0.9;
}

/* Brand colors */
.fb { background: #1877f2; }
.ig { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.yt { background: #ff0000; }
.li { background: #0a66c2; }
.wa { background: #25d366; }
.tt { background: #010101; }
.social {
  background: transparent;
  border: 2px solid currentColor;
}
.fb{color:#1877f2;}
.ig{color:#dd2a7b;}
.yt{color:#ff0000;}
.li{color:#0a66c2;}
.wa{color:#25d366;}
.tt{color:#000;}