/*
Theme Name: PHSC Replica Essay Theme
Theme URI: https://example.com/phsc-replica
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme designed to replicate the PHSC Writing Center essays layout.
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phsc-replica
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Reset & Basics */
* {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2c6ecb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Layout */
.site-container {
    max-width: 1180px; /* Exact width constraint */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #fff;
    margin-bottom: 0px;
}

/* Top Blue Bar */
.top-bar {
    background-color: #3065b5; /* Header Blue */
    color: #fff;
    padding: 12px 0;
    height: 55px; /* Fixed height for alignment */
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.top-bar-links a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-left: 25px;
}


/* Default Header (Other Pages) */
.site-header {
    position: relative;
    background: #fff;
}
.top-bar {
    background-color: #2b54a3; /* Default Blue */
}
.main-nav-wrapper {
    background-color: #fff;
    border-bottom: 4px solid #eeb211;
}

.main-navigation ul {
    display: flex;
    justify-content: space-between; /* Spread items evenly */
    padding: 0;
    margin: 0;
    list-style: none; /* Remove bullets */
}

.main-navigation li {
    flex: 1;
    text-align: center;
}

.main-navigation a {
    display: block;
    padding: 12px 0;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #2b54a3; /* Blue hover */
}

/* Home Icon Specifics */
.home-icon a {
    padding-top: 10px; /* Align icon vertically */
}
.home-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: #555;
}

.breadcrumbs a {
    color: #333;
    text-decoration: none;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 10px;
    padding-bottom: 60px;
}

/* Sidebar Widths */
.left-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.right-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.site-main {
    flex: 1;
    min-width: 0;

    padding: 0 10px; /* Slight padding for text breathing room */
}

/* --- Contact Form Section (New) --- */
.contact-section {
    background: #fff;
    font-family: 'Poppins', sans-serif; /* Use theme font if available */
}

.contact-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

/* Left Column: Contact Info */
.contact-info {
    font-size: 14px;
    background: #2b54a3; /* Brand Blue */
    color: #fff;
    padding: 40px;
    flex: 0 0 40%; /* 40% width */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.contact-info .contact-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.info-item .dashicons {
    margin-right: 15px;
    font-size: 20px;
}

/* Decorative Circles */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.circle-1 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -50px;
}
.circle-2 {
    width: 80px;
    height: 80px;
    top: 50px;
    right: 30px;
}

/* Right Column: Form */
.contact-form-wrapper {
    flex: 1;
    padding: 40px;
}

.modern-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-form label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form textarea {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 14px;
    transition: border-color 0.3s;
    background: transparent;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-bottom-color: #2b54a3;
}

/* Radio Buttons */
.service-group {
    margin-top: 20px;
    margin-bottom: 30px;
}
.block-label {
    display: block;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* Submit Button */
.contact-btn {
    background: #2b54a3;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    align-self: flex-end; /* Align right */
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #1e3d7a;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
    }
    .contact-info {
        padding: 30px;
    }
    .modern-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        margin-bottom: 15px;
    }
}

/* Left Sidebar Menu Styles */
.left-sidebar .menu {
    border-top: 4px solid #eeb211; /* Gold top border */
}

.left-sidebar .menu li {
    border-bottom: 1px solid #ddd;
    position: relative;
    background-color: #fff;
}

/* Sidebar Left Menu Highlighting */
.widget_nav_menu .menu-item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    position: relative; /* For custom styling */
}

.widget_nav_menu .menu-item a:hover,
.widget_nav_menu .menu-item.current-menu-item > a,
.widget_nav_menu .menu-item.current_page_item > a {
    color: #3065b5; /* Blue highlight */
    font-weight: 700;
    background-color: #f9f9f9; /* Subtle background for active */
    padding-left: 10px; /* Indent active item */
    border-left: 3px solid #eeb211; /* Gold marker */
}

.widget_nav_menu .dropdown-icon {
    float: right;
    font-weight: bold;
    cursor: pointer;
}

.left-sidebar .menu a {
    color: #000;
    font-weight: 600;
    font-size: 15px;
    display: block;
    padding: 12px 0;
    position: relative;
}

.left-sidebar .menu .current-menu-item > a {
    font-weight: 700;
    color: #000; /* Active item is black and bold */
}

/* Plus Icon */
.dropdown-icon {
    float: right;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-top: -34px; /* Pull up into line */
    pointer-events: none; /* Let clicks pass through */
}

.left-sidebar .menu-item-has-children > a {
    padding-right: 20px;
}

/* Main Content Typography */
.entry-title {
    font-size: 32px;
    color: #000;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.2;
    padding-bottom: 15px; /* Spacing below title */
}

.entry-content h2 {
    color: #4a7ebb; /* Muted Blue Heading */
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: left; /* Ensure left alignment */
}

/* Test Yourself Widget (Right Sidebar) */
.test-yourself-box {
    background-color: #fcf8e8; /* Exact Cream Color */
    padding: 25px 20px;
    text-align: center;
    border-top: 5px solid #eeb211; /* Gold top border */
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow if needed */
}

.icon-check {
    margin-bottom: 10px;
}

.icon-check svg {
    stroke: #007a73; /* Teal Check Color */
    transform: scale(1.2); /* Slightly larger */
}

.test-yourself-box .widget-title {
    font-size: 22px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 700;
}

.widget-divider {
    border: 0;
    border-top: 1px solid #777; /* Darker divider */
    width: 90%;
    margin: 15px auto;
}

.test-yourself-box p {
    margin: 0;
    font-size: 15px;
}

.test-yourself-box a {
    color: #000;
    text-decoration: none;
}

/* Documents & Related Pages (Right Sidebar) */
.widget_documents, .widget_related_pages {
    margin-top: 30px;
}

.widget_documents h2, .widget_related_pages h2 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 3px solid #000; /* Thick black underline */
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #000;
    line-height: 1.2;
}

.widget_related_pages ul, .documents-list {
    padding-left: 0;
}

.documents-list li, .widget_related_pages li {
    margin-bottom: 8px;
}

.widget_related_pages a, .documents-list a {
    color: #2c6ecb;
    font-size: 14px;
}

/* PDF Icon Mockup */
.pdf-link:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>') no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

/* Footer (Hidden mostly in screenshot, keeping simple) */
.site-footer {
    border-top: 1px solid #ddd;
    margin-top: auto;
    padding: 20px;
    background: #fff;
    text-align: center;
    font-size: 12px;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    .left-sidebar, .right-sidebar {
        width: 100%;
        border-top: none;
        margin-bottom: 20px;
    }
    .main-navigation ul {
        flex-wrap: wrap;
    }
}
/* --- About Us Page Styles --- */

.about-page-container {
    background-color: #fff;
    color: #333;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Section 1: Hero */
.about-hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff); /* Soft blue gradient */
    text-align: center;
}

.about-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 20px;
    z-index: 2;
}

.about-us-big-text {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
    opacity: 0.1; /* Translucent effect behind/around content */
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 0;
    pointer-events: none;
}

.about-hero-left {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.about-hero-center {
    flex: 0 0 400px;
    margin: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-person-image {
    width: 350px;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 150px 150px 20px 20px; /* Pill shape top */
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-hero-right {
    flex: 1;
    min-width: 250px;
    text-align: left; /* Aligned per design usually right or left */
    z-index: 2;
    padding-left: 20px;
}

.about-hero-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
    max-width: 300px;
}

.btn-explore {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-explore:hover {
    background-color: #333;
    color: #fff;
}

/* Section 2: Process Steps */
.about-process {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-item {
    text-align: center;
    padding: 20px;
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #f7f7f7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #555;
}

.icon-blue {
    background-color: #e6f0ff;
    color: #007bff;
}

.process-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-item p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
}

/* Section 3: Story */
.about-story {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.about-story-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-story-content {
    flex: 1;
    min-width: 350px;
    padding-right: 60px;
}

.about-story-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.story-tabs {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.tab-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    background-color: #eee;
    color: #666;
}

.tab-btn.active {
    background-color: #cce5ff; /* Light blue akin to 'Mission' pill */
    color: #0056b3;
}

.about-story-image {
    flex: 1;
    min-width: 350px;
}

.about-story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .about-hero-left, .about-hero-right {
        text-align: center;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .about-hero h1 {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .about-us-big-text {
        font-size: 5rem;
    }
    
    .about-story-inner {
        flex-direction: column-reverse;
    }
    
    .about-story-content {
        padding-right: 0;
        margin-top: 40px;
        text-align: center;
    }
    
    .story-tabs {
        justify-content: center;
    }
}

/* Homepage Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    background-color: #333; /* Fallback color */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); /* Dark overlay */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif; /* Ensuring font consistency */
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3065b5;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #eeb211;
    color: #000;
}

/* Welcome Section */
.welcome-section {
    padding: 40px 0 80px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-text .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.stats-container {
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3065b5;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-image {
    background: #eee;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.welcome-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    background-color: #f9f9f9; /* Light background for separation */
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Stack image and text */
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #ddd;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .welcome-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Essay Pro Layout (New Template) --- */

/* Remove right sidebar styling restrictions if any, or just ensure .essay-pro-layout expands */
.essay-pro-layout {
    /* flex: 1 already set on .site-main */
    max-width: 100%; /* Ensure it takes full available width */
    background-color: #fff;
    border-radius: 8px; /* Slight rounding if desired */
    /* Add padding/box-shadow if we want a "paper" look */
    /* box-shadow: 0 0 20px rgba(0,0,0,0.05); */
}

/* Hero Header */
.essay-hero-header {
    position: relative;
    padding: 60px 40px 40px; /* Top padding for breathing room */
    margin-bottom: 40px;
    background-color: #fff; /* White bg, but we can add subtle shapes */
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

/* Abstract Decorations */
.hero-shape-circle {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    opacity: 0.6;
    pointer-events: none;
}
.hero-shape-line {
    position: absolute;
    top: 40px;
    right: 50px;
    width: 300px;
    height: 100px;
    border-top: 1px solid #6c5ce7; /* Purple hairline */
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    transform: rotate(-10deg);
}

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

/* Category Label */
.essay-hero-category {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #a0a0a0; /* Light gray */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 15px; 
    border-left: 3px solid #6c5ce7; /* Purple accent bar */
    line-height: 1;
}

/* Main Title */
.essay-hero-title {
    font-size: 3.5rem; /* Large! */
    font-weight: 800;
    text-transform: uppercase;
    color: #8c7ae6; /* Soft Purple/Blue from image */
    line-height: 0.9;
    margin: 10px 0 15px;
    letter-spacing: -1px;
}

/* Date */
.essay-hero-date {
    font-size: 0.85rem;
    color: #ff4757; /* Pink/Red accent */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Area */
.essay-pro-content {
    padding: 0 40px 40px; /* Match header padding */
    font-size: 1.05rem; /* Slightly larger reading text */
    line-height: 1.8;
    color: #444;
}

.essay-pro-content p {
    margin-bottom: 25px;
}

/* Footer Decoration Area */
.essay-footer-decoration {
    position: relative;
    height: auto; /* Allow height to fit content */
    min-height: 150px;
    background: linear-gradient(to top right, #f3e5f5, #fff); /* Subtle purple fade */
    margin-top: 60px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 40px 0; /* Removing bottom padding so books sit on edge */
}

/* CSS Book Illustrations (SVG Overrides) */
.book-illustration {
    position: relative;
    bottom: -5px; /* Slight tuck */
    z-index: 1;
}

.left-book svg, .right-book svg {
    display: block; /* Remove inline-block spacing */
}

.left-book {
    margin-right: auto;
}
.right-book {
    margin-left: auto;
}

/* Navigation Style Update */
.essay-navigation {
    margin: 40px 40px 60px; /* More bottom margin */
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.essay-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.essay-navigation .nav-previous {
    text-align: left;
    max-width: 45%;
}

.essay-navigation .nav-next {
    text-align: right;
    max-width: 45%;
    margin-left: auto; /* Push to far right */
}

.essay-navigation a {
    text-decoration: none;
    display: inline-block;
    color: #444;
    transition: color 0.2s;
}

.essay-navigation a:hover {
    color: #2b54a3;
}

.essay-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}

.essay-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .essay-hero-title {
        font-size: 2.5rem;
    }
    .essay-pro-content {
        padding: 0 20px 40px;
    }
    .essay-hero-header {
        padding: 40px 20px 30px;
    }
    .essay-footer-decoration {
        padding: 20px 20px 0;
    }
    .book-illustration svg {
        width: 100px; /* Smaller mobile books */
        height: auto;
    }
    .essay-navigation .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    .essay-navigation .nav-previous, .essay-navigation .nav-next {
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }
}
