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



/* Base body styles (shared) */
body {
    font-family: 'EB Garamond', serif;
    font-size: 14pt;
    line-height: 1.2;
    background-color: #ffffff;
    color: #000000;
    scroll-behavior: smooth;
    /* NO padding-top here - set per page */
}

/* Main page (sticky header) */
.home-page {
    padding-top: 0 !important;
}

.home-page .main-header {
    position: sticky !important;
    top: 38px !important; /* Below notification bar */
}

/* Feedback page (fixed header) */
.feedback-page {
    padding-top: 140px !important;
}

.feedback-page .main-header {
    position: fixed !important;
    top: 38px !important;
}

/* Link styles */
a {
    color: #a31f34;
    text-decoration: underline;
}

a:hover {
    color: #000000;
}

a:visited {
    color: #a31f34; /* From second sheet */
}

/* Paragraph spacing */
p {
    margin-bottom: 15px;
    font-family: 'EB Garamond', serif;
    font-size: 14pt; /* First sheet: 14pt wins over second: 15pt */
    line-height: 1.2; /* From second sheet */
    margin: 0 0 15px 0; /* From second sheet - combined */
}

/* Headings - Anton font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 200; /* First sheet: 200 wins over second: 400 */
}

h1 {
    font-size: 40px; /* From second sheet */
}

h2 {
    font-size: 32px; /* From second sheet */
}

h3 {
    font-size: 24px; /* From second sheet */
}

h4 {
    font-size: auto; /* From second sheet - will use base size */
}

/* TOP NOTIFICATION BAR */
.notification-bar {
    background-color: #000000;
    color: #ffcc00;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-family: 'EB Garamond', serif;
    position: fixed; /* From second sheet */
    top: 0; /* From second sheet */
    width: 100%; /* From second sheet */
    z-index: 1000; /* From second sheet */
}

.notification-bar:hover {
    opacity: 0.9;
}

.notification-bar a {
    color: #ffcc00;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
}

.notification-bar span {
    color: #ffffff;
    font-weight: bold;
    font-family: 'EB Garamond', serif;
}

/* HEADER STYLES */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky; /* First sheet: sticky wins over second: fixed */
    top: 0; /* First sheet: 0 wins over second: 38px */
    z-index: 100;
    width: 100%; /* From second sheet */
}

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

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 45px;
    height: 52px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: #000;
}

.logo-image:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    font-family: 'EB Garamond', serif;
    color: #333;
    text-decoration: none;
    position: relative;
}

.nav-menu a:hover {
    color: #a31f34;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    padding: 10px 0;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px;
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: #a31f34 !important;
    background-color: #f9f9f9;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    font-family: 'EB Garamond', serif;
}

/* ALTERNATE SIDES SECTION */
.alternate-sides-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.alternate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.alternate-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    min-height: 400px;
}

/* Item 1, 3, 5, etc. (odd) - text left, image right */
.alternate-item:nth-child(odd) .alternate-content {
    order: 1;
}

.alternate-item:nth-child(odd) .alternate-image {
    order: 2;
}

/* Item 2, 4, 6, etc. (even) - image left, text right */
.alternate-item:nth-child(even) .alternate-content {
    order: 2;
}

.alternate-item:nth-child(even) .alternate-image {
    order: 1;
}

.alternate-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'EB Garamond', serif;
}

.alternate-image {
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
    padding: 40px;
}

.alternate-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.alternate-image:hover img {
    transform: scale(1.03);
}

.alternate-heading {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.alternate-description {
    font-family: 'EB Garamond', serif;
    font-size: 13pt;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 15px;
}

/* Erik Peter specific styles */
.novel-subtitle {
    font-family: 'Anton', sans-serif;
    font-size: 13px;
    color: #a31f34;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    font-weight: 400;
}

.order-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: #a31f34;
    color: white;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #a31f34;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 20px;
}

.order-link:hover {
    background-color: #8a1a2d;
    border-color: #8a1a2d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 31, 52, 0.3);
}

/* Main content columns (From second sheet - NEW) */
.row {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 50px;
}

.column.side {
    width: 5%;
}

.column.middle, .column.middle1 {
    width: 45%;
    padding: 10px;
    margin: 0;
}

/* Image styling (From second sheet - NEW) */
.content-image {
    float: right;
    max-width: 50%;
    height: auto;
    margin-left: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
.static-footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 30px;
    font-family: 'EB Garamond', serif;
    border-top: 3px solid #a31f34;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-section .footer-logo {
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-tagline {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    max-width: 300px;
    font-family: 'EB Garamond', serif;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', serif;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-family: 'EB Garamond', serif;
}

.footer-column ul li a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'EB Garamond', serif;
}

.footer-column ul li a:hover {
    color: #a31f34;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: #999;
    font-family: 'EB Garamond', serif;
}

/* Scroll offset for fixed header */
section[id] {
    scroll-margin-top: 140px;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
}

/* NEWSLETTER FORM */
.newsletter-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    font-family: 'EB Garamond', serif;
}

.newsletter-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'EB Garamond', serif;
}

.newsletter-title {
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.newsletter-form {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #000;
    border-right: none;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    outline: none;
}

.newsletter-input:focus {
    border-color: #a31f34;
}

.newsletter-submit {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 12px 25px;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background-color: #a31f34;
    border-color: #a31f34;
}

#message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
    font-family: 'EB Garamond', serif;
}

/* SLIDESHOW STYLES */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slideshow-slide {
    display: none;
    flex: 1;
    padding: 30px;
    background-color: white;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.slideshow-slide.active {
    display: flex;
}

.slideshow-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slideshow-prev, .slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: #a31f34;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid white;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    font-family: 'EB Garamond', serif;
}

.slideshow-next {
    right: -35px;
}

.slideshow-prev {
    left: -35px;
}

.slideshow-prev:hover, .slideshow-next:hover {
    background-color: #8a1a2d;
    transform: translateY(-50%) scale(1.1);
}

.slideshow-dots {
    text-align: center;
    padding: 20px 0 0 0;
    background-color: transparent;
    width: 100%;
    margin-top: 10px;
}

.slideshow-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #999;
}

.slideshow-dot.active, .slideshow-dot:hover {
    background-color: #a31f34;
    transform: scale(1.2);
}

.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: 0.6}
    to {opacity: 1}
}

.slideshow-slide.vertical img {
    max-height: 90%;
    max-width: 70%;
}

/* RESPONSIVE DESIGN - Merged from both sheets */
@media (max-width: 992px) {
    .alternate-item {
        gap: 40px;
        min-height: 350px;
    }

    .alternate-image {
        height: 350px;
        padding: 30px;
    }

    .alternate-heading {
        font-size: 28px;
    }
    
    h1 {
        font-size: 32px; /* From second sheet */
    }
    
    h2 {
        font-size: 28px; /* From second sheet */
    }
    
    h3 {
        font-size: 22px; /* From second sheet */
    }
    
    .slideshow-container {
        height: 350px;
    }
    
    .slideshow-slide {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px; /* From second sheet */
    }
    
    section[id] {
        scroll-margin-top: 120px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: none;
        z-index: 1000;
        overflow-y: auto;
        font-family: 'EB Garamond', serif;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(0,0,0,0.05);
        border: none;
        box-shadow: none;
        margin: 10px 0;
        width: 100%;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .alternate-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
        gap: 30px;
        margin-bottom: 60px;
    }

    /* ON MOBILE: ALL SECTIONS SHOW IMAGE FIRST, TEXT SECOND */
    .alternate-content {
        order: 2 !important;
        padding: 20px 15px;
    }

    .alternate-image {
        order: 1 !important;
        height: 300px;
        width: 100%;
        padding: 25px;
    }

    .alternate-heading {
        font-size: 24px;
    }

    .order-link {
        align-self: center;
        width: 100%;
        text-align: center;
    }

    .main-header {
        top: 0; /* First sheet: 0 wins over second: 32px */
    }
    
    .row {
        flex-direction: column;
        padding: 0 15px;
        gap: 30px;
    }
    
    .column.side, .column.middle, .column.middle1 {
        width: 100%;
    }
    
    .content-image {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
    
    .notification-bar {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        border-right: 2px solid #000;
    }
    
    .slideshow-container {
        height: 300px;
    }
    
    .slideshow-slide {
        padding: 20px;
    }
    
    .slideshow-next {
        right: 10px;
    }
    
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-prev, .slideshow-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .slideshow-dots {
        padding: 15px 0 0 0;
    }
}

@media (max-width: 576px) {
    .alternate-image {
        height: 250px;
        padding: 20px;
    }

    .alternate-heading {
        font-size: 22px;
    }

    .order-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }

    .footer-column {
        min-width: 100%;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-image {
        width: 40px;
        height: 46px;
    }

    .notification-bar {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    h1 {
        font-size: 28px; /* From second sheet */
    }
    
    h2 {
        font-size: 24px; /* From second sheet */
    }
    
    h3 {
        font-size: 20px; /* From second sheet */
    }
    
    .slideshow-container {
        height: 250px;
    }
    
    .slideshow-slide {
        padding: 15px;
    }
    
    .slideshow-prev, .slideshow-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .slideshow-dots {
        padding: 10px 0 0 0;
    }
}




/* FIX FOR FEEDBACK PAGE - Add to your style.css */

/* Row container fix */
.row {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    gap: 50px !important;
}

/* Column width fixes */
.column.side {
    width: 5% !important;
}

.column.middle, .column.middle1 {
    width: 45% !important;
    padding: 10px !important;
    margin: 0 !important;
}

/* Header fix for feedback page specifically */
.feedback-page .main-header,
body:has(.row) .main-header {
    position: fixed !important;
    top: 38px !important;
}

.feedback-page body,
body:has(.row) {
    padding-top: 180px !important; /* Adjust if needed */
}

/* Ensure content-image styling works */
.content-image {
    float: right !important;
    max-width: 50% !important;
    height: auto !important;
    margin-left: 15px !important;
    margin-bottom: 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile fixes for feedback page */
@media (max-width: 768px) {
    .row {
        flex-direction: column !important;
        padding: 0 15px !important;
        gap: 30px !important;
    }
    
    .column.side, .column.middle, .column.middle1 {
        width: 100% !important;
    }
    
    .content-image {
        float: none !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Adjust header for mobile */
    .feedback-page .main-header,
    body:has(.row) .main-header {
        top: 32px !important;
    }
    
    .feedback-page body,
    body:has(.row) {
        padding-top: 150px !important;
    }
}
