/* ==========================================================================
   Technology Ghostwriter - Site Styles
   Restructured and Optimized CSS
   ========================================================================== */

/* ==========================================================================
   1. COLOR DEFINITIONS
   All colors used throughout the site are defined here
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-primary-dark: #0a2351;      /* Darkest navy/blue */
    --color-primary: #1a365d;           /* Main blue */
    --color-primary-medium: #2c3e50;    /* Medium blue */
    --color-primary-light: #e8f0f9;     /* Light blue background */
    
    /* Accent Colors - Gold */
    --color-accent: #d4a574;            /* Main gold accent */
    --color-accent-light: #e8c9a0;      /* Light gold */
    --color-accent-dark: #b8935f;       /* Dark gold */
    
    /* Neutral Colors */
    --color-text-primary: #222222;      /* Main text color */
    --color-text-secondary: #4a5568;    /* Secondary text/gray */
    --color-text-dark: #2d3748;         /* Dark text */
    
    /* Background Colors */
    --color-bg-white: #ffffff;          /* Pure white */
    --color-bg-light: #f7f7f7;          /* Light gray background */
    --color-bg-lighter: #f7f8fa;        /* Very light gray */
    
    /* Border & UI Elements */
    --color-border: var(--color-accent-light);            /* Default border color */
    
    /* Special Purpose Colors */
    --color-linkedin: #0077b5;          /* LinkedIn brand blue */
    --color-linkedin-dark: #005885;     /* LinkedIn hover */
    --color-success: #2d7d32;           /* Success/Good state */
    --color-error: #c62828;             /* Error/Bad state */
    
    /* Shadow Definitions */
    --shadow-xs: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.1);
    --shadow-xl: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-2xl: 0 8px 32px rgba(0,0,0,0.15);
    --shadow-card: 0 6px 24px rgba(0,0,0,0.06);
    --shadow-button: 0 6px 20px rgba(26,54,93,0.15);
    --shadow-button-sm: 0 2px 8px rgba(26,54,93,0.15);
    --shadow-linkedin: 0 2px 8px rgba(0,119,181,0.2);
    --shadow-linkedin-hover: 0 4px 12px rgba(0,119,181,0.3);
    --shadow-gold: 0 4px 12px rgba(212,165,116,0.3);
    --shadow-gold-hover: 0 6px 20px rgba(212,165,116,0.4);
    --shadow-modal: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-photo: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-book: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-inset: inset 0 0 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. TYPOGRAPHY DEFINITIONS
   Font families and base typography settings
   ========================================================================== */
:root {
    /* Font Families */
    --font-serif: 'Newsreader', 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', 'Source Sans Pro', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-accent: 'Raleway', sans-serif;
    
    /* Font Sizes & Spacing */
    --base-font-size: 16px;
    --base-line-height: 1.6;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600&family=Raleway:ital,wght@0,500;0,600;1,500;1,600&family=Quintessential&family=Merriweather:wght@300;400;700&family=Source+Sans+Pro:wght@400;600;700&family=Playfair+Display:wght@700;900&display=swap');

/* ==========================================================================
   3. MATERIAL THEME VARIABLES
   MkDocs Material theme color mappings
   ========================================================================== */
:root {
    /* Material Design Theme Variables */
    --md-primary-fg-color: var(--color-primary-dark);
    --md-primary-fg-color--light: var(--color-primary);
    --md-primary-fg-color--dark: var(--color-primary-dark);
    --md-default-bg-color: var(--color-bg-white);
    --md-default-fg-color: var(--color-text-primary);
    --md-typeset-a-color: var(--color-primary);
    --md-accent-fg-color: var(--color-primary);
    --md-typeset-color: var(--color-text-primary);
    --md-code-bg-color: var(--color-bg-light);
    --md-code-fg-color: var(--color-primary-dark);
}

/* ==========================================================================
   4. BASE STYLES
   Global resets and base element styling
   ========================================================================== */

/* HTML & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: scroll !important;
    overflow-x: hidden;
    height: 100%;
}

/* Body Base Styles */
body {
    font-family: var(--font-serif);
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);    color: var(--md-typeset-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.3s ease, background-color 0.3s ease;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 101vh; /* Force scrollbar visibility */
}

/* Focus States - Global */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================================
   5. ANIMATIONS
   Keyframe animations and transitions
   ========================================================================== */

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }}

/* ==========================================================================
   6. SCROLLBAR STYLES
   Custom scrollbar styling for webkit browsers
   ========================================================================== */

/* Main Scrollbar */
::-webkit-scrollbar {
    width: 16px !important;
    height: 16px !important;
    -webkit-appearance: none;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light) !important;
    border-radius: 8px;
    border: 2px solid var(--color-border) !important;
    box-shadow: var(--shadow-inset);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary) !important;
    border-radius: 8px;
    border: 2px solid var(--color-bg-light) !important;
    transition: all 0.3s ease;
    min-height: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent) !important;
    border-color: var(--color-border) !important;}

/* Firefox Scrollbar Support */
html, body, .md-container, .md-main {
    scrollbar-width: auto !important;
    scrollbar-color: var(--color-primary) var(--color-bg-light) !important;
}

/* Sidebar Scrollbar */
.md-sidebar::-webkit-scrollbar {
    width: 5px;
}

.md-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 4px;
}

.md-sidebar::-webkit-scrollbar-track {
    background-color: transparent;
}

/* ==========================================================================
   7. LAYOUT & CONTAINERS
   Main layout structure and container styling
   ========================================================================== */

/* Main Container */
.md-container {
    padding-left: 0 !important;
    overflow-x: hidden;
    background-color: var(--color-primary-light);}

/* Main Content Area */
.md-main {
    background-color: var(--color-primary-light);
    min-height: 100vh;
}

.md-main__inner {
    max-width: 100%;
    margin: 0;
    padding-top: 4rem;
}

/* Content Inner */
.md-content__inner {
    overflow-x: hidden;
}

/* Content Container */
.md-content {
    margin-left: 150px;
    max-width: calc(100% - 150px);
    transition: margin-left 0.3s ease, max-width 0.3s ease;
    padding: 2rem 3rem;
    background-color: var(--md-default-bg-color);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}
/* Content Decoration */
.md-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}

.md-content:hover {
    box-shadow: var(--shadow-2xl);
}

/* Grid Layout */
.md-grid {
    max-width: 1920px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   8. HEADER
   Top navigation header styling
   ========================================================================== */

.md-header {
    position: fixed;
    top: 0;    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    border-bottom: none;
    background-color: transparent !important;
    font-family: var(--font-sans);
    box-shadow: none !important;
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: none;
}

.md-header.md-header--shadow {
    box-shadow: none !important;
}

.md-header--hidden {
    transform: translateY(-100%);
}

/* Header Inner Container */
.md-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 1920px;
    margin: 0 auto;
    height: 4rem;
}
/* Header Title */
.md-header__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    letter-spacing: 0.01em;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

.md-header__title:hover {
    opacity: 0.8;
}

/* Header Logo */
nav.md-header__inner.md-grid img {
    height: 3rem;
}

/* Header Buttons */
.md-header__button {
    color: var(--md-primary-fg-color) !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0.5rem;
}
.md-header__button:hover {
    background-color: rgba(26, 54, 93, 0.08);
    transform: scale(1.05);
}

/* Theme Toggle Animation */
.md-header__button:hover svg {
    transform: rotate(180deg);
}

.md-header__button svg {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 24px;
    height: 24px;
}

/* Mobile Menu Button - Hidden on Desktop */
.md-header__button[for="__drawer"] {
    display: none;
}

.md-header__button[for="__drawer"]:hover {
    background-color: rgba(26, 54, 93, 0.08);
    transform: scale(1.05);
}

/* ==========================================================================
   9. SEARCH
   Search form and search modal styling
   ========================================================================== */
/* Search Form */
.md-search__form {
    background-color: var(--md-default-bg-color);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.md-search__form:hover,
.md-search__form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.1);
}

/* Search Input */
.md-search__input {
    color: var(--md-typeset-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.md-search__input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* Search Icon */
.md-search__icon {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;}

.md-search__form:hover .md-search__icon,
.md-search__form:focus-within .md-search__icon {
    color: var(--color-primary);
}

/* Search Modal Z-Index Fix */
.md-search__overlay {
    z-index: 200 !important;
}

.md-search__inner {
    z-index: 201 !important;
}

.md-search__output {
    z-index: 202 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   10. SIDEBAR NAVIGATION
   Left sidebar navigation styling
   ========================================================================== */

.md-sidebar {
    width: 300px;
    position: fixed;
    top: 0;    left: 0;
    background: transparent;
    z-index: 101;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

/* Primary Sidebar */
.md-sidebar--primary {
    top: 4rem;
    padding-top: 1rem;
    width: 220px !important;
}

/* Hide Scrollbar in Primary Navigation */
.md-sidebar--primary .md-sidebar__scrollwrap {
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar {
    display: none;
}

/* Hide Secondary Sidebar (Table of Contents) */
.md-sidebar--secondary {
    display: none !important;
}
/* Navigation Base */
.md-nav {
    font-size: 0.9rem;
}

/* Navigation List */
.md-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-nav__item {
    padding: 0;
    margin: 0;
}

.md-nav__list > .md-nav__item:first-child {
    margin-top: 0.5rem;
}

/* Navigation Links */
.md-nav__link {
    display: block;
    margin: 0;
    padding: 0.6rem 1.2rem;
    color: var(--color-text-secondary) !important;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
    border-radius: 0 8px 8px 0;
}

/* Active Navigation Link */
.md-nav__link--active {
    color: var(--color-primary-dark) !important;
    border-left-color: var(--color-accent);
    background-color: rgba(212, 165, 116, 0.1);
    font-weight: 600;
    opacity: 1;
}

/* Navigation Link Hover */
.md-nav__link:hover {
    color: var(--color-primary) !important;
    background-color: rgba(44, 62, 80, 0.05);
    border-left-color: var(--color-accent-light);
    padding-left: 1.5rem;
    opacity: 1;
}

/* Navigation Link Accent Animation */
.md-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s var(--transition-bounce);
}

.md-nav__link:hover::after {
    width: 30px;
}

/* Nested Navigation */
.md-nav__item .md-nav {
    margin-left: 0.5rem;
}

.md-nav__item .md-nav .md-nav__link {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.md-nav__item .md-nav .md-nav__link:hover {
    padding-left: 1.8rem;
}

/* ==========================================================================
   11. TYPOGRAPHY
   Headings, paragraphs, and text styling
   ========================================================================== */

/* Heading 1 */
.md-typeset h1 {
    font-family: var(--font-display);    font-size: 2rem;
    line-height: 1.2;
    font-weight: 900;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Heading 2 */
.md-typeset h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-medium);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

/* Heading 3 */
.md-typeset h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-medium);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
/* Paragraphs */
.md-typeset p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Links */
.md-typeset a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.md-typeset a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Strong Text */
.md-typeset strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Blockquotes */
.md-typeset blockquote {
    border-left: 4px solid var(--color-primary);
    background-color: rgba(26, 54, 93, 0.03);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;    font-style: italic;
    color: var(--color-text-secondary);
}

/* Lists */
.md-typeset ul {
    padding-left: 1.5rem;
}

.md-typeset ul li {
    margin-bottom: 0.5rem;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

.price {
  font-weight: bold;
  color: var(--color-accent);
  margin: 0.5rem 0;
}

/* ==========================================================================
   12. BUTTONS
   Button styles and variations
   ========================================================================== */

/* Base Button Style */
.button {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1rem;
    text-transform: none;    letter-spacing: 0.01em;
    padding: 0.75rem 1.75rem;
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-right: 1rem;
}

/* Button Gradient Fill Animation */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transition: left 0.4s var(--transition-smooth);
    z-index: 0;
}

.button span,
.button strong {
    position: relative;    z-index: 1;
    color: inherit;
}

.button:hover {
    color: var(--color-bg-white) !important;
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.button:hover::before {
    left: 0;
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button-sm);
}

.button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Call-to-Action Button */
a[href*="calendly"],
.cta-primary {
    display: inline-block;
    background: var(--color-accent);
    color: white !important;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
}

a[href*="calendly"]:hover,
.cta-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social Media Buttons */
.social-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none !important;
    transition: all 0.3s ease;
}

/* LinkedIn Button */
.linkedin-button,
a[href*="https://www.linkedin.com/in/"],
.social-button.linkedin {
    background: var(--color-linkedin);
    color: white !important;
    box-shadow: var(--shadow-linkedin);
}

.linkedin-button:hover,
a[href*="https://www.linkedin.com/in/"]:hover,
.social-button.linkedin:hover {
    background: var(--color-linkedin-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-linkedin-hover);
    color: white !important;
}

/* X/Twitter Button */
.social-button.twitter {
    background: #000000;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-button.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white !important;
}

/* Bluesky Button */
.social-button.bluesky {
    background: #0085ff;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0,133,255,0.2);
}

.social-button.bluesky:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,133,255,0.3);
    color: white !important;
}

/* ==========================================================================
   13. FOOTER
   Footer styling
   ========================================================================== */

.md-footer,
.md-footer-meta {
    background-color: transparent !important;
    color: var(--color-primary-dark) !important;
}

.md-footer-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.md-footer-meta__inner,
.md-footer * {    color: var(--color-primary-dark) !important;
}

/* ==========================================================================
   14. CONSOLIDATED COMPONENTS - REUSABLE GRIDS, CARDS & SECTIONS
   All components now have both specific and generic class options
   ========================================================================== */

/* ===== Grid Layouts ===== */

/* Standard responsive grid - base class */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Wide grid - base class */
.grid-wide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Intro Section specific grid override */
.intro-content.grid {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.intro-visual {
    text-align: right;
}

.intro-visual img.book-mockup {
    max-width: 200px;
    height: auto;
}

.intro-text {
    text-align: left;
}


/* ===== Card Styles ===== */

/* Base card style */
.card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    min-height: 200px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

/* Card icon - base class */
.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Card headings */
.card h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Card paragraphs */
.card p {
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

/* Card blockquotes - center vertically */
.card blockquote {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card blockquote p {
    margin: 0 !important;
}


/* ===== Credentials Display ===== */

.credentials {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.credential-item {
    text-align: center;
}

.credential-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.credential-text {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================   15. PAGE-SPECIFIC SECTIONS
   Hero sections and page-specific layouts
   ========================================================================== */

/* Generic Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-bg-lighter) 0%, var(--color-bg-white) 100%);
    border-radius: 12px;
    padding: 0rem 2rem;
    border: 1px solid var(--color-border);
}

/* Hero Content Container */
.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Text Section */
.hero-text {
    flex: 2;
    text-align: left;
}

.hero-text h2 {
    margin-top: 1.0rem;
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Hero Images */
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-photo,
.author-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: var(--shadow-photo);
}

/* Base Showcase Component */
.showcase {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--color-bg-lighter);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

/* Book Showcase */
.book-showcase,
.case-study-showcase {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--color-bg-lighter);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.showcase-image {
    flex: 0 0 250px;
}

.showcase-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
}

.showcase-content {
    flex: 1;
    padding-left: 1rem;
}

.book-cover,
.case-study-image {
    flex: 0 0 250px;
}

.book-cover img,
.case-study-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
}

.book-details,
.case-study-content {
    flex: 1;
    padding-left: 1rem;
}

.book-details h4,
.case-study-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.case-study-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.case-study-content h4 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    margin: 3rem -2rem -2rem -2rem;
    border-radius: 12px;
    border: 2px solid var(--color-accent);
}

.cta-section h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Availability Notice */
.availability-notice {
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    display: inline-block;
    padding: 0.75rem 1.5rem;
}

.availability-notice p {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: var(--font-sans);
    white-space: nowrap;
}

/* Qualifier Section */
.qualifier-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    margin: 2rem auto;
    max-width: 600px;
}

.qualifier-good {
    color: var(--color-success);
    font-weight: 500;
}

.qualifier-bad {
    color: var(--color-error);
    font-weight: 500;
}

/* ==========================================================================
   16. RESPONSIVE DESIGN
   Mobile and tablet breakpoints
   ========================================================================== */

/* Large Screens */
@media (min-width: 76.234375em) {
    .md-content {
        margin-left: 250px;
        margin-right: auto;
        max-width: 1620px;
    }
}

/* Grid responsive adjustments - keep auto-fit but adjust minmax for better wrapping */
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 1199px) and (min-width: 800px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 799px) and (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .intro-content.grid {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
}

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

    .intro-content.grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-visual {
        text-align: center;
        order: -1;
    }

    .intro-text {
        text-align: center;
    }
}

/* Tablet and Small Desktop */
@media (max-width: 76.234375em) and (min-width: 481px) {
    /* Sidebar Mobile Position */
    .md-sidebar--primary {
        left: -300px;
        box-shadow: none;
        background: var(--md-default-bg-color);
    }
    
    /* Sidebar Open State */
    #__drawer:checked ~ .md-container .md-sidebar--primary {
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Content Mobile Adjustments */
    .md-content {
        margin-left: 0;
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .md-main__inner {
        padding-top: 4rem;
    }
    
    /* Show Mobile Menu Button */
    .md-header__button[for="__drawer"] {
        display: block;
    }    
    /* Mobile Header */
    .md-header {
        padding: 0.5rem 0;
    }
    
    .md-header__inner {
        height: 56px;
        justify-content: space-between;
    }
    
    /* Hero Sections Mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }
    
    /* Showcase Mobile */
    .showcase,
    .book-showcase,
    .case-study-showcase {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .showcase-image,
    .book-cover,
    .case-study-image {
        flex: none;
        align-self: center;
    }

    .showcase-content,
    .book-details,
    .case-study-content {
        padding-left: 0;
        text-align: left;
    }
    
    /* Hero Sections Mobile Spacing */
    .hero-section {
        margin: -1rem -1rem 2rem -1rem;
        padding: 2rem 1rem;
    }

    /* CTA Sections Mobile */
    .cta-section {
        margin: 2rem -1rem -1rem -1rem;
        padding: 2rem 1rem;
    }
}

/* Mobile Phones - 480px and below */
@media (max-width: 480px) {
    /* Base Font Size Adjustment */
    :root {
        --base-font-size: 14px;
        --base-line-height: 1.5;
    }

    body {
        font-size: var(--base-font-size);
        line-height: var(--base-line-height);
    }

    /* Content Area - Full Width on Mobile */
    .md-content {
        margin: 0.5rem auto;
        padding: 1rem;
        border-radius: 8px;
        max-width: calc(100% - 1rem);
    }

    .md-main__inner {
        padding-top: 3.5rem;
    }

    /* Header Mobile Optimization */
    .md-header__inner {
        height: 48px;
        padding: 0 0.75rem;
    }

    .md-header__title {
        font-size: 0.8rem;
    }

    /* Show Mobile Menu Button */
    .md-header__button[for="__drawer"] {
        display: block !important;
    }

    /* Navigation - Full Height on Mobile */
    .md-sidebar--primary {
        width: 200px !important;
        left: -280px;
    }



    /* Typography Mobile Optimization */
    .md-typeset h1 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .md-typeset h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        padding-left: 0.75rem;
    }

    .md-typeset h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .md-typeset p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    /* Button Mobile Optimization */
    .button {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    a[href*="calendly"],
    .cta-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Grid Mobile - Single Column */
    .grid,
    .grid-wide {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        margin: -0.5rem -1rem 1.5rem -1rem;
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .hero-text h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

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

    /* Card Mobile Optimization */
    .card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    /* Showcase Mobile - Stacked Layout */
    .showcase,
    .book-showcase,
    .case-study-showcase {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .showcase-image,
    .book-cover,
    .case-study-image {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
    }

    .showcase-image img,
    .book-cover img,
    .case-study-image img {
        max-width: 200px;
    }

    .showcase-content,
    .book-details,
    .case-study-content {
        padding-left: 0;
        text-align: center;
    }

    /* CTA Section Mobile */
    .cta-section {
        margin: 1.5rem -1rem -0.5rem -1rem;
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .cta-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    /* Credentials Mobile */
    .credentials {
        gap: 1.5rem;
        margin-top: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .credential-number {
        font-size: 1.5rem;
    }

    .credential-text {
        font-size: 0.8rem;
    }

    /* Search Mobile */
    .md-search__form {
        border-radius: 20px;
    }

    .md-search__input {
        font-size: 0.85rem;
    }

    /* Navigation Links Mobile */
    .md-nav__link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .md-nav__link:hover {
        padding-left: 1.25rem;
    }

    /* Photo Mobile Optimization */
    .hero-photo,
    .author-photo {
        max-width: 250px;
        border-radius: 8px;
    }

    /* Availability Notice Mobile */
    .availability-notice {
        margin: 0.5rem 0;
        padding: 0.75rem;
        border-radius: 4px;
    }

    .availability-notice p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   17. PRINT STYLES
   Print-specific styling
   ========================================================================== */

@media print {
    /* Hide Navigation Elements */
    .md-header,
    .md-footer,
    .md-sidebar {
        display: none !important;
    }
    
    /* Content Print Adjustments */
    .md-content {
        padding: 0;
        margin: 0;
        box-shadow: none;
        max-width: 100%;
    }
    
    /* Typography for Print */
    body {
        font-size: 12pt;
    }
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */