/* ==========================================================================
   GLOBAL RESET & FONTS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 0.85rem;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.header-left .logo {
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #ccc;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.header-right .login-btn {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SECTION 1: HERO & CATEGORIES
   ========================================================================== */
.hero-section {
  padding: 30px 20px 0 20px;
  text-align: center;
  background-color: #fff;
}

.sub-nav-link {
  text-align: right;
  max-width: 1200px;
  margin: 0 auto 10px auto;
  font-size: 0.85rem;
}

.sub-nav-link a {
  text-decoration: underline;
  color: #333;
}

.brand-title span {
  font-size: 1.1rem;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.brand-title h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
  transform: translateY(30px);
}

.category-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 10px;
  text-align: center;
}

.category-card .card-img {
  height: 220px;
  overflow: hidden;
  margin-bottom: 12px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* ==========================================================================
   SECTION 2: RECOMMENDED EBOOKS
   ========================================================================== */
.recommended-section {
  background-color: #1c1c1c;
  color: #ffffff;
  padding: 80px 20px 40px 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 5px;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: 2px;
  font-weight: 300;
  margin-bottom: 30px;
}

.books-scroll-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0 20px 0;
  scroll-behavior: smooth;
  max-width: 1200px;
  margin: 0 auto;
}

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

.books-scroll-container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.book-cover {
  flex: 0 0 calc(16.666% - 13px);
  min-width: 160px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ==========================================================================
   SECTION 3: LITERARY CLASSICS
   ========================================================================== */
.classics-section {
  background-color: #1c1c1c;
  color: #ffffff;
  padding: 40px 20px 60px 20px;
  text-align: center;
  border-top: 1px solid #2a2a2a;
}

.classics-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #ccc;
}

.classics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.classics-card {
  background: #fff;
  padding: 8px;
  border-radius: 3px;
  color: #111;
}

.classics-card .card-img {
  height: 180px;
  overflow: hidden;
  margin-bottom: 8px;
}

.classics-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classics-card h3 {
  font-size: 0.65rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.classics-heading {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* ==========================================================================
   SECTION 4: EZINE / VIDEOS
   ========================================================================== */
.ezine-section {
  background-color: #111111;
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

.webzine-tag {
  font-size: 0.75rem;
  display: block;
  text-align: right;
  max-width: 1000px;
  margin: 0 auto 10px auto;
  color: #888;
}

.ezine-section h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 5px;
}

.ezine-subtitle {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 40px;
}

.ezine-icons-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.ezine-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 120px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ezine-icon-item span {
  font-size: 0.75rem;
  color: #ccc;
}

/* ==========================================================================
   SECTION 5: FEATURE HIGHLIGHT
   ========================================================================== */
.feature-section {
  background-color: #ffffff;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-header {
  text-align: center;
  margin-bottom: 40px;
}

.site-subtag {
  font-size: 0.75rem;
  color: #777;
  display: block;
  margin-bottom: 5px;
}

.feature-meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: #111;
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-text {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.8;
}

.feature-text p {
  margin-bottom: 15px;
}

.feature-cta {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.85rem;
  text-decoration: underline;
  color: #111;
  font-weight: 500;
}

.feature-image-card {
  border: 12px solid #1a1a1a;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-image-card img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   BLUE MODULAR FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: #233e5c;
  color: #a4bad0;
  padding: 60px 20px;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top-grid,
.footer-bottom-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.footer-col-title {
  color: #dce7f2;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list li {
  margin-bottom: 12px;
}

.footer-menu-list a {
  color: #a4bad0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-menu-list a:hover,
.footer-link:hover {
  color: #ffffff;
}

.footer-link {
  color: #a4bad0;
  text-decoration: underline;
  word-break: break-all;
}

.footer-text {
  margin-bottom: 15px;
  text-align: justify;
}

.footer-contact-block {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.social-icons a {
  color: #dce7f2;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  word-break: break-all;
}

.contact-icon {
  font-size: 0.9rem;
}

.special-concerns {
  margin-top: 25px;
  padding-top: 15px;
}

.footer-copyright {
  text-align: center;
  margin: 40px 0 30px 0;
  color: #8da4bc;
  font-size: 0.7rem;
}

.footer-logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.footer-divider-line {
  flex: 1;
  height: 1px;
  background-color: #3b5a7d;
}

.footer-brand-logo {
  text-align: center;
}

.mod-badge {
  background-color: #b7e3ed;
  color: #1a2f45;
  padding: 15px 25px;
  border-radius: 25px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
}

.badge-title {
  font-size: 0.55rem;
  letter-spacing: 2px;
}

.badge-mod {
  font-size: 1.4rem;
  display: flex;
  gap: 6px;
  margin: 2px 0;
}

.badge-sub {
  font-size: 0.55rem;
  letter-spacing: 2px;
}

.brand-subtext {
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #dce7f2;
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  .category-grid,
  .classics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    transform: translateY(0);
    margin-top: 20px;
  }

  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-image-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-top-grid,
  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-text {
    text-align: left;
  }

  .footer-divider-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
  }

  .brand-title h1 {
    font-size: 1.6rem;
  }

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

  .ezine-icons-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .classics-grid {
    grid-template-columns: 1fr;
  }

  .brand-title h1 {
    font-size: 1.3rem;
  }

  .section-title,
  .classics-heading,
  .feature-title {
    font-size: 1.4rem;
  }
}