/*
Theme Name: GetEbooks
Theme URI: https://getebooks.online/
Author: GetEbooks
Author URI: https://getebooks.online/
Description: Mobile-first WooCommerce theme for digital ebooks and study resources.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getebooks
Tags: ecommerce, woocommerce, education, responsive, custom-logo
*/

:root {
  --ge-blue: #0B3D91;
  --ge-blue-dark: #082d69;
  --ge-orange: #FF8A00;
  --ge-orange-dark: #e57700;
  --ge-text: #172033;
  --ge-muted: #657188;
  --ge-light: #f5f7fb;
  --ge-white: #fff;
  --ge-border: #e4e9f1;
  --ge-radius: 18px;
  --ge-shadow: 0 12px 35px rgba(11, 61, 145, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ge-text); background: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--ge-blue); text-decoration: none; }
a:hover { color: var(--ge-orange-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-bg { background: var(--ge-light); }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.section-heading h1, .section-heading h2 { margin: 8px 0 12px; line-height: 1.2; color: var(--ge-blue-dark); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-heading p { color: var(--ge-muted); margin: 0; }
.eyebrow { display: inline-block; color: var(--ge-blue); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow-orange { color: var(--ge-orange-dark); }
.ge-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 21px; border: 2px solid var(--ge-blue); border-radius: 12px; background: var(--ge-blue); color: #fff; font-weight: 800; text-align: center; transition: .2s ease; }
.ge-btn:hover, .ge-btn:focus { color: #fff; background: var(--ge-blue-dark); border-color: var(--ge-blue-dark); transform: translateY(-1px); }
.ge-btn-orange { background: var(--ge-orange); border-color: var(--ge-orange); color: #171717; }
.ge-btn-orange:hover, .ge-btn-orange:focus { background: var(--ge-orange-dark); border-color: var(--ge-orange-dark); color: #fff; }
.ge-btn-outline { background: transparent; color: var(--ge-blue); }
.ge-btn-outline:hover { background: var(--ge-blue); color: #fff; }
.ge-btn-small { padding: 9px 15px; font-size: .92rem; }
.ge-card, .post-card, .step-card, .roadmap-card, .category-card { background: #fff; border: 1px solid var(--ge-border); border-radius: var(--ge-radius); padding: 24px; box-shadow: var(--ge-shadow); }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ge-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.site-logo-text, .footer-brand { font-size: 1.6rem; font-weight: 900; color: var(--ge-blue-dark); letter-spacing: -.04em; }
.site-logo-text span, .footer-brand span { color: var(--ge-orange); }
.custom-logo { max-height: 55px; width: auto; }
.header-navigation { display: flex; align-items: center; gap: 22px; }
.header-navigation a { font-size: .94rem; font-weight: 700; color: var(--ge-text); }
.header-navigation a:hover { color: var(--ge-orange-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cart { position: relative; display: inline-flex; align-items: center; font-size: 1.35rem; color: var(--ge-blue); }
.cart-count { min-width: 19px; height: 19px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; background: var(--ge-orange); color: #111; font-size: .7rem; font-weight: 800; margin-left: -5px; transform: translateY(-9px); }
.header-buy-button { padding: 10px 15px; font-size: .88rem; }
.mobile-menu-toggle { display: none; border: 1px solid var(--ge-border); background: white; border-radius: 10px; padding: 8px 12px; color: var(--ge-blue); font-size: 1.15rem; }
.hero { background: linear-gradient(135deg, #f5f8ff 0%, #fff 55%, #fff4e6 100%); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 50px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.55rem); line-height: 1.12; letter-spacing: -.04em; color: var(--ge-blue-dark); margin: 14px 0 18px; }
.hero-content > p { color: var(--ge-muted); font-size: 1.13rem; max-width: 650px; }
.hero-price { display: flex; align-items: baseline; gap: 12px; margin: 24px 0; }
.hero-price strong { color: var(--ge-orange-dark); font-size: 2.5rem; line-height: 1; }
.hero-price span { color: var(--ge-muted); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px; color: #42617e; font-size: .88rem; font-weight: 700; }
.hero-book-wrap { display: flex; justify-content: center; align-items: center; }
.book-cover { width: min(350px, 100%); min-height: 440px; padding: 18px; border-radius: 10px 22px 22px 10px; background: linear-gradient(145deg, #0B3D91, #082d69); box-shadow: 20px 24px 45px rgba(8,45,105,.25); transform: rotate(2deg); position: relative; color: white; }
.book-cover:after { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 8px; background: rgba(255,255,255,.13); border-radius: 8px; }
.book-cover-inner { border: 1px solid rgba(255,255,255,.32); border-radius: 12px; min-height: 404px; padding: 25px 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.book-cover-label { color: #ffd27c; font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.book-cover h2 { font-size: 1.75rem; line-height: 1.15; margin: 24px 0 8px; color: #fff; }
.book-cover p { color: #fff; font-weight: 700; }
.book-cover-number { font-size: 5.5rem; line-height: 1; font-weight: 950; color: var(--ge-orange); text-shadow: 3px 5px 0 rgba(0,0,0,.15); margin: 12px 0; }
.highlights { background: var(--ge-blue); color: white; padding: 25px 0; }
.highlight-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.highlight-item { display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; font-weight: 800; font-size: .94rem; }
.highlight-icon { font-size: 1.35rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.ge-card h3 { margin: 5px 0 10px; color: var(--ge-blue-dark); line-height: 1.3; }
.ge-card p { margin: 0; color: var(--ge-muted); }
.syllabus-list { max-width: 950px; margin: auto; display: grid; gap: 12px; }
.ge-accordion { border: 1px solid var(--ge-border); border-radius: 14px; background: #fff; overflow: hidden; }
.ge-accordion-trigger { width: 100%; padding: 18px 20px; border: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ge-blue-dark); text-align: left; font-weight: 800; }
.ge-accordion-trigger:hover { background: #f9fbff; }
.accordion-count { color: var(--ge-orange-dark); font-size: .88rem; white-space: nowrap; }
.accordion-arrow { transition: transform .2s; font-size: .8rem; }
.ge-accordion.is-open .accordion-arrow { transform: rotate(180deg); }
.ge-accordion-panel { display: none; padding: 0 20px 20px; }
.ge-accordion.is-open .ge-accordion-panel { display: block; }
.syllabus-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.syllabus-topic { background: #f1f5fb; border: 1px solid #e2e9f5; border-radius: 8px; padding: 6px 10px; font-size: .88rem; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.roadmap-card { border-top: 4px solid var(--ge-blue); }
.roadmap-card.revision { border-top-color: var(--ge-orange); }
.roadmap-card.mock { border-top-color: #1b9a69; }
.roadmap-days { font-weight: 900; color: var(--ge-orange-dark); }
.roadmap-card h3 { color: var(--ge-blue-dark); margin: 8px 0; }
.roadmap-card p { color: var(--ge-muted); margin: 0; }
.featured-product { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; padding: 30px; background: white; border: 1px solid var(--ge-border); border-radius: 22px; box-shadow: var(--ge-shadow); }
.featured-product-image { text-align: center; }
.featured-product-image img { max-height: 420px; object-fit: contain; }
.featured-product-content h3 { font-size: 1.7rem; color: var(--ge-blue-dark); margin: 10px 0; }
.product-price { font-size: 1.5rem; font-weight: 900; color: var(--ge-orange-dark); margin: 10px 0; }
.featured-product-content > p { color: var(--ge-muted); }
.feature-list { list-style: none; padding: 0; margin: 18px 0; }
.feature-list li { margin: 8px 0; }
.feature-list li:before { content: "✓"; color: #148455; font-weight: 900; margin-right: 9px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 25px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ge-blue-dark); padding: 20px; }
.category-card:hover { transform: translateY(-3px); border-color: #c2d4f3; }
.category-card img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; }
.category-card-title { font-weight: 900; }
.category-card-count { font-size: .82rem; color: var(--ge-muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { text-align: center; }
.step-number { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; background: var(--ge-orange); color: #111; font-size: 1.4rem; font-weight: 900; }
.step-card h3 { color: var(--ge-blue-dark); }
.step-card p { color: var(--ge-muted); margin-bottom: 0; }
.faq-list { max-width: 850px; margin: auto; display: grid; gap: 10px; }
.faq-item { background: white; border: 1px solid var(--ge-border); border-radius: 12px; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; border: 0; background: white; color: var(--ge-blue-dark); font-weight: 800; text-align: left; }
.faq-question:hover { background: #f9fbff; }
.faq-arrow { font-size: .75rem; transition: transform .2s; }
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--ge-muted); }
.faq-item.is-open .faq-answer { display: block; }
.faq-answer p { margin: 0 0 8px; }
.final-cta { background: linear-gradient(120deg, var(--ge-blue), var(--ge-blue-dark)); color: white; text-align: center; border-radius: 22px; padding: 44px 25px; }
.final-cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 12px; color: white; }
.final-cta p { color: #e5edff; margin: 0 0 25px; }
.site-footer { background: #081f45; color: #d7e3f8; padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-brand { color: white; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer p { color: #b8c9e7; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #d7e3f8; }
.footer-links a:hover { color: var(--ge-orange); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 20px; font-size: .88rem; color: #c6d4eb; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: #a9bddc; font-size: .84rem; }
.page-content-wrap { padding: 60px 0; }
.entry-content { line-height: 1.8; }
.entry-title { color: var(--ge-blue-dark); line-height: 1.2; }
.post-card { margin-bottom: 24px; }
.post-thumbnail { border-radius: 12px; }
.text-muted { color: var(--ge-muted); }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 40px; }
.no-results { text-align: center; background: white; padding: 40px 20px; border-radius: var(--ge-radius); box-shadow: var(--ge-shadow); }
.pagination { margin: 25px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { padding: 8px 12px; background: white; border: 1px solid var(--ge-border); border-radius: 8px; }
.pagination .current { background: var(--ge-blue); color: white; }
.search-form { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.search-form input[type="search"] { min-width: 0; padding: 10px; border: 1px solid var(--ge-border); border-radius: 8px; }
.search-form input[type="submit"] { padding: 10px 15px; border: 0; border-radius: 8px; background: var(--ge-blue); color: white; }
.woocommerce .woocommerce-breadcrumb { color: var(--ge-muted); margin-bottom: 20px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 18px; background: white; border: 1px solid var(--ge-border); border-radius: 16px; box-shadow: var(--ge-shadow); }
.woocommerce ul.products li.product a img { border-radius: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ge-blue-dark); font-size: 1.1rem; font-weight: 800; }
.woocommerce ul.products li.product .price { color: var(--ge-orange-dark); font-weight: 900; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--ge-blue); color: white; border-radius: 9px; padding: 12px 18px; font-weight: 800; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--ge-blue-dark); color: white; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--ge-blue); }
.woocommerce .woocommerce-error { border-top-color: #d32f2f; }
.woocommerce div.product .product_title { color: var(--ge-blue-dark); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ge-orange-dark); font-size: 1.5rem; font-weight: 900; }
.woocommerce div.product div.images img { border-radius: 14px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity .qty { padding: 10px; border: 1px solid var(--ge-border); border-radius: 8px; }
.woocommerce table.shop_table { border-radius: 12px; border-color: var(--ge-border); }
.woocommerce form.checkout, .woocommerce form.woocommerce-form-login, .woocommerce form.woocommerce-form-register { background: white; padding: 22px; border: 1px solid var(--ge-border); border-radius: 16px; }
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea { padding: 12px; border: 1px solid #dce3ed; border-radius: 8px; }
.woocommerce-checkout #payment { background: #f4f7fc; border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box { background: white; border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box:before { border-bottom-color: white; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { padding: 10px; border-bottom: 1px solid var(--ge-border); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { font-weight: 900; color: var(--ge-orange-dark); }
.woocommerce .woocommerce-pagination ul.page-numbers { border: 0; display: flex; gap: 6px; }
.woocommerce .woocommerce-pagination .page-numbers li { border: 0; }
.woocommerce .woocommerce-pagination a, .woocommerce .woocommerce-pagination span { border-radius: 7px; padding: 9px 12px; }
.woocommerce .woocommerce-pagination .current { background: var(--ge-blue); color: white; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ge-orange); outline-offset: 3px; }
@media (max-width: 980px) {
  .header-navigation { gap: 14px; }
  .header-buy-button { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .product-category-grid { grid-template-columns: repeat(3, 1fr); }
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 68px; gap: 10px; }
  .mobile-menu-toggle { display: inline-flex; order: 2; }
  .site-branding { order: 1; margin-right: auto; }
  .header-actions { order: 3; }
  .header-navigation { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--ge-border); padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 12px 20px rgba(0,0,0,.07); }
  .header-navigation.is-open { display: flex; }
  .header-navigation a { padding: 12px 5px; border-bottom: 1px solid #f0f2f6; }
  .hero { padding: 42px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book-wrap { margin-top: 10px; }
  .book-cover { width: 280px; min-height: 360px; }
  .book-cover-inner { min-height: 324px; }
  .book-cover h2 { font-size: 1.45rem; }
  .book-cover-number { font-size: 4.5rem; }
  .section { padding: 52px 0; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-item { font-size: .85rem; }
  .featured-product { grid-template-columns: 1fr; padding: 20px; }
  .product-category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .woocommerce div.product { display: block; }
  .page-content-wrap { padding: 40px 0; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1160px); }
  .site-logo-text { font-size: 1.35rem; }
  .header-cart { font-size: 1.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-actions .ge-btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 5px; }
  .card-grid, .roadmap-grid, .product-category-grid { grid-template-columns: 1fr; }
  .ge-card, .step-card, .roadmap-card { padding: 20px; }
  .ge-accordion-trigger { padding: 15px; flex-wrap: wrap; }
  .syllabus-topic { font-size: .82rem; }
  .product-actions .ge-btn { flex: 1; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
}
