/**
 * Codeshift Global - Personalized Theme Stylesheet
 *
 * @package CsgPersonalized
 * @since   1.0.0
 */

/* ============================================
   1. CSS Custom Properties
   ============================================ */
:root {
    /* Brand Colors — Primary */
    --csg-primary: #1E88E5;
    --csg-secondary: #0B1C2C;
    --csg-dark: #0B1C2C;
    --csg-light: #f1f5f9;
    --csg-accent: #D4AF37;
    --csg-white: #ffffff;
    --csg-gray-100: #f8fafc;
    --csg-gray-200: #e2e8f0;
    --csg-gray-300: #cbd5e1;
    --csg-gray-400: #A0A7B1;
    --csg-gray-500: #A0A7B1;
    --csg-gray-600: #475569;
    --csg-gray-700: #334155;
    --csg-gray-800: #1e293b;

    /* Gradients — Blue → Gold signature */
    --csg-gradient: linear-gradient(135deg, var(--csg-primary), var(--csg-accent));
    --csg-gradient-text: linear-gradient(135deg, var(--csg-primary), var(--csg-accent));

    /* Typography */
    --csg-font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --csg-font-heading: 'Montserrat', 'Poppins', -apple-system, sans-serif;

    /* Spacing */
    --csg-section-padding: 120px;
    --csg-container-width: 1200px;
    --csg-container-padding: 24px;

    /* Shadows - refined, subtle */
    --csg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --csg-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --csg-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
    --csg-shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.12);
    --csg-shadow-glow: 0 0 24px rgba(30, 136, 229, 0.25);

    /* Transitions */
    --csg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --csg-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --csg-radius-sm: 6px;
    --csg-radius-md: 12px;
    --csg-radius-lg: 20px;
    --csg-radius-full: 9999px;

    /* Header */
    --csg-header-height: 80px;
}

/* ============================================
   2. Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--csg-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--csg-gray-700);
    overflow-x: hidden;
    background-color: var(--csg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--csg-font-heading);
    font-weight: 700;
    color: var(--csg-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

a {
    color: var(--csg-secondary);
    text-decoration: none;
    transition: color var(--csg-transition);
}

a:hover {
    color: var(--csg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 100000;
    background: var(--csg-white);
    padding: 15px 23px;
    font-size: 14px;
    color: var(--csg-dark);
    box-shadow: var(--csg-shadow-lg);
}

/* ============================================
   3. Layout
   ============================================ */
.csg-container {
    max-width: var(--csg-container-width);
    margin: 0 auto;
    padding: 0 var(--csg-container-padding);
}

.csg-container--narrow {
    max-width: 800px;
}

.csg-section {
    padding: var(--csg-section-padding) 0;
    position: relative;
}

.csg-section:nth-child(even) {
    background-color: var(--csg-gray-100);
}

.csg-main-content {
    padding-top: 0;
}

/* ============================================
   4. Buttons
   ============================================ */
.csg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--csg-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: var(--csg-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--csg-transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.csg-btn--primary {
    background: var(--csg-gradient);
    color: var(--csg-white);
    border-color: transparent;
}

.csg-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--csg-shadow-glow);
    color: var(--csg-white);
}

.csg-btn--outline {
    background: transparent;
    color: var(--csg-secondary);
    border-color: var(--csg-secondary);
}

.csg-btn--outline:hover {
    background: var(--csg-secondary);
    color: var(--csg-white);
    transform: translateY(-2px);
}

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

.csg-btn--white:hover {
    background: var(--csg-light);
    color: var(--csg-primary);
    transform: translateY(-2px);
    box-shadow: var(--csg-shadow-lg);
}

.csg-btn--outline-white {
    background: transparent;
    color: var(--csg-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.csg-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--csg-white);
    color: var(--csg-white);
}

.csg-btn--sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.csg-btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.csg-btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   5. Glass-Morphism Header
   ============================================ */
.csg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--csg-header-height);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    transform: translateY(-100%);
    transition: transform var(--csg-transition), border-bottom-color var(--csg-transition), box-shadow var(--csg-transition);
}

.admin-bar .csg-header {
    top: 32px;
}

.csg-header.is-scrolled {
    transform: translateY(0);
    border-bottom-color: var(--csg-gray-200);
    box-shadow: var(--csg-shadow-sm);
}

.csg-header__inner {
    max-width: var(--csg-container-width);
    margin: 0 auto;
    padding: 0 var(--csg-container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.csg-header__brand a,
.csg-header__logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--csg-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--csg-white);
    text-decoration: none;
    transition: color var(--csg-transition);
}

.csg-header__brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.csg-header__brand .custom-logo {
    max-height: 48px;
    width: auto;
    height: auto;
}

.is-scrolled .csg-header__brand a,
.is-scrolled .csg-header__logo-text {
    color: var(--csg-dark);
}

.csg-header__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--csg-gradient);
    color: var(--csg-white) !important;
    border-radius: var(--csg-radius-sm);
    font-weight: 800;
    font-size: 1.125rem;
}

/* Nav */
.csg-header__nav {
    display: none;
}

.csg-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.csg-nav-list li {
    position: relative;
}

.csg-nav-list li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--csg-radius-sm);
    transition: all var(--csg-transition);
}

.csg-nav-list li a:hover,
.csg-nav-list li.current-menu-item > a,
.csg-nav-list li.current_page_item > a {
    color: var(--csg-white);
    background: rgba(255, 255, 255, 0.1);
}

.is-scrolled .csg-nav-list li a {
    color: var(--csg-gray-600);
}

.is-scrolled .csg-nav-list li a:hover,
.is-scrolled .csg-nav-list li.current-menu-item > a,
.is-scrolled .csg-nav-list li.current_page_item > a {
    color: var(--csg-secondary);
    background: var(--csg-light);
}

/* Sub-menu */
.csg-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--csg-white);
    border-radius: var(--csg-radius-md);
    box-shadow: var(--csg-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--csg-transition);
}

.csg-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csg-nav-list .sub-menu li a {
    color: var(--csg-gray-600);
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: var(--csg-radius-sm);
}

.csg-nav-list .sub-menu li a:hover {
    color: var(--csg-secondary);
    background: var(--csg-light);
}

/* Header actions */
.csg-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csg-header__cta {
    display: none !important;
}

.csg-header__cta.csg-btn--primary {
    background: var(--csg-gradient);
    color: var(--csg-white);
}

/* Hamburger */
.csg-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.csg-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.csg-hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--csg-white);
    border-radius: 2px;
    transition: all var(--csg-transition);
}

.is-scrolled .csg-hamburger__line {
    background: var(--csg-dark);
}

/* ============================================
   6. Mobile Slide-In Menu
   ============================================ */
.csg-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}

.csg-mobile-menu.is-open {
    pointer-events: auto;
}

.csg-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity var(--csg-transition);
}

.csg-mobile-menu.is-open .csg-mobile-menu__overlay {
    opacity: 1;
}

.csg-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--csg-white);
    transform: translateX(100%);
    transition: transform var(--csg-transition-slow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.csg-mobile-menu.is-open .csg-mobile-menu__panel {
    transform: translateX(0);
}

.csg-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--csg-gray-200);
}

.csg-mobile-menu__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--csg-font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--csg-dark);
    text-decoration: none;
}

.csg-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--csg-light);
    border: none;
    border-radius: var(--csg-radius-sm);
    cursor: pointer;
    color: var(--csg-gray-600);
    transition: all var(--csg-transition);
}

.csg-mobile-menu__close:hover {
    background: var(--csg-gray-200);
    color: var(--csg-dark);
}

.csg-mobile-menu__nav {
    flex: 1;
    padding: 24px;
}

.csg-mobile-nav-list li {
    border-bottom: 1px solid var(--csg-gray-100);
}

.csg-mobile-nav-list li a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--csg-gray-700);
    transition: color var(--csg-transition);
}

.csg-mobile-nav-list li a:hover,
.csg-mobile-nav-list li.current-menu-item > a {
    color: var(--csg-secondary);
}

.csg-mobile-nav-list .sub-menu {
    padding-left: 16px;
}

.csg-mobile-nav-list .sub-menu li a {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
}

.csg-mobile-menu__cta {
    padding: 24px;
    border-top: 1px solid var(--csg-gray-200);
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   7. Hero Section
   ============================================ */
.csg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--csg-dark);
    overflow: hidden;
    padding: 160px 0 var(--csg-section-padding);
}

/* Dot grid background */
.csg-hero__dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(167, 139, 250, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
}

/* Gradient orbs */
.csg-hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.csg-hero__gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: var(--csg-primary);
    top: -200px;
    right: -100px;
}

.csg-hero__gradient-orb--2 {
    width: 500px;
    height: 500px;
    background: var(--csg-secondary);
    bottom: -150px;
    left: -100px;
}

.csg-hero .csg-container {
    position: relative;
    z-index: 2;
}

.csg-hero__content {
    max-width: 700px;
}

.csg-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(30, 136, 229, 0.15);
    border: 1px solid rgba(30, 136, 229, 0.25);
    border-radius: var(--csg-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--csg-accent);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.csg-hero__title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--csg-white);
    margin-bottom: 24px;
    line-height: 1.1;
}

/* Animated gradient text */
.csg-gradient-text {
    background: linear-gradient(135deg, var(--csg-accent), #D4AF37, var(--csg-secondary), var(--csg-accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: csg-gradient-shift 4s ease-in-out infinite;
}

@keyframes csg-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.csg-hero__description {
    font-size: 1.125rem;
    color: var(--csg-gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 560px;
}

.csg-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.csg-hero__actions .csg-btn--outline {
    color: var(--csg-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.csg-hero__actions .csg-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--csg-white);
    color: var(--csg-white);
}

/* ============================================
   8. Section Headers
   ============================================ */
.csg-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.csg-section__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--csg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.csg-section__title {
    margin-bottom: 16px;
}

.csg-section__subtitle {
    font-size: 1.0625rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
}

.csg-section__cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   9. Why Codeshift Global Section (Counters)
   ============================================ */
.csg-why {
    background: var(--csg-dark);
    position: relative;
}

.csg-why .csg-section__title,
.csg-why .csg-section__subtitle {
    color: var(--csg-white);
}

.csg-why .csg-section__subtitle {
    color: var(--csg-gray-400);
}

.csg-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.csg-why__stat {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--csg-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--csg-transition);
}

.csg-why__stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(30, 136, 229, 0.2);
}

.csg-why__stat-number {
    font-family: var(--csg-font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--csg-gradient-text);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: csg-gradient-shift 4s ease-in-out infinite;
    margin-bottom: 8px;
}

.csg-why__stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--csg-white);
    margin-bottom: 8px;
}

.csg-why__stat-desc {
    font-size: 0.875rem;
    color: var(--csg-gray-400);
    line-height: 1.6;
}

/* ============================================
   10. Service / Knowledge Area Cards
   ============================================ */
.csg-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.csg-service-card {
    background: var(--csg-white);
    padding: 36px 28px;
    border-radius: var(--csg-radius-lg);
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
    position: relative;
}

.csg-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12), 0 0 0 1px rgba(30, 136, 229, 0.1);
    border-color: rgba(30, 136, 229, 0.2);
}

.csg-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(11, 28, 44, 0.08), rgba(30, 136, 229, 0.08));
    border-radius: var(--csg-radius-md);
    margin-bottom: 20px;
    color: var(--csg-secondary);
}

.csg-service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.csg-service-card__desc {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.csg-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csg-secondary);
    transition: all var(--csg-transition);
}

.csg-service-card__link:hover {
    gap: 10px;
    color: var(--csg-primary);
}

/* ============================================
   11. Team Section - Hexagonal Photos
   ============================================ */
.csg-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
}

.csg-team-card {
    text-align: center;
    transition: all var(--csg-transition);
}

.csg-team-card:hover {
    transform: translateY(-4px);
}

.csg-team-card__photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.csg-team-card__hexagon {
    width: 180px;
    height: 200px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    background: var(--csg-gradient);
    position: relative;
    transition: all var(--csg-transition);
}

.csg-team-card:hover .csg-team-card__hexagon {
    filter: brightness(1.05);
    box-shadow: none;
}

.csg-team-card__hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.csg-team-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--csg-primary), var(--csg-secondary));
}

.csg-team-card__placeholder span {
    font-family: var(--csg-font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
}

.csg-team-card__name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.csg-team-card__position {
    font-size: 0.875rem;
    color: var(--csg-secondary);
    font-weight: 500;
}

/* ============================================
   12. Featured Articles Grid (Front Page)
   ============================================ */
.csg-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.csg-featured-card--hero {
    grid-row: 1 / 3;
}

.csg-featured-card {
    background: var(--csg-white);
    border-radius: var(--csg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
}

.csg-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.2);
}

.csg-featured-card--hero .csg-featured-card__image {
    height: 100%;
    min-height: 320px;
}

.csg-featured-card--hero {
    display: flex;
    flex-direction: column;
}

.csg-featured-card--hero .csg-featured-card__image {
    flex: 1;
}

.csg-featured-card__image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--csg-gray-100), var(--csg-gray-200));
}

.csg-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--csg-transition-slow);
}

.csg-featured-card:hover .csg-featured-card__image img {
    transform: scale(1.03);
}

.csg-featured-card--small .csg-featured-card__image {
    height: 160px;
}

.csg-featured-card--small {
    display: flex;
    flex-direction: row;
}

.csg-featured-card--small .csg-featured-card__image {
    width: 200px;
    min-width: 200px;
    height: auto;
}

.csg-featured-card--small .csg-featured-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.csg-featured-card__content {
    padding: 24px;
}

.csg-featured-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.csg-featured-card--hero .csg-featured-card__title {
    font-size: 1.5rem;
}

.csg-featured-card__title a {
    color: var(--csg-dark);
}

.csg-featured-card__title a:hover {
    color: var(--csg-secondary);
}

.csg-featured-card__excerpt {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ============================================
   13. Category Badge (Pill)
   ============================================ */
.csg-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--csg-gradient);
    color: var(--csg-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--csg-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
    transition: all var(--csg-transition);
    position: relative;
    z-index: 2;
}

.csg-category-badge:hover {
    color: var(--csg-white);
    box-shadow: var(--csg-shadow-glow);
    transform: translateY(-1px);
}

/* Inside image cards */
.csg-featured-card__image .csg-category-badge,
.csg-blog-card__image .csg-category-badge,
.csg-trending-card__image .csg-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.csg-category-badge--sm {
    padding: 3px 10px;
    font-size: 0.6875rem;
}

.csg-category-badge--type {
    background: var(--csg-gray-700);
    top: auto;
    bottom: 12px;
}

/* ============================================
   14. Post Meta Bar (Author, Date, Reading Time)
   ============================================ */
.csg-post-card__meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    flex-wrap: wrap;
}

.csg-post-card__meta-bar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.csg-post-card__author-name {
    font-weight: 600;
    color: var(--csg-gray-700);
}

.csg-meta-sep {
    color: var(--csg-gray-300);
    font-size: 0.625rem;
}

.csg-meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.csg-meta-reading-time svg {
    flex-shrink: 0;
}

.csg-stat-views,
.csg-stat-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.csg-stat-views svg,
.csg-stat-likes svg {
    flex-shrink: 0;
}

/* ============================================
   15. Trending Posts - Horizontal Scroll
   ============================================ */
.csg-trending {
    overflow: hidden;
}

.csg-trending__scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 max(24px, calc((100vw - var(--csg-container-width)) / 2 + 24px));
    padding-bottom: 24px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--csg-gray-300) transparent;
}

.csg-trending__scroll:active {
    cursor: grabbing;
}

.csg-trending__scroll::-webkit-scrollbar {
    height: 6px;
}

.csg-trending__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.csg-trending__scroll::-webkit-scrollbar-thumb {
    background: var(--csg-gray-300);
    border-radius: 3px;
}

.csg-trending-card {
    flex: 0 0 300px;
    max-width: 300px;
    background: var(--csg-white);
    border-radius: var(--csg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--csg-gray-200);
    scroll-snap-align: start;
    transition: all var(--csg-transition);
}

.csg-trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.15);
}

.csg-trending-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--csg-gray-100), var(--csg-gray-200));
}

.csg-trending-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--csg-transition-slow);
}

.csg-trending-card:hover .csg-trending-card__image img {
    transform: scale(1.05);
}

.csg-trending-card__content {
    padding: 16px 20px;
}

.csg-trending-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.csg-trending-card__title a {
    color: var(--csg-dark);
}

.csg-trending-card__title a:hover {
    color: var(--csg-secondary);
}

.csg-trending-card__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
}

/* ============================================
   16. Categories Explorer Grid
   ============================================ */
.csg-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.csg-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--csg-white);
    border-radius: var(--csg-radius-lg);
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
    text-decoration: none;
}

.csg-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.2);
}

.csg-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(11, 28, 44, 0.08), rgba(30, 136, 229, 0.08));
    border-radius: var(--csg-radius-md);
    color: var(--csg-secondary);
    margin-bottom: 16px;
    transition: all var(--csg-transition);
}

.csg-category-card:hover .csg-category-card__icon {
    background: var(--csg-gradient);
    color: var(--csg-white);
}

.csg-category-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--csg-dark);
    margin-bottom: 4px;
}

.csg-category-card__count {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
}

/* ============================================
   17. Magazine Grid (Latest Articles)
   ============================================ */
.csg-magazine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.csg-magazine-card--hero {
    grid-row: 1 / 3;
}

.csg-magazine-card {
    position: relative;
    border-radius: var(--csg-radius-lg);
    overflow: hidden;
    min-height: 200px;
    transition: all var(--csg-transition);
}

.csg-magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
}

.csg-magazine-card--hero {
    min-height: 440px;
}

.csg-magazine-card__image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--csg-gray-200), var(--csg-gray-300));
}

.csg-magazine-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.csg-magazine-card__image .csg-post-card__image-placeholder {
    width: 100%;
    height: 100%;
}

.csg-magazine-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}

.csg-magazine-card__content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: inherit;
}

.csg-magazine-card__content .csg-category-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.csg-magazine-card__title {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.csg-magazine-card--hero .csg-magazine-card__title {
    font-size: 1.5rem;
}

.csg-magazine-card__title a {
    color: var(--csg-white);
}

.csg-magazine-card__title a:hover {
    color: var(--csg-accent);
}

.csg-magazine-card__excerpt {
    font-size: 0.9375rem;
    color: var(--csg-gray-300);
    line-height: 1.6;
    margin-bottom: 8px;
}

.csg-magazine-card .csg-post-card__meta-bar {
    color: var(--csg-gray-400);
}

.csg-magazine-card .csg-post-card__author-name {
    color: var(--csg-gray-300);
}

.csg-magazine-card .csg-meta-sep {
    color: var(--csg-gray-600);
}

/* ============================================
   18. Newsletter Signup Section
   ============================================ */
.csg-newsletter {
    background: var(--csg-dark);
    position: relative;
    overflow: hidden;
}

.csg-newsletter__bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(30, 136, 229, 0.12) 0%, transparent 50%),
                       radial-gradient(circle at 70% 50%, rgba(11, 28, 44, 0.12) 0%, transparent 50%);
}

.csg-newsletter__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.csg-newsletter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(30, 136, 229, 0.15);
    border-radius: 50%;
    color: var(--csg-accent);
    margin-bottom: 24px;
}

.csg-newsletter__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--csg-white);
    margin-bottom: 16px;
}

.csg-newsletter__desc {
    font-size: 1.0625rem;
    color: var(--csg-gray-400);
    line-height: 1.7;
    margin-bottom: 32px;
}

.csg-newsletter__form-field {
    display: flex;
    gap: 0;
    border-radius: var(--csg-radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.csg-newsletter__form-field input[type="email"] {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--csg-white);
    font-size: 0.9375rem;
    font-family: var(--csg-font-body);
    outline: none;
    min-width: 0;
}

.csg-newsletter__form-field input[type="email"]::placeholder {
    color: var(--csg-gray-500);
}

.csg-newsletter__form-field .csg-btn {
    border-radius: var(--csg-radius-full);
    flex-shrink: 0;
}

.csg-newsletter__note {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    margin-top: 16px;
}

/* ============================================
   19. Tags Cloud
   ============================================ */
.csg-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.csg-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--csg-white);
    border: 1px solid var(--csg-gray-200);
    border-radius: var(--csg-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csg-gray-600);
    transition: all var(--csg-transition);
    text-decoration: none;
}

.csg-tag-pill:hover {
    background: var(--csg-secondary);
    color: var(--csg-white);
    border-color: var(--csg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--csg-shadow-glow);
}

.csg-tag-pill__count {
    font-size: 0.75rem;
    background: var(--csg-gray-100);
    padding: 1px 8px;
    border-radius: var(--csg-radius-full);
    color: var(--csg-gray-500);
    font-weight: 600;
}

.csg-tag-pill:hover .csg-tag-pill__count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--csg-white);
}

.csg-tag-pill--sm {
    padding: 4px 12px;
    font-size: 0.8125rem;
}

/* ============================================
   20. Testimonials - Horizontal Scroll
   ============================================ */
.csg-testimonials {
    background: var(--csg-gray-100);
    overflow: hidden;
}

.csg-testimonials__carousel {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 max(24px, calc((100vw - var(--csg-container-width)) / 2 + 24px));
    padding-bottom: 24px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--csg-gray-300) transparent;
}

.csg-testimonials__carousel:active {
    cursor: grabbing;
}

.csg-testimonials__carousel::-webkit-scrollbar {
    height: 6px;
}

.csg-testimonials__carousel::-webkit-scrollbar-track {
    background: transparent;
}

.csg-testimonials__carousel::-webkit-scrollbar-thumb {
    background: var(--csg-gray-300);
    border-radius: 3px;
}

.csg-testimonial-card {
    flex: 0 0 380px;
    max-width: 380px;
    background: var(--csg-white);
    padding: 36px;
    border-radius: var(--csg-radius-lg);
    border: 1px solid var(--csg-gray-200);
    scroll-snap-align: start;
    transition: all var(--csg-transition);
}

.csg-testimonial-card:hover {
    box-shadow: var(--csg-shadow-md);
    border-color: rgba(30, 136, 229, 0.15);
}

.csg-testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.csg-testimonial-card__text {
    font-size: 0.9375rem;
    color: var(--csg-gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: normal;
}

.csg-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csg-testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--csg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csg-testimonial-card__avatar span {
    color: var(--csg-white);
    font-weight: 700;
    font-size: 1rem;
}

.csg-testimonial-card__name {
    font-size: 0.9375rem;
    color: var(--csg-dark);
    display: block;
}

.csg-testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    margin: 0;
}

/* ============================================
   21. Blog Layout (Index / Archive)
   ============================================ */
.csg-blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 60px 0;
}

.csg-blog-layout__sidebar {
    position: sticky;
    top: calc(var(--csg-header-height) + 24px);
    align-self: start;
}

.csg-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.csg-blog-card--featured {
    grid-column: 1 / -1;
}

.csg-blog-card {
    background: var(--csg-white);
    border-radius: var(--csg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
}

.csg-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.15);
}

.csg-blog-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.csg-blog-card__image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--csg-gray-100), var(--csg-gray-200));
}

.csg-blog-card:not(.csg-blog-card--featured) .csg-blog-card__image {
    aspect-ratio: 16/10;
}

.csg-blog-card--featured .csg-blog-card__image {
    min-height: 280px;
}

.csg-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--csg-transition-slow);
}

.csg-blog-card:hover .csg-blog-card__image img {
    transform: scale(1.03);
}

.csg-blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.csg-blog-card--featured .csg-blog-card__content {
    padding: 32px;
}

.csg-blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.csg-blog-card--featured .csg-blog-card__title {
    font-size: 1.5rem;
}

.csg-blog-card__title a {
    color: var(--csg-dark);
}

.csg-blog-card__title a:hover {
    color: var(--csg-secondary);
}

.csg-blog-card__excerpt {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Sidebar widgets */
.csg-sidebar-widget {
    background: var(--csg-white);
    border: 1px solid var(--csg-gray-200);
    border-radius: var(--csg-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.csg-sidebar-widget .widget-title {
    border-bottom-color: var(--csg-gray-200);
}

/* ============================================
   22. Blog Post Cards (existing compat)
   ============================================ */
.csg-blog-preview__grid,
.csg-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.csg-post-card {
    background: var(--csg-white);
    border-radius: var(--csg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
}

.csg-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--csg-shadow-md);
}

.csg-post-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--csg-gray-100);
}

.csg-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--csg-transition-slow);
}

.csg-post-card:hover .csg-post-card__image img {
    transform: scale(1.03);
}

.csg-post-card__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, var(--csg-gray-100), var(--csg-gray-200));
}

.csg-post-card__content {
    padding: 24px;
}

.csg-post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    margin-bottom: 12px;
}

.csg-post-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.csg-post-card__title a {
    color: var(--csg-dark);
}

.csg-post-card__title a:hover {
    color: var(--csg-secondary);
}

.csg-post-card__excerpt {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ============================================
   23. CTA Section
   ============================================ */
.csg-cta {
    background: var(--csg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.csg-cta__bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
                       radial-gradient(circle at 80% 50%, rgba(11, 28, 44, 0.15) 0%, transparent 50%);
}

.csg-cta .csg-container {
    position: relative;
    z-index: 1;
}

.csg-cta__content {
    max-width: 640px;
    margin: 0 auto;
}

.csg-cta__title {
    color: var(--csg-white);
    margin-bottom: 20px;
}

.csg-cta__desc {
    font-size: 1.0625rem;
    color: var(--csg-gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.csg-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   24. Footer
   ============================================ */
.csg-footer {
    background: var(--csg-dark);
    color: var(--csg-gray-400);
}

.csg-footer__gradient-border {
    height: 3px;
    background: linear-gradient(135deg, var(--csg-primary), var(--csg-secondary), var(--csg-accent));
}

.csg-footer__main {
    padding: 80px 0 40px;
}

.csg-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 60px;
}

.csg-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--csg-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--csg-white);
    text-decoration: none;
    margin-bottom: 16px;
}

.csg-footer__logo-img {
    max-height: 40px;
    width: auto;
    height: auto;
}

.csg-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.csg-footer__social {
    display: flex;
    gap: 12px;
}

.csg-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--csg-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--csg-gray-400);
    transition: all var(--csg-transition);
}

.csg-footer__social-link:hover {
    background: var(--csg-secondary);
    color: var(--csg-white);
}

.csg-social-icon {
    width: 18px;
    height: 18px;
    display: block;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.csg-social-icon--facebook {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.csg-social-icon--twitter {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.csg-social-icon--linkedin {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.csg-social-icon--instagram {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
}

/* Footer navigation columns */
.csg-footer__col--nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.csg-footer__heading {
    font-family: var(--csg-font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--csg-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.csg-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csg-footer__menu li a {
    font-size: 0.9375rem;
    color: var(--csg-gray-400);
    transition: all var(--csg-transition);
}

.csg-footer__menu li a:hover {
    color: var(--csg-white);
    padding-left: 4px;
}

/* Footer contact */
.csg-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.csg-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
}

.csg-footer__contact-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--csg-accent);
}

.csg-footer__contact-list li a {
    color: var(--csg-gray-400);
}

.csg-footer__contact-list li a:hover {
    color: var(--csg-white);
}

/* Newsletter */
.csg-footer__newsletter p {
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.csg-newsletter-form__field {
    display: flex;
    gap: 0;
    border-radius: var(--csg-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csg-newsletter-form__field input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--csg-white);
    font-size: 0.875rem;
    font-family: var(--csg-font-body);
    outline: none;
}

.csg-newsletter-form__field input::placeholder {
    color: var(--csg-gray-500);
}

.csg-newsletter-form__field .csg-btn {
    border-radius: 0;
    padding: 10px 14px;
}

/* CF7 in footer newsletter */
.csg-footer__newsletter .wpcf7 form {
    margin: 0;
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--csg-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter p {
    margin: 0;
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter p:first-child {
    flex: 1;
    min-width: 0;
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter p:last-child {
    flex-shrink: 0;
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter label {
    display: block;
    width: 100%;
}

.csg-footer__newsletter .wpcf7 .csg-cf7-newsletter .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.csg-footer__newsletter .wpcf7 input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--csg-white);
    font-size: 0.875rem;
    font-family: var(--csg-font-body);
    outline: none;
    box-sizing: border-box;
}

.csg-footer__newsletter .wpcf7 input[type="email"]::placeholder {
    color: var(--csg-gray-500);
}

.csg-footer__newsletter .wpcf7 input[type="submit"] {
    height: 100%;
    padding: 10px 14px;
    border: none;
    background: var(--csg-accent, #D4AF37);
    color: var(--csg-white, #fff);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.csg-footer__newsletter .wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}

.csg-footer__newsletter .wpcf7-response-output {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.8125rem;
    margin: 8px 0 0 !important;
}

@media (max-width: 480px) {
    .csg-footer__newsletter .wpcf7 .csg-cf7-newsletter {
        flex-direction: column;
        gap: 8px;
        border: none;
        overflow: visible;
    }

    .csg-footer__newsletter .wpcf7 input[type="email"] {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--csg-radius-sm);
    }

    .csg-footer__newsletter .wpcf7 input[type="submit"] {
        width: 100%;
        border-radius: var(--csg-radius-sm);
    }
}

/* Footer bottom */
.csg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.csg-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.csg-footer__copyright {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
}

.csg-footer__bottom-links {
    display: flex;
    gap: 24px;
}

.csg-footer__bottom-links a {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
}

.csg-footer__bottom-links a:hover {
    color: var(--csg-white);
}

/* ============================================
   25. Single Post - Reading Experience
   ============================================ */
.csg-single__hero {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.csg-single__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.csg-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(15, 23, 42, 0.4));
}

/* Breadcrumb */
.csg-single__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    padding: 24px 0 0;
}

.csg-single__breadcrumb a {
    color: var(--csg-gray-500);
}

.csg-single__breadcrumb a:hover {
    color: var(--csg-secondary);
}

.csg-breadcrumb-sep {
    color: var(--csg-gray-300);
}

/* Category badges */
.csg-single__categories-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.csg-single__header {
    padding: 24px 0 40px;
}

.csg-single__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--csg-gray-500);
    margin-bottom: 16px;
}

.csg-single__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 24px;
    line-height: 1.15;
}

/* Meta bar */
.csg-single__meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--csg-gray-200);
    border-bottom: 1px solid var(--csg-gray-200);
}

.csg-single__author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csg-single__author-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.csg-single__author-name {
    display: block;
    font-size: 0.9375rem;
    color: var(--csg-dark);
}

.csg-single__meta-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    flex-wrap: wrap;
}

/* Content - optimized for reading */
.csg-single__content {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: 40px 0;
    max-width: 720px;
    margin: 0 auto;
}

.csg-single__content p {
    margin-bottom: 1.5em;
}

.csg-single__content h2,
.csg-single__content h3,
.csg-single__content h4 {
    margin: 2em 0 0.75em;
}

.csg-single__content img {
    border-radius: var(--csg-radius-md);
    margin: 2em 0;
}

.csg-single__content blockquote {
    border-left: 3px solid var(--csg-secondary);
    padding: 16px 24px;
    margin: 2em 0;
    background: var(--csg-gray-100);
    border-radius: 0 var(--csg-radius-sm) var(--csg-radius-sm) 0;
    font-style: italic;
    color: var(--csg-gray-600);
}

.csg-single__content ul,
.csg-single__content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.csg-single__content ul {
    list-style: disc;
}

.csg-single__content ol {
    list-style: decimal;
}

.csg-single__content li {
    margin-bottom: 0.5em;
}

.csg-single__content pre {
    background: var(--csg-dark);
    color: var(--csg-gray-300);
    padding: 24px;
    border-radius: var(--csg-radius-md);
    overflow-x: auto;
    margin: 2em 0;
    font-size: 0.875rem;
}

.csg-single__content code {
    background: var(--csg-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.csg-single__content pre code {
    background: none;
    padding: 0;
}

/* Share Buttons */
.csg-single__share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--csg-gray-200);
}

.csg-single__share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csg-gray-600);
}

.csg-single__share-buttons {
    display: flex;
    gap: 8px;
}

.csg-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--csg-radius-sm);
    border: 1px solid var(--csg-gray-200);
    background: var(--csg-white);
    color: var(--csg-gray-600);
    cursor: pointer;
    transition: all var(--csg-transition);
    position: relative;
}

.csg-share-btn:hover {
    border-color: var(--csg-secondary);
    color: var(--csg-secondary);
    transform: translateY(-2px);
}

.csg-share-btn--twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.csg-share-btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.csg-share-btn--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }

.csg-share-btn__tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--csg-dark);
    color: var(--csg-white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--csg-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--csg-transition);
    pointer-events: none;
}

.csg-share-btn__tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Like Button */
.csg-single__like-section {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.csg-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--csg-white);
    border: 2px solid var(--csg-gray-200);
    border-radius: var(--csg-radius-full);
    cursor: pointer;
    transition: all var(--csg-transition);
    font-family: var(--csg-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--csg-gray-600);
}

.csg-like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
}

.csg-like-btn.is-liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.csg-like-btn.is-liked .csg-like-btn__icon {
    fill: #ef4444;
    stroke: #ef4444;
}

.csg-like-btn.is-animating {
    animation: csg-like-pulse 0.4s ease-in-out;
}

@keyframes csg-like-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Tags on single */
.csg-single__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-bottom: 1px solid var(--csg-gray-200);
}

.csg-single__tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csg-gray-600);
}

/* Author Bio */
.csg-single__author-bio {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--csg-gray-100);
    border-radius: var(--csg-radius-lg);
    margin: 40px 0;
    border: 1px solid var(--csg-gray-200);
}

.csg-single__author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.csg-single__author-bio-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--csg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.csg-single__author-bio-name {
    font-size: 1.25rem;
    margin: 4px 0 8px;
}

.csg-single__author-bio-name a {
    color: var(--csg-dark);
}

.csg-single__author-bio-name a:hover {
    color: var(--csg-secondary);
}

.csg-single__author-bio-desc {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Related Posts */
.csg-single__related {
    padding: 40px 0;
    border-top: 1px solid var(--csg-gray-200);
}

.csg-single__related-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.csg-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.csg-single__related-grid .csg-post-card__content {
    padding: 16px;
}

.csg-single__related-grid .csg-post-card__title {
    font-size: 0.9375rem;
}

/* Post Navigation */
.csg-single__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid var(--csg-gray-200);
}

.csg-single__nav-link {
    padding: 20px;
    background: var(--csg-gray-100);
    border-radius: var(--csg-radius-md);
    transition: all var(--csg-transition);
}

.csg-single__nav-link:hover {
    background: var(--csg-gray-200);
}

.csg-single__nav-link span {
    display: block;
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    margin-bottom: 4px;
}

.csg-single__nav-link strong {
    font-size: 0.9375rem;
    color: var(--csg-dark);
}

.csg-single__nav-link--next {
    text-align: right;
}

/* ============================================
   26. Page Template
   ============================================ */
.csg-page__header {
    background: var(--csg-dark);
    padding: 80px 0 60px;
    text-align: center;
}

.csg-page__title {
    color: var(--csg-white);
}

.csg-page__content {
    padding: 60px 0;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.csg-page__content p {
    margin-bottom: 1.5em;
}

/* ============================================
   27. Archive
   ============================================ */
.csg-archive__header {
    background: var(--csg-dark);
    padding: 80px 0 60px;
    text-align: center;
}

.csg-archive__title {
    color: var(--csg-white);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.csg-archive__title span {
    color: var(--csg-accent);
}

.csg-archive__desc {
    color: var(--csg-gray-400);
    max-width: 600px;
    margin: 12px auto 0;
}

.csg-archive__search-again {
    max-width: 480px;
    margin: 24px auto 0;
}

.csg-archive__search-again .search-form {
    display: flex;
    border-radius: var(--csg-radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.csg-archive__search-again .search-field {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--csg-white);
    font-family: var(--csg-font-body);
    font-size: 0.9375rem;
    outline: none;
}

.csg-archive__search-again .search-submit {
    padding: 12px 24px;
    background: var(--csg-gradient);
    color: var(--csg-white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--csg-font-body);
}

.csg-search-count {
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    padding: 24px 0 0;
}

.csg-pagination {
    padding: 60px 0 40px;
    text-align: center;
}

.csg-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.csg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--csg-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csg-gray-600);
    background: var(--csg-white);
    border: 1px solid var(--csg-gray-200);
    transition: all var(--csg-transition);
}

.csg-pagination .page-numbers:hover {
    border-color: var(--csg-secondary);
    color: var(--csg-secondary);
}

.csg-pagination .page-numbers.current {
    background: var(--csg-gradient);
    color: var(--csg-white);
    border-color: transparent;
}

/* ============================================
   28. 404 Page
   ============================================ */
.csg-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--csg-dark);
}

.csg-404__content {
    max-width: 500px;
    margin: 0 auto;
}

.csg-404__code {
    font-family: var(--csg-font-heading);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}

.csg-404__title {
    color: var(--csg-white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.csg-404__desc {
    color: var(--csg-gray-400);
    margin-bottom: 32px;
}

.csg-404__actions {
    margin-bottom: 40px;
}

.csg-404__search {
    max-width: 400px;
    margin: 0 auto;
}

.csg-404__search .search-form {
    display: flex;
    border-radius: var(--csg-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csg-404__search .search-field {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--csg-white);
    font-family: var(--csg-font-body);
    font-size: 0.9375rem;
    outline: none;
}

.csg-404__search .search-submit {
    padding: 12px 20px;
    background: var(--csg-gradient);
    color: var(--csg-white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--csg-font-body);
}

/* ============================================
   29. No Results
   ============================================ */
.csg-no-results {
    text-align: center;
    padding: 80px 0;
}

.csg-no-results__icon {
    color: var(--csg-gray-300);
    margin-bottom: 24px;
}

.csg-no-results h2 {
    margin-bottom: 12px;
}

.csg-no-results p {
    color: var(--csg-gray-500);
    margin-bottom: 24px;
}

.csg-no-results__search {
    max-width: 400px;
    margin: 0 auto 24px;
}

.csg-no-results__suggestion {
    margin-top: 16px;
}

/* ============================================
   30. Comments - Styled
   ============================================ */
.csg-comments {
    padding: 40px 0;
    border-top: 1px solid var(--csg-gray-200);
}

.csg-comments__title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csg-comments__title svg {
    color: var(--csg-secondary);
}

.csg-comments__list {
    margin-bottom: 40px;
}

.csg-comments__list li {
    list-style: none;
}

.csg-comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--csg-gray-100);
}

.csg-comment__body {
    display: flex;
    gap: 16px;
}

.csg-comment__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.csg-comment__main {
    flex: 1;
    min-width: 0;
}

.csg-comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.csg-comment__author a {
    color: var(--csg-dark);
    font-weight: 700;
    font-size: 0.9375rem;
}

.csg-comment__date {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
}

.csg-comment__awaiting {
    font-size: 0.875rem;
    color: var(--csg-accent);
    font-style: italic;
    margin-bottom: 8px;
}

.csg-comment__content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--csg-gray-600);
}

.csg-comment__content p {
    margin-bottom: 0.75em;
}

.csg-comment__content p:last-child {
    margin-bottom: 0;
}

.csg-comment__actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.csg-comment__reply a,
.csg-comment__edit a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--csg-secondary);
}

.csg-comment__reply a:hover,
.csg-comment__edit a:hover {
    color: var(--csg-primary);
}

.csg-comments__closed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--csg-gray-500);
    padding: 16px;
    background: var(--csg-gray-100);
    border-radius: var(--csg-radius-sm);
}

.csg-comments__nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
}

/* Comment form */
.csg-comment-form__title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csg-comment-form__title svg {
    color: var(--csg-secondary);
}

.csg-comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--csg-gray-700);
}

.csg-comment-form__field {
    margin-bottom: 20px;
}

.csg-comment-form input[type="text"],
.csg-comment-form input[type="email"],
.csg-comment-form input[type="url"],
.csg-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--csg-gray-200);
    border-radius: var(--csg-radius-sm);
    font-family: var(--csg-font-body);
    font-size: 0.9375rem;
    transition: border-color var(--csg-transition);
    outline: none;
    background: var(--csg-white);
}

.csg-comment-form input:focus,
.csg-comment-form textarea:focus {
    border-color: var(--csg-secondary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.csg-comment-form .form-submit {
    margin-top: 16px;
}

.csg-comment-form .form-submit input {
    background: var(--csg-gradient);
    color: var(--csg-white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--csg-radius-full);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--csg-font-body);
    transition: all var(--csg-transition);
}

.csg-comment-form .form-submit input:hover {
    transform: translateY(-2px);
    box-shadow: var(--csg-shadow-glow);
}

.csg-comment-form__note {
    font-size: 0.8125rem;
    color: var(--csg-gray-500);
    margin-top: 12px;
}

/* ============================================
   31. Widget Styles
   ============================================ */
.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--csg-gray-200);
}

/* ============================================
   32. Scroll Reveal
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   33. Responsive
   ============================================ */

/* 1440px+ */
@media (min-width: 1440px) {
    :root {
        --csg-container-width: 1320px;
    }
}

/* 1025px+ - Desktop */
@media (min-width: 1025px) {
    .csg-header__nav {
        display: block;
    }

    .csg-header__cta {
        display: inline-flex !important;
    }

    .csg-header__menu-toggle {
        display: none;
    }
}

/* Up to 1024px - Tablet */
@media (max-width: 1024px) {
    :root {
        --csg-section-padding: 80px;
    }

    .csg-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csg-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .csg-footer__col--brand {
        grid-column: 1 / -1;
    }

    .csg-blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .csg-blog-layout__sidebar {
        position: static;
    }

    .csg-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csg-blog-card--featured {
        grid-template-columns: 1fr;
    }

    .csg-single__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Up to 768px - Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --csg-section-padding: 64px;
        --csg-header-height: 60px;
    }

    .csg-header__brand .custom-logo {
        max-height: 36px;
    }

    .csg-hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .csg-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .csg-services__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .csg-team__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }

    .csg-team-card__hexagon {
        width: 140px;
        height: 156px;
    }

    .csg-blog-preview__grid,
    .csg-posts-grid {
        grid-template-columns: 1fr;
    }

    .csg-testimonial-card {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .csg-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .csg-footer__col--nav {
        grid-template-columns: 1fr 1fr;
    }

    .csg-single__nav {
        grid-template-columns: 1fr;
    }

    .csg-single__hero {
        height: 320px;
    }

    /* Featured grid stacks */
    .csg-featured-grid {
        grid-template-columns: 1fr;
    }

    .csg-featured-card--hero {
        grid-row: auto;
    }

    .csg-featured-card--small {
        flex-direction: row;
    }

    .csg-featured-card--small .csg-featured-card__image {
        width: 140px;
        min-width: 140px;
    }

    /* Magazine grid stacks */
    .csg-magazine-grid {
        grid-template-columns: 1fr;
    }

    .csg-magazine-card--hero {
        grid-row: auto;
        min-height: 300px;
    }

    .csg-magazine-card:not(.csg-magazine-card--hero) {
        min-height: 200px;
    }

    /* Categories */
    .csg-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Blog grid */
    .csg-blog-grid {
        grid-template-columns: 1fr;
    }

    .csg-blog-card--featured {
        grid-template-columns: 1fr;
    }

    /* Related posts */
    .csg-single__related-grid {
        grid-template-columns: 1fr;
    }

    /* Author bio */
    .csg-single__author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Share */
    .csg-single__share {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Trending cards */
    .csg-trending-card {
        flex: 0 0 260px;
        max-width: 260px;
    }

    /* Newsletter form */
    .csg-newsletter__form-field {
        flex-direction: column;
        border-radius: var(--csg-radius-md);
    }

    .csg-newsletter__form-field input[type="email"] {
        border-radius: var(--csg-radius-md) var(--csg-radius-md) 0 0;
        text-align: center;
    }

    .csg-newsletter__form-field .csg-btn {
        border-radius: 0 0 var(--csg-radius-md) var(--csg-radius-md);
        justify-content: center;
    }
}

/* Up to 480px - Mobile */
@media (max-width: 480px) {
    :root {
        --csg-section-padding: 52px;
        --csg-container-padding: 16px;
    }

    .csg-hero__actions {
        flex-direction: column;
    }

    .csg-hero__actions .csg-btn {
        width: 100%;
        justify-content: center;
    }

    .csg-why__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .csg-why__stat {
        padding: 28px 20px;
    }

    .csg-services__grid {
        grid-template-columns: 1fr;
    }

    .csg-team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .csg-team-card__hexagon {
        width: 120px;
        height: 134px;
    }

    .csg-cta__actions {
        flex-direction: column;
    }

    .csg-cta__actions .csg-btn {
        width: 100%;
        justify-content: center;
    }

    .csg-footer__col--nav {
        grid-template-columns: 1fr;
    }

    .csg-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .csg-footer__bottom-links {
        justify-content: center;
    }

    .csg-testimonial-card {
        flex: 0 0 260px;
        max-width: 260px;
        padding: 24px;
    }

    /* Featured card small stack fully */
    .csg-featured-card--small {
        flex-direction: column;
    }

    .csg-featured-card--small .csg-featured-card__image {
        width: 100%;
        min-width: auto;
        height: 160px;
    }

    /* Categories */
    .csg-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .csg-category-card {
        padding: 20px 12px;
    }

    /* Tags cloud */
    .csg-tags-cloud {
        gap: 8px;
    }

    .csg-tag-pill {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }

    /* Single post */
    .csg-single__hero {
        height: 240px;
    }

    .csg-single__meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .csg-single__content {
        font-size: 1rem;
    }

    /* Trending cards */
    .csg-trending-card {
        flex: 0 0 240px;
        max-width: 240px;
    }
}

/* ============================================
   34. Print Styles
   ============================================ */
@media print {
    .csg-header,
    .csg-mobile-menu,
    .csg-footer,
    .csg-hero__dot-grid,
    .csg-hero__gradient-orb,
    .csg-single__share,
    .csg-single__like-section,
    .csg-like-btn,
    .csg-share-btn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .csg-main-content {
        padding-top: 0;
    }

    .csg-single__content {
        font-size: 12pt;
        max-width: 100%;
    }
}
