  /* ==========================================================================
    DESIGN SYSTEM & VARIABLES
    ========================================================================== */

  :root {
    /* Font Families */
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Type Scale */
    --text-xs:   0.75rem;    /* 12px — badges, tags, micro-labels */
    --text-sm:   0.8125rem;  /* 13px — secondary text, captions */
    --text-nav:  0.85rem;    /* 13.6px — nav links, UI labels, buttons */
    --text-base: 0.9rem;     /* 14.4px — body descriptions */
    --text-md:   1rem;       /* 16px — prominent body, subtitles */
    --text-lg:   1.25rem;    /* 20px — card titles, logo text */
    --text-xl:   1.75rem;    /* 28px — article/card headings */
    --text-2xl:  2.25rem;    /* 36px — section titles */
    --text-hero: 3.5rem;     /* 56px — hero title desktop */

    /* Border Radii */
    --radius-lg: 12px;
    --radius-md: 6px;
    --radius-sm: 4px;
    --radius-btn: 6px;

    /* Timing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-speed: 0.25s;
    --navbar-transition-speed: 0.25s;
    --transition: all var(--transition-speed) var(--ease-in-out);
    --navbar-transition: background-color var(--navbar-transition-speed) var(--ease-in-out),
      border-color var(--navbar-transition-speed) var(--ease-in-out),
      box-shadow var(--navbar-transition-speed) var(--ease-in-out),
      top var(--navbar-transition-speed) var(--ease-in-out),
      border-radius var(--navbar-transition-speed) var(--ease-in-out);
    --navbar-color-transition: color var(--navbar-transition-speed) var(--ease-in-out);

    /* Semantic Color Tokens */
    --color-error: hsl(0, 72%, 51%);
    --color-success: hsl(142, 71%, 45%);

    /* Light Theme Color Tokens */
    --bg: hsl(0, 0%, 100%);
    --bg-rgb: 255, 255, 255;
    --bg-alt: hsl(0, 0%, 97%);
    --foreground: hsl(0, 0%, 8%);
    --foreground-muted: hsl(0, 0%, 40%);
    --primary: hsl(358, 96%, 22%); /* SWU Maroon */
    --primary-rgb: 110, 2, 8;
    --primary-hover: hsl(358, 96%, 15%);
    --accent: hsl(45, 90%, 45%); /* PHINMA Gold */
    --border: rgba(0, 0, 0, 0.08);
    --border-focus: hsl(358, 96%, 22%);
    --navbar-bg: rgba(255, 255, 255, 0.82);
    --navbar-bg-hero: rgba(255, 255, 255, 0.42);
    --navbar-border-hero: rgba(255, 255, 255, 0.35);
    --navbar-text-hero: #ffffff;
    --navbar-text-hero-muted: rgba(255, 255, 255, 0.88);
    --card-bg: hsl(0, 0%, 100%);
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
    --input-bg: hsl(0, 0%, 97%);
    --input-text: hsl(0, 0%, 8%);
    --badge-bg: rgba(255, 255, 255, 0.9);
    --badge-text: hsl(0, 0%, 8%);
    --bg-watermark: rgba(0, 0, 0, 0.04);
  }

  /* Dark Theme Override */
  html[data-theme="dark"] {
    --bg: hsl(20, 10%, 4%);
    --bg-rgb: 16, 14, 13;
    --bg-alt: hsl(20, 10%, 7%);
    --foreground: hsl(0, 0%, 92%);
    --foreground-muted: hsl(0, 0%, 65%);
    --primary: hsl(358, 90%, 35%); /* SWU Maroon (Brightened) */
    --primary-rgb: 169, 9, 18;
    --primary-hover: hsl(358, 90%, 42%);
    --accent: hsl(45, 95%, 55%); /* PHINMA Gold */
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: hsl(358, 90%, 35%);
    --navbar-bg: rgba(16, 14, 13, 0.88);
    --navbar-bg-hero: rgba(10, 8, 8, 0.52);
    --navbar-border-hero: rgba(255, 255, 255, 0.14);
    --navbar-text-hero: #ffffff;
    --navbar-text-hero-muted: rgba(255, 255, 255, 0.9);
    --card-bg: hsl(20, 10%, 8%);
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.5);
    --input-bg: hsl(20, 10%, 10%);
    --input-text: hsl(0, 0%, 92%);
    --badge-bg: rgba(20, 10%, 8%, 0.85);
    --badge-text: hsl(0, 0%, 92%);
    --bg-watermark: rgba(255, 255, 255, 0.03);
  }

  /* ==========================================================================
    RESET & GLOBAL STYLES
    ========================================================================== */

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

  /* Applied during theme switch to make all colors change instantly */
  html.theme-switching,
  html.theme-switching * {
    transition: none !important;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 65px; /* Offset for sticky navbar */
    background-color: var(--bg);
  }

  .navbar,
  .service-card,
  .work-card,
  .contact-form-wrapper,
  .footer,
  .form-input,
  .theme-toggle-btn,
  .mobile-menu-btn,
  .social-pill,
  .value-card,
  .category-article {
    transition:
      background-color 0.18s ease,
      color 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
      background-color 0.18s ease,
      color 0.18s ease;
    will-change: background-color, color;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
  }

  .font-headline {
    font-family: var(--font-serif);
  }

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

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

  /* ==========================================================================
    SKIP TO CONTENT (ACCESSIBILITY)
    ========================================================================== */

  .skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    background-color: var(--primary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-btn);
    z-index: 9999;
    transition: top 0.2s ease;
  }

  .skip-to-content:focus {
    top: 1rem;
  }

  /* ==========================================================================
    NAVBAR (HEADER)
    ========================================================================== */

  .navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1000px;
    z-index: 1000;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    background-color: var(--navbar-bg);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: var(--navbar-transition);
  }

  /* Uniform glass over hero (homepage top) */
  .navbar:not(.scrolled):not(.mobile-menu-open) {
    background-color: var(--navbar-bg-hero);
    border-color: var(--navbar-border-hero);
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.2),
      0 1px 0 rgba(255, 255, 255, 0.06) inset;
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .logo-text,
  .navbar:not(.scrolled):not(.mobile-menu-open) .nav-link,
  .navbar:not(.scrolled):not(.mobile-menu-open) .theme-toggle-btn,
  .navbar:not(.scrolled):not(.mobile-menu-open) .mobile-menu-btn {
    color: var(--navbar-text-hero);
    transition: var(--navbar-color-transition),
      background-color var(--navbar-transition-speed) var(--ease-in-out),
      border-color var(--navbar-transition-speed) var(--ease-in-out);
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .nav-link {
    color: var(--navbar-text-hero-muted);
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .nav-link:hover,
  .navbar:not(.scrolled):not(.mobile-menu-open) .nav-link.active {
    color: var(--navbar-text-hero);
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .nav-link.active::after {
    background-color: var(--accent);
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .theme-toggle-btn,
  .navbar:not(.scrolled):not(.mobile-menu-open) .mobile-menu-btn {
    border-color: var(--navbar-border-hero);
  }

  .navbar:not(.scrolled):not(.mobile-menu-open) .theme-toggle-btn:hover,
  .navbar:not(.scrolled):not(.mobile-menu-open) .mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
  }

  /* Scroll capsule updates */
  .navbar.scrolled {
    top: 0.5rem;
    background-color: var(--navbar-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--primary-rgb), 0.15);
  }

  .navbar.mobile-menu-open {
    border-radius: 24px;
    background-color: var(--navbar-bg);
    border-color: var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  .navbar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
  }

  .navbar .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .navbar a {
    transition: var(--navbar-color-transition),
      background-color var(--navbar-transition-speed) var(--ease-in-out),
      border-color var(--navbar-transition-speed) var(--ease-in-out),
      padding-left var(--navbar-transition-speed) var(--ease-in-out);
  }

  .navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    transition: var(--navbar-color-transition);
  }

  .logo-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
  }

  .logo-text {
    font-weight: 800;
    transition: var(--navbar-color-transition);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: var(--text-nav);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--foreground-muted);
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--navbar-transition-speed) var(--ease-in-out);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  /* Theme Toggle Button */
  .theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: var(--navbar-color-transition),
      background-color var(--navbar-transition-speed) var(--ease-in-out),
      border-color var(--navbar-transition-speed) var(--ease-in-out),
      transform var(--navbar-transition-speed) var(--ease-in-out);
    outline: none;
  }

  .theme-toggle-btn:hover {
    background-color: var(--bg-alt);
    border-color: var(--foreground-muted);
    transform: scale(1.05);
  }

  /* Control Icon Visibility based on active data-theme */
  html[data-theme="light"] .sun-icon {
    display: none;
  }

  html[data-theme="dark"] .moon-icon {
    display: none;
  }

  /* Mobile Hamburger Button */
  .mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--navbar-color-transition),
      background-color var(--navbar-transition-speed) var(--ease-in-out);
    outline: none;
  }

  .mobile-menu-btn:hover {
    background-color: var(--bg-alt);
  }

  .menu-close-icon {
    display: none;
  }

  /* Mobile Dropdown */
  .mobile-dropdown {
    display: none;
    background-color: transparent;
    padding: 0 2rem 2rem 2rem;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .mobile-nav-link {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--primary);
    padding-left: 0.5rem;
  }

  /* Active class toggles via JS */
  .navbar.mobile-menu-open .menu-open-icon {
    display: none;
  }

  .navbar.mobile-menu-open .menu-close-icon {
    display: block;
  }

  .navbar.mobile-menu-open .mobile-dropdown {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  /* ==========================================================================
    HERO SECTION
    ========================================================================== */

  .hero-section {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 530px;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 65px; /* Offset to clear fixed header */
    margin-bottom: -5rem;
    z-index: 1;
  }

  .hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.38) 12%,
      rgba(0, 0, 0, 0.18) 22%,
      rgba(0, 0, 0, 0.06) 30%,
      rgba(0, 0, 0, 0) 36%,
      rgba(var(--bg-rgb), 0.08) 45%,
      rgba(var(--bg-rgb), 0.18) 55%,
      rgba(var(--bg-rgb), 0.35) 65%,
      rgba(var(--bg-rgb), 0.58) 75%,
      rgba(var(--bg-rgb), 0.82) 88%,
      var(--bg) 100%
    );

    will-change: opacity;
  }

  /* Dark mode: stronger fade using the actual dark background color */
  html[data-theme="dark"] .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.42) 12%,
      rgba(0, 0, 0, 0.20) 22%,
      rgba(0, 0, 0, 0.06) 30%,
      rgba(0, 0, 0, 0) 36%,
      rgba(var(--bg-rgb), 0.12) 48%,
      rgba(var(--bg-rgb), 0.35) 58%,
      rgba(var(--bg-rgb), 0.62) 68%,
      rgba(var(--bg-rgb), 0.85) 80%,
      rgba(var(--bg-rgb), 0.97) 92%,
      var(--bg) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: #ffffff;
  }

  .hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: var(--card-shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 4px solid rgba(255, 255, 255, 0.35);
    transition: var(--transition);
  }

  .hero-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent);
  }

  .avatar-letter {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
  }

  .hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: capitalize;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  }

  .hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Buttons and Pills */
  .btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
  }

  .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .social-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .social-pill {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
  }

  .social-pill:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1);
  }

  /* ==========================================================================
    CONTENT LAYOUT & SECTION HEADERS
    ========================================================================== */

  .content-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 2rem 10rem 2rem;
  }

  /* Spacing between sections */
  section {
    padding: 6rem 0;
  }

  .section-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--border);
  }

  /* Huge watermarked text in the background */
  .bg-section-title {
    position: absolute;
    left: 120px;
    bottom: -0.65rem;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--bg-watermark);
    line-height: 0.8;
    pointer-events: none;
    font-family: var(--font-sans);
    text-transform: none; /* Keep mixed-case for names like 'Services' */
  }

  .section-title {
    font-family: var(--font-sans);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--foreground);
    text-transform: uppercase;
    position: relative;
    z-index: 10;
  }

  .section-explore-link {
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
  }

  .section-explore-link:hover {
    color: var(--primary);
  }

  .section-explore-link .arrow {
    transition: transform 0.3s var(--ease-in-out);
  }

  .section-explore-link:hover .arrow {
    transform: translateX(4px);
  }

  /* ==========================================================================
    ABOUT SECTION
    ========================================================================== */

  .about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .about-narrative {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--foreground);
  }

  .paragraph-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--primary);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
  }

  .paragraph-body {
    font-size: 1rem;
    color: var(--foreground-muted);
    line-height: 1.75;
  }

  .about-values {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .value-card {
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
    transition: var(--transition);
  }

  .value-card:hover {
    border-left-color: var(--primary);
    padding-left: 2rem;
  }

  .value-number {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
  }

  .value-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
  }

  .value-text {
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.6;
  }

  /* ==========================================================================
    SERVICES SECTION
    ========================================================================== */

  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    max-width: 270px;
    width: 100%;
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.2);
  }

  .service-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .service-card:hover .service-icon {
    background-color: var(--primary);
    color: #fff;
    transform: scale(1.05) rotate(5deg);
  }

  .service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
  }

  .service-text {
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.65;
  }

  /* ==========================================================================
    WORK (PORTFOLIO) SECTION
    ========================================================================== */

  .work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .work-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    max-width: 350px;
    width: 100%;
  }

  .work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.15);
  }

  .work-badge-inline {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    transition: var(--transition);
  }

  .work-card:hover .work-badge-inline {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .work-card-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .work-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
    margin-bottom: 0.85rem;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .meta-item svg {
    color: var(--primary);
  }

  .meta-divider {
    color: var(--border);
  }

  .work-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: var(--transition);
  }

  .work-card:hover .work-card-title {
    color: var(--primary);
  }

  .work-card-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    flex-grow: 1;
  }

  .work-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: auto;
  }

  .work-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }


  .card-btn-text {
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
  }

  .work-card:hover .card-btn-text {
    color: var(--primary);
  }

  .card-btn-text .arrow {
    transition: transform 0.3s var(--ease-in-out);
  }

  .work-card:hover .card-btn-text .arrow {
    transform: translateX(5px);
  }

  /* ==========================================================================
    CONTACT SECTION
    ========================================================================== */

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-info--full {
    grid-column: 1 / -1;
    max-width: 640px;
  }

  .contact-info-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--foreground);
  }

  .contact-info-subtitle {
    font-size: 1rem;
    color: var(--foreground-muted);
    line-height: 1.6;
  }

  .info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .info-item-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 0;
  }

  .info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
  }

  .info-item-link:hover .info-icon {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
  }

  .info-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
  }

  .info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
  }

  /* Form Styles */
  .contact-form-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--card-shadow);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Floating Label Inputs */
  .form-group {
    position: relative;
    width: 100%;
  }

  .form-input {
    width: 100%;
    background-color: var(--input-bg);
    color: var(--input-text);
    border: 1px solid transparent;
    padding: 1.15rem 1.25rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
  }

  .form-textarea {
    resize: none;
  }

  /* Handle floating label positioning */
  .form-label {
    position: absolute;
    top: 1.15rem;
    left: 1.25rem;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--foreground-muted);
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    transform-origin: 0 0;
  }

  /* Active states (input focused or has contents) */
  .form-input:focus,
  .form-input:not(:placeholder-shown) {
    border-color: var(--border-focus);
    background-color: var(--bg);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  }

  .form-input:focus + .form-label,
  .form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.75rem) scale(0.85);
    color: var(--primary);
    font-weight: 700;
  }

  /* Submit Button */
  .btn-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    transition: var(--transition);
  }

  .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
  }

  .btn-submit:active {
    transform: translateY(0);
  }

  .submit-arrow {
    transition: transform 0.3s ease;
  }

  .btn-submit:hover .submit-arrow {
    transform: translateX(4px);
  }

  /* Custom validation states using modern selectors */
  .form-input:user-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
  }

  .form-input:user-invalid + .form-label {
    color: var(--color-error);
  }

  /* Form Status Message */
  .form-status {
    display: none;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    animation: fadeIn 0.3s ease forwards;
  }

  .form-status.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--color-success);
  }

  .form-status.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: var(--color-error);
  }

  /* ==========================================================================
    CONNECT SECTION
    ========================================================================== */

  .connect-section {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-top: 1px solid var(--border);
  }

  .connect-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
  }

  .connect-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 560px;
  }

  .connect-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
  }

  .connect-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
  }

  .connect-body {
    font-size: 1rem;
    color: var(--foreground-muted);
    line-height: 1.65;
  }

  .connect-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .connect-social,
  .connect-newsletter {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .connect-social-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--foreground-muted);
    text-transform: uppercase;
  }

  .connect-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .connect-social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background-color 0.18s ease;
  }

  .connect-social-item:hover {
    background: var(--border);
  }

  .connect-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
  }

  .connect-social-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--foreground);
  }

  .connect-social-handle {
    font-size: var(--text-sm);
    color: var(--foreground-muted);
  }

  .connect-newsletter-desc {
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.6;
  }

  .newsletter-input-wrap {
    display: flex;
    gap: 0.5rem;
  }

  .newsletter-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color 0.18s ease;
  }

  .newsletter-input:focus {
    border-color: var(--primary);
  }

  .newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.18s ease;
  }

  .newsletter-btn:hover {
    background: var(--primary-hover);
  }

  .newsletter-status {
    font-size: var(--text-sm);
    color: var(--foreground-muted);
    min-height: 1.2em;
  }

  .newsletter-status--sent {
    color: var(--color-success);
  }

  /* ==========================================================================
    FOOTER SECTION
    ========================================================================== */

  .footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 5rem 2rem 3rem 2rem;
    transition: var(--transition);
  }

  .footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
  }

  .footer-logo-text {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--foreground);
  }

  .footer-desc {
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.6;
  }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  .copyright {
    font-size: var(--text-nav);
    color: var(--foreground-muted);
  }

  .footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-muted);
  }

  .footer-links a:hover {
    color: var(--primary);
  }

  .footer-links .divider {
    color: var(--border);
  }

  /* ==========================================================================
    SCROLL REVEAL ANIMATIONS
    ========================================================================== */

  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* ==========================================================================
    KEYFRAME ANIMATIONS
    ========================================================================== */

  @keyframes pulse {
    0% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5);
    }
    70% {
      transform: scale(1.1);
      box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0);
    }
    100% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
  }

  @keyframes zoomReveal {
    from {
      transform: scale(1.08);
    }
    to {
      transform: scale(1.05);
    }
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ==========================================================================
    RESPONSIVE MEDIA QUERIES
    ========================================================================== */

  /* Large Tablets and Laptops */
  @media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      justify-items: stretch;
    }

    .work-card,
    .post-card {
      max-width: 100%;
    }

    .bg-section-title {
      font-size: 5.5rem;
    }

    .about-grid,
    .contact-grid {
      gap: 3.5rem;
    }
  }

  /* Small Tablets and Mobile Landscape */
  @media (max-width: 768px) {
    .navbar {
      top: 1rem;
      width: calc(100% - 1.5rem);
    }

    .navbar.scrolled {
      top: 0.5rem;
    }

    .navbar-container {
      padding: 0.75rem 1.25rem;
    }

    .nav-links {
      display: none; /* Hide desktop nav link container */
    }

    .mobile-menu-btn {
      display: flex; /* Show mobile menu trigger */
    }

    .hero-section {
      min-height: 100vh;
      height: auto;
      max-height: none;
    }

    .hero-title {
      font-size: 2.75rem;
    }

    .hero-subtitle {
      font-size: 1rem;
      margin-bottom: 2rem;
    }

    .content-container {
      padding: 4rem 1.5rem 6rem 1.5rem;
    }

    section {
      padding: 4rem 0;
    }

    .about-grid,
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .about-subtitle {
      font-size: 1.5rem;
    }

    .section-title {
      font-size: 1.85rem;
    }

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

    .service-card {
      max-width: 100%;
    }

    .work-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      justify-items: stretch;
    }

    .work-card {
      max-width: 100%;
    }

    .work-card-body {
      padding: 1.5rem;
    }

    .work-card-title {
      font-size: 1.35rem;
    }

    .post-meta {
      flex-wrap: wrap;
      gap: 0.25rem 0.5rem;
    }

    .contact-form-wrapper {
      padding: 2rem;
    }

    .form-row {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  }

  /* Small Mobile Portrait */
  @media (max-width: 480px) {
    .hero-avatar {
      width: 90px;
      height: 90px;
    }

    .avatar-letter {
      font-size: 2.5rem;
    }

    .hero-title {
      font-size: 2.25rem;
    }

    .bg-section-title {
      display: none;
    }

    .section-title {
      font-size: 1.6rem;
    }

    .about-subtitle {
      font-size: 1.3rem;
    }

    .work-card-title {
      font-size: 1.2rem;
    }

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

    .newsletter-input-wrap {
      flex-direction: column;
    }

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

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

  /* Accessibility Preferences: Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-delay: 0s !important;
      animation-duration: 0s !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0s !important;
      scroll-behavior: auto !important;
    }
    
    .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
  }
    
    .scroll-reveal {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* ==========================================================================
    SUBPAGE LAYOUT (COLUMN CATEGORY PAGES)
    ========================================================================== */

  .subpage-body {
    min-height: 100vh;
  }

  .subpage-back {
    display: inline-flex;
    margin-bottom: 2rem;
    text-decoration: none;
  }

  .subpage-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 3rem 4.5rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2.5rem 4rem;
    min-height: 100vh;
    align-items: start;
  }

  .category-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
  }

  .category-articles-column {
    min-width: 0;
  }

  /* ==========================================================================
    CATEGORY SCREEN OVERLAY
    ========================================================================== */

  .category-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    z-index: 2000; /* Higher than navbar and mobile dropdown */
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .category-screen.active {
    transform: translateX(0);
  }

  .category-screen-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }

  .btn-back {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }

  .btn-back:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: transparent;
  }

  .btn-back svg {
    transition: transform var(--transition-speed) var(--ease-in-out);
  }

  .btn-back:hover svg {
    transform: translateX(-4px);
  }

  .category-screen-nav-logo {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--foreground);
    font-size: 1.15rem;
  }

  .category-screen-content {
    flex-grow: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .category-hero {
    position: relative;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    overflow: hidden;
  }

  .category-watermark {
    position: absolute;
    top: -1.5rem;
    left: -0.25rem;
    font-family: var(--font-sans);
    font-size: 4.25rem;
    font-weight: 900;
    color: var(--border);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
    line-height: 1;
  }

  .category-screen-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
  }

  .category-screen-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--foreground-muted);
    line-height: 1.65;
  }

  .category-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .category-article {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
  }

  .category-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.15);
  }

  .category-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--foreground-muted);
    margin-bottom: 1rem;
  }

  .category-article-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--foreground);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    transition: var(--transition);
  }

  .category-article:hover .category-article-title {
    color: var(--primary);
  }

  .category-article-excerpt {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--foreground-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
  }

  .btn-read-more:hover {
    color: var(--accent);
  }

  .btn-read-more svg {
    transition: transform var(--transition-speed) var(--ease-in-out);
  }

  .btn-read-more:hover svg {
    transform: translateX(4px);
  }

  /* Sidebar navigation between column pages */
  .sidebar-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .sidebar-nav-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foreground-muted);
    margin-bottom: 0.75rem;
  }

  .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--foreground-muted);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
  }

  .sidebar-nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-alt);
  }

  .sidebar-nav-link.active {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.07);
    font-weight: 700;
  }

  .sidebar-nav-link svg {
    flex-shrink: 0;
    opacity: 0.5;
  }

  .sidebar-nav-link.active svg,
  .sidebar-nav-link:hover svg {
    opacity: 1;
  }

  /* Sidebar theme toggle */
  .sidebar-utilities {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .sidebar-theme-label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--foreground-muted);
  }

  @media (max-width: 900px) {
    .subpage-layout {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding: 2rem 1.25rem 3rem;
    }

    .category-sidebar {
      position: static;
    }

    .subpage-back {
      margin-bottom: 1.5rem;
    }

    .sidebar-nav {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
      margin-top: 1.5rem;
    }

    .sidebar-nav-label {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 768px) {
    .category-screen-header {
      padding: 1rem;
    }
    .category-screen-content {
      padding: 3rem 1.25rem;
      gap: 3rem;
    }
    .category-screen-title {
      font-size: 2.25rem;
    }
    .category-watermark {
      font-size: 3.5rem;
      top: -1.75rem;
    }
    .category-article {
      padding: 1.75rem;
    }
    .category-article-title {
      font-size: 1.45rem;
    }
  }

  /* ==========================================================================
   POSTS (BLOG) SECTION
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

.post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  max-width: 350px;
  width: 100%;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.post-preview {
  padding: 2rem 1.5rem;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-preview-one {
  background: linear-gradient(135deg, hsl(358, 40%, 92%) 0%, hsl(358, 20%, 96%) 100%);
}

.post-preview-two {
  background: linear-gradient(135deg, hsl(210, 40%, 90%) 0%, hsl(210, 20%, 96%) 100%);
}

.post-preview-three {
  background: linear-gradient(135deg, hsl(45, 60%, 90%) 0%, hsl(45, 30%, 96%) 100%);
}

html[data-theme="dark"] .post-preview-one {
  background: linear-gradient(135deg, hsl(358, 25%, 14%) 0%, hsl(358, 15%, 10%) 100%);
}

html[data-theme="dark"] .post-preview-two {
  background: linear-gradient(135deg, hsl(210, 25%, 14%) 0%, hsl(210, 15%, 10%) 100%);
}

html[data-theme="dark"] .post-preview-three {
  background: linear-gradient(135deg, hsl(45, 25%, 12%) 0%, hsl(45, 15%, 9%) 100%);
}

.preview-tag {
  display: inline-block;
  align-self: flex-start;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.post-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground-muted);
  margin-bottom: 0.85rem;
}

.post-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--foreground-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.post-card:hover .card-btn-text {
  color: var(--primary);
}

.post-card:hover .card-btn-text .arrow {
  transform: translateX(5px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: stretch;
  }

  .post-card {
    max-width: 100%;
  }

  .connect-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .connect-lower {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
  }

  .section-explore-link {
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
  }

  .category-article-meta {
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    row-gap: 0.25rem;
  }

  .category-article-meta .meta-divider {
    display: none;
  }
}

/* ==========================================================================
   CAMPUS FEED SECTION
   ========================================================================== */

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Wrapper that constrains each embedded post and gives it consistent framing */
.feed-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  background-color: var(--card-bg);
  transition: var(--transition);
  min-height: 200px;
}

.feed-embed-wrap:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.15);
}

/* Force the Facebook iframe to fill its container */
.feed-embed-wrap .fb-post,
.feed-embed-wrap .fb-post span,
.feed-embed-wrap .fb-post iframe {
  width: 100% !important;
  max-width: 100% !important;
}

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

@media (max-width: 600px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}
