/*
Theme Name: Mythology
Theme URI: https://example.com/mythology
Author: Antigravity
Author URI: https://example.com
Description: A premium Aaj Tak inspired WordPress theme for Indian Mythology.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: mythology
*/

:root {
  --bg-color: #ffffff;
  --header-navy: #0a1c35;
  --header-navy-light: #1e2d45;
  --accent-red: #cf2027;
  --text-dark: #333333;
  --text-grey: #666666;
  --white: #ffffff;
  --container-width: 1200px;
  --gold-color: #d4af37;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Header */
.site-header {
  background: var(--header-navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--header-navy-light);
  padding: 8px 0;
  font-size: 13px;
}

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

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}

.main-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  list-style: none !important;
}

/* Desktop Horizontal Layout */
@media (min-width: 1025px) {
  .main-navigation .nav-menu,
  .main-navigation ul#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: center !important;
  }
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-navigation a:hover {
  color: var(--gold-color);
}

.menu-toggle {
  display: none;
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  margin: 10px;
}



/* Dropdowns */
.main-navigation ul ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--header-navy);
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.main-navigation ul li:hover > ul {
  display: block;
}

.main-navigation ul ul li {
  margin: 0;
}

.main-navigation ul ul a {
  padding: 8px 15px;
  display: block;
  font-size: 14px;
}

.hero-grid a {
  color: inherit;
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}

.story-overlay .ticker-label {
  padding: 2px 10px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 32px;
  margin: 10px 0;
}

.hero-title a {
  color: #fff !important;
}

.content-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

.article-detail .content-wrapper {
  gap: 40px;
}

.entry-hook {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-left: 5px solid var(--accent-red);
  background: #fdfdfd;
  border-radius: 0 8px 8px 0;
}

.entry-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  width: 100%;
}

.entry-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.entry-content-preview, .entry-content-full {
  font-size: 19px;
  line-height: 1.8;
  color: #333;
}

.read-more-wrapper {
  margin: 30px 0;
  text-align: center;
}

.btn-read-more {
  background: var(--accent-red);
  color: #fff;
  border: 2px solid var(--accent-red);
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(207, 32, 39, 0.3);
}

.btn-read-more:hover {
  background: var(--header-navy);
  border-color: var(--header-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 28, 53, 0.4);
}

.btn-read-more i {
  font-size: 20px;
}

.list-item:hover {
  transform: translateX(5px);
}

.list-item .post-thumbnail {
  width: 280px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.list-item .post-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.list-title {
  font-size: 24px;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.list-title a {
  color: #111;
  font-weight: 700;
}

.list-title a:hover {
  color: var(--accent-red);
}

.side-thumb {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  margin-bottom: 15px;
  color: var(--text-grey);
  font-size: 14px;
}

.entry-title {
  font-size: 38px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.entry-featured-image {
  margin-bottom: 30px;
}

.entry-content {
  font-size: 19px;
  line-height: 1.8;
  color: #333;
}

.entry-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
  color: var(--text-grey);
  font-size: 14px;
}

.tags-links a {
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 8px;
  color: #555;
  transition: all 0.2s ease;
}

.tags-links a:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Ticker */
.ticker-wrapper {
  background: #f8f8f8;
  border-bottom: 2px solid var(--accent-red);
  padding: 6px 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--accent-red);
  color: #fff;
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
  margin-right: 15px;
  height: 24px;
  display: flex;
  align-items: center;
}

/* Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px 0;
}



.big-story {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.big-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}

.big-story h2 {
  font-size: 36px;
  margin: 15px 0;
  font-family: 'Noto Sans', 'Inter', sans-serif;
  font-weight: 800;
}

.side-stories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-item {
  display: flex;
  gap: 15px;
}

.side-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
}

.side-item h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
}

.side-item h3 a:hover {
  color: var(--accent-red);
}

/* Footer */
.site-footer {
  background: #f1f1f1;
  padding: 40px 0;
  margin-top: 50px;
  border-top: 5px solid var(--header-navy);
}

.site-info {
  text-align: center;
  color: var(--text-grey);
}

.footer-navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.footer-navigation a {
  color: var(--header-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* Single Page */
.entry-header h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.entry-meta {
  color: var(--text-grey);
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.sidebar {
  width: 350px;
  flex-shrink: 0;
}

.widget-title {
  border-bottom: 3px solid var(--accent-red);
  margin-bottom: 20px;
  padding-bottom: 8px;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.widget-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: #eee;
  margin-left: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    margin: 10px auto;
  }
  .header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 15px !important;
    flex-wrap: wrap !important;
  }
  .logo {
    width: auto !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }
  .logo h1, .logo p {
    font-size: 24px !important;
    text-align: left !important;
    margin: 0 !important;
  }
  .main-navigation {
    width: auto !important;
  }
  .menu-toggle {
    margin: 0 !important;
  }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    padding: 20px;
    background: var(--header-navy-light);
    width: 100%;
  }
  .main-navigation li {
    margin: 5px 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .content-wrapper {
    flex-direction: column !important;
  }
  .main-content {
    width: 100% !important;
  }
  .sidebar {
    width: 100% !important;
    margin-top: 40px !important;
    flex-basis: auto !important;
  }
  .list-item {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .list-item .post-thumbnail {
    width: 100% !important;
    height: auto !important;
  }
  .list-item .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
  }
  .hero-title {
    font-size: 22px !important;
  }
  .entry-title {
    font-size: 26px !important;
  }
  .article-detail article {
    max-width: 100% !important;
  }
  .big-story {
    height: 250px !important;
  }
  .entry-featured-image {
    margin-bottom: 20px !important;
  }
  .entry-featured-image img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    width: 100% !important;
  }
}

/* Author Box Styles for E-E-A-T */
.author-box {
    display: flex;
    gap: 30px;
    background: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #eee;
    padding: 3px;
    background: #fff;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.author-name {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.author-name a {
    color: var(--header-navy);
}

.author-name a:hover {
    color: var(--accent-red);
}

.author-expertise {
    color: var(--text-grey);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: italic;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.author-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.author-links .more-posts {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.author-links .more-posts:hover {
    border-bottom-color: var(--accent-red);
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .author-avatar {
        margin-bottom: 15px;
    }
}

/* HCU Optimization Styles */
.reading-time-meta {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-left: 3px solid var(--accent-red);
  padding-left: 10px;
}

.reading-time-meta i {
  color: var(--accent-red);
}

.mythology-toc {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 25px;
  margin: 35px 0;
  border-radius: 4px;
  border-left: 5px solid var(--header-navy);
}

.toc-title {
  font-size: 19px;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--header-navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mythology-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mythology-toc li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.mythology-toc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 800;
}

.mythology-toc a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mythology-toc a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

.toc-level-3 {
  padding-left: 40px !important;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Horoscope Grid Styles */
.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.horoscope-sign-box {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: block;
}

.horoscope-sign-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold-color);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.sign-icon {
  width: 60px;
  height: 60px;
  background: var(--header-navy);
  color: var(--gold-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--gold-color);
}

.sign-name {
  color: var(--header-navy);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sign-read {
  font-size: 13px;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
}

/* Related Articles Section */
.related-articles-section {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.related-articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-red);
}

.related-title {
    font-size: 20px;
    color: var(--header-navy);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.related-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-posts-list a {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    transition: all 0.2s ease;
}

.related-posts-list a:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

/* Internal Links styling */
.internal-link {
    color: var(--accent-red);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.internal-link:hover {
    background: rgba(207, 32, 39, 0.05);
    border-radius: 2px;
}
