/*
Theme Name: CBT
Author: VCP
Version: 1.0
Description: Lightweight SEO-friendly travel theme for Visit Corbett Park. Supports ACF and Custom Post Types.
*/

/* ========== Base Styles ========== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin:0;
    padding: 0;
    background-color: #f5f5f5;
}
h1,h2,h3,h4,h5,h6{
	margin-left: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header Styles ========== */
.header {
    background-color: #003c30;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 3px solid #007b5e;
    position: relative;
}

.header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header h1, .site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.header h1 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header h1 a:hover {
    color: #00c897;
}

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

/* ========== Navigation Styles ========== */
.main-nav .nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.nav-menu li a:hover {
    background-color: #007b5e;
}
/* ========== Content Styles ========== */
.archive-title, .single-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.custom-post {
    background: #fff;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 1.5rem;
    color: #2e5e4e;
}

.post-title a {
    color: #2e5e4e;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.entry-content {
    margin-top: 10px;
}

.acf-field-group {
    margin-top: 20px;
    padding: 10px;
    background: #eef6f1;
    border-left: 4px solid #2e5e4e;
}

/* ========== Footer Styles ========== */
.footer {
    background-color: #003c30;
    color: #fff;
    padding: 20px 0;
}

.footer p {
    margin: 0;
    text-align: center;
	font-size: 11px;
}
.footer a {
	color:#ddd
}

/* ========== Hamburger Menu Styles ========== */
/* Hamburger Button Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 40px;
  position: absolute;
  top: 0px;
  right: 20px;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  margin: 10px 0;
  transition: 0.3s ease;
}

/* Toggle effect when menu is open */
.menu-toggle.active .top {
  transform: rotate(45deg) translateY(9px);
}

.menu-toggle.active .middle {
  opacity: 0;
}

.menu-toggle.active .bottom {
  transform: rotate(-45deg) translateY(-9px);
}

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

  .main-nav .nav-menu {
    display: none;
    flex-direction: column;
    background: #0f3c2e;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
  }

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

  .nav-menu li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ========== Gallery/Single Post Styles ========== */
.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 15px;
	Margin top : 15px;
    color: #555;
	text-align: center;
}

.breadcrumbs a {
    color: #007b5e;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
}
/* Related Posts Section */
.related-posts {
  background-color: #ffffff;
  padding: 60px 20px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Section Title */
.related-posts h3 {
  text-align: center;
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 40px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
}

/* Grid Layout */
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Related Post */
.related-item {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  padding-bottom: 20px;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Thumbnail Image */
.related-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
  object-fit: cover;
}

/* Post Title */
.related-item h3 {
  font-size: 1.1rem;
  margin: 15px 10px 0;
  font-weight: 500;
  line-height: 1.4;
}

.related-item h3 a {
  text-decoration: none;
  color: #007c5c;
  transition: color 0.3s;
}

.related-item h3 a:hover {
  color: #00563d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .related-item {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .related-item {
    flex: 1 1 100%;
  }

  .related-posts h3 {
    font-size: 1.5rem;
  }

  .related-item h3 {
    font-size: 1rem;
  }
}

/* Optional underline effect */
.related-posts h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #007c5c;
  margin: 12px auto 0;
  border-radius: 2px;
}
.related-item h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: 'Segoe UI', sans-serif;
}
.acf-gallery {
    margin-top: 40px;
}

.acf-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    border-left: 4px solid #007b5e;
    padding-left: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
/* for styling social media sharing buttons */
.social-icons h4 {
	text-align:center;
}
.social-share {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #f0f0f0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.social-share a:hover {
  transform: scale(1.1);
  background-color: #e0e0e0;
}

.social-share img {
  width: 20px;
  height: 20px;
}
/* Featured image style */
.featured-image {
  text-align: center;
  margin-bottom: 20px;
}

.featured-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
/* to make single page beautiful */
/* Style for all headings (h1 to h6) */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  text-transform: uppercase;
  color: #007b5e; /* Beautiful green */
  border-bottom: 2px solid #007b5e;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Style for bold text */
.entry-content strong {
  text-transform: uppercase;
  color: #007b5e;
  border-bottom: 1px solid #007b5e;
  font-weight: bold;
  padding-bottom: 2px;
}
/* to show search home and other pages */
search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    outline: none;
}
.search-form {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 500px;
}

.search-field {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
}

.search-submit {
  padding: 10px 16px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.search-submit:hover {
  background: #005a87;
}