/*
Theme Name: Hopnest Blog
Theme URI: https://hopnest.in
Author: Hopnest
Author URI: https://hopnest.in
Description: Premium editorial blog theme for Hopnest (Kerala travel & discovery).
Version: 1.0.0
Text Domain: hopnest
*/


/* ======================================================
   Hopnest Blog Theme – Premium Editorial Styles
   Brand Color: Hopnest Orange (#FF5527)
   Font Strategy: System-first (fast, SEO-friendly)
====================================================== */

/* ------------------------------
   CSS Reset & Base
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background: #ffffff;
}

/* ------------------------------
   Links & Typography
--------------------------------*/
a {
  color: #FF5527;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1.1em;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: #111;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.2em;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
}

/* ------------------------------
   Layout Container
--------------------------------*/
.hn-post-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

/* ------------------------------
   Post Hero
--------------------------------*/
.hn-post-hero {
  margin-bottom: 24px;
}

.hn-post-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hn-post-meta {
  font-size: 0.85rem;
  color: #777;
}

.hn-post-featured-image {
  margin-top: 18px;
}

.hn-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ------------------------------
   Table of Contents
--------------------------------*/
.hn-post-toc {
  background: #fff6f2;
  border-left: 4px solid #FF5527;
  padding: 18px 18px 18px 16px;
  border-radius: 8px;
  margin: 30px 0;
}

.hn-post-toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.hn-post-toc ul {
  margin: 0;
  padding-left: 18px;
}

.hn-post-toc li {
  font-size: 0.9rem;
  margin: 6px 0;
}

/* ------------------------------
   Post Content
--------------------------------*/
.hn-post-content {
  font-size: 1.02rem;
  color: #2a2a2a;
}

.hn-post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.hn-post-content ul,
.hn-post-content ol {
  padding-left: 22px;
  margin-bottom: 1.2em;
}

.hn-post-content li {
  margin-bottom: 8px;
}

/* ------------------------------
   Pull Quotes / Highlights
--------------------------------*/
blockquote {
  margin: 30px 0;
  padding: 18px 20px;
  background: #f9f9f9;
  border-left: 4px solid #FF5527;
  border-radius: 8px;
  font-style: italic;
}

/* ------------------------------
   Hopnest Listings Section
--------------------------------*/
.hn-post-listings {
  margin-top: 50px;
}

.hn-post-listings h2 {
  margin-bottom: 16px;
}

.hn-listing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.hn-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.hn-card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.hn-card-meta {
  font-size: 0.85rem;
  color: #666;
}

/* ------------------------------
   CTA Section
--------------------------------*/
.hn-post-cta {
  margin-top: 60px;
  padding: 30px 22px;
  background: linear-gradient(135deg, #FF5527, #ff784e);
  color: #fff;
  border-radius: 16px;
  text-align: center;
}

.hn-post-cta h3 {
  margin: 0 0 8px;
  color: #fff;
}

.hn-post-cta p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.hn-btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #FF5527;
  padding: 12px 22px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.hn-btn-primary:hover {
  text-decoration: none;
  background: #fff2ec;
}

/* CTA buttons wrapper */
.hn-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Secondary button (iOS) */
.hn-btn-secondary {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hn-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}


/* ------------------------------
   Footer Compatibility
--------------------------------*/
footer {
  margin-top: 80px;
  font-size: 0.85rem;
  color: #777;
}

/* ------------------------------
   Mobile Optimizations
--------------------------------*/
@media (max-width: 768px) {

  .hn-post-title {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hn-post-wrapper {
    padding: 16px 14px 50px;
  }

  .hn-post-cta {
    padding: 24px 18px;
  }
}

/* ===============================
   Hopnest Premium Header
================================ */

.hn-site-header {
  background: rgba(31, 35, 40, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hn-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================
   Hopnest Brand + Navigation (FINAL, CLEAN)
   Works with WordPress custom logo (no nested <a>)
===================================================== */

/* ------------------------------
   Header Container (context)
-------------------------------- */
.hn-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ------------------------------
   Brand: Logo + Name
-------------------------------- */

/* Wrapper */
.hn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* WordPress custom logo link */
.hn-brand .custom-logo-link {
  display: flex;
  align-items: center;
}

/* Logo image */
.hn-brand .custom-logo {
  max-height: 30px;
  width: auto;
  opacity: 0.95;
}

/* Brand name link */
.hn-brand-name-link {
  text-decoration: none;
}

/* Brand text */
.hn-brand-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0.95;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .hn-brand-name {
    font-size: 0.95rem;
  }
}

/* ------------------------------
   Navigation
-------------------------------- */
.hn-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hn-nav-link {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

.hn-nav-link:hover {
  opacity: 1;
  text-decoration: none;
}

/* ------------------------------
   Primary CTA – Get the App
-------------------------------- */
.hn-btn-app {
  background: linear-gradient(135deg, #FF5527, #ff7a52);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(255, 85, 39, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hn-btn-app:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 85, 39, 0.45);
  text-decoration: none;
}

/* ------------------------------
   Mobile Polish
-------------------------------- */
@media (max-width: 768px) {

  .hn-header-inner {
    padding: 12px 14px;
  }

  .hn-nav {
    gap: 14px;
  }

  /* Hide text links, keep CTA */
  .hn-nav-link {
    display: none;
  }

  .hn-btn-app {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

/* =====================================================
   Hopnest Footer – Final Balanced Layout
===================================================== */

.hn-site-footer {
  background: #2b2b2b;
  color: #e6e6e6;
  margin-top: 90px;
}

/* Main footer grid */
.hn-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 70px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 120px;
}

/* LEFT: About section (center-balanced text) */
.hn-footer-about {
  max-width: 520px;
  text-align: center;
}

.hn-footer-about h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #ffffff;
}

.hn-footer-about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 18px;
}

/* RIGHT: Contact & company (left-aligned, structured) */
.hn-footer-col {
  text-align: left;
}

.hn-footer-col h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.hn-footer-sub {
  margin-top: 36px;
}

.hn-footer-col p {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 12px;
}

/* Highlight email */
.hn-footer-col a {
  color: #ff5527;
  text-decoration: none;
}

.hn-footer-col a:hover {
  text-decoration: underline;
}

/* Bottom copyright bar */
.hn-footer-bottom {
  background: #1f1f1f;
  text-align: center;
  padding: 20px 12px;
}

.hn-footer-bottom p {
  font-size: 0.9rem;
  color: #b5b5b5;
  margin: 0;
}

/* ------------------------------
   Mobile Layout
-------------------------------- */
@media (max-width: 900px) {

  .hn-footer-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 70px 18px 60px;
  }

  .hn-footer-about {
    max-width: 100%;
    text-align: center;
  }

  .hn-footer-col {
    text-align: center;
  }

  .hn-footer-about h4,
  .hn-footer-col h4 {
    font-size: 1.4rem;
  }

  .hn-footer-about p,
  .hn-footer-col p {
    font-size: 1rem;
  }
}

/* ===============================
   Inline App CTA (Top)
================================ */

.hn-app-intro {
  margin: 18px 0 26px;
  padding: 14px 18px;
  background: #f8f8f8;
  border-left: 4px solid #FF5527;
  border-radius: 6px;
  font-size: 0.95rem;
}

.hn-app-intro p {
  margin: 0 0 6px;
  color: #333;
}

.hn-app-intro-link {
  color: #FF5527;
  font-weight: 600;
  text-decoration: none;
}

.hn-app-intro-link:hover {
  text-decoration: underline;
}


/* =====================================================
   Hopnest Blog Archive – FINAL Premium Listing
===================================================== */

/* Container */
.hn-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 18px;
}

/* --------------------------------
   Archive Header
-------------------------------- */
.hn-archive-header {
  text-align: center;
  margin-bottom: 60px;
}

.hn-archive-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.hn-archive-intro {
  font-size: 1.05rem;
  color: #666;
  max-width: 720px;
  margin: 0 auto;
}

/* --------------------------------
   Featured Post
-------------------------------- */
.hn-post-featured {
  margin-bottom: 60px;
}

.hn-post-featured a {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

/* Featured image */
.hn-post-featured .hn-post-image {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.hn-post-featured .hn-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured content */
.hn-post-featured .hn-post-content {
  padding-top: 6px;
}

.hn-post-featured h2 {
  font-size: 1.65rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hn-post-featured p {
  font-size: 1rem;
  line-height: 1.65;
  color: #555;
}

/* --------------------------------
   Grid Posts
-------------------------------- */
.hn-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  row-gap: 55px;
}

.hn-post-card {
  display: flex;
  flex-direction: column;
}

.hn-post-card a {
  text-decoration: none;
  color: inherit;
}

/* Grid image (FIXED – no stretch) */
.hn-post-card .hn-post-image {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.hn-post-card .hn-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid text */
.hn-post-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.hn-post-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* --------------------------------
   Hover (Premium, Subtle)
-------------------------------- */
.hn-post-card a,
.hn-post-featured a {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hn-post-card a:hover,
.hn-post-featured a:hover {
  transform: translateY(-2px);
}

.hn-post-card a:hover img,
.hn-post-featured a:hover img {
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

/* --------------------------------
   Pagination
-------------------------------- */
.hn-pagination {
  margin-top: 70px;
  text-align: center;
}

.hn-archive-header{background-color:#fff2e6; border-radius: 16px; padding: 10px;}

/* --------------------------------
   Mobile
-------------------------------- */
@media (max-width: 768px) {

  .hn-archive {
    padding: 40px 16px;
  }

  .hn-post-featured {
    margin-bottom: 45px;
  }

  .hn-post-featured a {
    grid-template-columns: 1fr;
  }

  .hn-post-grid {
    grid-template-columns: 1fr;
    row-gap: 45px;
  }

  .hn-archive-header h1 {
    font-size: 1.85rem;
  }
    .hn-archive-header p {font-size: 0.85rem;}
  
  .hn-post-featured h2{margin-top:0px;}
}
