@charset "utf-8";

/* ==========================================================================
   1. Root Variables & Global Base Styles
   ========================================================================== */
:root {
    --primary: #2d3436;
    --accent: #0984e3;
    --accent-hover: #0773c5;
    --text: #636e72;
    --bg-light: #f9f9fb;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Base structural layout containers */
.container, 
.bio-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Typography & Core HTML Elements
   ========================================================================== */
h1 {
  /* Min: ~28px | Fluid | Max: ~45px */
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.8rem);
  color: #1a1a1a;
  margin-bottom: 1rem;
}

h2 {
  /* Min: ~22px | Fluid | Max: ~32px */
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  color: #1a202c;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

h3 {
  /* Min: ~17px | Fluid | Max: ~22px */
  font-size: clamp(1.1rem, 0.95rem + 0.75vw, 1.4rem);
  color: #2c3e50;
  margin-top: 35px;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

/* Standard bio & description text */
p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}

/* Fluid text for the call-to-action subtext */
p.lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 20px;
}

ul {
    list-style-type: square;
    padding-left: 20px;
    margin-bottom: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

.highlight {
    font-weight: bold;
    color: #e67e22;
}

/* ==========================================================================
   3. Hero Section & 3D Book Layout
   ========================================================================== */
.hero { 
    background: white; 
    padding: 60px 0; 
    border-bottom: 1px solid #f1f5f9;
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-book { 
    position: relative;
    justify-self: center;
}

.book-3d { 
    width: 280px; 
    background: transparent; 
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.15);
    border-radius: 2px 8px 8px 2px;
    border-left: 5px solid rgba(255, 255, 255, 0.1); 
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.book-3d:hover {
    transform: rotate(0deg) scale(1.02);
}

.book-cover-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 4px 4px 0;
}

.book-title {
    font-size: 1.5rem; 
    text-align: center; 
    border-bottom: 2px solid var(--accent); 
    padding-bottom: 10px; 
    margin-bottom: 10px; 
    font-weight: bold;
    backface-visibility: hidden;
}

.book-author { 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
}

.hero-badge {
    position: absolute;
    top: -24px; 
    right: -120px; 
    background: var(--accent);
    color: white; 
    padding: 8px 15px; 
    font-weight: 700; 
    font-size: 0.7rem;
    border-radius: 50px; 
    transform: rotate(10deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: 2.1rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: var(--primary);
}

.hero-subtext { 
    font-size: 1.1rem; 
    color: var(--text); 
    margin-bottom: 30px;
    max-width: 750px;
}

/* ==========================================================================
   4. Authors & Profile Box Elements
   ========================================================================== */
.profile-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    margin-bottom: 40px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    object-fit: cover;

    border: 1px solid #ddd;
}

/* Specific styling for H3 inside profile boxes (removes left bar override) */
.profile-text h3 {
    margin-top: 0;
    color: #2c3e50;
    border-left: none;
    padding-left: 0;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.author-intro { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px;
}

.author-img-small { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--accent);
}

.author-intro p { 
    font-weight: 700; 
    letter-spacing: 1px; 
    font-size: 0.8rem; 
    color: var(--accent); 
    margin: 0;
}

/* ==========================================================================
   5. Buttons, Actions, & Overlay Anchors
   ========================================================================== */
.hero-actions { 
    display: flex; 
    gap: 15px; 
}

.btn { 
    display: inline-block;
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    background: var(--accent); 
    color: white; 
    transition: background 0.3s ease;
}

.btn:hover { 
    background: var(--accent-hover); 
}

.btn-outline {
    background-color: transparent; 
    color: var(--accent);                  
    border: 3px solid var(--accent);       
    padding: 10px 20px;           
    cursor: pointer;              
    border-radius: 4px;        
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

.image-container {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content; 
    margin: 30px auto; 
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.download-btn,
.overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: var(--accent); 
    color: #ffffff;            
    padding: 12px 24px;        
    text-decoration: none;
    border-radius: 4px;        
    white-space: nowrap;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover,
.overlay-btn:hover {
    background-color: var(--accent-hover); 
    transform: translate(-50%, -50%) scale(1.05); 
}

.download-icon {
    width: 20px;
    height: 20px;
    stroke: #ffffff; 
    fill: none;
}

/* ==========================================================================
   6. Custom Lists & About Page Layout Modules
   ========================================================================== */
.focus-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 35px;
}

.focus-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.focus-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
    top: 2px;
}

/* About Page Flexbox Contact Layout Fixes */
.contact-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    margin-top: 15px;
}

.contact-text {
    flex: 1;
    min-width: 280px;
}

.contact-text p:first-child {
    margin-top: 0;
}

.profile-img-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
}

.email-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   7. Call-to-Action Box & Email Newsletter Form (LIGHT THEME)
   ========================================================================== */
.cta-box {
    background: var(--bg-light); 
    border: 1px solid var(--border); 
    padding: 30px; 
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
}

.cta-box p {
    color: var(--text); 
}

.cta-box strong {
    color: var(--primary);
}

.cta-box a {
    color: var(--accent); 
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-box a:hover {
    color: var(--accent-hover); 
    border-color: var(--accent-hover);
}

/* ==========================================================================
   8. Testimonials Grid Component
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px; 
    margin: 40px auto;
}

.testimonial-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: all 0.3s ease;
}

.quote {
    font-family: "Georgia", serif; 
    font-style: normal;           /* Changed from italic to normal */
    font-size: 0.9em;             /* Changed to a smaller size */
    color: #555;                  
   line-height: 1.5; 
}

.name {
    display: block;
    font-weight: bold;
    color: #333;
}

.title {
    font-size: 0.85rem;
    color: #777;
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

/* ==========================================================================
   9. Media Queries (Mobile & Tablet Responsiveness)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-book { order: 2; }
    .hero-content { order: 1; }
    .author-intro, .hero-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .contact-flex-container {
        flex-direction: column-reverse; /* Puts image on top on mobile, text below */
        text-align: center;
        gap: 20px;
    }
