/*
Theme Name: WebSylhet Layout 2 Preview
Theme URI: https://websylhet.com/
Author: WebSylhet
Description: Custom City Guide theme developed for WebSylhet.
Version: 2026.09.23.7-preview
Text Domain: city-guide-theme
*/

/*
=========================================
 WebSylhet Theme Stylesheet
 Safe Cleaned Version
-----------------------------------------
Non-destructive cleanup:
- Removed trailing whitespace
- Reduced excessive blank lines
- Preserved all CSS rules
=========================================
*/

/* ---------- Simple submenu rules ---------- */

/* ensure menu items with children are positioned for absolutely positioned submenu */
.header-menus .menu-item-has-children {
  position: relative;
}

/* hide submenus by default */
.header-menus .menu-item-has-children > .sub-menu,
#mobile-menu .menu-item-has-children > .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* desktop: show submenu on hover */
@media (min-width: 768px) {
  .header-menus .menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 999;
  }

  .header-menus .menu-item-has-children:hover > .sub-menu {
    display: block;
  }

  .header-menus .menu-item-has-children > .sub-menu li {
    padding: 0;
  }

  .header-menus .menu-item-has-children > .sub-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-menus .menu-item-has-children > .sub-menu li a:hover {
    background: #f3f4f6;
  }
}

/* mobile: use simple collapsed style (js will toggle .open) */
@media (max-width: 767px) {
  #mobile-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* submenu items in mobile */
  #mobile-menu .menu-item-has-children > .sub-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
  }

  /* when parent gets .open, show submenu */
  #mobile-menu .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  /* small caret for mobile */
  #mobile-menu .menu-item-has-children > a .submenu-caret {
    margin-left: 12px;
    font-size: 12px;
    opacity: 0.8;
  }
}

/* minimal accessibility focus outline */
.header-menus a:focus,
#mobile-menu a:focus {
  outline: 2px solid rgba(0,183,161,0.2);
  outline-offset: 2px;
}

/* Add caret to menu items that have children */
.header-menu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.7rem;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Rotate caret when hovered (desktop) */
.header-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile menu caret styling (larger for tap visibility) */
#mobile-menu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 1rem;
    margin-left: 8px;
}

/* Desktop submenu indicator */
.nav-left li.menu-item-has-children > a,
.nav-right li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* space between text + caret */
}

/* Style the caret */
.submenu-caret {
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Rotate caret on hover */
.nav-left li.menu-item-has-children:hover .submenu-caret,
.nav-right li.menu-item-has-children:hover .submenu-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* Desktop submenu dropdown */
.header-menu ul ul.sub-menu {
    display: none;
    position: absolute;
    background: white;
    padding: 10px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

/* Show submenu on hover */
.header-menu li:hover > ul.sub-menu {
    display: block;
}

/* Mobile: keep caret next to text */
#mobile-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Make caret smaller + closer */
#mobile-menu .submenu-caret {
    margin-left: 8px;
    opacity: 0.7;
}

/* ========================
   Homepage slider
   ======================== */

/* Featured Blog Slider */

.featured-slide {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.55) 45%,
        rgba(0,0,0,.25) 100%
    );
}

.featured-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 60px;
    color: #fff;
}

.featured-content h2 {
    max-width: 650px;
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.featured-content p {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.95);
    margin-bottom: 30px;
}

.featured-btn {
    display: inline-block;
    background: linear-gradient(
        to right,
        #00B7A1,
        #00C36C
    );
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.featured-btn:hover {
    opacity: .9;
}

.myFeaturedSwiper .swiper-button-next,
.myFeaturedSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    color: #fff;
}

.myFeaturedSwiper .swiper-button-next:after,
.myFeaturedSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.myFeaturedSwiper .swiper-pagination-bullet {
    background: #fff;
}

.myFeaturedSwiper .swiper-pagination-bullet-active {
    background: #00B7A1;
}

@media(max-width:768px){

    .featured-slide {
        height: 420px;
    }

    .featured-content {
        padding: 0 25px;
    }

    .featured-content h2 {
        font-size: 32px;
    }

    .featured-content p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ========================
   Modern Header Styling
   ======================== */
.site-header {
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #f9fafb 100%);
  padding: 18px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  position: absolute;
  left: 52%;
  top: 42%;
  transform: translate(-50%, -50%);
  max-height: 70px;
  z-index: 10;
  transition: all 0.3s ease;
}

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

.left-menu,
.right-menu {
  display: flex;
  align-items: center;
}

.left-menu {
  justify-content: flex-end;
  margin-right: 60px;
}

.right-menu {
  justify-content: flex-start;
  margin-left: 60px;
}

.nav-left li,
.nav-right li {
  display: inline-block;
  margin: 0 15px;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s, transform 0.3s;
}

.nav-left a::after,
.nav-right a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color, #00b7a1);
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
  width: 100%;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--primary-color, #00b7a1);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
  }

  .left-menu,
  .right-menu {
    margin: 8px 0;
  }

  .header-logo {
    position: relative;
    left: auto;
    transform: translateX(0);
    margin: 10px 0;
    max-height: 55px;
  }

  .site-header {
    padding: 12px 15px;
  }
}

/* ===============================
   Centered Modern Hero
================================= */
.modern-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modern-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.modern-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: #d1e8e2;
}
.breadcrumb a:hover {
  color: #9be3d9;
}

.post-hero-title {
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .modern-hero {
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .modern-hero .container {
    margin-left: auto;
    margin-right: 0; /* aligns right with main content area */
    max-width: 1100px;
  }
}

/* ==============================
   Custom Front Page Styling
============================== */

.top-bar {
  background: #009688;
  color: white;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Hero Section */
.hero-section {
  padding: 3rem 1rem 4rem;
  background: linear-gradient(to bottom, #b2f1eb 0%, #ffffff 100%);
  color: #004d40;
  text-align: center;
  overflow: hidden;
  animation: fadeInHero 1.2s ease-in-out;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards 0.3s;
}

.hero-section p {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards 0.6s;
}

.hero-section input[type="text"] {
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  padding: 12px 20px;
  flex: 1;
  font-size: 1rem;
}

.hero-section button {
  background: linear-gradient(to right, #00b7a1, #00c36c);
  border: none;
  padding: 12px 24px;
  border-radius: 0 50px 50px 0;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-section button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Categories Section */
.categories-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, #ffffff, #e6f9f6);
}

.category-box {
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.category-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Featured Listings */
.featured-section {
  background: linear-gradient(to bottom, #ffffff, #e6f9f6);
  padding: 5rem 1rem;
}

.listing-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.listing-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* City Info Bar */
.city-info-bar {
  background: linear-gradient(90deg, #1ab5a3, #20c7b5);
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.city-info-bar a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}
.city-info-bar a:hover {
  text-decoration: underline;
}

/* ==========================
   Blog Section on Homepage
========================== */
.blog-section {
  background: #f9fafb;
  padding: 5rem 1rem;
}

.blog-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}
.blog-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 191, 165, 0.15);
}
.blog-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  transition: transform 0.4s ease;
}
.blog-box:hover img {
  transform: scale(1.05);
}
.blog-box .p-6 {
  padding: 1.5rem 1.5rem 1.75rem;
}
.blog-box p {
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}
.blog-box a {
  color: #009688;
  font-weight: 600;
  text-decoration: none;
}
.blog-box a:hover {
  text-decoration: underline;
}

/* ==========================
   Page & Post Containers
========================== */
.page-wrapper {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 60px;
}
@media (min-width: 768px) {
  .page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
  }
}

/* Sidebar */
.sidebar .widget-area > div {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.sidebar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6355;
  margin-bottom: 0.75rem;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  margin-bottom: 0.5rem;
}
.sidebar li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}
.sidebar li a:hover {
  color: #00b7a1;
}

/* ==========================
   Single Post Styling
========================== */
.post-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.prose {
  line-height: 1.8;
  font-size: 1.05rem;
}
.prose h2, .prose h3, .prose h4 {
  color: #006b6b;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.prose h2 {
  font-size: 1.6rem;
  border-left: 4px solid #00b7a1;
  padding-left: 10px;
}
.prose h3 {
  font-size: 1.3rem;
}
.prose p {
  margin-bottom: 1.4rem;
  color: #333;
}
.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose blockquote {
  border-left: 4px solid #00b7a1;
  background: #f4fefc;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #004d45;
  border-radius: 6px;
}
.prose img {
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==========================
   WordPress Image Alignment
   ========================== */

.prose .alignleft,
.prose figure.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.prose .alignright,
.prose figure.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.prose .aligncenter,
.prose figure.aligncenter {
    display: block;
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* Keep aligned images nicely sized */
.prose figure.alignleft img,
.prose figure.alignright img,
.prose figure.aligncenter img {
    margin-top: 0;
    margin-bottom: 0;
}

/* Stop text wrapping around the image after the
   first paragraph following it */
.prose figure.alignleft + p + p,
.prose figure.alignright + p + p {
    clear: both;
}

/* Mobile */
@media (max-width: 767px) {
    .prose .alignleft,
    .prose .alignright,
    .prose figure.alignleft,
    .prose figure.alignright {
        float: none;
        display: block;
        margin: 1rem auto;
    }

    .prose figure.alignleft + p + p,
    .prose figure.alignright + p + p {
        clear: none;
    }
}

/* End pros img */

/* Comments Section */
#comments {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  margin-top: 2rem;
}
#comments h3 {
  color: #0d6355;
  font-weight: 600;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 1rem;
}
.comment-form input[type="submit"] {
  background: #00b7a1;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}
.comment-form input[type="submit"]:hover {
  background: #00957f;
}

/* ==========================
   Global Consistency
========================== */
body, p, li, ul {
  color: #333;
  line-height: 1.75;
  font-size: 1rem;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.4em;
  list-style-position: outside;
}
p {
  margin-bottom: 1.4em;
}
html, body {
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================
   Spotlight section
========================== */

/* Spotlight Section */
.home-spotlight-section {
  padding: 70px 0 80px;
  text-align: center;
  background: #fff;
}

.spotlight-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #007a5a;
  margin-bottom: 40px;
}

/* Card Slider */
.mySpotlightSwiper {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.spotlight-card {
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .3s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
}

.spotlight-img {
  flex: 1.2;
}

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

.spotlight-info {
  flex: 1;
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-info h3 {
  font-size: 1.7rem;
  color: #007a5a;
  margin-bottom: 15px;
}

.spotlight-info p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.spotlight-btn {
  background: #00a896;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.spotlight-btn:hover {
  background: #007a5a;
}

/* Mobile */
@media(max-width: 768px) {
  .spotlight-card { flex-direction: column; }
  .spotlight-info { text-align: center; align-items: center; }
  .spotlight-btn { align-self: center; }
}

/* =============== Flight Board Banner + Popup ================== */

.flight-board-section { text-align:center; }

.flight-board-banner {
  background: linear-gradient(135deg, #0d1117, #1b1f24);
  color: #00e6b8;
  padding: 18px 28px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition:.3s;
  margin: 50px auto;
}
.flight-board-banner:hover { transform: translateY(-2px); }

/* Popup */
.flight-board-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.flight-board-modal-content {
  background: #0d1117;
  color: #d1fff4;
  width: 85%;
  max-width: 900px;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 255, 200, 0.3);
  position: relative;
}
.flight-board-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #00e6b8;
  cursor: pointer;
}
.flight-board-iframe-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
}
@media(max-width:600px){
  .flight-board-iframe-wrap iframe { height: 450px; }
}

/* --- Unified Caret Styles (Updated) --- */

/* Add caret to any menu item with children (desktop + mobile) */
.header-menu .menu-item-has-children > a::after,
#mobile-menu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.75rem;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.7;
}

/* Desktop hover effect flips caret */
@media (min-width: 768px) {
  .header-menu .menu-item-has-children:hover > a::after {
      transform: rotate(180deg);
      opacity: 1;
  }
}

/* Mobile caret bigger + tap friendly */
@media (max-width: 767px) {
  #mobile-menu .menu-item-has-children > a::after {
      font-size: 1rem;
  }

  /* When menu is opened, rotate caret */
  #mobile-menu .menu-item-has-children.open > a::after {
      transform: rotate(180deg);
      opacity: 1;
  }
}

  /* Bullets/ UL / LI */
/* ==========================
   Content Typography
========================== */

/* ======================================
   Modern Content Lists (Posts & Pages)
====================================== */

.prose ul,
.entry-content ul,
.page-content ul,
article ul,
.page-wrapper ul,
main ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.prose ul li,
.entry-content ul li,
.page-content ul li,
article ul li,
.page-wrapper ul li,
main ul li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.prose ul li::before,
.entry-content ul li::before,
.page-content ul li::before,
article ul li::before,
.page-wrapper ul li::before,
main ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #00B7A1;
    font-size: 18px;
    font-weight: 700;
}

/* Ordered lists */

.prose ol,
.entry-content ol,
.page-content ol,
article ol,
.page-wrapper ol,
main ol {
    margin: 1.5rem 0;
    padding-left: 28px;
}

.prose ol li,
.entry-content ol li,
.page-content ol li,
article ol li,
.page-wrapper ol li,
main ol li {
    margin-bottom: 12px;
    line-height: 1.8;
}
