/**
 * CrunchyTech Case Studies - Frontend Styles
 *
 * Color reference:
 *   Green accent: #58da5d
 *   Dark primary: #181A1D
 *   Dark hero: #1a1a2e
 *   Gray text: #5e6063
 *   Light bg: #f8f9fa
 *
 * Font: Nunito, sans-serif
 */

/* =========================================================
   Font Import
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* =========================================================
   Reset & Base
   ========================================================= */

.crunchytech-cs-hero,
.crunchytech-cs-hero *,
.crunchytech-cs-main-content,
.crunchytech-cs-main-content *,
.crunchytech-cs-single-hero,
.crunchytech-cs-single-hero *,
.crunchytech-cs-single-main,
.crunchytech-cs-single-main *,
.crunchytech-cs-video-section,
.crunchytech-cs-video-section * {
    font-family: 'Nunito', sans-serif;
}

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

/* =========================================================
   Archive: Hero Section
   ========================================================= */

.crunchytech-cs-hero {
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.crunchytech-cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://crunchytech.com/wp-content/uploads/2025/07/sports-bar-av-1650x778.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.crunchytech-cs-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(88, 218, 93, 0.1) 0%, transparent 50%);
}

.crunchytech-cs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.crunchytech-cs-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #58da5d;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crunchytech-cs-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crunchytech-cs-hero-intro {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    color: #e0e0e0;
}

.crunchytech-cs-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.crunchytech-cs-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crunchytech-cs-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #58da5d;
    display: block;
}

.crunchytech-cs-stat-label {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-top: 5px;
}

/* =========================================================
   Archive: Main Content Area
   ========================================================= */

.crunchytech-cs-main-content {
    background: #fff;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    border-radius: 16px 16px 0 0;
    padding: 60px 0 0;
}

.crunchytech-cs-section {
    margin-bottom: 0;
    padding: 80px 0;
}

.crunchytech-cs-section:last-child {
    margin-bottom: 0;
}

.crunchytech-cs-section-heading {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.crunchytech-cs-section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #58da5d;
    border-radius: 2px;
}

.crunchytech-cs-section-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #181A1D;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Archive: Filter Bar
   ========================================================= */

.crunchytech-cs-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.crunchytech-cs-filter-btn {
    padding: 10px 20px;
    border: 2px solid #58da5d;
    background: transparent;
    color: #58da5d;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: inherit;
    min-height: 44px;
    min-width: 44px;
}

.crunchytech-cs-filter-btn:hover,
.crunchytech-cs-filter-btn.active {
    background: #58da5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 218, 93, 0.3);
}

/* =========================================================
   Archive: Case Study Grid & Cards
   ========================================================= */

.crunchytech-cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.crunchytech-cs-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #58da5d;
}

.crunchytech-cs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.crunchytech-cs-card-image {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #ecf0f1;
}

.crunchytech-cs-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crunchytech-cs-card:hover .crunchytech-cs-card-overlay {
    opacity: 1;
}

.crunchytech-cs-view-btn {
    background: #58da5d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.crunchytech-cs-view-btn:hover {
    background: #4bc850;
    transform: scale(1.05);
    color: #fff;
}

.crunchytech-cs-card-content {
    padding: 25px;
}

.crunchytech-cs-card-category {
    display: inline-block;
    background: #58da5d;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.crunchytech-cs-card-content h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.crunchytech-cs-card-content h4 a {
    color: inherit;
    text-decoration: none;
}

.crunchytech-cs-card-content h4 a:hover {
    color: #58da5d;
}

.crunchytech-cs-card-content p {
    color: #5e6063;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crunchytech-cs-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.crunchytech-cs-card-location {
    font-size: 0.9rem;
    color: #58da5d;
    font-weight: 600;
}

.crunchytech-cs-card-link {
    color: #58da5d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.crunchytech-cs-card-link:hover {
    color: #4bc850;
}

/* =========================================================
   Archive: No Results
   ========================================================= */

.crunchytech-cs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.crunchytech-cs-no-results p {
    font-size: 1.1rem;
    color: #5e6063;
}

/* =========================================================
   Archive: Load More
   ========================================================= */

.crunchytech-cs-load-more {
    text-align: center;
    margin: 60px 0 0;
}

.crunchytech-cs-load-more-btn {
    background: #58da5d;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 44px;
}

.crunchytech-cs-load-more-btn:hover {
    background: #4bc850;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 218, 93, 0.3);
}

.crunchytech-cs-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   Archive: Loading Spinner
   ========================================================= */

.crunchytech-cs-loading {
    text-align: center;
    padding: 40px 0;
}

.crunchytech-cs-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top-color: #58da5d;
    border-radius: 50%;
    animation: crunchytech-cs-spin 0.8s linear infinite;
}

@keyframes crunchytech-cs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   Archive: Dark CTA Section
   ========================================================= */

.crunchytech-cs-section-dark {
    background: #1a1a2e;
    color: #fff;
    margin: 0;
    padding: 80px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.crunchytech-cs-section-dark .crunchytech-cs-section-heading {
    color: #fff;
}

.crunchytech-cs-section-dark .crunchytech-cs-section-intro {
    color: #e0e0e0;
}

.crunchytech-cs-cta-wrap {
    text-align: center;
    margin-top: 30px;
}

.crunchytech-cs-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #58da5d;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.crunchytech-cs-cta-btn:hover {
    background: #4bc850;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 218, 93, 0.3);
    color: #fff;
}

/* =========================================================
   Single: Breadcrumb (overlaid on hero)
   ========================================================= */

.crunchytech-cs-breadcrumb {
    position: relative !important;
    z-index: 3 !important;
    padding: 25px 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.crunchytech-cs-breadcrumb-list {
    list-style: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent !important;
}

.crunchytech-cs-breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.crunchytech-cs-breadcrumb-item + .crunchytech-cs-breadcrumb-item::before {
    content: '>' !important;
    margin: 0 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
}

.crunchytech-cs-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.crunchytech-cs-breadcrumb-item a:hover {
    color: #58da5d !important;
}

.crunchytech-cs-breadcrumb-current span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

/* =========================================================
   Single: Hero Section
   ========================================================= */

.crunchytech-cs-single-hero {
    background: linear-gradient(135deg, #222 0%, #5e6063 100%);
    color: #fff;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
}

.crunchytech-cs-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.crunchytech-cs-single-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    padding-top: 50px;
}

.crunchytech-cs-tag {
    display: inline-block;
    background: #58da5d;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.crunchytech-cs-single-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crunchytech-cs-single-hero-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

/* =========================================================
   Single: Client Info Sidebar
   ========================================================= */

.crunchytech-cs-client-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.crunchytech-cs-client-logo {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crunchytech-cs-client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.crunchytech-cs-specs-grid {
    display: grid;
    gap: 15px;
}

.crunchytech-cs-spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.crunchytech-cs-spec-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crunchytech-cs-spec-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================================
   Single: Main Content
   ========================================================= */

.crunchytech-cs-single-main {
    background: #fff;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    border-radius: 16px 16px 0 0;
    padding: 60px 0;
}

/* =========================================================
   Single: Stage Block (padding between stages)
   ========================================================= */

.crunchytech-cs-stage-block {
    padding: 50px 0;
}

.crunchytech-cs-stage-block:first-child {
    padding-top: 0;
}

/* =========================================================
   Single: Text-Image Grid (section images beside content)
   ========================================================= */

.crunchytech-cs-text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse {
    grid-template-columns: 1fr 1fr;
}

.crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse .crunchytech-cs-text-image-media {
    order: -1;
}

.crunchytech-cs-text-image-text {
    max-width: none;
}

.crunchytech-cs-text-image-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Push image down so its top aligns with the H2 green bar (below the H3 label) */
    padding-top: 50px;
}

.crunchytech-cs-section-image {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 750px;
    border-radius: 12px;
    border-left: 4px solid #58da5d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.crunchytech-cs-section-image img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 750px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
}

/* =========================================================
   Single: Last-Paragraph Inline Image
   ========================================================= */

.crunchytech-cs-last-para-image {
    width: 100%;
    margin: 30px auto;
    max-width: 900px;
    overflow: hidden;
    border-radius: 12px;
    border-left: 4px solid #58da5d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.crunchytech-cs-last-para-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
}

/* =========================================================
   Single: Content Area (WordPress editor output)
   ========================================================= */

.crunchytech-cs-content-area {
    max-width: 900px;
    margin: 0 auto;
}

.crunchytech-cs-stage-heading {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 20px;
    margin-top: 0;
    text-align: left;
    position: relative;
    line-height: 1.3;
    padding-top: 12px;
}

.crunchytech-cs-stage-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #58da5d;
    border-radius: 2px;
}

.crunchytech-cs-content-area h3 {
    font-size: 1.4em;
    color: #5e6063;
    margin-bottom: 5px;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.2px;
    line-height: 1.8;
}

/* Tighten H3 when it's the first heading in a stage */
.crunchytech-cs-content-area h3:first-child {
    margin-top: 0;
    margin-bottom: 5px;
}

/* H3 at the top of grid text column — no extra top margin */
.crunchytech-cs-text-image-text h3:first-child {
    margin-top: 0;
    margin-bottom: 5px;
}

/* H2 right after H3 in grid text column */
.crunchytech-cs-text-image-text h3 + .crunchytech-cs-stage-heading {
    margin-top: 0;
    padding-top: 12px;
}

.crunchytech-cs-content-area h4 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 600;
}

.crunchytech-cs-content-area h5,
.crunchytech-cs-content-area h6 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 12px;
    margin-top: 25px;
    font-weight: 600;
}

.crunchytech-cs-content-area p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #181A1D;
    line-height: 1.6;
}

.crunchytech-cs-content-area ul,
.crunchytech-cs-content-area ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.crunchytech-cs-content-area ol {
    counter-reset: crunchytech-cs-counter;
}

.crunchytech-cs-content-area li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.crunchytech-cs-content-area ul > li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #58da5d;
    font-weight: bold;
    font-size: 1.2rem;
}

.crunchytech-cs-content-area ol > li {
    counter-increment: crunchytech-cs-counter;
}

.crunchytech-cs-content-area ol > li::before {
    content: counter(crunchytech-cs-counter) '.';
    position: absolute;
    left: 0;
    color: #58da5d;
    font-weight: 700;
    font-size: 1.1rem;
}

.crunchytech-cs-content-area blockquote {
    border-left: 4px solid #58da5d;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #5e6063;
}

.crunchytech-cs-content-area blockquote p {
    color: #5e6063;
    margin-bottom: 0;
}

.crunchytech-cs-content-area strong {
    font-weight: 700;
}

.crunchytech-cs-content-area em {
    font-style: italic;
}

/* Content hyperlinks: bold black underlined */
.crunchytech-cs-content-area a {
    color: #181A1D;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}

.crunchytech-cs-content-area a:hover {
    color: #58da5d;
}

.crunchytech-cs-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Tables */
.crunchytech-cs-content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(88, 218, 93, 0.15), 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(88, 218, 93, 0.25);
}

.crunchytech-cs-content-area .crunchytech-cs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(88, 218, 93, 0.15), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.crunchytech-cs-content-area th {
    background: #fff;
    color: #181A1D;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(88, 218, 93, 0.4);
}

.crunchytech-cs-content-area td {
    padding: 18px 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

.crunchytech-cs-content-area tr:hover {
    background-color: rgba(88, 218, 93, 0.04);
}

.crunchytech-cs-content-area tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   Single: Section Galleries (fallback for unmatched sections)
   ========================================================= */

.crunchytech-cs-section-gallery {
    margin: 50px auto;
    max-width: 900px;
}

.crunchytech-cs-gallery-title {
    font-size: 1.4em;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.2px;
    line-height: 1.8;
}

.crunchytech-cs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.crunchytech-cs-gallery-single {
    grid-template-columns: 1fr;
}

.crunchytech-cs-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #58da5d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crunchytech-cs-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.crunchytech-cs-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
}

.crunchytech-cs-gallery-featured {
    grid-column: span 2;
}

.crunchytech-cs-gallery-featured img {
    height: 400px;
}

/* =========================================================
   Single: Testimonial
   ========================================================= */

.crunchytech-cs-testimonial {
    background: #f8f9fa;
    padding: 60px 40px;
    margin: 60px auto;
    max-width: 900px;
    border-radius: 16px;
    text-align: center;
    border-left: 4px solid #58da5d;
    position: relative;
}

.crunchytech-cs-testimonial-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.crunchytech-cs-testimonial-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #58da5d;
    border-radius: 2px;
}

.crunchytech-cs-testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #181A1D;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 40px;
}

.crunchytech-cs-testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: #58da5d;
    position: absolute;
    top: -20px;
    left: 0;
    line-height: 1;
    font-family: serif;
}

.crunchytech-cs-testimonial-quote::after {
    content: '\201D';
    font-size: 4rem;
    color: #58da5d;
    position: absolute;
    bottom: -40px;
    right: 0;
    line-height: 1;
    font-family: serif;
}

.crunchytech-cs-testimonial-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.crunchytech-cs-testimonial-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.crunchytech-cs-testimonial-position {
    font-size: 0.95rem;
    font-weight: 400;
    color: #5e6063;
    font-style: italic;
}

.crunchytech-cs-testimonial-rating {
    margin-top: 15px;
}

.crunchytech-cs-star {
    font-size: 1.4rem;
    margin: 0 2px;
}

.crunchytech-cs-star-filled {
    color: #f5a623;
}

.crunchytech-cs-star-empty {
    color: #ddd;
}

/* =========================================================
   Single: Video Section
   ========================================================= */

.crunchytech-cs-video-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    padding: 60px 0;
    background: linear-gradient(135deg, #fdf0e9 0%, #fef6f0 30%, #eef8f0 60%, #e8fae9 100%);
    overflow: hidden;
}

.crunchytech-cs-video-section .crunchytech-cs-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.crunchytech-cs-video-section .crunchytech-cs-content-area h3 {
    margin-top: 0;
}

.crunchytech-cs-video-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.crunchytech-cs-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #000;
}

.crunchytech-cs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   Single: Back Link
   ========================================================= */

.crunchytech-cs-back-link {
    margin: 60px auto 0;
    max-width: 900px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.crunchytech-cs-back-link a {
    color: #58da5d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.crunchytech-cs-back-link a:hover {
    color: #4bc850;
}

.crunchytech-cs-back-link a::before {
    content: '\2190';
    margin-right: 8px;
    font-size: 1.2rem;
}

/* =========================================================
   Responsive: Large Tablet / Small Desktop (992px - 1199px)
   ========================================================= */

@media (max-width: 1199px) {
    .crunchytech-cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crunchytech-cs-text-image-grid,
    .crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse {
        gap: 30px;
        padding: 0 15px;
    }

    .crunchytech-cs-section-image {
        min-height: 280px;
        max-height: 550px;
    }

    .crunchytech-cs-section-image img {
        min-height: 280px;
        max-height: 550px;
    }
}

/* =========================================================
   Responsive: Tablet (768px - 991px)
   ========================================================= */

@media (max-width: 991px) {
    .crunchytech-cs-text-image-grid,
    .crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse .crunchytech-cs-text-image-media {
        order: 0;
    }

    .crunchytech-cs-section-image {
        min-height: 250px;
        max-height: 450px;
    }

    .crunchytech-cs-section-image img {
        min-height: 250px;
        max-height: 450px;
    }

    .crunchytech-cs-single-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .crunchytech-cs-last-para-image {
        margin: 25px 15px;
    }

    .crunchytech-cs-last-para-image img {
        max-height: 400px;
    }
}

/* =========================================================
   Responsive: Mobile (< 768px)
   ========================================================= */

@media (max-width: 768px) {
    /* Archive Hero */
    .crunchytech-cs-hero {
        padding: 60px 0;
        min-height: auto;
    }

    .crunchytech-cs-hero h1 {
        font-size: 2.5rem;
    }

    .crunchytech-cs-hero-subtitle {
        font-size: 1rem;
    }

    .crunchytech-cs-hero-intro {
        font-size: 1.1rem;
    }

    .crunchytech-cs-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .crunchytech-cs-section-heading {
        font-size: 2rem;
    }

    .crunchytech-cs-container {
        padding: 0 15px;
    }

    /* Archive Grid */
    .crunchytech-cs-grid {
        grid-template-columns: 1fr;
    }

    /* Filter Bar - horizontal scroll pills */
    .crunchytech-cs-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .crunchytech-cs-filter-btn {
        flex-shrink: 0;
    }

    /* Single Hero */
    .crunchytech-cs-single-hero {
        padding: 0 0 50px;
    }

    .crunchytech-cs-single-hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .crunchytech-cs-single-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Text-Image Grid: stack on mobile */
    .crunchytech-cs-text-image-grid,
    .crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .crunchytech-cs-stage-block {
        padding: 35px 0;
    }

    /* Remove image offset on mobile since grid stacks vertically */
    .crunchytech-cs-text-image-media {
        padding-top: 0;
    }

    .crunchytech-cs-text-image-grid.crunchytech-cs-text-image-reverse .crunchytech-cs-text-image-media {
        order: 0;
    }

    .crunchytech-cs-section-image {
        min-height: 200px;
        max-height: 350px;
    }

    .crunchytech-cs-section-image img {
        min-height: 200px;
        max-height: 350px;
    }

    /* Last Paragraph Image */
    .crunchytech-cs-last-para-image {
        margin: 20px 15px;
        border-radius: 10px;
    }

    .crunchytech-cs-last-para-image img {
        max-height: 300px;
    }

    /* Content Area */
    .crunchytech-cs-content-area {
        padding: 0 15px;
    }

    .crunchytech-cs-stage-heading {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .crunchytech-cs-content-area h3 {
        font-size: 1.2em;
        letter-spacing: 2px;
        margin-bottom: 4px;
        margin-top: 35px;
    }

    .crunchytech-cs-content-area p {
        font-size: 1rem;
    }

    /* Tables: card layout on mobile */
    .crunchytech-cs-content-area table {
        display: block;
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .crunchytech-cs-content-area table thead {
        display: none;
    }

    .crunchytech-cs-content-area table tbody {
        display: block;
    }

    .crunchytech-cs-content-area table tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-left: 3px solid #58da5d;
        margin-bottom: 15px;
        padding: 15px;
    }

    .crunchytech-cs-content-area table tr:hover {
        background-color: #fff;
    }

    .crunchytech-cs-content-area table td {
        display: block;
        padding: 6px 0;
        border-bottom: none;
        text-align: left;
        font-size: 0.95rem;
        position: relative;
    }

    .crunchytech-cs-content-area table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 0.8rem;
        color: #58da5d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .crunchytech-cs-content-area tr:last-child td {
        border-bottom: none;
    }

    /* Gallery */
    .crunchytech-cs-gallery-grid {
        grid-template-columns: 1fr;
    }

    .crunchytech-cs-gallery-featured {
        grid-column: span 1;
    }

    .crunchytech-cs-gallery-featured img {
        height: 250px;
    }

    /* Testimonial */
    .crunchytech-cs-testimonial {
        padding: 40px 20px;
        margin: 40px 15px;
    }

    .crunchytech-cs-testimonial-quote {
        font-size: 1.1rem;
        padding: 0 30px;
    }

    .crunchytech-cs-testimonial-quote::before,
    .crunchytech-cs-testimonial-quote::after {
        font-size: 3rem;
    }

    /* Section padding */
    .crunchytech-cs-section {
        padding: 50px 0;
    }

    /* Breadcrumb */
    .crunchytech-cs-breadcrumb {
        padding: 15px 0 0;
    }

    .crunchytech-cs-breadcrumb-item {
        font-size: 0.75rem;
    }

    .crunchytech-cs-breadcrumb-item + .crunchytech-cs-breadcrumb-item::before {
        margin: 0 5px;
    }

    /* Video */
    .crunchytech-cs-video-section {
        padding: 40px 0;
        margin-top: 30px;
    }

    .crunchytech-cs-video-wrapper {
        border-radius: 12px;
    }

    /* Testimonial */
    .crunchytech-cs-testimonial-title {
        font-size: 1.4rem;
    }

    /* Back link */
    .crunchytech-cs-back-link {
        margin: 40px 15px 0;
    }
}

/* =========================================================
   Responsive: Small Mobile (< 480px)
   ========================================================= */

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

    .crunchytech-cs-single-hero h1 {
        font-size: 1.8rem;
    }

    .crunchytech-cs-single-hero-intro {
        font-size: 1rem;
    }

    .crunchytech-cs-hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .crunchytech-cs-stage-heading {
        font-size: 1.3rem;
        margin-top: 0;
    }

    .crunchytech-cs-content-area h3 {
        font-size: 1.1em;
        letter-spacing: 1.5px;
        margin-bottom: 3px;
        margin-top: 30px;
    }

    .crunchytech-cs-section-image {
        min-height: 180px;
        max-height: 280px;
    }

    .crunchytech-cs-section-image img {
        min-height: 180px;
        max-height: 280px;
    }

    .crunchytech-cs-last-para-image img {
        max-height: 220px;
    }

    .crunchytech-cs-testimonial-quote {
        font-size: 1rem;
        padding: 0 20px;
    }

    .crunchytech-cs-testimonial-quote::before,
    .crunchytech-cs-testimonial-quote::after {
        font-size: 2.5rem;
    }

    .crunchytech-cs-testimonial-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .crunchytech-cs-client-info {
        padding: 20px;
    }

    .crunchytech-cs-card-content {
        padding: 20px;
    }

    .crunchytech-cs-filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Breadcrumb */
    .crunchytech-cs-breadcrumb-item {
        font-size: 0.7rem;
    }

    .crunchytech-cs-breadcrumb-item + .crunchytech-cs-breadcrumb-item::before {
        margin: 0 4px;
    }

    /* Video */
    .crunchytech-cs-video-section {
        padding: 30px 0;
        margin-top: 20px;
    }

    .crunchytech-cs-video-wrapper {
        border-radius: 10px;
    }
}

/* =========================================================
   Animation on Scroll (applied via JS)
   ========================================================= */

.crunchytech-cs-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.crunchytech-cs-animate.crunchytech-cs-visible {
    opacity: 1;
    transform: translateY(0);
}
