/* Global Styles */
:root {
    --primary-color: #000000;
    /* Black for primary actions */
    --secondary-color: #666666;
    /* Muted gray */
    --accent-color: #D97706;
    /* Warm Amber */
    --accent-bg: rgba(217, 119, 6, 0.1);
    --bg-color: #F5F4EF;
    /* UserBand Warm Off-White */
    --text-color: #0F0F0B;
    /* UserBand Dark Text */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.75;
    /* Increased from 1.6 */
    word-break: keep-all;
    /* Prevent awkward Korean line breaks on desktop */
    word-wrap: break-word;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

@media (max-width: 768px) {
    body {
        word-break: normal;
        /* Allow natural breaking on mobile to prevent gaps */
    }

    p {
        font-size: 1.05rem;
        /* Slight adjustments for mobile */
        line-height: 1.7;
        color: #374151;
        /* Darker for contrast */
    }

    .section {
        padding: 50px 0;
        /* Reduce vertical spacing */
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
    /* Increased from 1.3 */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
}

small {
    font-size: 0.875rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

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

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-family);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #6B7280;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Darker border for distinctness */
    border-radius: 20px;
    padding: 11px 26px;
    /* Slightly larger targets */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

.mobile-cta {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    /* Even more transparent */
    backdrop-filter: blur(20px) saturate(180%);
    /* Premium Frosted Glass Effect */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* Safari Support */
    z-index: 1000;
    /* CRITICAL: Ensure navbar stays on top */
    padding: 15px 0;

    /* Border and Shadow State */
    border-bottom: none;
    /* No physical border to prevent layout shift */
    box-shadow: none;
    /* Clean start */

    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Remove pseudo-element hack and use reliable box-shadow */
.navbar.scrolled {
    /* Combine clear bottom border line AND soft drop shadow */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Reduced from 75px */
    width: auto;
    max-width: 180px;
    /* Reduced significantly from 350px to save space */
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Ensure seamless blend */
    opacity: 0.95;
}

/* Nav Link Styles with Separator & Hover */
.nav-links {
    display: flex;
    gap: 20px;
    /* Tighter gap (was 28px) for maximum fit */
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 0 10px;
}

/* Vertical Dividers Removed for Cleaner Look */
.nav-links li::after {
    display: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
    padding: 6px 8px;
    /* Tighter padding (was 12px) */
    border-radius: 6px;
    white-space: nowrap;
    /* Prevent line breaks */
}

/* Active State for Scroll Spy */
/* Active State for Scroll Spy */
.nav-links a.active:not(.btn-primary) {
    color: var(--accent-color);
    /* Use Orange for high visibility */
    /* font-weight: 800; REMOVED to prevent layout shift */
    text-shadow: 0 0 1px var(--accent-color);
    /* Bold effect without width change */
    position: relative;
    background-color: transparent;
}

/* Ensure Button maintains style even when active */
.nav-links a.btn-primary.active {
    color: var(--white);
    background-color: var(--accent-color);
    text-shadow: none;
}

/* Active Indicator (Underline) */
.nav-links a.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    /* Partial underline */
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: transparent;
    /* Cleaner look without bg on hover */
}

/* Remove old underline effect logic completely */
.nav-links a::after,
.nav-links a:hover::after {
    display: none;
}

/* Remove underline for button */
.nav-links .btn-primary::after {
    display: none;
}

.nav-links .btn-primary {
    color: var(--white);
    padding: 10px 25px;
    background-color: var(--accent-color);
    /* Ensure consistent base color */
}

.nav-links .btn-primary:hover {
    color: var(--white);
    /* Keep text white */
    background-color: #b45309;
    /* Darker Amber/Orange for button hover */
    transform: translateY(-2px);
    /* Slight lift */
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--bg-color);
    /* Solid background color instead of image */
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    /* Ensure content is above overlay */
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1f2937, #000000);
    /* Deep Charcoal to Black */
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Matching dark shadow */
    /* Glowing effect */
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    background: linear-gradient(120deg, #000000, #EA580C, #000000);
    /* Simpler, smoother gradient */
    background-size: 200% auto;
    /* Standard shift size */
    animation: gradientShift 5s linear infinite;
    /* Smooth linear loop */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
    /* Prevent descender clipping */
    transition: background-position 0.1s ease-out;
    /* Smooth follow effect */
}

.hero p {
    font-size: 1.35rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #E5E7EB;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #9CA3AF;
    font-size: 1.2rem;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: #4B5563;
}

.about-points li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.about-points i {
    color: var(--secondary-color);
}

/* Process Section */
.process {
    background-color: var(--light-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.step-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    margin-top: 10px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-card p {
    font-size: 0.9rem;
    color: #6B7280;
}

/* Why Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    /* Added background for contrast */
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-bg);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Reviews Section (New) */
.review-filters button.filter-btn {
    margin: 0 5px;
    padding: 10px 24px;
    border-radius: 20px;
    /* Match Secondary Button Style */
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    color: var(--text-color);

    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.review-filters button.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.3);
    /* Subtle glow */
}

.review-filters button.filter-btn:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Manual Masonry Grid (JS Controlled) */
.reviews-masonry-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* Unequal column heights handled by flex-start */
    margin-bottom: 40px;
    /* Gap between grid and Load More button */
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Old .reviews-masonry styles can be removed/ignored */
.reviews-masonry {
    display: none;
    /* Hide old container just in case */
}

/* Mobile Reivew Swiper */
.swiper.mobile-only {
    display: none;
    /* Hidden by default on Desktop */
}

.swiper {
    width: 100%;
    height: 100%;
    padding-top: 40px;
    /* Space for pagination bar */
    padding-bottom: 20px;
    box-sizing: border-box;
}

.swiper-pagination {
    top: 0 !important;
    /* Touch the top edge of container */
    bottom: auto !important;
    height: 30px;
    /* Dedicated height for dots area */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.swiper-slide {
    height: auto;
    margin-top: 0;
    /* Container padding-top (40px) handles the offset now */
}

/* Text Truncation */
/* Text Truncation */
.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* For older browsers */
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

/* Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    transform: scale(0.6);
    /* Make them smaller and less intrusive */
    font-weight: bold;
    z-index: 20;
    margin-top: -10px;
    /* Adjust vertical center */
}

/* Hide arrows if screen is too narrow or overlaps content excessively */
@media (max-width: 380px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

.review-text.expanded {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    /* Use accent color for link feeling */
    font-size: 0.9em;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

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

.swiper-slide {
    height: auto;
    /* Allow content to dictate height */
}

/* Mobile Responsive Reviews */
@media (max-width: 768px) {
    .reviews-masonry-grid {
        display: none !important;
        /* Hide Grid on Mobile */
    }

    .swiper.mobile-only {
        display: block;
        /* Show Swiper on Mobile */
    }

    .review-card {
        margin-bottom: 0;
        /* Let Swiper handle spacing */
        height: 100%;
        /* Fill slide height */
    }

    /* Customize Pagination Color */
    .swiper-pagination-bullet-active {
        background-color: var(--accent-color) !important;
    }
}

.review-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    break-inside: avoid;
    overflow: hidden;
    /* Restored for rounded corners */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Darker border for definition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Default subtle shadow */

    /* Manual Grid doesn't need hardware hacks */
    position: relative;
    z-index: 1;
}

.review-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Lift above neighbors to prevent clipping */
}

.review-image-container {
    background-color: #f9fafb;
    cursor: pointer;
    overflow: hidden;
}

.review-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.review-image:hover {
    transform: scale(1.03);
}

.review-content {
    padding: 20px;
    background-color: var(--white);
    /* Ensure solid background */
    position: relative;
    z-index: 1;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-bg);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 12px;
    font-size: 1.1rem;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-info span.role {
    font-size: 0.8rem;
    color: #6B7280;
    background-color: #F3F4F6;
    padding: 2px 8px;
    border-radius: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.review-tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: var(--accent-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Review Filter Buttons */
/* Review Filter Buttons */
.filter-btn {
    background-color: #F3F4F6;
    /* Light gray background */
    border: 1px solid transparent;
    color: #4B5563;
    padding: 8px 20px;
    /* More compact pill */
    border-radius: 50px;
    /* Full rounded pill */
    cursor: pointer;
    margin: 0 4px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #E5E7EB;
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    /* Black active state */
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Load More Button Specifics */
#load-more-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    margin-top: 30px;
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#load-more-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

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

#lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* New Review Entry Animation */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Q&A Section */
.qna {
    background-color: #F8FAFC;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
}

.accordion-content p {
    padding-bottom: 20px;
    color: #4B5563;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info>p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-form-box {
    padding: 60px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #9CA3AF;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .reviews-masonry {
        column-count: 2;
    }
}

/* Tablet Responsiveness (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
        /* More breathing room */
    }

    .hero h1 {
        font-size: 3rem;
        /* Scale down hero title */
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Stack contact on smaller tablets */
    }

    .contact-info,
    .contact-form-box {
        padding: 40px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for steps */
    }

    /* Hide last odd item if needed, or let it take full width */
    .feature-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        /* Ensure safe area */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive Text Utilities */
.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    margin: 0;
    /* Reset margins */
    flex: 1;
    /* Uniform width on desktop if container is constrained, or just balanced */
    text-align: center;
    min-width: 140px;
    /* Minimum nice width */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 120px;
        /* Reduced padding */
        min-height: auto;
        /* Allow content to dictate height */
        height: auto;
        /* Ensure no fixed height forces clipping */
        padding-top: 110px;
        /* Reduced from 140px */
    }

    .hero-content {
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Slightly smaller title for space */
    }

    .hero-btns {
        display: flex;
        flex-direction: row;
        /* Force row */
        gap: 8px;
        /* Tighter gap */
        justify-content: space-between;
        width: 100%;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: auto;
        flex: 1;
        /* Distribute space */
        min-width: 0;
        /* Allow shrinking */
        padding: 10px 4px;
        /* Very tight padding */
        font-size: 0.85rem;
        /* Smaller text */
        white-space: nowrap;
        /* Keep on one line */
        border-radius: 12px;
        /* Slightly less rounded to save space visually */
    }

    /* Specific fix removed - using responsive text spans instead */
}

/* Success Section Top-Up Grid */
/* Success Section Top-Up Grid */
#success-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Success Tags (Refactored from JS) */
.success-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.success-tag.elementary {
    background-color: #2563EB;
}

.success-tag.middle {
    background-color: #059669;
}

.success-tag.high {
    background-color: #EA580C;
}

.success-tag.college {
    background-color: #7C3AED;
}

.success-tag.default {
    background-color: #4B5563;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        /* Slightly smaller for safety */
        word-break: keep-all;
        /* Prevent awkward word breaks */
    }

    .navbar .container {
        padding: 0 20px;
        /* Explicit padding for mobile header */
    }

    .logo img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        /* More roomy dropdown */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: var(--primary-color);
    }

    /* Filter Buttons */
    .review-filters {
        text-align: center;
        margin-bottom: 60px;
        /* Increased from 40px */
    }

    .filter-btn {
        background-color: var(--white);
        color: var(--text-color);
        border: 1px solid #D1D5DB;
        padding: 10px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 500;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .filter-btn:hover {
        background-color: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .filter-btn.active {
        background-color: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-masonry {
        column-count: 1;
    }

    .contact-info {
        padding: 30px;
    }

    .contact-form-box {
        padding: 30px;
    }

    /* Mobile Sticky CTA */
    .mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 2000;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
        /* Initial State: Hidden (Below view) */
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .mobile-cta.visible {
        transform: translateY(0);
    }
}



/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    /* Safety: Default to visible */
    opacity: 1;
    transform: none;
    filter: none;
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only hide if we confirm JS is running and intersection observer is ready - 
   but for now, let's just use the active class to trigger a 'pop' or just leave it visible. 
   Actually, if I set opacity 1 here, the animation is gone.
   
   Better Plan: 
   Keep .reveal as the "target", but use a separate class for the hidden state.
*/

.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(2px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.feature-card,
.step-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-nav:hover {
    color: var(--accent-color);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Image Badge for Multiple Images */
.image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

/* Form Visibility Utilities */
.contact-form.hidden {
    display: none;
}

.success-message-active {
    display: block !important;
    animation: fadeIn 0.5s ease;
}