/*
Theme Name: Rajgir
Theme URI: https://rajgir.co.in
Author: Rajgir.co.in
Version: 1.0
Description: Tourism & Local Info Theme for Rajgir – Malmas Mela, Hotels, Places, Events.
*/

/* ---------- RESET & BASE ---------- */
*{margin:0;padding:0;box-sizing:border-box}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1e293b;
  background: #fff;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: #0f172a;
  color: #fff !important;
  padding: 12px 20px;
  z-index: 10001;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

h1 { font-size: 26px; font-weight: 600; color: #0f172a; }
h2 { font-size: 20px; font-weight: 600; margin-top:20px; color: #0f172a; }
h3 { font-size: 18px; font-weight: 500; color: #0f172a; }
a { color: #0850b5; text-decoration: none; }

.container { max-width:1200px; margin:0 auto; padding:0 15px; }

/* ---- Buttons ---- */
.apply-btn {
  background: #166b3b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}
.highlight-box {
  background: #FF8C00;
  padding: 15px;
  border-left: 4px solid #0850b5;
  margin: 15px 0;
}

/* Header */
.main-header{position:relative;z-index:999;background:#fff;box-shadow:0 2px 2px rgba(0,0,0,0.05);border-bottom:1px solid #e2e8f0}
.container.header-one-col{padding:2px 1px}
.header-row-1{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;background:#fef9c3;}
.header-col-logo{width:78%}
.header-col-search{width:7%;position:relative;text-align:right}
.header-col-menu-icon{width:15%;text-align:right}
.search-icon-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:6px 10px}
.search-form-container{position:absolute;top:45px;right:0;width:280px;background:#fff;border:1px solid #cbd5e1;border-radius:30px;padding:6px;z-index:1000;box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.search-form-container form{display:flex}
.search-form-container input{flex:1;padding:6px 10px;border:1px solid #cbd5e1;border-radius:30px 0 0 30px}
.search-form-container button{background:#3b82f6;border:none;padding:0 12px;border-radius:0 30px 30px 0;color:#fff;cursor:pointer}
.header-col-logo .site-title{margin:0;font-size:1.4rem}
.header-col-logo a{text-decoration:none;color:#0f172a}
.custom-logo{max-width:360px;height:auto}
.hamburger{background:none;border:1px solid #cbd5e1;font-size:1.5rem;padding:4px 10px;border-radius:8px;cursor:pointer}
.header-row-2{margin-top:2px;padding-top:2px;border-top:1px solid #e2e8f0}
.secondary-menu-horizontal{list-style:none;display:flex;flex-wrap:wrap;gap:0}
.secondary-menu-horizontal a{display:inline-block;padding:2px 4px;font-size:0.85rem;font-weight:500;color:#0f172a;border:1px solid #cbd5e1;text-decoration:none}
.secondary-menu-horizontal li:nth-child(odd) a{background:#f1f5f9}
.primary-menu-hidden{display:none;background:#fff;border-top:1px solid #e2e8f0;padding:6px 0}
.primary-menu-hidden.show{display:block}
.primary-menu-links{list-style:none;display:flex;flex-wrap:wrap;gap:9px}
.primary-menu-links a{text-decoration:none;color:#1e293b;font-weight:500}

/* ---------- Top Malmas Mela Bar ---------- */
.mela-top-bar {
  background: #ff4500;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
}
.mela-top-bar a.mela-btn {
  background: #fff;
  color: #ff4500;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.mela-top-bar a.mela-btn:hover { background: #ffe0b2; }
.mela-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 5px;
}

/* News ticker */
.news-ticker{background:#fef9c3;padding:6px 0;overflow:hidden}
.ticker-wrap{white-space:nowrap}
.ticker{display:inline-block;animation:ticker 80s linear infinite}
.ticker a{margin-right:35px;color:#854d0e;font-size:0.85rem}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* Category buttons */
.category-buttons-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:15px 0}
.cat-btn-box{background:#f1f5f9;text-align:center;padding:10px 8px;border-radius:10px;font-weight:500;font-size:0.75rem;color:#1f2937;border:1px solid #e2e8f0;transition:background 0.2s, color 0.2s;min-height:44px;display:flex;align-items:center;justify-content:center}
.cat-btn-box:hover{background:#1d4ed8;color:#fff}

/* Homepage hero & highlights */
/* ---------- Hero Section – Image fully visible + text readable ---------- */
.hero-section {
    position: relative;
    background-color: #0b8457;   /* fallback */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #fff;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    min-height: 300px;            /* mobile friendly */
}

/* Pseudo-element to blur and darken the background */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px) brightness(0.5);
    z-index: 0;
}

/* Main image – fully visible (contain), placed above background */
.hero-main-image {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 60vh;            /* limit height so buttons stay visible */
    margin: 0 auto;
    object-fit: contain;
}

/* Overlay for text – sits on top of everything */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);  /* light dark layer for readability */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    box-sizing: border-box;
}

/* Text styles */
.hero-section h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.hero-btn {
    background: #fff;
    color: #0b8457;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.hero-btn.mela {
    background: #ffd700;
    color: #333;
}

.hero-btn:hover {
    transform: scale(1.03);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section p { font-size: 1rem; }
    .hero-main-image {
        max-height: 40vh;   /* smaller screen – image takes less height */
    }
}

@media (max-width: 480px) {
    .hero-main-image {
        max-height: 35vh;
    }
}



/* Homepage category boxes (same grid) */
.home-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}
.category-box{background:#fff;border-radius:16px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,0.05);border:1px solid #eef2ff;transition:transform 0.2s, box-shadow 0.2s}
.category-box:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.box-title{font-size:1.2rem;font-weight:600;margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid #1d4ed8;display:inline-block}
.post-list{list-style:none}
.post-list-item{margin-bottom:14px}
.post-title{font-weight:600;color:#0f172a;display:block;margin-bottom:4px;font-size:0.9rem}
.post-excerpt{font-size:0.7rem;color:#475569}
.view-more{display:inline-block;margin-top:10px;font-size:0.8rem;font-weight:600;color:#0850b5;padding:6px 12px;border-radius:6px;min-height:44px}
.view-more:hover{text-decoration:underline;background:#e8f0fe}

/* About sections */
.about-sarkari{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.about-item{background:#fff;padding:12px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,0.05)}
.about-item h3{font-size:0.95rem;margin-bottom:6px;color:#0f172a;font-weight:600}
.about-item p{font-size:0.8rem;color:#334155}

/* Single post */
.single-post-container{background:#fff;border-radius:20px;padding:20px;margin:20px auto}
.single-article h1{font-size:1.8rem;margin-bottom:12px}
.single-article h2,.single-article h3,.single-article h4{margin:1.2em 0 0.4em;font-weight:600}
.post-meta-top{font-size:0.7rem;color:#334155;margin-bottom:15px;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.post-intro{background:#f8fafc;padding:12px;border-left:4px solid #1d4ed8;margin:15px 0}
.toc{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:15px 20px;margin:20px 0}
.toc ul{margin:10px 0 0 20px}
.toc li{margin-bottom:5px}

/* Share & motivate line */
.share-motivate-line{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:15px;padding:12px 0;margin:15px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.share-buttons{display:flex;gap:8px}
.share-buttons a{background:#e8f0fe;color:#0850b5;padding:8px 16px;border-radius:30px;font-size:0.8rem;font-weight:600;text-decoration:none;transition:background 0.2s, color 0.2s;min-height:44px;display:inline-flex;align-items:center}
.share-buttons a:hover{background:#1d4ed8;color:#fff}
.motivate-text{font-weight:600;color:#c2410c;font-size:15px}

/* Related / tag / latest posts boxes */
.related-posts-box,.tag-posts-box,.latest-posts-box{background:#f8fafc;border-radius:16px;padding:16px;margin:20px 0}
.related-posts-box h3,.tag-posts-box h3,.latest-posts-box h3{font-size:1.2rem;margin-bottom:12px;border-left:3px solid #1d4ed8;padding-left:12px}
.related-item,.tag-item,.latest-item{margin-bottom:15px;border-bottom:1px solid #e2e8f0;padding-bottom:10px}
.related-item a,.tag-item a,.latest-item a{font-weight:500;color:#1e293b}
.related-excerpt,.tag-excerpt,.latest-excerpt{font-size:0.7rem;color:#475569;margin-top:4px}
.latest-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Author box */
.author-box{background:#f1f2f6;padding:15px;border-radius:8px;margin:20px 0;display:flex;align-items:center;gap:15px}
.author-box img{border-radius:50%}

/* Category/Tag Pages Grid */
.sarkari-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}
.sarkari-box{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}
.sarkari-box h3{font-size:1rem;margin-bottom:8px}
.sarkari-box h3 a{color:#0f172a}
.sarkari-excerpt{font-size:0.75rem;color:#475569;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pagination{margin:30px 0;text-align:center}
.pagination .page-numbers{padding:8px 14px;border:1px solid #cbd5e1;border-radius:6px;margin:0 3px;color:#0f172a;min-height:44px;display:inline-flex;align-items:center}
.pagination .page-numbers.current{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.latest-posts-section{margin:30px 0}
.latest-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}

/* ---------- Floating Social Buttons (Compact, with icons) ---------- */
.floating-social {
  position: fixed;
  left: 10px;
  bottom: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* All floating buttons – small, round, centered */
.floating-social a {
  font-size: 1rem;                 /* icon size */
  font-weight: normal;
  width: 40px;                    /* fixed small size */
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1e293b;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  line-height: 40px;             /* vertically center single characters */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Individual brand colours on hover */
.floating-social a:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Facebook */
.floating-social a[aria-label="Facebook"]:hover { background: #1877f2; }
/* X (Twitter) */
.floating-social a[aria-label="Twitter"]:hover { background: #000; }
/* Instagram */
.floating-social a[aria-label="Instagram"]:hover { background: #e1306c; }
/* Telegram */
.floating-social a[aria-label="Telegram"]:hover { background: #0088cc; }
/* YouTube */
.floating-social a[aria-label="YouTube"]:hover { background: #ff0000; }
/* Malmas Mela special button */
.floating-booking {
  background: #ff4500 !important;
  color: #fff !important;
}
.floating-booking:hover {
  background: #e03e00 !important;
}
/* Hotel booking */
.floating-hotel {
  background: #0077b6 !important;
  color: #fff !important;
}
.floating-hotel:hover {
  background: #005f8c !important;
}

/* Mobile fine‑tune */
@media (max-width: 768px) {
  .floating-social {
    left: 5px;
    bottom: 5px;
    padding: 4px;
    gap: 6px;
  }
  .floating-social a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 0.9rem;
  }
}

/* Sponsor Box */
.sponsor-box {
  background: #f8f9fa;
  border: 2px dashed #2c3e50;
  text-align: center;
  padding: 20px;
  margin: 30px 0;
  border-radius: 12px;
  font-size: 1rem;
}
.sponsor-box a {
  background: #2c3e50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

/* Progress bar */
.progress-bar{position:fixed;top:0;left:0;height:3px;background:#1d4ed8;z-index:10000;width:0%}

/* Footer */
.footer{background:#0f172a;color:#cbd5e1;padding:40px 0 20px;margin-top:50px;text-align:center}
.footer-intro{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #1e293b}
.footer-intro p{max-width:600px;margin:0 auto;font-size:0.85rem;color:#cbd5e1;line-height:1.5}
.footer-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;text-align:center}
.footer-col{display:flex;flex-direction:column;align-items:center}
.footer-col h4{color:#e2e8f0;margin-bottom:12px;font-size:1rem;font-weight:600}
.footer-menu,.footer-categories{list-style:none;padding:0;margin:0}
.footer-menu li,.footer-categories li{margin-bottom:8px;list-style:none}
.footer-menu a,.footer-categories a{color:#93c5fd;font-size:0.85rem;text-decoration:none;padding:4px 8px;transition:color 0.2s;min-height:32px;display:inline-block}
.footer-menu a:hover,.footer-categories a:hover{color:#fff;text-decoration:underline}
.footer-social{display:flex;flex-direction:column;gap:10px;align-items:center}
.footer-social a{font-size:0.85rem;color:#93c5fd;text-decoration:none;padding:6px 12px;border-radius:6px;transition:color 0.2s, background 0.2s;min-height:44px;display:inline-flex;align-items:center}
.footer-social a:hover{color:#fff;background:#1d4ed8}
.copyright{text-align:center;margin-top:30px;padding-top:15px;border-top:1px solid #1e293b;font-size:0.75rem;color:#94a3b8}

/* Comments */
.comment-section{margin-top:30px;padding-top:20px;border-top:2px solid #e2e8f0}
.comment-list{list-style:none;margin:0 0 20px;padding:0}
.comment{background:#f8fafc;border-radius:12px;padding:15px;margin-bottom:15px}
.comment-author{font-weight:600;margin-bottom:5px}
.comment-meta{font-size:0.7rem;color:#64748b;margin-bottom:8px}
.comment-content p{font-size:0.85rem;line-height:1.5}
.comment-reply-link{font-size:0.7rem;color:#1d4ed8;text-decoration:none}
.comment-respond{background:#f1f5f9;padding:20px;border-radius:16px;margin-top:20px}
.comment-form input,.comment-form textarea{width:100%;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;margin-bottom:10px;font-size:1rem}
.comment-form .submit{background:#1d4ed8;color:white;border:none;padding:10px 24px;border-radius:30px;cursor:pointer;font-size:1rem;min-height:44px}

/* Focus */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px;border-radius:3px}

/* Responsive */
@media (max-width:768px){
  .hamburger,.search-icon-btn{padding:8px;font-size:0.9rem;min-width:44px;min-height:44px}
  .site-title{font-size:0.9rem}
  .custom-logo{max-width:320px}
  .search-form-container{width:220px;right:0}
  .secondary-menu-horizontal a{font-size:0.9rem;padding:4px 4px;min-height:2px}
  .primary-menu-links a{font-size:0.80rem;padding:1px 1px;min-height:1px}
  .cat-btn-box {font-size:0.7rem;padding:2px 2px;min-height:2px}
  .home-category-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .sarkari-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .category-buttons-grid{grid-template-columns:repeat(5,1fr);gap:5px}
  .about-sarkari{grid-template-columns:repeat(2,1fr);gap:8px}
  .footer-columns{grid-template-columns:1fr;gap:20px}
  .footer-col{align-items:center}
  .floating-social{left:5px;bottom:3px;padding:2px;gap:2px}
  .floating-social a{font-size:0.7rem;padding:2px;min-width:20px;min-height:30px}
}
@media (max-width:480px){
  .about-sarkari{grid-template-columns:1fr}
  .category-buttons-grid{grid-template-columns:repeat(5,1fr);gap:4px}
}