/*-----------------------------------*\
 * #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --united-nations-blue: hsl(100, 41%, 48%);
  --bright-navy-blue: rgb(106, 171, 74);
  --spanish-gray: hsl(0, 0%, 60%);
  --black-coral: hsl(225, 8%, 42%);
  --oxford-blue: hsl(100, 97%, 12%);
  --yale-blue: hsl(100, 41%, 38%);
  --blue-ncs: hsl(100, 100%, 36%);
  --gunmetal: hsl(206, 34%, 20%);
  --gainsboro: hsl(0, 0%, 88%);
  --cultured: hsl(0, 0%, 98%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(0, 0%, 25%);
  --jet: hsl(0, 0%, 20%);

  /**
   * typography
   */

  --ff-poppins: "Poppins", sans-serif;
  --ff-montserrat: "Montserrat", sans-serif;

  --fs-1: calc(20px + 3.5vw);
  --fs-2: calc(18px + 1.6vw);
  --fs-3: calc(16px + 0.45vw);
  --fs-4: 15px;
  --fs-5: 14px;
  --fs-6: 13px;
  --fs-7: 12px;
  --fs-8: 11px;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;

  /**
   * transition
   */

  --transition: 0.25s ease-in-out;

  /**
   * spacing
   */

  --section-padding: 60px;

  /**
   * border-radius
   */

  --radius-15: 15px;
  --radius-25: 25px;

}





/*-----------------------------------*\
 * #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a { text-decoration: none; }

a,
img,
span,
input,
label,
button,
ion-icon { display: block; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

button { cursor: pointer; }

input { width: 100%; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-poppins);
  scroll-behavior: smooth;
}

body { background: var(--white); }





/*-----------------------------------*\
 * #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.btn {
  color: var(--white);
  text-transform: uppercase;
  font-size: var(--fs-5);
  border-radius: 100px;
  padding: var(--padding, 8px 18px);
  border: var(--border-width, 2px) solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--bright-navy-blue);
  border-color: var(--bright-navy-blue);
}

.btn-primary:is(:hover, :focus) {
  background: var(--yale-blue);
  border-color: var(--yale-blue);
}

.btn-secondary { border-color: var(--white); }

.btn-secondary:is(:hover, :focus) { background: hsla(0, 0%, 100%, 0.1); }

.h1,
.h2,
.h3 {
  font-weight: var(--fw-800);
  font-family: var(--ff-montserrat);
  text-transform: uppercase;
}

.h1 {
  color: var(--white);
  font-size: var(--fs-1);
}

.h2,
.h3 { color: var(--gunmetal); }

.h2 { font-size: var(--fs-2); }

.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
}

.section-subtitle {
  color: var(--bright-navy-blue);
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-family: var(--ff-montserrat);
  margin-bottom: 8px;
}

.section-title { margin-bottom: 15px; }

.section-text {
  color: var(--black-coral);
  margin-bottom: 30px;
}

.card-text {
  color: var(--black-coral);
  font-size: var(--fs-5);
}





/*-----------------------------------*\
 * #HEADER
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 61px;
  z-index: 4;
}

.header-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: var(--transition);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-block: 15px;
  z-index: 1;
}

.header.active .header-top {
  position: fixed;
  background: var(--gunmetal);
}

.header-top .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: flex-start;
  align-items: center;
}

.helpline-box .wrapper { display: none; }

.helpline-box .icon-box {
  background: var(--bright-navy-blue);
  padding: 6px;
  border-radius: 50%;
  color: var(--white);
}

.helpline-box .icon-box ion-icon { --ionicon-stroke-width: 40px; }

.header-top .logo { margin-inline: auto; }

.header-top .logo img { max-width: 100px; }

.header-btn-group {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.search-btn,
.nav-open-btn {
  font-size: 30px;
  color: inherit;
}

.search-btn { font-size: 20px; }

.header-bottom { border-bottom: 1px solid hsla(0, 0%, 100%, 0.1); }

.header-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 15px;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-link {
  color: var(--white);
  padding: 8px;
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 50%;
  font-size: 15px;
  transition: var(--transition);
}

.social-link:is(:hover, :focus) { background: hsla(0, 0%, 100%, 0.2); }

.header .btn { --padding: 4px 20px; }

.header .navbar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 100%;
  max-width: 300px;
  height: 100%;
  background: var(--white);
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in;
  z-index: 3;
}

.navbar.active {
  right: 0;
  visibility: visible;
  pointer-events: all;
  transition: 0.25s ease-out;
}

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

.navbar-top .logo img { width: 150px; }

.nav-close-btn {
  font-size: 20px;
  color: var(--bright-navy-blue);
}

.nav-close-btn ion-icon { --ionicon-stroke-width: 80px; }

.navbar-list { border-top: 1px solid hsla(0, 0%, 0%, 0.1); }

.navbar-list li { border-bottom: 1px solid hsla(0, 0%, 0%, 0.1); }

.navbar-link {
  padding: 15px 20px;
  color: var(--jet);
  font-weight: var(--fw-500);
  font-size: var(--fs-4);
  transition: var(--transition);
  text-transform: capitalize;
}

.navbar-link:is(:hover, :focus) { color: var(--bright-navy-blue); }

.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: var(--transition);
}

.overlay.active {
  opacity: 0.7;
  pointer-events: all;
}





/*-----------------------------------*\
 * #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding-top: 125px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 0%, 0%, 0.7);
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title { 
  margin-bottom: 20px; 
  color: var(--white);
}

.hero-text {
  color: var(--white);
  font-size: var(--fs-5);
  margin-bottom: 40px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}





/*-----------------------------------*\
 * #TOUR SEARCH
\*-----------------------------------*/

.tour-search {
  background: var(--bright-navy-blue);
  padding-block: var(--section-padding);
}

.tour-search-form .input-label {
  color: var(--white);
  font-size: var(--fs-4);
  margin-left: 20px;
  margin-bottom: 10px;
}

.tour-search-form .input-field {
  background: var(--white);
  padding: 10px 15px;
  font-size: var(--fs-5);
  border-radius: 50px;
}

.tour-search-form .input-field::placeholder { color: var(--spanish-gray); }

.tour-search-form .input-field::-webkit-datetime-edit {
  color: var(--spanish-gray);
  text-transform: uppercase;
}

.tour-search-form .input-wrapper { margin-bottom: 15px; }

.tour-search .btn {
  width: 100%;
  --border-width: 1px;
  font-weight: var(--fw-600);
  margin-top: 35px;
}





/*-----------------------------------*\
 * #POPULAR
\*-----------------------------------*/

.popular { padding-block: var(--section-padding); }

.popular-list,
.popular-list > li:not(:last-child) { margin-bottom: 30px; }

.popular-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-25);
  height: 430px;
}

.popular-card .card-img { height: 100%; }

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

.popular-card .card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-25);
  padding: 20px;
}


.popular-card .card-rating {
  background: var(--bright-navy-blue);
  color: var(--white);
  position: absolute;
  top: 0;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 1px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.popular-card .card-subtitle {
  color: var(--blue-ncs);
  font-size: var(--fs-6);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.popular-card .card-title { margin-bottom: 5px; }

.popular-card :is(.card-subtitle, .card-title) > a { color: inherit; }

.popular .btn { margin-inline: auto; }





/*-----------------------------------*\
 * #PACKAGE
\*-----------------------------------*/

.package { padding-block: var(--section-padding); }

.package-list { margin-bottom: 40px; }

.package-list > li:not(:last-child) { margin-bottom: 30px; }

.package-card {
  background: var(--cultured);
  overflow: hidden;
  border-radius: 15px;
}

.package-card .card-banner { height: 250px; }

.package-card .card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-card .card-content { padding: 30px 20px; }

.package-card .card-title { margin-bottom: 15px; }

.package-card .card-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-meta-list {
  background: var(--white);
  max-width: max-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.15);
  border-radius: 50px;
}

.card-meta-item { position: relative; }

.card-meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -1px;
  bottom: 4px;
  width: 1px;
  background: hsla(0, 0%, 0%, 0.3);
}

.meta-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-inline: 9px;
  color: var(--black-coral);
  font-size: var(--fs-8);
}

.meta-box > ion-icon {
  color: var(--bright-navy-blue);
  font-size: 13px;
}

.package-card .card-price {
  background: var(--united-nations-blue);
  color: var(--white);
  padding: 25px 20px;
  text-align: center;
}

.package-card .card-price .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 15px;
  margin-bottom: 10px;
}

.package-card .card-price .reviews { font-size: var(--fs-5); }

.package-card .card-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  font-size: 14px;
}

.package-card .card-rating ion-icon:last-child { color: hsl(0, 0%, 80%); }

.package-card .price {
  font-size: var(--fs-2);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-800);
  margin-bottom: 20px;
}

.package-card .price span {
  font-size: var(--fs-7);
  font-weight: initial;
}

.package .btn { margin-inline: auto; }





/*-----------------------------------*\
 * #GALLERY
\*-----------------------------------*/

.gallery { padding-block: var(--section-padding); }

.gallery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-15);
  overflow: hidden;
}

.gallery-item:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }

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





/*-----------------------------------*\
 * #CTA
\*-----------------------------------*/

.cta {
  background: var(--bright-navy-blue);
  padding-block: var(--section-padding);
}

.cta :is(.section-subtitle, .section-title, .section-text) { color: var(--white); }

.cta .section-text { font-size: var(--fs-5); }





/*-----------------------------------*\
 * #FOOTER
\*-----------------------------------*/

.footer-top {
  background: var(--gunmetal);
  padding-block: var(--section-padding);
  color: var(--gainsboro);
}

.footer-brand { margin-bottom: 30px; }

.footer-brand img { width: 180px; }

.footer-brand .logo { margin-bottom: 20px; }

.footer-text {
  font-size: var(--fs-5);
  line-height: 1.7;
}

.footer-contact { margin-bottom: 30px; }

.contact-title {
  position: relative;
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-500);
  margin-bottom: 30px;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--bright-navy-blue);
}

.contact-text {
  font-size: var(--fs-5);
  margin-bottom: 15px;
  max-width: 200px;
}

.contact-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-item ion-icon { --ionicon-stroke-width: 40px; }

.contact-link,
address {
  font-style: normal;
  color: var(--gainsboro);
  font-size: var(--fs-5);
}

.contact-link:is(:hover, :focus) { color: var(--white); }

.form-text {
  font-size: var(--fs-5);
  margin-bottom: 20px;
}

.footer-form .input-field {
  background: var(--white);
  font-size: var(--fs-5);
  padding: 15px 20px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.footer-form .btn { width: 100%; }

.footer-bottom {
  --gunmetal: hsl(205, 36%, 17%);
  background: var(--gunmetal);
  padding-block: 20px;
  text-align: center;
}

.copyright {
  color: var(--gainsboro);
  font-size: var(--fs-5);
  margin-bottom: 10px;
}

.copyright a {
  color: inherit;
  display: inline-block;
}

.copyright a:is(:hover, :focus) { color: var(--white); }

.footer-bottom-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}

.footer-bottom-list > li { position: relative; }

.footer-bottom-list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -10px;
  bottom: 3px;
  width: 1px;
  background: hsla(0, 0%, 100%, 0.2);
}

.footer-bottom-link {
  color: var(--gainsboro);
  font-size: var(--fs-7);
  transition: var(--transition);
}

.footer-bottom-link:is(:hover, :focus) { color: var(--white); }





/*-----------------------------------*\
 * #GO TO TOP
\*-----------------------------------*/

.go-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: var(--bright-navy-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: var(--transition);
}

.go-top.active {
  opacity: 0.8;
  transform: translateY(0);
  visibility: visible;
}

.go-top:is(:hover, :focus) { opacity: 1; }





/*-----------------------------------*\
 * #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 580px;
    margin-inline: auto;
  }

  .btn {
    --fs-5: 16px;
    --padding: 12px 30px;
  }

  section:not(.cta) :is(.section-subtitle, .section-title, .section-text) {
    text-align: center;
  }

  .section-text { margin-bottom: 40px; }

  .card-text { --fs-5: 15px; }



  /**
   * HEADER
   */

  .header { padding-top: 83px; }

  .helpline-box .icon-box { padding: 14px; }

  .header-top .logo img { max-width: unset; }

  .search-btn { font-size: 30px; }

  .nav-open-btn { font-size: 40px; }

  .header .btn {
    --fs-5: 14px;
    --padding: 6px 20px;
  }



  /**
   * HERO
   */

  .hero {
    min-height: 800px;
    padding-top: 85px;
  }

  .hero-text { --fs-5: 15px; }

  .btn-group { gap: 20px; }



  /**
   * TOUR SEARCH
   */

  .tour-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 15px;
  }

  .tour-search-form .input-wrapper { margin-bottom: 0; }

  .tour-search-form .input-field { padding: 16px 20px; }

  .tour-search .btn {
    grid-column: span 2;
    margin-top: 20px;
  }



  /**
   * POPULAR
   */

  .popular-card .card-content { right: auto; }



  /**
   * FOOTER
   */

  .footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-form { grid-column: span 2; }

  .footer-bottom { text-align: left; }

  .copyright { margin-bottom: 0; }

  .footer-bottom-list { justify-content: flex-end; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-5: 15px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 800px; }

  .section-text {
    max-width: 60ch;
    margin-inline: auto;
  }



  /**
   * HEADER
   */

  .helpline-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .helpline-box .wrapper {
    display: block;
    color: var(--white);
    font-size: var(--fs-6);
  }

  .social-list { gap: 10px; }



  /**
   * POPULAR
   */

  .popular-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }

  .popular-list > li:not(:last-child) { margin-bottom: 0; }

  .popular-card .card-content { right: 20px; }



  /**
   * PACKAGE
   */

  .package-list { margin-bottom: 50px; }

  .package-list > li:not(:last-child) { margin-bottom: 40px; }

  .package-card {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
  }

  .package-card .card-banner { height: 100%; }

  .package-card .card-content { padding: 40px; }

  .package-card .card-price {
    display: grid;
    place-content: center;
  }

  .package-card .card-price .wrapper { margin-bottom: 15px; }



  /**
   * GALLERY
   */

  .gallery { padding-bottom: calc(var(--section-padding * 2)); }

  .gallery-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-image { border-radius: var(--radius-25); }



  /**
   * CTA
   */

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

  .cta-content { width: calc(100% - 225px); }

  .cta .section-text { margin-inline: 0; }



  /**
   * FOOTER
   */

  .form-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .footer-form .input-field { margin-bottom: 0; }

  .footer-form .btn { width: max-content; }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 1050px; }



  /**
   * HEADER
   */

  .header.active .header-top {
    position: unset;
    background: unset;
  }

  .nav-open-btn,
  .navbar-top { display: none; }

  .header-bottom { border-bottom: none; }

  .header.active .header-bottom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--onyx);
    box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.08);
    transition: var(--transition);
  }

  .header-bottom .container { padding-block: 0; }

  .header .navbar { all: unset; }

  .navbar-list {
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar-list li { border-bottom: none; }

  .navbar-link {
    color: var(--white);
    --fs-4: 16px;
    font-weight: unset;
    text-transform: uppercase;
    padding: 20px 15px;
  }

  .header.active .navbar-link { color: var(--onyx); }

  .header.active .navbar-link:is(:hover, :focus) { color: var(--bright-navy-blue); }

  .header.active .social-link {
    color: var(--onyx);
    border-color: hsla(0, 0%, 0%, 0.15);
  }

  .overlay { display: none; }



  /**
   * HERO
   */

  .hero .container { max-width: 740px; }



  /**
   * TOUR SEARCH
   */

  .tour-search-form { grid-template-columns: repeat(5, 1fr); }

  .tour-search .btn {
    --padding: 15px;
    grid-column: unset;
    margin-top: 0;
  }



  /**
   * POPULAR
   */

  .popular-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * PACKAGE
   */

  .meta-box { --fs-8: 13px; }

  .meta-box > ion-icon { font-size: 15px; }



  /**
   * CTA 
   */

  .cta .section-title { max-width: 25ch; }



  /**
   * FOOTER
   */

  .footer-top .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }

  .footer-form { grid-column: unset; }

  .form-wrapper { flex-direction: column; }

  .footer-form .btn { width: 100%; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * spacing
     */

    --section-padding: 100px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1180px; }

}

/* Blog Section */
.blog-section {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.blog-section .section-subtitle {
  color: var(--bright-navy-blue);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-700);
  font-size: var(--fs-5);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-align: center;
}

.blog-section .section-title {
  color: var(--gunmetal);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-700);
  font-size: var(--fs-2);
  line-height: 1.3;
  text-align: center;
  margin-bottom: 15px;
}

.blog-section .section-text {
  color: var(--black-coral);
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-25);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card .card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .card-img img {
  transform: scale(1.1);
}

.category-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--bright-navy-blue);
  color: var(--white);
  padding: 6px 15px;
  border-radius: 20px;
  font-family: var(--ff-montserrat);
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .card-content {
  padding: 30px 25px;
}

.blog-card .card-rating {
  background: var(--bright-navy-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  width: fit-content;
  margin-bottom: 15px;
}

.blog-card .card-title {
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card .card-text {
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--black-coral);
  font-size: var(--fs-5);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding: 12px 0;
  border-top: 1px solid var(--gainsboro);
  border-bottom: 1px solid var(--gainsboro);
}

.blog-meta .meta-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black-coral);
  font-size: var(--fs-6);
  font-family: var(--ff-poppins);
}

.blog-meta .meta-box ion-icon {
  color: var(--bright-navy-blue);
  font-size: 16px;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bright-navy-blue);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-600);
  font-size: var(--fs-5);
  text-transform: uppercase;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--yale-blue);
  gap: 12px;
}

.read-more ion-icon {
  font-size: 16px;
  transition: var(--transition);
}

.blog-btn-group {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .blog-card .card-content {
    padding: 25px 20px;
  }
  
  .blog-section .section-title {
    font-size: calc(18px + 1.2vw);
  }
}

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Fix Hero Text Positioning */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-top: 60px;
}

.hero-title { 
  margin-bottom: 20px; 
  color: var(--white);
}

.hero-text {
  color: var(--white);
  font-size: var(--fs-5);
  margin-bottom: 40px;
  max-width: 600px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Responsive adjustments */
@media (min-width: 580px) {
  .hero .container {
    padding-top: 25px;
  }
  
  .hero-text {
    font-size: 15px;
  }
}

.header-top .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo-text {
    color: #000;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

/* Ensure the header-top container has proper spacing */
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top .logo {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
}

.logo-text {
    color: #ffffff; /* Changed to white */
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

/* Luxury Staggered Text Reveal - No Bounce */
.hero-title {
    opacity: 0;
    transform: perspective(1000px) rotateX(45deg) translateY(100px);
    animation: luxuryReveal 1.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.5s forwards;
}

@keyframes luxuryReveal {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(45deg) translateY(100px) scale(0.8);
        filter: blur(15px) brightness(1.5);
    }
    40% {
        opacity: 0.5;
        transform: perspective(1000px) rotateX(-5deg) translateY(-10px) scale(1.05);
        filter: blur(5px) brightness(1.2);
    }
    70% {
        opacity: 0.8;
        transform: perspective(1000px) rotateX(2deg) translateY(5px) scale(0.98);
        filter: blur(2px) brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLuxury 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

@keyframes slideInLuxury {
    0% {
        opacity: 0;
        transform: translateX(-50px) skewX(-5deg);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0);
        filter: blur(0);
    }
}

.btn-group {
    opacity: 0;
    animation: buttonReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 1.8s forwards;
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* Multi-line Typewriter Animation with End Blinking Cursor */
.hero-title {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
  overflow: visible;
  white-space: normal;
  border-right: none;
  width: auto;
  display: block;
  position: relative;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  width: 0;
  position: relative;
  line-height: 1.2em;
  height: 1.2em;
}

/* First line typing */
.hero-title .line:first-child {
  animation: typing-first 1.5s steps(30, end) 0.5s forwards;
}

/* Second line typing */
.hero-title .line:last-child {
  animation: typing-second 1.5s steps(30, end) 2s forwards;
}

/* FIXED Cursor positioning */
.hero-title .line:last-child::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0; /* Changed from -3px to 0 */
  width: 2px;
  height: 1.2em;
  background-color: #ffffff;
  opacity: 0;
  animation: blink-caret 0.75s step-end infinite 3.5s forwards;
}

/* Typing animations */
@keyframes typing-first {
  from { width: 0 }
  to { width: 100% }
}

@keyframes typing-second {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%, 100% { opacity: 0 }
  50% { opacity: 1 }
}
.footer-brand .logo img {
    max-height: 70px; /* Adjust this value as needed */
    width: auto;
}
/* Payment Methods Section - Infinite Loop */
.payment-methods-section {
  padding: 40px 0;
  background: var(--cultured);
  overflow: hidden;
}

/* Only target containers within payment section */
.payment-methods-section .container {
  max-width: 100%;
  padding: 0;
}

.payment-scroll-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 20px 0;
}

.payment-scroll-track {
  display: flex;
  gap: 50px;
  animation: scroll-infinite 40s linear infinite;
  padding: 15px 0;
  align-items: center;
  width: max-content;
}

.payment-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.payment-logo img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  filter: grayscale(0.6);
  opacity: 0.8;
}

/* Infinite horizontal scrolling animation */
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 25px));
  }
}

.payment-security {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bright-navy-blue);
  font-weight: var(--fw-500);
  font-size: 14px;
}

.security-badge ion-icon {
  font-size: 18px;
  color: var(--bright-navy-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .payment-methods-section {
    padding: 30px 0;
  }
  
  .payment-scroll-track {
    gap: 40px;
    animation-duration: 35s;
    padding: 10px 0;
  }
  
  .payment-logo img {
    max-width: 100px;
    max-height: 40px;
  }
}

@media (max-width: 480px) {
  .payment-methods-section {
    padding: 25px 0;
  }
  
  .payment-scroll-track {
    gap: 30px;
    animation-duration: 30s;
    padding: 8px 0;
  }
  
  .payment-logo img {
    max-width: 80px;
    max-height: 35px;
  }
  
  .security-badge {
    font-size: 13px;
  }
}
/* Mobile Centering Fix */
.payment-methods-section .section-header {
  text-align: center;
  padding: 0 20px;
}

.payment-methods-section .section-subtitle,
.payment-methods-section .section-title {
  text-align: center;
  width: 100%;
}

/* Ensure proper container behavior on mobile */
@media (max-width: 768px) {
  .payment-methods-section .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .payment-methods-section .section-header {
    padding: 0;
  }
  
  .payment-methods-section .section-title {
    font-size: calc(18px + 1.2vw);
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .payment-methods-section .section-title {
    font-size: calc(16px + 1vw);
  }
  
  .payment-methods-section .section-subtitle {
    font-size: var(--fs-6);
  }
}


/* Get a Quote Section - Title & Slogan Styling Only */
.quote-header {
    margin-bottom: 30px;
    text-align: center;
}

.quote-header h2 {
    font-family: var(--ff-montserrat);
    font-weight: var(--fw-800);
    font-size: var(--fs-2);
    color: var(--gunmetal);
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.quote-header p {
    font-family: var(--ff-poppins);
    font-size: var(--fs-5);
    color: var(--black-coral);
    max-width: 600px;
    margin: 0 auto;
}

/* EVERYTHING BELOW THIS LINE REMAINS EXACTLY THE SAME AS YOUR ORIGINAL CSS */

.get-a-quote-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.form-and-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.quote-form-box {
    padding: 50px;
    flex-grow: 1;
    max-width: 700px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.quote-image-box {
    position: absolute;
    right: 0;
    top: -50px;
    height: 450px;
    width: 350px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}

.quote-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0 10px 10px 0;
}

.quote-text {
    position: absolute;
    top: 50%;
    left: calc(100% - 300px);
    transform: translateY(-50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    z-index: 3;
    display: flex;
    align-items: center;
}

.quote-text::before {
    content: '“';
    font-size: 80px;
    color: #5cb85c;
    margin-right: 10px;
    line-height: 0.5;
    font-family: serif;
    font-style: normal;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    color: #333;
    background: transparent;
    outline: none;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.country-code-display {
    display: flex;
    align-items: center;
    padding-right: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #eee;
}

.phone-input-wrapper input {
    flex-grow: 1;
    border-bottom: none;
    padding: 10px 0;
}

.phone-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.submit-button {
    background-color: #5cb85c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #4cae4c;
}

.coupon-link {
    color: #5cb85c;
    text-decoration: none;
    font-size: 14px;
}

.privacy-guarantee {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

@media (max-width: 1050px) {
    .quote-image-box {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        margin-top: 20px;
        order: 1;
    }

    .quote-form-box {
        max-width: 100%;
        order: 2;
    }
    
    .form-and-image-wrapper {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quote-text {
        position: static;
        transform: none;
        margin: 20px 0;
        text-align: center;
    }
}
.get-a-quote-section {
    padding: 80px 20px 40px 20px; /* Increased top padding */
    /* ... rest of your existing styles ... */
}
@media (max-width: 768px) {
    .quote-image-box {
        display: none;
    }
}

/* Gallery Popup Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover {
  color: #bbb;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1001;
}

.prev-btn, .next-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 20px;
}

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
}
/* Mobile header adjustments */
@media (max-width: 768px) {
  .header-top .logo {
    margin-inline: 0;
    justify-self: flex-start;
  }
  
  .helpline-box {
    display: none;
  }
  
  .logo-text {
    display: none;
  }
  
  .header-top .container {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  
  .header-btn-group {
    justify-self: flex-end;
  }
}
/* Hide tour search section on mobile */
@media (max-width: 768px) {
  .tour-search {
    display: none;
  }
}

/* Move Go to Top button upward */
.go-top {
  bottom: 80px !important; /* Moves it up above the chat button */
  right: 15px !important; /* Keeps it on right side */
  z-index: 1001 !important;
}

/* Chat widget stays at bottom */
.chatbase-chat-widget {
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
}
