:root {
    --primary-teal: #25b1a9;
    --light-sage: #e8ede5;
    --cream: #faf7f2;
    --dark-gray: #3a3a3a;
    --secondary-green: #4a7c3c;
    --search-bg: #b2cfce;
    --footer-bg: #e7f4f3;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--light-sage);
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header-bg {
    background-color: var(--primary-teal);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 20px 20px;
    box-shadow: 10px -2px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 0 25px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-box img {
    height: 97px;
    width: auto;
    margin: 8px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 0 20px;
    height: 30px;
    transition: all 0.25s ease;
}

.nav-item:hover {
    opacity: 0.8;
}

.nav-item i {
    font-size: 14px;
}

.nav-divider {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-divider::after {
    content: '';
    width: 1px;
    height: 16px;
    background-color: white;
    transform: rotate(90deg);
}

/* Search Section Styles */
.search-section {
    background-image: url('../images/banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.31);
    z-index: 2;
}

.bg-bookshelf-left {
    position: absolute;
    left: 160px;
    top: 50%;
    transform: translateY(-50%);
    width: 398px;
    height: 425px;
    object-fit: cover;
    z-index: 1;
}

.bg-table-right {
    position: absolute;
    left: 1150px;
    top: 326px;
    width: 580px;
    height: 321px;
    object-fit: cover;
    z-index: 1;
}

.bg-table-center {
    position: absolute;
    left: 535px;
    top: 326px;
    width: 580px;
    height: 321px;
    object-fit: cover;
    z-index: 1;
}

.bg-bookshelf-small {
    position: absolute;
    left: 9px;
    top: 284px;
    width: 151px;
    height: 331px;
    object-fit: cover;
    z-index: 1;
}

.bg-books-stack {
    position: absolute;
    left: 701px;
    top: 354px;
    width: 110px;
    height: 95px;
    object-fit: cover;
    z-index: 1;
}

.search-box {
    background-color: white;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.tab-btn {
    border: none;
    background: transparent;
    color: #666;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-teal);
}

.tab-btn.active {
    color: var(--primary-teal);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-teal);
}

.search-input-group {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input {
    border: none;
    background-color: #f5f5f5;
    padding: 14px 18px;
    flex: 1;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    color: var(--dark-gray);
    outline: none;
    border-radius: 10px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #1ea39b;
}

.search-btn:active {
    transform: translateY(0);
}

.advanced-search-links {
    padding-left: 0;
    margin-top: 10px;
    text-align: center;
}

.advanced-search-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    transition: color 0.2s ease;
}

.advanced-search-link:hover {
    color: var(--primary-teal);
    text-decoration: none;
}

/* Category Section Styles */
.category-section {
    background-color: #E7F4F3;
    padding: 60px 0;
}

.category-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.category-header-row .section-header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.section-header {
    margin-bottom: 40px;
    text-align: left;
}

.section-title {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    font-weight: 500;
}

.category-scroll {
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-teal);
    border-radius: 3px;
}

.category-button {
    background-color: #e0f2f1;
    border: 1.5px solid var(--primary-teal);
    border-radius: 30px;
    padding: 12px 32px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-button:hover {
    background-color: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 177, 169, 0.25);
}

/* New Books Section Styles */
.new-books-section {
    background-color: #FFF4D6;
    padding: 50px 0;
}

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-title-group {
    flex: 1;
    text-align: left;
}

.section-title-group .section-title {
    margin-bottom: 2px;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
}

.section-title-group .section-subtitle {
    margin-top: 0;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-transform: none;
    letter-spacing: normal;
}

.view-more-btn {
    background-color: #FFF4D6;
    border: 1.5px solid var(--primary-teal);
    color: #5A5A5A;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.view-more-btn:hover {
    background-color: var(--primary-teal);
    color: white;
}

.books-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.books-grid::-webkit-scrollbar {
    height: 6px;
}

.books-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.books-grid::-webkit-scrollbar-thumb {
    background: var(--primary-teal);
    border-radius: 3px;
}

.book-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 140px;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.book-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-info {
    padding: 12px;
}

.book-info p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* Suggested Menu Section Styles */
.suggested-menu-section {
    padding: 40px 0;
    background-color: #f8f8f8;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.menu-card {
    background-color: var(--primary-teal);
    border: 2px solid #129f97;
    border-radius: 20px;
    padding: 15px 30px;
    text-align: center;
    color: #000000;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    backdrop-filter: blur(10px);
    box-shadow: -141px 142px 146.3px 0px rgba(255, 230, 183, 0.12),
                140px 351px 151px 0px rgba(255, 230, 183, 0.01),
                79px 197px 127px 0px rgba(255, 230, 183, 0.04),
                35px 88px 94px 0px rgba(255, 230, 183, 0.07),
                9px 22px 52px 0px rgba(255, 230, 183, 0.08);
}

.menu-card:hover {
    transform: translateY(-3px);
}

.menu-card p {
    margin: 0;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
    font-weight: 400;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-teal);
    color: #000000;
    padding-top: 3rem;
}

.footer-content {
    padding-bottom: 1rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.96px;
    margin: 0 0 12px 0;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.school-info {
    min-width: 250px;
}

.school-name {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 2px 0;
}

.school-address {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

.phone-info {
    font-size: 14px;
    font-weight: 400;
    flex: 0 0 auto;
}

.phone-title {
    margin: 0 0 4px 0;
}

.phone-number,
.fax-number {
    margin: 0 0 4px 0;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease;
}

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

.footer-bottom {
    background-color: var(--footer-bg);
    padding: 1rem;
    color: var(--dark-gray);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
}

.footer-bottom-content i {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.footer-bottom-content i:hover {
    transform: translateY(-3px);
}

/* Responsive Styles */

/* General container adjustments */
.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .px-md-5 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .px-md-4 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Tablets (768px to 1024px) */
@media (max-width: 1024px) {
    .logo-box {
        width: 250px;
        padding: 0 15px;
    }

    .logo-box img {
        height: 80px;
    }

    .nav-item {
        padding: 0 12px;
        font-size: 12px;
    }

    .nav-item i {
        font-size: 12px;
    }

    .search-section {
        min-height: 400px;
    }

    .search-box {
        padding: 20px;
    }

    .search-tabs {
        gap: 15px;
        margin-bottom: 15px;
    }

    .tab-btn {
        font-size: 13px;
    }

    .category-header-row {
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .logo-box {
        width: 180px;
        padding: 0 10px;
        border-radius: 0 0 12px 12px;
    }

    .logo-box img {
        height: 60px;
        margin: 6px 0;
    }

    .nav-item {
        padding: 0 10px;
        font-size: 11px;
        gap: 3px;
    }

    .nav-item i {
        font-size: 14px;
    }

    .search-section {
        min-height: 350px;
    }

    .search-box {
        padding: 16px 12px;
        margin: 0 auto;
    }

    .search-tabs {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 12px;
    }

    .tab-btn {
        font-size: 11px;
        padding: 6px 0;
    }

    .search-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .search-btn {
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }

    .advanced-search-links {
        flex-direction: column;
        gap: 8px;
    }

    .advanced-search-link {
        font-size: 12px;
    }

    .category-section {
        padding: 30px 0;
    }

    .category-header-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .section-header {
        margin-bottom: 0;
        text-align: left;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .category-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .new-books-section {
        padding: 30px 0;
    }

    .section-header-with-button {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .section-title-group {
        width: 100%;
    }

    .section-title-group .section-title {
        font-size: 20px;
    }

    .view-more-btn {
        width: 100%;
    }

    .books-grid {
        gap: 12px;
    }

    .book-card {
        width: 110px;
        min-width: 110px;
    }

    .book-card img {
        height: 160px;
    }

    .book-info {
        padding: 8px;
    }

    .book-info p {
        font-size: 11px;
    }

    .suggested-menu-section {
        padding: 25px 0;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .menu-card {
        height: 55px;
        padding: 8px 15px;
        border-radius: 12px;
    }

    .menu-card p {
        font-size: 12px;
    }

    .footer-content {
        padding: 25px 1rem 12px;
    }

    .footer-bottom {
        padding: 10px 1rem;
    }

    .footer-title {
        font-size: 18px;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    .school-name {
        font-size: 14px;
    }

    .school-address {
        font-size: 11px;
    }

    .phone-info {
        font-size: 11px;
    }

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

    .footer-bottom-content i {
        font-size: 20px;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .logo-box {
        padding: 0 8px;
    }

    .logo-box img {
        height: 50px;
        margin: 4px 0;
    }

    .nav-item {
        padding: 0 8px;
        font-size: 10px;
    }

    .nav-item span {
        display: none;
    }

    .search-section {
        min-height: 300px;
    }

    .search-box {
        padding: 12px 10px;
    }

    .search-tabs {
        gap: 8px;
        margin-bottom: 10px;
    }

    .tab-btn {
        font-size: 10px;
        padding: 5px 0;
    }

    .search-input {
        padding: 10px 10px;
        font-size: 12px;
    }

    .search-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .search-btn span {
        display: none;
    }

    .section-title {
        font-size: 18px;
    }

    .category-button {
        padding: 8px 16px;
        font-size: 11px;
    }

    .books-grid {
        gap: 10px;
    }

    .book-card {
        width: 95px;
        min-width: 95px;
    }

    .book-card img {
        height: 140px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        height: 50px;
        padding: 6px 12px;
    }

    .menu-card p {
        font-size: 11px;
    }

    .footer-content {
        padding: 20px 1rem 10px;
    }

    .footer-bottom {
        padding: 8px 1rem;
    }

    .footer-title {
        font-size: 16px;
    }

    .school-name {
        font-size: 12px;
    }

    .school-address {
        font-size: 10px;
    }

    .phone-info {
        font-size: 10px;
    }

    .footer-bottom-content p {
        font-size: 10px;
    }

    .footer-bottom-content i {
        font-size: 18px;
    }
}
