/*
Theme Name: SEO News Pro
Author: Your Name
Version: 1.0
Description: SEO-optimized theme for Google News and Discover.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1140px!important;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
}
.site-header-flex {
  flex-direction: column;
}

/* Headings */
h1, .single-post h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.main-menu {
  margin-top: 10px;
}

header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
  background:#fff;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}
.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}
.site-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: #222; /* Dark header */
}

.site-logo img {
  max-height: 60px;
  height: auto;
  width: auto;
  background: transparent !important;
  box-shadow: none;
  border: none;
}




/* Header Layout */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-title a {
  color: #111;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Navigation bar */
.main-nav {
  background-color: #d32f2f; /* red */
}

.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  gap: 30px;
}

.nav-menu li a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    display: none;
    text-align: center;
    background: #d32f2f;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .nav-menu.active {
    display: flex;
  }
}


/* Optional: remove white background around logo */
.custom-logo-link {
  background: transparent !important;
  display: inline-block;
}

.main-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  color: #fff;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.main-menu li a:hover {
  background: #444;
}




/* Posts (archive/index) */
article {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

article h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

article h2 a {
  color: #111;
}

article small {
  color: #888;
  display: block;
  margin-bottom: 10px;
}

/* Single Post */

.single-post small {
  color: #666;
  display: block;
  margin-bottom: 15px;
}

.single-post img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.single-post .content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.single-post .content p {
  margin-bottom: 1.2em;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
  background: #f0f0f0;
  margin-top: 40px;
}



/* Container fix */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
}

/* Article image and content */
article img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Headings */

/* Responsive improvements */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h1, .single-post h1 {
    font-size: 1.4rem;
  }

  .container {
    padding: 15px;
  }
}

.layout-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.main-content {
  flex: 0 0 67%;
}

.sidebar {
  flex: 0 0 30%;
}

/* Mobile responsive: Stack vertically */
@media (max-width: 768px) {
  .layout-2col {
    flex-direction: column;
  }

  .main-content,
  .sidebar {
    flex: 100%;
  }
}

.layout-2col {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.main-content {
  flex: 0 0 67%;
}

.sidebar {
  flex: 0 0 30%;
  background: #fafafa;
  padding: 20px;
  border-left: 1px solid #eee;
}

/* Archive Page Post Block */
.archive-post {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.archive-post .post-thumb {
  flex: 0 0 35%;
}

.archive-post .post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.archive-post .post-info {
  flex: 0 0 63%;
}

.archive-post h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.archive-post p {
  margin: 0;
}

/* Responsive fix */
@media (max-width: 768px) {
  .layout-2col {
    flex-direction: column;
  }

  .main-content,
  .sidebar,
  .archive-post {
    flex: 100%;
  }

  .archive-post {
    flex-direction: column;
  }

  .archive-post .post-thumb,
  .archive-post .post-info {
    flex: 100%;
  }
}


.sidebar {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar .widget {
  margin-bottom: 30px;
}

.sidebar .widget h3 {
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #333;
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget ul li {
  margin-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 8px;
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar .widget ul li a:hover {
  color: #0d47a1;
  text-decoration: underline;
}



.homepage {
  padding: 20px;
  background: #fdfdfd;
}

.home-section {
  margin-bottom: 50px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  border-left: 5px solid #d32f2f;
  padding-left: 10px;
  margin-bottom: 20px;
  color: #222;
}

/* Grid layout for posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Post cards */
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 15px;
  color: #111;
}

/* Actress Gallery - vertical layout */
.gallery-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  width: calc(33.333% - 13.33px);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 8px;
  color: #333;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 100%;
  }
}

.gallery-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.gallery-item {
  flex: 0 0 calc(20% - 16px); /* 5 in a row, 20% each minus gap */
  max-width: calc(20% - 16px);
  background: #fff;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;           /* Fixed height */
  object-fit: cover;       /* Crop and fill */
  border-radius: 4px 4px 0 0;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px;
  color: #333;
}

/* Responsive fallback: 2–3 columns on mobile */
@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 calc(33.33% - 13.33px);
    max-width: calc(33.33% - 13.33px);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .gallery-item img {
    height: 160px;
  }
}


.movie-news-columns {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.movie-col {
  flex: 1 1 33.3333%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured post */
.col-featured .movie-featured {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.featured-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 12px;
  color: #111;
  line-height: 1.2;
}



/* Small posts container columns (2nd and 3rd) */
.movie-col.col-smalls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.movie-small-item {
  margin-bottom: 15px;
}

.movie-small-item a {
  display: flex;         /* Make the link a flex container */
  align-items: center;   /* Vertically center the title with image */
  gap: 12px;             /* Space between image and title */
  text-decoration: none; /* Remove underline */
  color: inherit;
}

.small-thumb {
  flex: 0 0 100px;       /* Fixed width */
  height: 70px;          /* Fixed height */
  overflow: hidden;
  border-radius: 6px;
}

.small-thumb img {
  width: 100%;           /* Fill container width */
  height: 100%;          /* Fill container height */
  object-fit: cover;     /* Crop nicely */
  display: block;
}

.small-title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  line-height: 1.3;
}




/* Responsive - stack columns */
@media (max-width: 992px) {
  .movie-news-columns {
    flex-direction: column;
  }

  .movie-col {
    flex: 0 0 100%;
  }
}

