/*
Theme Name: Costa Norte Theme
Author: Ana Cristina
Version: 1.0
*/

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial, sans-serif;
  background:#f8fafc;
  color:#1e293b;
}

/* =========================================================
   CONTAINER
========================================================= */

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* =========================================================
   HEADER
========================================================= */

header{
  width:100%;
}

/* TOPBAR */

header .order-1{
  background:#1D1D1B;
  border-bottom:1px solid rgba(255,255,255,.08);
}

header .order-1 .nav-link{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  display:inline-block;
  padding:12px 0;
  opacity:.85;
}

header .order-1 .nav-link:hover{
  opacity:1;
}

/* NAVBAR */

.navbar-web{
  background:#FF7725;
  box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.navbar-web .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.navbar-web img{
  max-height:80px;
  width:auto;
  display:block;
}

/* MENU */

.navbar-nav{
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
}

.navbar-nav .nav-item{
  list-style:none;
}

.navbar-nav .nav-link{
  color:white;
  text-decoration:none;
  padding:32px 18px;
  display:flex;
  align-items:center;
  font-size:14px;
  text-transform:uppercase;
  transition:.3s;
  border-bottom:3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
  color:#FF7725;
  border-bottom-color:#FF7725;
}

/* MOBILE BUTTON */

.navbar-toggler{
  display:none;
}

/* =========================================================
   RESPONSIVE HEADER
========================================================= */

@media(max-width:768px){

  .navbar-web .container{
    flex-direction:column;
    padding:20px 0;
  }

  .navbar-nav{
    flex-wrap:wrap;
    justify-content:center;
    gap:0;
  }

  .navbar-nav .nav-link{
    padding:14px 10px;
    font-size:13px;
  }

  header .order-1{
    display:none;
  }

}


.posts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:30px;
  margin-bottom:60px;
}

.post-card{
  background:white;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  transition:0.3s;
}

.post-card:hover{
  transform:translateY(-5px);
}

.post-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.post-content{
  padding:24px;
}

.post-date{
  font-size:14px;
  color:#94a3b8;
}

.post-card h2{
  margin:12px 0;
  font-size:14px;
}

.post-card h2 a{
  color:#0f172a;
  text-decoration:none;
}

.post-card p{
  color:#475569;
  line-height:1.7;
}

.read-more{
  display:inline-block;
  margin-top:20px;
  text-decoration:none;
  background:#0f172a;
  color:white;
  padding:12px 20px;
  border-radius:8px;
}


.blog-hero{
  position: relative;
  min-height: 65vh;
  background-image:
    linear-gradient(rgba(0,0,0,.60), rgba(0,0,0,.65)),
    url('https://www.hotelcostanorte.com.pe/images/banner/banner-principal.jpg');
  background-size: cover;
  background-position: center;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  padding: 140px 20px 90px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.20);
}

.hero-content{
  position:relative;
  z-index:2;
  color:white;
  max-width: 1000px;
}

.hero-subtitle{
  display: inline-block;
  letter-spacing:6px;
  font-size:14px;
  text-transform:uppercase;
  opacity:0.9;
  margin-bottom: 20px;
}

.blog-hero h1{
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin:10px 0 20px;
  font-weight:800;
  line-height: 1.1;
  text-shadow: 0 5px 25px rgba(0,0,0,.35);
}

/* =========================================================
   DIVIDER
========================================================= */

.hero-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-bottom:30px;
}

.hero-divider span{
  width:70px;
  height:2px;
  background:#ff7a00;
}

.hero-divider i{
  font-size:28px;
  color:#ff7a00;
}

/* =========================================================
   TAGLINE
========================================================= */

.hero-tagline{
  max-width: 760px;
  margin:auto;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height:1.7;
  font-weight:500;
  color:#fff;
  margin-bottom:40px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* =========================================================
   GLASS CARD
========================================================= */

.hero-description{
  max-width: 760px;
  margin: auto;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.30);
}

.hero-description h3{
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  margin-bottom: 18px;
  font-weight: 700;
  color: #fff;
}

.hero-description p{
  max-width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,.92);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px){

  .blog-hero{
    min-height: auto;
    padding: 130px 20px 80px;
  }

  .blog-hero h1{
    font-size: 2.4rem;
  }

  .hero-divider span{
    width:45px;
  }

  .hero-divider i{
    font-size:22px;
  }

  .hero-tagline{
    font-size:1.1rem;
    margin-bottom:35px;
  }

  .hero-description{
    padding:28px 22px;
    border-radius:18px;
  }

  .hero-description h3{
    font-size:1.5rem;
  }

  .hero-description p{
    font-size:1rem;
    line-height:1.75;
  }

}

/* POSTS */

.blog-posts-section{
  padding:80px 0;
  background:#f5f5f5;
}

.posts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:35px;
}

.blog-card{
  background:white;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 15px 35px rgba(0,0,0,0.08);
  transition:all .3s ease;
}

.blog-card:hover{
  transform:translateY(-8px);
}

.blog-image{
  display:block;
  overflow:hidden;
}

.blog-image img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .5s ease;
}

.blog-card:hover .blog-image img{
  transform:scale(1.05);
}

.blog-card-content{
  padding:30px;
}

.blog-date{
  color:#f59e0b;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.blog-card h2{
  margin:15px 0;
  font-size:28px;
  line-height:1.3;
}

.blog-card h2 a{
  color:#1D1D1B;
  text-decoration:none;
}

.blog-card p{
  color:#555;
  line-height:1.8;
}

.blog-btn{
  margin-top:20px;
  display:inline-flex;
  align-items:center;
  padding:14px 22px;
  background:#FF7725;
  color:white;
  text-decoration:none;
  border-radius:10px;
  transition:0.3s;
}

.blog-btn:hover{
  background:#1D1D1B;
  color:white;
}

/* =========================================================
   SINGLE POST
========================================================= */

.single-hero{
  position:relative;
  height:72vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.single-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.single-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}

.single-hero-content{
  position:relative;
  z-index:2;
  color:white;
  text-align:center;
  width:90%;
  max-width:900px;
}

.single-date{
  text-transform:uppercase;
  letter-spacing:3px;
  font-size:12px;
  color:#fbbf24;
  font-weight:600;
}

.single-hero h1{
  font-size:56px;
  line-height:1.15;
  margin-top:15px;
  font-weight:700;
}

/* CONTENT */

.single-content-section{
  padding:80px 0;
  background:#f8f8f8;
}

.single-content-wrapper{
  max-width:860px;
  margin:auto;
  background:white;
  padding:60px;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.single-content{
  font-size:16px;
  line-height:1.9;
  color:#444;
}

.single-content p{
  margin-bottom:1.7rem;
}

.single-content h2{
  font-size:34px;
  margin-top:4rem;
  margin-bottom:1.2rem;
  color:#1D1D1B;
  line-height:1.3;
}

.single-content h3{
  font-size:26px;
  margin-top:3rem;
  margin-bottom:1rem;
  color:#ff7725;
}

.single-content h4{
  font-size:21px;
  margin-top:2rem;
  margin-bottom:1rem;
  color:#1D1D1B;
}

.single-content ul,
.single-content ol{
  padding-left:1.4rem;
  margin-bottom:2rem;
}

.single-content li{
  margin-bottom:.8rem;
}

.single-content strong{
  color:#1D1D1B;
}

.single-content a{
  color:#ff7725;
  text-decoration:none;
}

.single-content a:hover{
  text-decoration:underline;
}

.single-content img{
  width:100%;
  height:auto;
  border-radius:18px;
  margin:2.5rem 0;
}

.single-content blockquote{
  border-left:4px solid #ff7725;
  padding-left:1.5rem;
  margin:2.5rem 0;
  color:#666;
  font-style:italic;
}

.single-content table{
  width:100%;
  border-collapse:collapse;
  margin:2rem 0;
}

.single-content table td,
.single-content table th{
  border:1px solid #ddd;
  padding:12px;
}

.single-content hr{
  margin:3rem 0;
  border:none;
  border-top:1px solid #ddd;
}

.single-back{
  text-align:center;
  margin-top:60px;
}

/* RESPONSIVE */

@media(max-width:768px){

  .single-hero{
    height:55vh;
  }

  .single-hero h1{
    font-size:36px;
  }

  .single-content-wrapper{
    padding:30px 24px;
  }

  .single-content{
    font-size:15px;
  }

  .single-content h2{
    font-size:28px;
  }

}

/* RELATED POSTS */

.related-posts{
  margin-top:100px;
}

.related-title{
  text-align:center;
  font-size:42px;
  margin-bottom:50px;
  color:#1D1D1B;
}

.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:35px;
}

.related-card{
  background:white;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  transition:0.3s;
}

.related-card:hover{
  transform:translateY(-8px);
}

.related-image{
  display:block;
  overflow:hidden;
}

.related-image img{
  width:100%;
  height:240px;
  object-fit:cover;
  transition:0.5s;
}

.related-card:hover img{
  transform:scale(1.05);
}

.related-content{
  padding:25px;
}

.related-date{
  color:#f59e0b;
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.related-content h4{
  margin-top:15px;
  font-size:26px;
  line-height:1.4;
}

.related-content h4 a{
  text-decoration:none;
  color:#1D1D1B;
}


/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.single-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:45px;
  align-items:start;
}

/* SIDEBAR */

.single-sidebar{
  position:sticky;
  top:120px;
}

.sidebar-box{
  background:white;
  border-radius:20px;
  padding:30px;
  margin-bottom:30px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.sidebar-title{
  margin-top:0;
  margin-bottom:20px;
  font-size:22px;
  color:#1D1D1B;
}

/* SEARCH */

.wp-block-search__inside-wrapper,
.search-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.wp-block-search__input,
.search-field{
  width:100%;
  padding:14px 16px;
  border:1px solid #ddd;
  border-radius:12px;
  font-size:15px;
  outline:none;
}

.wp-block-search__button,
.search-submit{
  border:none;
  background:#FF7725;
  color:white;
  padding:14px;
  border-radius:12px;
  cursor:pointer;
  transition:.3s;
}

.wp-block-search__button:hover,
.search-submit:hover{
  background:#1D1D1B;
}

/* RECENT POSTS */

.wp-block-latest-posts,
.widget_recent_entries ul{
  list-style:none;
  padding:0;
  margin:0;
}

.wp-block-latest-posts li,
.widget_recent_entries li{
  border-bottom:1px solid #eee;
  padding:14px 0;
}

.wp-block-latest-posts li:last-child,
.widget_recent_entries li:last-child{
  border-bottom:none;
}

.wp-block-latest-posts a,
.widget_recent_entries a{
  text-decoration:none;
  color:#333;
  line-height:1.5;
  transition:.3s;
}

.wp-block-latest-posts a:hover,
.widget_recent_entries a:hover{
  color:#FF7725;
}

/* CTA */

.cta-mini{
  font-size:12px;
  letter-spacing:2px;
  color:#FF7725;
  text-transform:uppercase;
  display:block;
  margin-bottom:10px;
}

.cta-title{
  margin-top:0;
  margin-bottom:18px;
  font-size:28px;
  color:#1D1D1B;
}

.sidebar-btn{
  display:block;
  text-align:center;
  text-decoration:none;
  padding:14px 18px;
  border-radius:12px;
  margin-top:15px;
  background:#FF7725;
  color:white;
  transition:.3s;
}

.sidebar-btn:hover{
  background:#1D1D1B;
  color:white;
}

.sidebar-btn-dark{
  background:#1D1D1B;
}

.sidebar-btn-dark:hover{
  background:#FF7725;
}

/* RESPONSIVE */

@media(max-width:992px){

  .single-layout{
    grid-template-columns:1fr;
  }

  .single-sidebar{
    position:relative;
    top:0;
  }

}


/* =========================================================
   SEARCH EMPTY STATE
========================================================= */

.no-results{
  max-width:700px;
  margin:0 auto;
  background:white;
  padding:60px;
  border-radius:24px;
  box-shadow:0 10px 35px rgba(0,0,0,0.06);
  text-align:center;
}

.no-results h2{
  font-size:48px;
  margin-bottom:20px;
  color:#1D1D1B;
}

.no-results p{
  color:#666;
  font-size:18px;
  line-height:1.8;
  margin-bottom:35px;
}

/* FORM */

.no-results .search-form{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

.no-results .search-field{
  width:420px;
  max-width:100%;
  padding:16px 18px;
  border:1px solid #ddd;
  border-radius:14px;
  font-size:16px;
  outline:none;
  transition:.3s;
}

.no-results .search-field:focus{
  border-color:#FF7725;
  box-shadow:0 0 0 4px rgba(255,119,37,0.12);
}

.no-results .search-submit{
  border:none;
  background:#FF7725;
  color:white;
  padding:16px 28px;
  border-radius:14px;
  cursor:pointer;
  font-size:15px;
  transition:.3s;
}

.no-results .search-submit:hover{
  background:#1D1D1B;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
  background:#1D1D1B;
  padding:70px 0 0;
  color:white;
}

.footer .blog-container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* GRID */

.footer .row{
  display:grid;
  grid-template-columns:2fr 2fr 1fr;
  gap:50px;
  align-items:start;
}

/* LOGO */

.footer img{
  max-width:220px;
  height:auto;
  margin-bottom:25px;
}

.footer p{
  color:rgba(255,255,255,.75);
  line-height:1.8;
  font-size:15px;
  max-width:480px;
}

/* TITLES */

.footer h5,
.footer h6{
  font-size:20px;
  margin-bottom:25px;
  color:white;
  font-weight:600;
  text-transform:uppercase;
}

/* CONTACT LINKS */

.link-with-circle{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:rgba(255,255,255,.82);
  text-decoration:none;
  line-height:1.4;
  transition:.3s;
}

.link-with-circle:hover{
  color:#FF7725;
}

.link-with-circle span{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#FF7725;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

/* SOCIAL */

.social{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:0;
  margin:0;
}

.social li{
  list-style:none;
}

.social a{
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(255, 119, 37);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#FF7725;
  text-decoration:none;
  transition:.3s;
  font-size:18px;
}

.social a:hover{
  background:#FF7725;
  border-color:white;
  color:white;
  transform:translateY(-3px);
}

/* COPYRIGHT */

.copy{
  margin-top:60px;
  padding:24px 20px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.65);
  font-size:14px;
}

/* =========================================================
   RESPONSIVE FOOTER
========================================================= */

@media(max-width:992px){

  .footer .row{
    grid-template-columns:1fr;
    gap:40px;
  }

}

@media(max-width:768px){

  .footer{
    padding-top:55px;
  }

  .footer h5,
  .footer h6{
    font-size:22px;
  }

  .social{
    justify-content:flex-start;
  }

}

/* =========================================================
   MOBILE FOOTER FIX
========================================================= */

@media(max-width:768px){

  .footer{
    padding:50px 0 0;
    text-align:left;
  }

  .footer .row{
    display:flex;
    flex-direction:column;
    gap:40px;
  }

  .footer img{
    max-width:180px;
    margin-bottom:20px;
  }

  .footer p{
    font-size:14px;
    line-height:1.7;
  }

  .footer h5,
  .footer h6{
    font-size:20px;
    margin-bottom:18px;
  }

  .link-with-circle{
    font-size:14px;
    gap:10px;
    align-items:flex-start;
  }

  .link-with-circle span{
    width:34px;
    height:34px;
    min-width:34px;
    font-size:14px;
  }

  /* SOCIAL */

  .social{
    display:flex;
    justify-content:flex-start;
    gap:10px;
  }

  .social a{
    width:42px;
    height:42px;
    font-size:16px;
  }

  /* COPYRIGHT */

  .copy{
    margin-top:40px;
    padding:20px 15px;
    font-size:13px;
    line-height:1.6;
  }

}
