:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-light: #666666;
    --accent-light: #f4f4f4;
    --accent-dark: #e0e0e0;
    --border-color: #dddddd;
    --primary-btn: #000000;
    --primary-btn-hover: #333333;

    --font-main: 'Inter', sans-serif;

    --container-width: 1200px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Content Protection: Disable Selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in inputs/textareas for usability */
input,
textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Modern & Clean */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.02);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--text-color), #666);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: var(--accent-light);
}

.menu-toggle svg {
    transition: transform 0.3s ease;
}

.menu-toggle.active svg {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 20px;
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Fade In Animation (Used by JS Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    flex: 1;
    min-width: 200px;
}

.input-group .icon {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    margin-right: 10px;
}

.input-group input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-btn-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header.centered {
    text-align: center;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.view-all {
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.view-all:hover {
    border-bottom-color: var(--text-color);
}

.bg-light {
    background-color: var(--accent-light);
}

.bg-black {
    background-color: #000;
}

.text-white {
    color: #fff;
}

.text-white h3,
.text-white p {
    color: #fff;
}

/* Job Grid */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* consistent spacing */
    height: 100%;
    /* Ensure equal height in grid */
    box-shadow: var(--shadow-sm);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-color);
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
    /* Handled by gap on parent */
}

.company {
    font-weight: 600;
    color: var(--text-color);
}

.type {
    background: var(--accent-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title {
    font-size: 1.35rem;
    /* Larger title */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    color: var(--text-color);
}

.location {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Add an icon to location via CSS pseudo-element if desired, or simpler just text */
.location::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 50%;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    /* CRITICAL: Prevent overlapping */
    gap: 8px;
    row-gap: 10px;
    /* Explicit vertical gap when wrapping */
    margin-top: auto;
    /* Pushes everything above it up, and footer down */
    padding-top: 10px;
}

.tag {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.job-card:hover .tag {
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-apply {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--text-color);
    /* Dark by default for contrast */
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
    margin-top: 10px;
}

.btn-apply:hover {
    background: var(--primary-btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Categories - Modern & Attractive */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #000, #666);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: var(--text-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.cat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.category-card:hover .cat-icon-wrapper {
    background: var(--text-color);
    transform: scale(1.1) rotate(5deg);
}

.cat-icon {
    width: 32px;
    height: 32px;
    color: var(--text-color);
    transition: color 0.4s ease;
}

.category-card:hover .cat-icon {
    color: white;
}

/* How It Works - Creative Timeline */
.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 60px;
    gap: 20px;
    padding: 0 40px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-item:hover .step-icon {
    transform: scale(1.15);
    border-color: var(--text-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.step-item:hover .step-icon svg {
    color: var(--text-color);
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--text-color);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    margin-top: 40px;
    /* Align with center of 80px icon */
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transform: translateX(-100%);
    animation: connectingLine 2s infinite ease-in-out;
}

@keyframes connectingLine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }

    .step-connector {
        display: none;
    }
}

/* Testimonials - Creative & Modern */
/* Testimonials - Carousel */
.testimonial-wrapper {
    position: relative;
    max-width: 100%;
}

/* Fade Effect Overlay at the End */
.testimonial-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--accent-light));
    pointer-events: none;
    z-index: 5;
}

.testimonial-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 30px 20px 50px 20px;
    /* Top/Bottom padding for shadow/hover */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
    align-items: stretch;
    /* Equal height */
}

/* Hide Scrollbar for Chrome/Safari/Edge */
.testimonial-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 360px;
    /* Wider desktop cards */
    scroll-snap-align: center;
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    /* Allow stretch */
}

@media (max-width: 768px) {
    .testimonial-grid {
        padding: 20px 20px 40px 20px;
        gap: 16px;
    }

    .testimonial-card {
        flex: 0 0 85%;
        /* Mobile width */
        padding: 24px;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- Added Phase 10 Tools Styles --- */
@import url('tools_style.css');

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--text-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -24px;
}

.next-btn {
    right: -24px;
}

@media (max-width: 900px) {
    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent-light);
    opacity: 0.5;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.t-text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 24px;
    font-style: italic;
    padding-top: 20px;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.t-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.t-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.t-info span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .cat-icon-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* How it Works */
.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #ccc;
}

/* Testimonials */
.testimonial-strip {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    background: var(--accent-light);
    padding: 30px;
    border-radius: var(--radius-md);
    max-width: 500px;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial span {
    font-weight: 600;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Slightly transparent for blur visibility */
    backdrop-filter: blur(8px);
    /* The blur effect */
    -webkit-backdrop-filter: blur(8px);
    /* Safari support */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    /* Ensure content is readable */
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;

    color: var(--text-light);
}

.featured-img-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-img-container:hover img {
    transform: scale(1.05);
}

.modal-body ul li {
    margin-bottom: 8px;
}

.modal-footer {
    margin-top: 30px;
}

/* Modern Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-control:focus {
    border-color: var(--accent-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.form-control::placeholder {
    color: #bbb;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Modal Submit Button */
.modal-body button[type="submit"] {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--text-color), #222);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-body button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Animations */
/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible,
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}

/* Contact Page UI */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-card input,
.contact-card textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--text-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Share Story Button */
.btn-share-story {
    background: linear-gradient(135deg, var(--text-color), #333);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.btn-share-story:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-share-story svg {
    transition: transform 0.3s ease;
}

.btn-share-story:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.btn-share-story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.btn-share-story:hover::after {
    transform: translateY(0);
}

/* --- Modern Blog Cards --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Ensure zoom stays inside */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-cat {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}


/* --- Article Rich Content --- */
.key-takeaways {
    background: #f0f9ff;
    border-left: 5px solid var(--accent-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.key-takeaways h4 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-tip {
    background: #fff8e1;
    border: 1px solid #ffe0b2;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pro-tip-icon {
    font-size: 1.5rem;
}

.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    cursor: pointer;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}