/* 
 * PENERBIT ARCollaboration Main Stylesheet
 * Modern and Professional Book Publisher Website
 * Created: June 24, 2025
 */

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary-color: #1a3c5a;
    --secondary-color: #c8a97e;
    --text-color: #333333;
    --text-light: #666666;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --gray-light: #f0f0f0;
    --gray-medium: #e0e0e0;
    --border-color: #e5e5e5;
    --overlay-color: rgba(26, 60, 90, 0.8);
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
    
    /* Spacing */
    --container-padding: 15px;
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 28px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections */
.section-padding {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-white {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===== Header ===== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.header.scrolled {
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-image {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

@media screen and (max-width: 992px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .site-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .site-title {
        font-size: 16px;
        max-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .logo-wrapper {
        gap: 8px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .site-title {
        font-size: 14px;
        max-width: 120px;
    }
}

.main-nav .nav-links {
    display: flex;
}

.main-nav .nav-links li {
    margin: 0 15px;
}

.main-nav .nav-links li a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

.main-nav .nav-links li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.main-nav .nav-links li a:hover::after,
.main-nav .nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle i.fa-times {
    transform: rotate(180deg);
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: var(--white-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    color: var(--white-color);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== Featured Books ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.book-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-cover {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.btn-view {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.book-info .author {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.book-info .genre {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Hover effect untuk info buku */
.book-card:hover .book-info h3 {
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    position: relative;
    padding-bottom: 30px;
}

.testimonial-content::before {
    content: '"';
    font-family: var(--heading-font);
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 120px;
    line-height: 1;
    color: var(--gray-medium);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* ===== Call to Action ===== */
.cta-section {
    background: url('../images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 100px 0;
    color: var(--white-color);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 18px;
    opacity: 0.9;
}

/* ===== News Section ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    line-height: 1;
}

.news-date .day {
    font-size: 18px;
    font-weight: 700;
}

.news-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* ===== Partners Section ===== */
.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 20px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    max-height: 80px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    margin-bottom: 25px;
    text-align: left;
}

.footer-logo h2 {
    color: var(--white-color);
    margin: 0;
    font-size: 28px;
}

.footer-logo span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    background-color: transparent;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    color: var(--white-color);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links li:not(:last-child)::after {
    content: '|';
    margin-left: 20px;
    color: var(--border-color);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
}

/* ===== Additional Page Styles ===== */

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    position: relative;
    padding: 0 15px;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    position: absolute;
    right: -5px;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb .active {
    color: rgba(255, 255, 255, 0.7);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vision-box, .mission-box {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.vision-box .icon, .mission-box .icon {
    width: 70px;
    height: 70px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 28px;
}

.vision-box h3, .mission-box h3 {
    margin-bottom: 20px;
}

.mission-box ul {
    padding-left: 20px;
}

.mission-box ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
    list-style-type: none;
}

.mission-box ul li::before {
    content: "•";
    position: absolute;
    left: -5px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--white-color);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.team-member:hover .member-social {
    bottom: 0;
}

.member-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
}

.member-info .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.member-info .bio {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: url('../images/stats-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
    color: var(--white-color);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-number .plus {
    font-size: 30px;
    margin-left: 5px;
}

.stat-title {
    font-size: 18px;
    opacity: 0.9;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white-color);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item.left .timeline-content {
    padding-right: 30px;
}

.timeline-item.right .timeline-content {
    padding-left: 30px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item.left .timeline-content::after {
    right: -12px;
}

.timeline-item.right .timeline-content::after {
    left: -12px;
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 30px;
}

.contact-info .lead {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 20px;
}

.contact-item .text h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.contact-item .text p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.social-connect h3 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Contact Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white-color);
    font-family: var(--body-font);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 60, 90, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 14px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-success i {
    margin-right: 5px;
}

/* Map Section */
.map-section {
    height: 400px;
}

#contactMap {
    height: 100%;
    width: 100%;
}

/* FAQ Section */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
}

.faq-item.active .faq-question h3 {
    color: var(--white-color);
}

.faq-item.active .toggle-icon {
    background-color: var(--white-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    background: url('../images/newsletter-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
    color: var(--white-color);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 60, 90, 0.9);
}

.newsletter-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--body-font);
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 25px;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
}

/* ===== Pagination Styling ===== */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0 5px 10px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white-color);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* More page-specific responsive styles */
@media (max-width: 992px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::after {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-content::after {
        left: -12px !important;
    }
}

/* Footer Responsive Styles */
@media screen and (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
    }
}

@media screen and (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        padding: 0 20px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-links li:not(:last-child)::after {
        display: none;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-logo img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .vision-mission {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .values-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Books Grid */
@media screen and (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 992px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .book-cover {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .book-cover {
        height: 400px;
    }

    .books-grid .book-info h3 {
        font-size: 24px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle i.fa-times {
    transform: rotate(180deg);
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding: 20px;
        background-color: var(--white-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
        font-size: 18px;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    body {
        padding-top: 80px;
    }
}
