/* ===================================
   Index Page Redesign - Modern Styles
   =================================== */

/* Prevent horizontal scroll on mobile */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.MainPage {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

section {
    overflow-x: hidden;
    max-width: 100%;
}

/* Hero Section */
.IndexNew-hero {
    background: white;
    padding: 60px 20px 0px;
    position: relative;
    overflow: hidden;
}

.IndexNew-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.IndexNew-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.IndexNew-hero-container .row,
.IndexNew-hero-container .col-xl-6,
.IndexNew-hero-container .col-lg-6,
.IndexNew-hero-container .col-md-12 {
    box-sizing: border-box;
}

.IndexNew-hero-content {
    max-width: 600px;
}

.IndexNew-hero-title {
    font-family: 'Helvetica Neue', serif;
    text-transform: uppercase;
    font-size: 56px;
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0 24px 0;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.IndexNew-hero-subtitle {
    font-size: 20px;
    color: #4b5563;
    margin: 0 0 32px 0;
    line-height: 1.7;
}

.IndexNew-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: white;
    color: #32a8ee;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.IndexNew-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #32a8ee;
}

.IndexNew-hero-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
}

.IndexNew-hero-trust img {
    height: auto;
    width: 150px;
}

.IndexNew-hero-trust b {
    color: #1f2937;
    font-size: 16px;
}

.IndexNew-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.IndexNew-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.IndexNew-hero-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
    padding: 5px;
}

.IndexNew-hero-book {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.IndexNew-hero-book:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.IndexNew-hero-book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 2/3;
}

/* Show only first 9 books in hero grid */
.IndexNew-hero-book:nth-child(n + 10) {
    display: none;
}

/* Featured In Section */
.IndexNew-featured {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.IndexNew-featured-title {
    font-size: 18px;
    font-weight: 600;
    color: #5a5a5a;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.IndexNew-featured-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.IndexNew-featured-logos img {
    max-width: 140px;
    height: 50px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.IndexNew-featured-logos img:hover {
    opacity: 1;
}

/* Books Section */
.IndexNew-books-section {
    background: #f8f9fc;
    padding: 80px 20px;
}

.IndexNew-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.IndexNew_portfolio {
    max-width: 1000px;
    margin: 0 auto;
}

.IndexNew-section-body {
    text-align: center;
}

.IndexNew-section-body .IndexNew-section-title {
    margin-bottom: 30px;
}

.IndexNew-section-body h3 {
    font-family: 'Helvetica Neue', serif;
}

.IndexNew-features-grid {
    box-sizing: border-box;
    padding: 0 20px;
}

.IndexNew-feature-item {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.IndexNew-section-title {
    font-size: 42px;
    font-weight: 700;
    color: #123048;
    font-family: 'Helvetica Neue', serif;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.IndexNew-section-subtitle {
    font-size: 18px;
    color: #5a5a5a;
    margin: 0;
    line-height: 1.6;
}

/* Category Section */
.IndexNew-category {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.IndexNew-category:last-child {
    margin-bottom: 0;
}

.IndexNew-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.IndexNew-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #123048;
    margin: 0;
}

.IndexNew-category-link {
    color: #32a8ee;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.IndexNew-category-link:hover {
    color: #1a8cd8;
    text-decoration: none;
    transform: translateX(4px);
}

.IndexNew-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.IndexNew-book-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.IndexNew-book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.IndexNew-book-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #f0f0f0;
}

.IndexNew-book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.IndexNew-book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 153, 225, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.IndexNew-book-card:hover .IndexNew-book-overlay {
    opacity: 1;
}

.IndexNew-book-overlay-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.IndexNew-book-info {
    padding: 16px;
}

.IndexNew-book-title {
    font-size: 15px;
    font-weight: 600;
    color: #123048;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.IndexNew-book-title a {
    color: #123048;
    text-decoration: none;
    transition: color 0.3s ease;
}

.IndexNew-book-title a:hover {
    color: #32a8ee;
}

.IndexNew-book-author {
    font-size: 13px;
    color: #5a5a5a;
    margin: 0 0 8px 0;
}

.IndexNew-book-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5a5a5a;
}

.IndexNew-book-rating svg {
    color: #ffc107;
    flex-shrink: 0;
}

.IndexNew-book-rating-count {
    color: #999;
}

.IndexNew-view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

.IndexNew-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #32a8ee 0%, #1a8cd8 100%);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.IndexNew-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    text-decoration: none;
    color: white;
}

/* CTA Section */
.IndexNew-cta-section {
    background: linear-gradient(135deg, #32a8ee 0%, #1a8cd8 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.IndexNew-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.IndexNew-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.book-testimonials h2 {
    font-family: 'Helvetica Neue', serif;
    text-transform: uppercase;
}

.IndexNew-testimonials-section .book-testimonials {
    margin-top: 50px !important;
}

.IndexNew-testimonials-section .book-testimonials h2 {
    font-family: 'Helvetica Neue', serif;
    text-transform: uppercase;
}

.IndexNew-cta-title {
    font-family: 'Helvetica Neue', serif;
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.IndexNew-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.IndexNew-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: white;
    color: #32a8ee;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.IndexNew-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #32a8ee;
}

/* Devices Section */
.IndexNew-devices-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.IndexNew-devices-title {
    font-size: 42px;
    font-family: 'Helvetica Neue', serif;
    font-weight: 700;
    color: #123048;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.IndexNew-devices-title span {
    background: linear-gradient(135deg, #32a8ee 0%, #1a8cd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.IndexNew-devices-subtitle {
    font-size: 18px;
    color: #5a5a5a;
    margin: 0 0 48px 0;
}

.IndexNew-devices-image {
    max-width: 600px;
    margin: 0 auto 40px;
}

.IndexNew-devices-image img {
    width: 100%;
    height: auto;
}

.IndexNew-devices-stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.IndexNew-devices-stores img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.IndexNew-devices-stores a:hover img {
    transform: scale(1.05);
}

/* Categories Section */
.IndexNew-categories-section {
    background: #f8f9fc;
    padding: 80px 20px;
}

.IndexNew-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.IndexNew-category-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.IndexNew-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.IndexNew-category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #32a8ee 0%, #1a8cd8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.IndexNew-category-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.IndexNew-category-name {
    font-size: 18px;
    font-weight: 600;
    color: #123048;
    margin: 0;
}

.IndexNew-category-card a {
    text-decoration: none;
    color: inherit;
}

/* FAQ Section */
.IndexNew-faq-section {
    background: white;
    padding: 80px 20px;
}

.IndexNew-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.IndexNew-faq-list {
    margin-bottom: 30px;
}

.IndexNew-faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.IndexNew-faq-item input[type='checkbox'] {
    display: none;
}

.IndexNew-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #123048;
    transition: background 0.3s ease;
    margin: 0;
}

.IndexNew-faq-question:hover {
    background: #f8f9fc;
}

.IndexNew-faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #32a8ee;
}

.IndexNew-faq-item input[type='checkbox']:checked + .IndexNew-faq-question svg {
    transform: rotate(180deg);
}

.IndexNew-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.IndexNew-faq-item input[type='checkbox']:checked ~ .IndexNew-faq-answer {
    max-height: 1000px;
    padding: 0 28px 24px;
}

.IndexNew-faq-answer p {
    font-size: 15px;
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.IndexNew-faq-answer p:last-child {
    margin-bottom: 0;
}

.IndexNew-faq-answer strong {
    color: #123048;
}

.IndexNew-faq-footer {
    text-align: center;
    font-size: 16px;
    color: #5a5a5a;
}

.IndexNew-faq-footer a {
    color: #32a8ee;
    text-decoration: none;
    font-weight: 600;
}

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

/* Book Links Section */
.IndexNew-book-links-section {
    background: #f8f9fc;
    padding: 80px 20px;
}

.IndexNew-book-links-container {
    max-width: 1200px;
    margin: 0 auto;
}

.IndexNew-book-links-title {
    font-size: 32px;
    font-family: 'Helvetica Neue', serif;
    font-weight: 700;
    color: #123048;
    margin: 0 0 12px 0;
    text-align: center;
}

.IndexNew-book-links-subtitle {
    font-size: 18px;
    color: #5a5a5a;
    margin: 0 0 48px 0;
    text-align: center;
}

.IndexNew-book-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.IndexNew-book-links-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.IndexNew-book-links-column a {
    color: #123048;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 16px 12px 40px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.IndexNew-book-links-column a::before {
    content: '⭐';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.IndexNew-book-links-column a:hover {
    background: #32a8ee;
    color: white;
    transform: translateX(4px);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .IndexNew-hero-title {
        font-size: 42px;
    }

    .IndexNew-hero-subtitle {
        font-size: 18px;
    }

    .IndexNew-section-title {
        font-size: 36px;
    }

    .IndexNew-cta-title,
    .IndexNew-devices-title {
        font-size: 36px;
    }

    .IndexNew-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .IndexNew-hero-books-grid {
        gap: 12px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .IndexNew-hero {
        padding: 40px 20px 30px;
    }

    .IndexNew-hero-title {
        font-size: 36px;
    }

    .IndexNew-hero-subtitle {
        font-size: 16px;
    }

    .IndexNew-hero-cta {
        padding: 14px 32px;
        font-size: 16px;
    }

    .IndexNew-section-title {
        font-size: 28px;
    }

    .IndexNew-section-subtitle {
        font-size: 16px;
    }

    .IndexNew-category-title {
        font-size: 24px;
    }

    .IndexNew-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .IndexNew-hero-books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
        max-width: 100%;
    }

    .IndexNew-features-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 10px !important;
    }

    .IndexNew-cta-title,
    .IndexNew-devices-title {
        font-size: 28px;
    }

    .IndexNew-cta-subtitle,
    .IndexNew-devices-subtitle {
        font-size: 16px;
    }

    .IndexNew-featured-logos {
        gap: 30px;
    }

    .IndexNew-featured-logos img {
        max-width: 100px;
        height: 40px;
    }

    .IndexNew-faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .IndexNew-faq-item input[type='checkbox']:checked ~ .IndexNew-faq-answer {
        padding: 0 20px 20px;
    }

    .IndexNew-book-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .IndexNew-hero-title {
        font-size: 28px;
    }

    .IndexNew-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .IndexNew-hero-books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .IndexNew-features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 5px !important;
        margin: 40px auto !important;
    }

    .IndexNew-categories-grid {
        grid-template-columns: 1fr;
    }
}
