/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header and Navigation */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #2c3e50;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #2980b9;
}

.hero-image {
    flex: 1;
    max-width: 30%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 0.5rem auto;
}

/* Grid Layout */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Cards */
.book-card, .hub-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover, .hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-image, .hub-image {
    width: 80%;
    height: 250px;
    object-fit: cover;
}

.book-title, .hub-title {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #2c3e50;
    font-size: 1.25rem;
}

.book-description, .hub-description {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* About Section */
.about-section {
    margin-bottom: 4rem;
    background: #f7f7f7;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.about-text {
    flex: 2;
    color: #444;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: #555;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-section {
    margin-bottom: 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
}

.copyright {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .three-column-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .about-image {
        max-width: 80%;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-content,
    .contact-content {
        padding: 1.5rem;
    }
}
/* --------------------------------------------------
   GLOBAL IMAGE NORMALIZATION
   Prevents oversized images and layout blowouts
-------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* --------------------------------------------------
   HERO IMAGE CONTROL
   Ensures hero images never become too tall
-------------------------------------------------- */
.hero-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
}

/* --------------------------------------------------
   BOOK & HUB IMAGE CONTROL
   Keeps card images consistent and prevents stretching
-------------------------------------------------- */
.book-image,
.hub-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

/* --------------------------------------------------
   SECTION WIDTH NORMALIZATION
   Prevents sections from stretching too wide
-------------------------------------------------- */
section,
header,
footer,
.main-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------
   GRID NORMALIZATION
   Ensures grids stay centered and evenly spaced
-------------------------------------------------- */
.three-column-grid {
    justify-items: center;
}

/* --------------------------------------------------
   CARD NORMALIZATION
   Ensures consistent card appearance
-------------------------------------------------- */
.book-card,
.hub-card {
    max-width: 350px;
}

/* --------------------------------------------------
   FOOTER IMAGE SAFETY
-------------------------------------------------- */
footer img {
    max-height: 80px;
    object-fit: contain;
}
