/*
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;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.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 #ffffff;
    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;
}

/* ========== 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: 20px;
    color: #555;
}

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

.breadcrumbs span {
    margin: 0 5px;
}

.related-posts {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.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-share {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.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; 
  border-bottom: 1px solid #007b5e;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Style for bold text */
.entry-content strong {
  text-transform: uppercase;
  color: #007b5e;
  font-weight: bold;
  padding-bottom: 2px;
}
h1.single-title{
  text-transform: uppercase;
  color: #007b5e;
  font-weight: bold;
  border-bottom: 1px solid #007b5e;	
}