:root {
    --brown1: #3c1a10;    
    --brown1-contrast: #f6b482;  
    --brown2: #622f1a;     
    --brown2-contrast: #d0c579;  
    --red1: #651514;       
    --red1-contrast: #f6b482;   
    --red2: #a53029;
    --red2-contrast: #f6b280;
    --green1: #1a2515;  
    --green1-contrast: #d2c47b;
    --green2: #928537;
    --green2-contrast: #d2c47b;
    --header-color: #f7e9db;        

    --font-primary: 'Arial', sans-serif;
    --font-heading: 'Georgia', sans-serif;
}

body {
  background-color: var(--brown1);
  color: var(--brown1-contrast);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brown2-contrast);
    margin-top: 0;
}

p {
    font-family: var(--font-primary);
    color: var(--brown1-contrast);
    line-height: 1.6;
    font-size: 20px;
}

header {
    background-color: var(--red1-contrast);
    padding: 20px;
    margin-bottom: 30px;
}

/* Update the header-content for mobile */
.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap; /* Add this to allow wrapping on mobile */
}

/* Add mobile-specific styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Stack elements vertically */
        text-align: center;
        gap: 20px;
        padding: 10px;
    }
    
    .header-text {
        order: 1; /* Ensure text comes after logo */
        width: 100%;
    }
    
    .social {
        order: 2; /* Social icons come last */
        width: 100%;
        margin-top: 0px !important;
        justify-content: center;
        flex-wrap: wrap; /* Allow icons to wrap if needed */
        gap: 20px; /* Increase gap for mobile */
    }
    
    .logo {
        order: 0; /* Logo comes first */
        width: 120px;
        height: 120px;
    }
    
    .header {
        font-size: 36px; /* Smaller font for mobile */
    }
    
    .subheader {
        font-size: 14px;
    }
    
    .icon {
        height: 40px; /* Slightly smaller icons for mobile */
        margin: 0 10px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .header {
        font-size: 28px;
    }
    
    .subheader {
        font-size: 12px;
    }
    
    .social {
        gap: 15px;
    }
    
    .icon {
        height: 35px;
        margin: 0 8px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
}

.header {
    font-size: 48px;
    color: var(--red1) !important;
    margin: 0;
}

.header-text {
    flex: 1;
}

.subheader {
    font-size: 16px;
    color: var(--red2);
    margin-top: 5px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.headline {
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 10px;
}

.headline p {
    margin: 0;
    font-size: 40px;
    color: var(--brown1-contrast);
}

@media (max-width: 768px) {
    .headline {
        padding: 20px;
    }
    
    .headline p {
        font-size: 28px;
    }
}

.video-section {
    margin-bottom: 40px 0;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.social  {
    display: flex;
    gap: 0px;
    margin-top: 75px;
}

.icon {
    height: 35px;
    margin: 0 15px;
    transition: transform 0.3s;
}

.social .icon,
.footer-social .icon {
    filter: brightness(0) saturate(100%) invert(11%) sepia(35%) saturate(1629%) hue-rotate(346deg) brightness(95%) contrast(97%);
}

.social .icon:hover,
.footer-social .icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.about {
    position: relative;
    padding: 40px 0;
    margin: 40px 0;
    display: flex;
    align-items: center; /* Vertically center items */
    gap: 70px; /* Space between image and content */
    max-width: 1500px; /* Increase max-width for side-by-side layout */
    margin: 40px auto; /* Center the entire section */
    padding: 60px 40px; /* Add more padding */
    margin-top: 0
}

/* Full width background container */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: 
        linear-gradient(rgba(60, 26, 16, 0.7), rgba(60, 26, 16, 1)),
        url('autumn.png') center/cover no-repeat;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
}

.highlight-name {
    color: var(--brown2-contrast);
    font-weight: bold;
    font-size: 1.4rem;
}

.about-image {
    width: 250px; /* Increased image width */
    flex-shrink: 0; /* Prevent image from shrinking */
    margin-bottom: 0; /* Remove bottom margin */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    align-items: center;
}

.about-content {
    flex: 1; /* Take remaining space */
    position: relative;
    z-index: 1;
    padding: 0; /* Remove padding since container has it */
}

.about-content p {
    color: var(--header-color);
    font-size: 1.2rem; /* Slightly larger text */
    line-height: 1.5; /* Better line spacing */
}

/* Responsive design for smaller screens */
@media (max-width: 1200px) {
    .about {
        max-width: 1100px;
        gap: 40px;
    }
    
    .about-image {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .about {
        max-width: 900px;
        gap: 35px;
    }
    
    .about-image {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .about {
        flex-direction: column; /* Stack on mobile */
        text-align: left;
        gap: 30px;
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .about-image {
        width: 280px;
        margin: 0 auto; /* Center image on mobile */
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
}

.livros-section {
    background-color: var(--brown2); /* Full width background */
    padding: 60px 0; /* Vertical padding */
    margin: 50px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0px;
}

.livros-descritivo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.livros-descritivo h2 {
    margin-bottom: 3rem;
    margin-left: 3rem;
    color: var(--brown1-contrast);
    font-size: 2.5rem;
    text-align: center;
}

/* Book container styling */
.livro {
    margin-bottom: 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Alternate background colors for books */
.livro:nth-child(odd) {
    background: linear-gradient(135deg, var(--brown1-contrast) 0%, var(--brown1-contrast) 100%);
}

.livro:nth-child(even) {
    background: linear-gradient(135deg, var(--brown2-contrast) 0%, var(--brown2-contrast) 100%);
}

.livro-container {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.livro-conteudo {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.livro-imagem {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
}

.livro-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
}

/* Reverse layout for alternate books */
.livro-reverse {
    flex-direction: row-reverse;
}

/* Content styling */
.livro h3 {
    color: var(--red1);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(44, 62, 80, 0.1);
    padding-bottom: 0.5rem;
}

.livro blockquote {
    font-style: italic;
    color: var(--brown2);
    border-left: 4px solid var(--green2);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.livro p {
    color: var(--brown2);
    line-height: 1.7;
    font-size: 1rem;
}

.livro strong {
    color: var(--red2);
}

/* Responsive design */
@media (max-width: 992px) {
    .livro-container {
        flex-direction: column;
    }
    
    .livro-reverse {
        flex-direction: column;
    }
    
    .livro-imagem {
        flex: 0 0 auto;
        order: -1;
        padding: 1.5rem;
    }
    
    .livro-imagem img {
        max-height: 300px;
        width: auto;
        max-width: 100%;
    }
    
    .livro-conteudo {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .livro {
        margin-bottom: 2.5rem;
    }
    
    .livro-conteudo {
        padding: 1.5rem;
    }
    
    .livro h3 {
        font-size: 1.3rem;
    }
    
    .livros-descritivo {
        padding: 1rem;
    }
}

a.editora {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 3rem;
}

.editora:active {
    transform: translateY(0);
}

.button-container {
    display: flex;
    justify-content: center;
}

.button-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.button-images a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.button-images a:hover {
    transform: scale(1.05);
}

.button-images img {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    object-fit: cover; /* Or 'contain' depending on your preference */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feedback-section {
    background-color: var(--header-color); /* Background extends full width */
    padding: 70px 0; /* Vertical padding only */
    margin: 50px 0;
    width: 100vw; /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0px;
}

.feedback {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feedback h2 {
    color: var(--red2);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.feedback > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 20px;
}

.feedback-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height if images are too tall */
    object-fit: contain; /* Ensures whole image shows */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feedback-image {
    max-height: 1000px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.feedback-image:hover {
    transform: translateY(-5px);
}

/* Updated CSS for side-by-side layout */
.carousel-section {
    padding: 60px;
    max-width: 1400px;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--brown1-contrast) 0%, var(--brown2-contrast) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.carousel-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-left {
    flex: 0 0 35%;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.carousel-right {
    flex: 0 0 65%;
}

.carousel-left h2 {
    color: var(--red2);
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-align: left;
    border-bottom: 3px solid var(--red1);
    padding-bottom: 15px;
}

.carousel-left p {
    color: var(--brown1);
    font-size: 24px;
    line-height: 1.5;
    margin-top: 20px;
}

.carousel-description {
    color: var(--brown1-contrast);
    font-size: 1.1rem;
    line-height: 1.8;
}

.carousel-description p {
    color: var(--brown1-contrast);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--red1) 0%, var(--red2) 100%);
    color: var(--brown1-contrast);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--red2) 0%, var(--red1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(165, 48, 41, 0.4);
    border-color: var(--brown1-contrast);
    text-decoration: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(60, 26, 16, 0.95), transparent 95%);
    color: var(--brown1-contrast);
    padding: 25px;
    text-align: left;
}

.slide-caption h3 {
    color: var(--brown2-contrast);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slide-caption p {
    color: var(--brown1-contrast);
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(165, 48, 41, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--red2);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--red2);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(165, 48, 41, 0.8);
}

.indicator:hover {
    background: var(--brown2-contrast);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-layout {
        gap: 40px;
    }
    
    .carousel-left {
        flex: 0 0 40%;
    }
    
    .carousel-right {
        flex: 0 0 60%;
    }
    
    .carousel-track {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .carousel-section {
        padding: 40px 20px;
    }
    
    .carousel-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .carousel-left,
    .carousel-right {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .carousel-left {
        position: static;
        padding: 0;
    }
    
    .carousel-left h2 {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .carousel-description {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .carousel-track {
        height: 400px;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .carousel-left h2 {
        font-size: 2.2rem;
    }
    
    .carousel-track {
        height: 350px;
    }
    
    .slide-caption h3 {
        font-size: 1.5rem;
    }
    
    .slide-caption p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        height: 300px;
    }
    
    .carousel-left h2 {
        font-size: 1.8rem;
    }
    
    .slide-caption {
        padding: 15px;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Footer Styles */
footer {
    background-color: var(--brown1-contrast);
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Align items to top */
}

/* Contact Section */
.footer-section.contact h3 {
    color: var(--red2);
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section.contact p {
    margin: 10px 0;
    color: var(--red1);
    font-size: 18px;
    line-height: 1.2;
}

/* Social & Copyright Section */
.footer-section.social-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to the right */
    text-align: right;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-social .icon {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-social .icon:hover {
    transform: scale(1.1);
}

/* Copyright Section with Line */
.footer-bottom {
    width: 100%;
    padding-top: 20px;
    border-top: 2px solid var(--green2);
}

.footer-bottom p {
    color: var(--red1);
    margin: 5px 0;
    font-size: 15px;
}

.footer-bottom a {
    color: var(--green1);
    font-family: var(--font-primary);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 30px;
    }
    
    .footer-section.contact {
        text-align: center;
    }
    
    .footer-section.social-copyright {
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}