/* ============================================================
   GLOBAL CONTAINER & HERO FIXES
   ============================================================ */

/* Container class - controls max width of all content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero section - full width with background image support */
.hero-section {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero title styles */
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Hero subtitle styles */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Ensure hero content respects container */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* For templates using .hero instead of .hero-section */
.hero {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

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

/* Main content spacing */
.main-content {
    padding: 60px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .main-content {
        padding: 40px 0;
    }
}

/* ============================================================ */

/* ============================================================
   PERSONAL / AUTHOR / BIOGRAPHY TEMPLATE
   Warm, readable, story-focused design
   For: Writers, authors, speakers, personal brands, researchers
   ============================================================ */

:root {
    /* Brand Colors - Warm, Earthy, Approachable */
    --primary-blue: #c0392b;
    --secondary-blue: #8b5a2b;
    --accent-color: #e67e22;

    /* Backgrounds */
    --bg-color: #fef9f0;
    --card-bg-light: #ffffff;
    --card-bg-alt-light: #fdf4e3;

    /* Text */
    --text-color: #2d2d2d;
    --text-muted: #7f7f7f;

    /* Borders & Shadows */
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 999px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
}

/* ============================================================
   LAYOUT FIXES (Footer positioning & full height)
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.main-content {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* ============================================================
   PROFESSIONAL NAVIGATION HEADER
   ============================================================ */
header {
    background: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand .logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    nav ul.show {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ============================================================
   EXISTING PERSONAL STYLES (KEEP ALL)
   ============================================================ */

/* Typography - Highly Readable */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
}

h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 8px;
}

/* Hero Section - Storytelling */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/pattern-books.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    font-style: normal;
    color: rgba(255,255,255,0.9);
}

/* Biography Section */
.bio-card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--card-bg-light);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.bio-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.bio-content {
    flex: 1;
}

/* Publications Section */
.publication-card {
    background: var(--card-bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border-left: 4px solid var(--accent-color);
}

.publication-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.publication-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.publication-links {
    margin-top: 10px;
}

.publication-links a {
    margin-right: 15px;
    font-size: 0.85rem;
}

/* Blog/Article Cards */
.article-card {
    background: var(--card-bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    color: white;
}

/* Books/Works Grid */
.work-card {
    text-align: center;
    padding: 25px;
    background: var(--card-bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.work-cover {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

.work-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 10px 0;
}

/* Buttons - Friendly */
.btn, .btn-primary, a.btn, a.btn-primary {
    border-radius: 50px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
    background: var(--primary-blue) !important;
    border: none !important;
    transition: all 0.3s !important;
}

.btn:hover, .btn-primary:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

/* Contact Form - Personal */
.contact-form {
    background: var(--card-bg-light);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.5rem; }
    .hero-tagline { font-size: 1.2rem; }
    .bio-card { flex-direction: column; text-align: center; }
    .bio-image { width: 150px; height: 150px; }
}

/* Print Styles - Good for CV/Resume */
@media print {
    .hero, .social-links, .btn, .contact-form {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .publication-card {
        page-break-inside: avoid;
    }
}

/* ===== STICKY FOOTER FIX (required for all templates) ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: opacity 0.15s ease-in-out;
}
.main-content {
    flex: 1;
    padding: 40px 0;
    min-height: 40vh;
}
.footer {
    margin-top: auto;
}
/* ===== END STICKY FOOTER ===== */
/* Prevent footer from going too far down on short pages */
.main-content:empty {
    padding: 20px 0;
    min-height: 20vh;
}
/* ============================================================
   LOGO STYLING
   ============================================================ */
.brand .logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand .logo {
        height: 40px;
        max-width: 150px;
    }
}
