/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Neue', sans-serif;
  background-color: #ffffff;
  color: #333333;
}

/* Header */
header {
  background-color: #f9f9f9;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}
.site-title {
  font-family: 'Comic Neue', sans-serif;
  font-size: 14px;
  text-align: center;
  margin: 10px 0 20px 0;
  color: #222;
}

.logo img {
  max-width: 30%;
  height: auto;
  display: block;
  margin: 0 auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  justify-content: center; /* or space-between if you want spacing */
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  display: block;
}

nav ul li a:hover {
  background-color: #eaeaea;
  border-radius: 4px;
}

/* Shared styles for both rows */
.nav-row {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-row li {
  display: inline-block;
}

/* First row (main navigation) */
.main-nav a {
  text-decoration: none;
  padding: 8px 12px;
  color: #fff;
  background-color: #555; /* Darker tone for contrast */
  border: 1px solid #444;
  border-radius: 6px;
  transition: background-color 0.2s;
  font-size: 14px;
}

.main-nav a:hover {
  background-color: #777;
}

/* Second row (categories) */
.category-nav a {
  text-decoration: none;
  padding: 8px 12px;
  color: #333;
  background-color: #fffef2;
  border: 1px solid #f5c37f;
  border-radius: 6px;
  transition: background-color 0.2s;
  font-size: 14px;
  font-weight: bold;
}

.category-nav a:hover {
  background-color: #f5c37f;
  color: #000;
}



/* Main Content */
main {
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr;
  gap: 10px;
}

/* Sections */
section {
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
}

section h2 {
  margin-top: 0;
}

section img {
  max-width: 50%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.date-top-right {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 14px;
  color: #444;
  padding: 5px 10px;
  border: 1px solid #ffffff;
  border-radius: 8px;

}

/* Business */

.business-highlight {
  font-size: 16px;
  color: #10375c;
  font-weight: bold;
  margin-bottom: 8px;
}

.business-description {
  font-size: 16px;
  color: #10375c;
  margin-bottom: 14px;
}

.business-button {
  display: inline-block;
  background-color: #d35400;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.business-button:hover {
  background-color: #b84300;
}



/* Featured and Latest Cartoon Styling */
.featured-comic,
.latest-cartoon {
  background-color: #ffffff;
  padding: 2px;
  border: 0px solid #ffffff;
  border-radius: 4px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);*/
  text-align: left;
}

.featured-comic img,
.latest-cartoon img {
  max-width: 80%;
    height: auto;
    display: block;
    margin-left: 0; /* aligns image to the left */
    margin-right: auto;
    border: 1px solid #ffffff;
    border-radius: 8px;
}


.featured-comic h3,
.latest-cartoon h3 {
  font-size: 22px;
  margin-bottom: 2px;
}

/* STORE STARTS */
.store-showcase {
  background-color: #f4f4f4;
  border: 0px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}


.store-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.store-featured {
  margin-bottom: 5px;
}

.featured-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.featured-image {
  max-width: 65%;
  width: 65%;
  height: auto;
  margin-top: 20px;
}

.featured-image:hover {
  transform: scale(1.05);
}

.featured-info {
  margin-top: 5px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 4px;
  text-align: center;
}

.shop-now {
  font-size: 14px;
  color: #aa5500;
}

.store-thumbnails {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.thumb-link {
  display: inline-block;
}

.thumb-image {
  width: 80px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: transform 0.2s;
}

.thumb-image:hover {
  transform: scale(1.1);
  border-color: #e0a000;
}

/* STORE ENDS */

/* Social on Instagram) */
.social-instagram {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  font-family: 'Helvetica Neue', sans-serif;
}

.social-instagram a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  gap: 6px;
}

.social-instagram a:hover {
  color: #c13584;
}

.insta-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  max-width: 100%;
}

.insta-text {
  font-size: 16px;
}

/* 🔧 Responsive fix: Reduce icon and text size on small screens */
@media (max-width: 600px) {
  .insta-icon {
    width: 16px;
    height: 16px;
  }

  .insta-text {
    font-size: 14px;
  }
}


/* Footer */
footer {
  background-color: #f9f9f9;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #ddd;
  font-size: 15px;
}


/* Responsive Design */
@media (max-width: 767px) {
  .logo img {
    max-width: 80%;
  }
}

@media (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
  }

  .featured-comic {
    grid-column: 1 / span 2;
  }

  .latest-cartoon,
  section,
  .store-showcase {
    grid-column: auto;
  }
}


/* Mobile-specific adjustments for screens smaller than 768px */

@media (max-width: 767px) {
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .featured-comic,
  .latest-cartoon,
  section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .featured-comic img,
  .latest-cartoon img,
  section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
  }

  .logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .store-thumbnails {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .thumb-image {
    width: 60%;
  }

  .main-nav a,
  .category-nav a {
    font-size: 16px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}
