/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

:root {
    /* New Color Palette */
    --off-white: #F4F3EF;
    --warm-gray: #7A776E;
    --soft-blush: #E9DFDA;
    --dusty-green: #A1B2AB;
    --light-taupe: #C2C0B7;
    --greige: #8E8984;
    --cream-beige: #E6E1D4;
    --pale-aqua: #DDE4DF;
    --deep-teal: #364C4B;
    
    /* Semantic Color Assignments */
    --primary-color: #364C4B;
    --secondary-color: #A1B2AB;
    --accent-color: #7A776E;
    --text-dark: #364C4B;
    --text-light: #7A776E;
    --text-medium: #8E8984;
    --bg-light: #F4F3EF;
    --bg-secondary: #E6E1D4;
    --bg-accent: #DDE4DF;
    --border-color: #C2C0B7;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;
    --title-font: 'Ink Free', cursive;
    
    /* Spacing */
    --section-padding: 25px 0;
    --container-padding: 0 30px;
    
    /* Shadows with new color palette */
    --shadow-light: 0 2px 10px rgba(54, 76, 75, 0.1);
    --shadow-medium: 0 4px 20px rgba(54, 76, 75, 0.15);
    --shadow-strong: 0 8px 30px rgba(54, 76, 75, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    background-image: url('background books.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Header */
.header {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta {
    display: flex;
    align-items: center;
}

.contact-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.contact-now-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.author-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: var(--title-font);
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--title-font);
}


/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Content Boxes Hero Section */
.content-boxes-hero {
    padding: 120px 0 100px;  /* increased bottom padding for overhanging buttons */
    background: rgba(244, 243, 239, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-color);
    color: white;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* About Section */
.about {
    padding: 120px 0;
    background: rgba(230, 225, 212, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
    text-align: left;
}

.about-text {
    width: 100%;
    padding-right: 0;
    text-align: left;
}

.about-photos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    width: 100%;
    padding: 20px 0;
}

.hero-content-boxes {
    margin-top: 80px;
    padding: 60px 0;
}

.content-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.photo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.photo-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 3px solid rgba(244, 243, 239, 0.8);
}

/* Apply this to the top 3 boxes */
.top-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 4rem;   /* reserve space for button */
    height: 100%;
}

.content-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2rem;   /* reduced space since button overhangs */
    height: 450px;          /* fixed height to make larger square */
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 2px solid rgba(194, 192, 183, 0.3);
    text-align: center;
    max-width: 450px;
    width: 450px;           /* fixed width to match height */
}

.content-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-strong);
    z-index: 10;
}

.content-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.content-box p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Style for the buttons inside each box */
.top-box .box-button {
    position: absolute;
    bottom: -15px;          /* overhang below the box */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    /* Make all buttons uniform */
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;

    /* Match existing styling */
    background-color: #567c67;   /* adjust to your theme */
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;              /* ensure buttons appear above other elements */
}

.content-btn {
    position: absolute;
    bottom: 1.5rem;         /* distance from bottom */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    /* Make all buttons uniform */
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;

    /* Match existing styling */
    background-color: #567c67;   /* adjust to your theme */
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

/* Keep same size when buttons stack */
.top-box .box-button:hover {
    opacity: 0.9;
}

.content-btn:hover {
    opacity: 0.9;
}

.photo-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-strong);
    z-index: 10;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    background: rgba(244, 243, 239, 0.1);
}

.photo-container:hover .about-photo {
    transform: scale(1.05);
}

/* 3 uneven rows layout */
.photo-1 {
    width: 220px;
    height: 240px;
    transform: rotate(-3deg);
}

.photo-2 {
    width: 280px;
    height: 200px;
    transform: rotate(2deg);
}

.photo-3 {
    width: 200px;
    height: 220px;
    transform: rotate(-1deg);
}

.photo-1:hover,
.photo-2:hover,
.photo-3:hover {
    transform: translateY(-5px) scale(1.02) rotate(0deg);
}

/* Content box specific styling */
.speaking-box {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(rgba(244, 243, 239, 0.6), rgba(244, 243, 239, 0.6)), url('desk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.books-box {
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(rgba(244, 243, 239, 0.6), rgba(244, 243, 239, 0.6)), url('table.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.books-box p {
    margin-bottom: 25px;
}

.prayer-box {
    border-left: 4px solid var(--dusty-green);
    background: linear-gradient(rgba(244, 243, 239, 0.6), rgba(244, 243, 239, 0.6)), url('outside.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prayer-box p {
    margin-bottom: 25px;
}

/* Events Section */
.events {
    padding: 120px 0;
    background: rgba(244, 243, 239, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
    margin-top: 80px;
}

/* Container for the Upcoming Events section */
.events-container {
    margin-top: 2rem;
    width: 100%;
}

.events-row {
    display: grid;
    gap: 2rem; /* spacing between boxes */
    width: 100%;
    justify-content: center; /* center the grid */
}

.events-row-1 {
    grid-template-columns: repeat(2, 451px); /* 2 columns with fixed 451px width */
    margin-bottom: 2rem;
}

.events-row-2 {
    grid-template-columns: repeat(2, 451px); /* 2 columns with fixed 451px width */
}

/* Individual event boxes */
.events-row .content-box {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 2px solid rgba(194, 192, 183, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 630px;
    max-width: 451px;
    width: 451px;
    padding-bottom: 2rem;
}

.events-row .content-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-strong);
    z-index: 10;
}

/* Next Event Box within Events Row */
.events-row .next-event-box {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.events-row .next-event-box .event-date {
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 40px;
}

.events-row .next-event-box .date-month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.events-row .next-event-box .date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.events-row .next-event-box .date-year {
    font-size: 0.8rem;
    font-weight: 500;
}

.events-row .next-event-box .events-section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: left;
}

.events-row .next-event-box .event-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.events-row .next-event-box .event-title i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.events-row .next-event-box .event-details h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.events-row .next-event-box .event-details p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 1.1rem;
    padding: 3px 0;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.events-row .next-event-box .event-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.events-row .next-event-box .event-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--text-medium);
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    padding: 3px 0;
}

.events-row .next-event-box .event-info i {
    color: var(--secondary-color);
    width: 12px;
}

.events-row .next-event-box .directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
    transition: var(--transition);
}

.events-row .next-event-box .directions-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Standalone Subscribe Section */
.standalone-subscribe {
    padding: 60px 0;
    background: rgba(230, 225, 212, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.subscribe-box {
    background: transparent;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    width: 800px;
    max-width: 800px;
    height: 123px;
    margin: 0 auto;
    border: 2px solid rgba(194, 192, 183, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subscribe-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subscribe-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.subscribe-box .form-group {
    display: flex;
    gap: 15px;
    align-items: stretch;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-box input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.subscribe-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(161, 178, 171, 0.1);
}

.subscribe-box .btn {
    padding: 15px 25px;
    font-size: 1rem;
    white-space: nowrap;
}


.speaking-topics h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.speaking-topics ul {
    list-style: none;
    padding: 0;
}

.speaking-topics li {
    padding: 3px 0;
    border-bottom: none;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}

.speaking-topics li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Calendar Box */
/* Calendar box now uses content-box styling */

.calendar-container {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.calendar-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--heading-font);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.available {
    background: rgba(161, 178, 171, 0.2);
    color: var(--dusty-green);
}

.calendar-day.available:hover {
    background: var(--dusty-green);
    color: white;
    transform: scale(1.1);
}

.calendar-day.booked {
    background: rgba(54, 76, 75, 0.3);
    color: var(--primary-color);
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    transform: scale(1.1);
}

.calendar-day.today {
    border: 2px solid var(--secondary-color);
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: var(--dusty-green);
}

.legend-dot.booked {
    background: var(--primary-color);
}

/* Books Section */
.books {
    padding: 120px 0;
    background: rgba(244, 243, 239, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 4;
    margin-top: 0;
}

.current-book {
    margin-bottom: 80px;
}

.current-book h3 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 40px;
    font-family: var(--heading-font);
    text-align: center;
    font-weight: 600;
}

.book-content {
    display: grid;
    grid-template-columns: 600px 600px;
    gap: 30px;
    align-items: stretch;
    min-height: 700px;
    justify-content: center;
    width: 100%;
}

.book-text {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 700px;
    width: 600px;
    border: 3px solid #567c67;
}

.book-text p {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.book-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background-color: #ff9900;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.book-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 700px;
}

.book-cover-large {
    width: auto;
    height: 699px;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    object-fit: contain;
}

.book-cover-large:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.book-title {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 0px;
    font-family: var(--heading-font);
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    line-height: 0.9;
}

.book-subtitle {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-family: var(--font-secondary);
    text-align: center;
    font-weight: 400;
    font-style: italic;
    line-height: 0.7;
    opacity: 0.8;
    margin-top: -5px;
}

.upcoming-books h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: var(--heading-font);
    text-align: center;
    font-weight: 600;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.book-card {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: var(--transition);
}

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

.book-card h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: var(--heading-font);
    font-weight: 600;
}

.book-card p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Upcoming Book Content Layout */
.upcoming-book-content {
    display: grid;
    grid-template-columns: 600px 600px;
    gap: 40px;
    justify-content: center;
    align-items: start;
    max-width: 100%;
}

.upcoming-book-text {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-medium);
    text-align: left;
    transition: var(--transition);
    width: 600px;
    max-width: 600px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.upcoming-book-text:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.upcoming-book-text h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
}

.upcoming-book-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.upcoming-book-image {
    width: 600px;
    max-width: 600px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upcoming-book-cover {
    width: auto;
    max-width: 600px;
    height: 699px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    object-fit: contain;
}

.upcoming-book-cover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* Updated Prayer Section */
.prayer {
    padding: 25px 0;
    background: rgba(244, 243, 239, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    margin-top: 60px;
}

.prayer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.prayer-description {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-medium);
    width: 600px;
    max-width: 600px;
}

.prayer-description p {
    margin-bottom: 25px;
    line-height: 1.9;
    color: var(--text-color);
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.prayer-form {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-medium);
    width: 600px;
    max-width: 600px;
}

.prayer-form h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: var(--heading-font);
    text-align: center;
    font-weight: 600;
}

.prayer-form .btn {
    width: 100%;
    margin-bottom: 15px;
}

.prayer-form .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.prayer-form .btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.about-text p {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Book Section */
.book {
    background: rgba(221, 228, 223, 0.85);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.book-content {
    text-align: left;
}

.book-details h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.book-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(244, 243, 239, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(194, 192, 183, 0.3);
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background: rgba(233, 223, 218, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(230, 225, 212, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    margin-bottom: 10px;
    border: 1px solid rgba(194, 192, 183, 0.3);
}

.contact-method:hover {
    background: var(--secondary-color);
    color: white;
}

.contact-method i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-method:hover i {
    color: white;
}

/* Forms */
.contact-form,
.prayer-form {
    background: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(194, 192, 183, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 550px;
}


/* Events Form Specific Styling */
/* Events form now uses content-box styling */
.events-form {
    width: 100%;
}

.events-form .form-group {
    margin-bottom: 15px;
}

.events-form .form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.events-form input,
.events-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Prayer Section */
.prayer {
    padding: 25px 0;
    background: rgba(194, 192, 183, 0.85);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.prayer-content {
    max-width: 600px;
    margin: 0 auto;
}

.prayer-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Disable parallax on mobile for better performance */
    section {
        transform: none !important;
    }
    
    .hero-text, .hero-image {
        transform: none !important;
    }
    :root {
        --section-padding: 25px 0;
        --container-padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-cta {
        justify-content: center;
    }
    
    .contact-now-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    .author-photo {
        width: 60px;
        height: 60px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-cta {
        margin-left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .book-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about {
        padding: 80px 0;
        margin-bottom: 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content-boxes {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .about-photos {
        gap: 20px;
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .content-row {
        gap: 20px;
        flex-direction: column;
    }
    
    .content-box {
        max-width: 350px;
        padding: 40px 30px;
        padding-bottom: 4rem;
        min-height: 400px;
        height: auto;
        margin: 0 auto;
        margin-bottom: 2rem;
    }
    
    /* Responsive stacking for top-box */
    .top-box {
        margin-bottom: 2rem;
    }
    
    .content-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .content-box h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .content-box p {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .content-btn {
        min-width: 160px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .photo-row {
        gap: 20px;
    }
    
    .photo-1 {
        width: 180px;
        height: 200px;
        transform: rotate(-2deg);
    }
    
    .photo-2 {
        width: 220px;
        height: 160px;
        transform: rotate(1deg);
    }
    
    .photo-3 {
        width: 170px;
        height: 200px;
        transform: rotate(-1deg);
    }
    
    /* Events Section Mobile */
    .events {
        padding: 80px 0;
        margin-top: 60px;
    }
    
    .events-row-1,
    .events-row-2 {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .events-row .content-box {
        width: 100%;
        max-width: 451px;
        height: auto;
        min-height: 630px;
    }
    
    .events-row .next-event-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .events-row .next-event-box {
        display: grid;
        grid-template-areas: 
            "events-title"
            "date-box"
            "event-content";
        gap: 15px;
    }
    
    .events-row .next-event-box .events-section-title {
        grid-area: events-title;
        order: unset;
    }
    
    .events-row .next-event-box .event-date {
        grid-area: date-box;
        align-self: center;
        min-width: 70px;
        order: unset;
    }
    
    .events-row .next-event-box .event-details {
        grid-area: event-content;
        order: unset;
    }
    
    .events-row .next-event-box .event-title {
        order: 1; /* Book Signing Event title first within event-details */
    }
    
    /* Standalone Subscribe Mobile */
    .subscribe-box {
        width: 90%;
        max-width: 90%;
        height: auto;
        min-height: 123px;
        padding: 20px 15px;
    }
    
    .subscribe-box .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-box input {
        width: 100%;
    }
    
    /* Tablet breakpoint */
    @media (min-width: 769px) and (max-width: 1024px) {
        .events-row-1 {
            grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
            gap: 1.5rem;
        }
        .events-row-2 {
            grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
            gap: 1.5rem;
        }
    }
    
    /* Events boxes now use the same mobile styling as top content boxes */
    
    
    /* Books Section Mobile */
    .books {
        padding: 80px 0;
        margin-top: 0;
    }
    
    .book-content {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .book-text {
        padding: 40px 30px;
        min-height: auto;
        height: auto;
    }
    
    .book-image {
        min-height: auto;
        height: auto;
    }
    
    .current-book h3 {
        font-size: 2rem;
    }
    
    .upcoming-books h3 {
        font-size: 1.8rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-book-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .upcoming-book-text,
    .upcoming-book-image {
        width: 100%;
        max-width: 100%;
    }
    
    .upcoming-book-cover {
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Prayer Section Mobile */
    .prayer {
        padding: 25px 0;
        margin-top: 0;
    }
    
    .prayer-content {
        max-width: 100%;
        gap: 30px;
    }
    
    .prayer-description p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .prayer-description {
        padding: 40px 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .prayer-form {
        padding: 40px 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 25px 0;
        --container-padding: 0 10px;
    }
    
    .book-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        min-height: 48px;
        padding: 16px 24px;
    }
    
    .book-features {
        grid-template-columns: 1fr;
    }
    
    .book-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .book-text {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .book-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .book-image {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .book-cover-large {
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .current-book h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .book-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .upcoming-book-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .upcoming-book-text {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .upcoming-book-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .upcoming-book-image {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .upcoming-book-cover {
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .content-box {
        padding: 30px 20px;
        padding-bottom: 4rem;
        max-width: 320px;
        min-height: 350px;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .prayer-description {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .prayer-form {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Events boxes now use the same mobile styling as top content boxes */
    
    /* Event Date Ordering for Small Mobile */
    .events-row .next-event-box {
        display: grid;
        grid-template-areas: 
            "events-title"
            "date-box"
            "event-content";
        gap: 15px;
    }
    
    .events-row .next-event-box .events-section-title {
        grid-area: events-title;
        order: unset;
    }
    
    .events-row .next-event-box .event-date {
        grid-area: date-box;
        order: unset;
    }
    
    .events-row .next-event-box .event-details {
        grid-area: event-content;
        order: unset;
    }
    
    .events-row .next-event-box .event-title {
        order: 1; /* Book Signing Event title first within event-details */
    }
    
    /* Subscribe Box Mobile */
    .subscribe-box {
        width: 95%;
        max-width: 95%;
        height: auto;
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .subscribe-box h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .subscribe-box p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .subscribe-box .form-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .subscribe-box input {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .subscribe-box .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .navigation,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        page-break-after: always;
    }
}