/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-color: #005b9f; /* A trustworthy, educational blue */
    --secondary-color: #fca311; /* A playful, energetic accent */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Shadows */
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust based on your logo size */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Removes top padding so the image touches the menu */
.hero-section.full-screen-layout {
    padding: 0 0 5rem 0; 
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Prepares the container to hold layered items */
.hero-full-image {
    width: 100vw;
    height: 97vh;
    position: relative; /* Crucial for positioning the text over it */
    margin-bottom: 3rem;
}

/* Positions the text over the image with a slight top margin */
.title-overlay {
    position: absolute;
    top: 8%; /* Adjust this percentage to move the text up or down */
    left: 50%;
    transform: translateX(-50%); /* Keeps it perfectly centered */
    width: 100%;
    z-index: 10; /* Ensures the text sits on top of the image */
}

/* This controls the smaller text: "Educational Services Pvt. Ltd." */
.hero-title {
    font-size: 2rem; /* Reduced from 3rem */
    white-space: nowrap;
    margin-bottom: 0;
    text-align: left;
    margin-left: 1rem;
    margin-top: -1rem;
    /* Keep whichever text-shadow you are currently using here */
    text-shadow: 2px 2px 0px #ffffff, -2px -2px 0px #ffffff, 2px -2px 0px #ffffff, -2px  2px 0px #ffffff, 0px 5px 10px rgba(0,0,0,0.15); 
}

/* This targets ONLY the word "Bookverse" */
.brand-large {
    font-size: 4.5rem; /* Makes it much larger than the rest of the title */
    font-weight: 700; /* Ensures it is bold and prominent */
    margin-right: 5px; /* Adds a tiny space between Bookverse and Educational */
}

.hero-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* ==========================================================================
   Legacy / Leadership Section
   ========================================================================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leader-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-card h3 {
    margin-bottom: 0.5rem;
}

.leader-card .role {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Leader Images
   ========================================================================== */
.leader-card.text-center {
    text-align: center;
}

.leader-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: var(--box-shadow);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image fills the circle without stretching */
    object-position: top center; /* Focuses on the face if the image is tall */
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: var(--white);
    transform: scale(1.1);
}


/* ==========================================================================
   Media Queries (Mobile Responsiveness)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
/* ==========================================================================
   Inner Page Headers
   ========================================================================== */
.page-header {
    border-bottom: 1px solid #eaeaeb;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-hero-image {
    margin-bottom: 4rem;
}

.services-hero-image img {
    max-height: 400px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    object-fit: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 91, 159, 0.1); /* Light version of primary color */
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Why Bookverse Section
   ========================================================================== */
.why-grid {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.why-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--primary-color);
    padding: 1.5rem 2rem;
}

.why-header h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.why-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.why-row:last-child {
    border-bottom: none;
}

.why-row:hover {
    background-color: #f4f9ff;
}

.why-offer {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-offer i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.why-meaning {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Our Approach Section
   ========================================================================== */
.approach-content {
    max-width: 800px;
    margin: 0 auto;
}

.approach-content p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.approach-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.approach-list li {
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eaeaea;
    transition: var(--transition);
}

.approach-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ==========================================================================
   Mobile Responsiveness for New Sections
   ========================================================================== */
@media (max-width: 768px) {
    /* Stack the Why Bookverse table on mobile */
    .why-header {
        display: none; /* Hide header row on small screens */
    }
    
    .why-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .why-offer {
        font-size: 1.1rem;
    }

    .why-meaning {
        padding-left: 1.8rem; /* Aligns text with the content, bypassing the icon */
        font-size: 0.95rem;
    }
    
    /* Adjust Approach list for mobile */
    .approach-list {
        flex-direction: column;
        align-items: center;
    }
    
    .approach-list li {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-info {
    max-width: 450px;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-text p {
    color: #cccccc; /* Soft grey for readability */
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.footer-text .footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-img {
        margin: 0 auto 1.5rem auto;
    }
    
    .social-links a {
        margin: 0 5px;
    }
}

/* ==========================================================================
   Educational Publishing Solutions (Services Page)
   ========================================================================== */
.solutions-content {
    max-width: 850px;
    margin: 0 auto;
}

.solutions-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.solutions-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.solutions-list li {
    background: var(--white);
    padding: 1rem 1.8rem;
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eaeaea;
    transition: var(--transition);
}

.solutions-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.solutions-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.solutions-footer-text {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.05rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
    margin-bottom: 0 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .solutions-list {
        flex-direction: column;
    }
    
    .solutions-list li {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================================================
   Portfolio Carousel & Showcase (Main Page)
   ========================================================================== */
.portfolio-category {
    margin-bottom: 4rem;
    position: relative; /* Needed for button positioning context */
}

.portfolio-category h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

/* Wrapper to hold track and buttons relative to each other */
.carousel-wrapper {
    position: relative;
    /* Ensure wrapper matches track height for accurate vertical centering */
    height: 100%; 
}

/* The scrolling track */
.scroll-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    /* Padding bottom for shadow; side padding removed for edge-to-edge flow */
    padding: 10px 0 20px 0; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.scroll-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Items */
.scroll-item {
    /* Shows 3 items at a time on desktop */
    flex: 0 0 calc(33.333% - 1rem); 
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    background: var(--white);
    transition: var(--transition);
}

.scroll-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effects for Showcase Items */
.carousel-card a {
    display: block;
    position: relative;
    cursor: pointer;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 91, 159, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.hover-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0);
    transition: var(--transition);
}

.carousel-card:hover .hover-overlay {
    opacity: 1;
}

.carousel-card:hover .hover-overlay i {
    transform: scale(1);
}

.carousel-card:hover img {
    transform: scale(1.05);
}

/* Navigation Buttons (Main Page Carousel) */
.carousel-btn {
    position: absolute;
    /* Vertically Center */
    top: 50%;
    transform: translateY(-50%);
    
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid #eee;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    /* Ensure they sit above images */
    z-index: 20; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Position on left/right edges */
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .scroll-item { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 576px) {
    .scroll-item { flex: 0 0 calc(90% - 0.5rem); }
    /* Hide buttons on mobile, let them swipe */
    .carousel-btn { display: none; } 
}

/* ==========================================================================
   GLightbox Full-Screen Custom Overrides
   ========================================================================== */

/* 1. Hide the bottom caption bar completely */
.gslide-description {
    display: none !important;
}

/* 2. Custom Edge-Hover Navigation (Fixed Hover Detection) */

.glightbox-container .gprev,
.glightbox-container .gnext {
    position: fixed;
    top: 0;
    height: 100vh;   /* Spans the full height of the screen */
    width: 15vw;     /* Takes up 15% of the screen width on the sides */
    margin: 0;
    border: none;
    background-color: transparent; /* Invisible, but still detects the mouse */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
}

.glightbox-container .gprev { left: 0; }
.glightbox-container .gnext { right: 0; }

/* Hide ONLY the SVG arrow icon by default */
.glightbox-container .gprev svg,
.glightbox-container .gnext svg {
    opacity: 0; 
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevents the icon from blocking the hover */
}

/* When hovering over the side zones, show a dark tint and reveal the arrow */
.glightbox-container .gprev:hover,
.glightbox-container .gnext:hover {
    background-color: rgba(0, 0, 0, 0.15); 
}

.glightbox-container .gprev:hover svg,
.glightbox-container .gnext:hover svg {
    opacity: 1; 
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .glightbox-container .gprev,
    .glightbox-container .gnext {
        height: auto;
        width: auto;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        margin: 0 10px;
    }
    .glightbox-container .gprev svg,
    .glightbox-container .gnext svg {
        opacity: 1; /* Always visible on mobile */
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.careers-image {
    flex: 1;
}

.careers-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.careers-content {
    flex: 1;
}

.careers-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.careers-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Application Card */
.apply-card {
    background-color: var(--bg-light);
    border: 1px solid #eaeaeb;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.apply-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-card h3 i {
    color: var(--primary-color);
}

.apply-card p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.apply-email {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.apply-email:hover {
    color: var(--secondary-color);
}

.apply-notes {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.apply-notes p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.apply-notes p i {
    margin-top: 3px;
    color: var(--secondary-color);
}

/* Mobile Adjustments for Careers */
@media (max-width: 992px) {
    .careers-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .careers-image {
        order: -1; /* Puts image above text on mobile */
    }
}

/* ==========================================================================
   Contact Page Section
   ========================================================================== */
.contact-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 91, 159, 0.1); /* Primary color transparent */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.info-details h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.info-details p,
.info-details a {
    color: var(--text-light);
    line-height: 1.5;
}

.info-details a:hover {
    color: var(--secondary-color);
}

/* Form Styles */
.contact-form-wrapper {
    flex: 1.2;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid #f0f0f0;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.ha-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #eaeaeb;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fafafa;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 91, 159, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Mobile Adjustments for Contact
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
} */

/* Individual Items (Strictly Enforced Width) */
.scroll-item {
    flex: 0 0 calc(33.333% - 1rem); 
    min-width: calc(33.333% - 1rem); /* Forces the card to NEVER shrink */
    max-width: calc(33.333% - 1rem); /* Forces the card to NEVER stretch */
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    background: var(--white);
    transition: var(--transition);
}

/* Image standardization */
.scroll-item img {
    width: 100%;
    height: 350px; /* Fixed height so all cards align perfectly */
    object-fit: contain; /* Ensures the whole book cover/PDF is visible without cropping */
    background-color: #f8f9fa; /* Adds a clean, light background behind narrower images */
    display: block;
    transition: transform 0.5s ease;
}

/* ==========================================================================
   Responsive Adjustments (Portfolio Carousel)
   ========================================================================== */
@media (max-width: 992px) {
    .scroll-item { 
        flex: 0 0 calc(50% - 1rem); 
        min-width: calc(50% - 1rem); /* Force 2 items on tablet */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .scroll-item { 
        flex: 0 0 calc(90% - 0.5rem); 
        min-width: calc(90% - 0.5rem); /* Force 1 main item on mobile */
        max-width: calc(90% - 0.5rem);
    }
    
    .scroll-item img {
        height: 220px; /* Shrinks the tall grey box to fit the mobile screen better */
    }
    
    .carousel-btn { 
        display: none; /* Hide buttons on mobile, let users swipe natively */
    } 
}
@media (max-width: 1024px) {
    .hero-title {
        white-space: normal; /* Allows text wrapping on tablets and phones */
        font-size: 1.5rem; /* Shrinks the smaller text for mobile */
        line-height: 1.2; 
    }
    .brand-large {
        font-size: 3rem; /* Shrinks "Bookverse" to fit smaller screens */
        display: block; /* Optional: This forces "Bookverse" onto its own line above the rest of the text on mobile, which often looks cleaner! Remove this line if you want to keep them side-by-side on phones. */
        line-height: 1;
    }
    .hero-full-image {
        height: 60vh; 
    }
}

