/*
Theme Name: Great Mumbai
Theme URI: https://thegreatmumbai.com
Author: Great Mumbai
Author URI: https://thegreatmumbai.com
Description: Own by Great Mumbai
Version: 1.0
Text Domain: thegreatmumbai
*/

/* Global Styles */

/* ======== Horizontal Scroll Fix ======== */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Header */
.main-header {
  padding: 15px 50px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo-text h1 {
  font-size: 32px;
  margin: 0;
  color: #ff914d;
}

.logo-text p {
  font-size: 14px;
  color: #0c67f0;
  margin: 5px 0 0 0;
  position: relative;
  left: 20px;
}

.home-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.home-link:hover {
  opacity: 0.8;
}

/* Fixed Header Social Icons */
.header-top .social-icons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  filter: drop-shadow(0 0 0 transparent);
}

.header-top .social-icons a {
  background: transparent !important;
  border-radius: 50%;
  margin: 0 10px;
  color: #333;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-top .social-icons a i {
  font-size: 24px;
}

.header-top .social-icons a:hover {
  transform: scale(1.15);
  color: #ff914d;
}

.main-nav {
  position: absolute;
  top: 20px;
  right: 50px;
  background: #333;
  padding: 10px 20px;
  border-radius: 25px;
}

.main-nav a {
  color: white !important;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  font-weight: 500;
}

/* Header Text Section */
.header-text {
  text-align: center;
  padding: 40px 15% 20px;
}

.header-text-content {
  max-width: 1200px;
  margin: 0 auto;
}

.header-text .first-line {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 2px 2px 4px #ff914d;
  color: #333;
  margin: 0 auto 25px;
  line-height: 1.4;
  text-align: center;
  display: block;
}

.header-text .second-line {
  font-size: 20px;
  font-weight: 600;
  color: #5e17eb;
  text-align: center;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 80px;
}

.hero-gif {
  width: 100%;
  height: 1000px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 20px;
}

.hero-text p:first-child {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p:last-child {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

/* Latest Updates - Fixed Styles */
.latest-updates {
  padding: 50px 15%;
  text-align: center;
}

.latest-updates h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ff914d;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* CHANGED LINE */
  gap: 15px;
  max-width: 1200px; /* NEW LINE */
  margin: 0 auto;
  padding: 0 15px;
}

.update-card {
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: center;
  width: 100% !important;
  min-width: 0; /* CRUCIAL FOR GRID */
}

.update-image {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
}

.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.update-content h2 {
  font-size: 14px;
  margin: 0;
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
  color: #333;
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Famous People Section */
.famous-people {
  padding: 50px 15%;
  background: #f9f9f9;
  text-align: center;
}

.famous-people h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ff914d;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.person-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.round-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.person-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #4350e0;
}

blockquote {
  font-size: 16px;
  font-style: italic;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Footer Styles */
.main-footer {
  background: #fff;
  padding: 40px 15%;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-section {
  flex: 1;
  text-align: center;
}

.site-map {
  text-align: left;
}

.site-map h4,
.social-media h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.site-map ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-map li {
  margin-bottom: 8px;
}

.site-map a {
  color: #666 !important;
  text-decoration: none;
  font-size: 14px;
}

.site-map a:hover {
  color: #333 !important;
}

.anonymous-quote img {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  border-radius: 50%;
  margin-bottom: 10px;
}

.anonymous-quote p {
  margin: 0;
  font-style: italic;
  color: #0a66ff;
  font-size: 16px;
}

.social-media {
  text-align: center; /* Center align social media section */
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center; /* Center align icons */
}

.social-icons a {
  background: #f5f5f5;
  color: #666;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-icons a:hover {
  background: #ddd;
}

.copyright {
  color: #050505;
  font-size: 13px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .update-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .update-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .site-map,
  .social-media {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .update-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Search and Pagination */
.search-container {
  margin: 40px auto;
  max-width: 600px;
}

.search-form {
  position: relative;
  display: flex;
  gap: 10px;
}

.search-field {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-field:focus {
  border-color: #ff914d;
}

.search-submit {
  padding: 12px 25px;
  background: #ff914d;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: #e67e3d;
}

.no-results {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin: 40px 0;
}

.pagination {
  margin: 40px 0;
  text-align: center;
}

/* About Page Styles */
.about-page {
  padding: 40px 15%;
  background: #f9f9f9;
  text-align: center;
}

.about-header h1 {
  font-size: 36px;
  color: #ff914d;
  margin-bottom: 20px;
}

.about-header p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

.about-content {
  margin-top: 40px;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 28px;
  color: #0c67f0;
  margin-bottom: 15px;
}

.about-section p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.social-media-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.timeline-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 40px);
  text-align: center;
}

.timeline-item h3 {
  font-size: 20px;
  color: #ff914d;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.about-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.about-footer p {
  font-size: 18px;
  color: #0a66ff;
  font-style: italic;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .about-page {
    padding: 20px 10%;
  }

  .timeline-item {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .timeline-item {
    flex: 1 1 100%;
  }
}

/* Contact Page Styles */
.contact-page {
  padding: 40px 15%;
  background: #f9f9f9;
  text-align: center;
}

.contact-header h1 {
  font-size: 30px;
  color: #ff914d;
  margin-bottom: 20px;
}

/* Email Link Styles */
.contact-email {
  font-size: 40px !important; /* Increased size */
  display: inline-block;
  margin: 15px 0;
}

.contact-email a {
  color: #0c67f0 !important;
  text-decoration: none;
}

/* Third Line Styles */
.contact-email + p {
  font-size: 14px !important; /* Smaller than email */
  color: #000 !important; /* Black color */
  margin-top: 10px;
}

.contact-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.contact-section {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: Center;
}

.contact-section h3 {
  font-size: 20px;
  color: #0a66ff;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
}

.disclaimer {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

.disclaimer h4 {
  font-size: 18px;
  color: #ff914d;
  margin-bottom: 15px;
}

.disclaimer p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-sections {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding: 20px 10%;
  }
}

/* 1. Post Headline Style */
.entry-title {
  text-align: center;
  font-size: 2.5em;
  margin: 30px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #3498db;
  font-family: 'Arial', sans-serif;
}

/* 2. Featured Image Style */
.post-thumbnail {
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}

.post-thumbnail img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* 3. Post Content Style */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  padding: 20px;
  font-size: 1.1em;
}

/* 4. Next/Previous Post Buttons */
.post-navigation {
  max-width: 800px;
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
}

.nav-previous a, 
.nav-next a {
  background: #3498db;
  color: white !important;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.nav-previous a:hover, 
.nav-next a:hover {
  background: #2980b9;
}

/* 5. Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3498db;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 6. Recommended Posts (Fixed Alignment) */
.recommended-posts {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.recommended-posts h3 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Reduced gap for smaller layout */
}

.recommended-post {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s;
  text-align: center; /* Center all text content */
}

/* Center thumbnails */
.recommended-post a img {
  display: block;
  margin: 0 auto 15px auto; /* Center image horizontally */
  max-width: 200px; /* Smaller thumbnail size */
  height: auto;
  border-radius: 8px;
}

/* Adjust headline and description */
.recommended-post h4 {
  margin: 10px 0;
  font-size: 1.1em;
}

.recommended-post p {
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 90%; /* Contain description text */
}

.recommended-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Add this at the end of your style.css */
@media (max-width: 768px) {
  .main-header {
    padding: 15px 20px !important;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  /* Logo adjustments */
  .logo {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  .logo-text h1 {
    font-size: 24px !important;
  }
  .logo-text p {
    font-size: 12px !important;
    left: 0 !important;
    text-align: center;
  }

  /* Navigation adjustments */
  .main-nav {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    order: 2;
  }
  .main-nav a {
    color: #333 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    background: #f0f0f0;
    border-radius: 20px;
  }

  /* Social icons adjustments */
  .header-top .social-icons {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin-top: 15px;
    order: 3;
  }
}

/* Optional: Fix menu item typo in mobile view */
@media (max-width: 480px) {
  .main-nav a[href="/latest-update"] {
    white-space: nowrap; /* Prevents "Latest Update" from breaking into two lines */
  }
}


/* Mobile-specific Fixes */
@media (max-width: 768px) {
  /* 1. Fix GIF Height */
  .hero-gif {
    height: 60vh;
    min-height: 300px;
    object-position: center;
  }

  /* 2. Latest Updates Grid Fix */
  .update-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .update-image {
    width: 150px;
    height: 150px;
  }

  .update-content h2 {
    font-size: 12px;
  }

  /* 3. Famous People Grid Fix */
  .people-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .person-card {
    padding: 15px;
    margin: 0 10px;
  }

  .round-image {
    width: 120px;
    height: 120px;
  }

  /* 4. General Mobile Viewport Fix */
  .header-text,
  .latest-updates,
  .famous-people {
    padding: 30px 5%;
  }

  .first-line {
    font-size: 24px !important;
  }

  .second-line {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Final adjustments for smallest screens */
  .update-grid {
    grid-template-columns: 1fr;
  }

  .update-image {
    width: 130px;
    height: 130px;
  }

  .person-card blockquote {
    font-size: 14px;
  }
}

/* Add to your style.css */
@media (max-width: 768px) {
  .contact-email {
    font-size: 24px !important; /* Reduced mobile font size */
    word-break: break-all; /* Ensures email breaks if needed */
    padding: 0 15px; /* Adds horizontal breathing room */
  }
  
  .contact-page {
    padding: 20px 5% !important; /* Reduced side padding */
    overflow-x: hidden; /* Prevents horizontal scroll */
  }
  
  .contact-email a {
    white-space: nowrap; /* Prevents line breaks in email */
    display: inline-block; /* Contains email element */
    max-width: 100%; /* Ensures it stays within container */
  }
}

/* Add to your style.css */
@media (max-width: 768px) {
  .post-thumbnail {
    max-width: 100% !important;
    padding: 0 15px;
  }

  .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    max-width: 100vw;
    border-radius: 8px;
  }

  .entry-content {
    padding: 20px 15px !important;
  }
}