/* ======================================================
   GLOBAL BACKGROUND
====================================================== */

.home-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.home-icon a {
    display: flex;
    align-items: center;
}


body {
    background: #eef2f6;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.home-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* ======================================================
   MASTER CONTAINER – 1084px
====================================================== */

.site-wrapper {
    max-width: 1084px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

.site-main.content-with-sidebar {
    max-width: 1084px;
    margin: 5px auto;
    display: grid;
    grid-template-columns: 730px 330px;
    column-gap: 5px;   /* uses exact remaining space */
}
/* ======================================================
   HEADER
====================================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    z-index: 9999;
}

.header-inner {
    max-width: 1084px;
    margin: 0 auto;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.logo img {
    height: 42px;
}

/* Navigation */

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.primary-menu li a:hover {
    color: #0073e6;
}

/* Search Dropdown */

.search-box {
    position: absolute;
    top: 55px;
    right: 12px;
    width: 280px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 10px;
    display: none;
}

.search-box.active {
    display: block;
}

/* Sticky */

.site-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

body.sticky-padding {
    padding-top: 55px;
}

/* ======================================================
   MAIN + SIDEBAR LAYOUT (730 + 320)
====================================================== */

.content-with-sidebar {
    max-width: 1084px;
    margin: 5px auto;
    display: grid;
    grid-template-columns: 730px 320px;
    gap: 5px;
    padding: 0 5px;
}

/* Prevent overflow */
.main-content,
.sidebar-area {
    min-width: 0;
}


/* Sidebar styling */
.sidebar-area {
    padding-left: 5px;
    border-left: 1px solid #eee;
}

.sidebar-area {
    width: 330px;
    padding:5px;                /* internal spacing */
    box-sizing: border-box;
    border-left: 1px solid #e5e5e5;
}

.sidebar-area .widget {
    margin-bottom: 20px;
}

.sidebar-area .widget h3,
.sidebar-area .widget h4 {
    margin: 0 0 5px;
    font-size: 16px;
}
.sidebar-area {
    padding: 20px;
}

/* ======================================================
   HOMEPAGE / TELUGU BUILDER
====================================================== */

.rm-home-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rm-category-block {
    border: 1px solid #e5e5e5;
    padding: 10px;
    margin-bottom: 15px;
    background: #fff;
}

.rm-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f7fa;
    border-left: 4px solid #0073e6;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.rm-cat-header h3 {
    margin: 0;
    font-size: 18px;
}

.rm-cat-header a {
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.rm-post-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rm-post-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.rm-post-row a {
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
}

.rm-read-more-bottom {
    text-align: right;
    margin-top: 12px;
}

.rm-read-more-bottom a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0073e6;
}

/* ======================================================
   SINGLE POST
====================================================== */

.single-featured-image {
    margin: 20px auto;
    text-align: center;
}

.single-featured-image img {
    max-width: 100%;
    border-radius: 10px;
}

.share-icons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.author-box {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

/* ===============================
   RELATED POSTS – FINAL FIX
================================ */

.related-posts-wrapper {
  margin-top: 40px;
}

.related-heading {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Desktop grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Each card */
.related-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 15px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Row layout (image + title side by side) */
.related-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

/* Thumbnail */
.related-thumb {
  flex: 0 0 90px;
}

.related-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Title */
.related-text {
  flex: 1;
  min-width: 0;
}

.related-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.related-title a {
  text-decoration: none;
  color: #111;
}

.related-title a:hover {
  color: #0073e6;
}

/* ===============================
   MOBILE – ONE BELOW OTHER
================================ */

@media (max-width: 768px) {

  .related-grid {
    grid-template-columns: 1fr !important;
  }

}

/* Reduce single post title size on mobile */
@media (max-width: 768px) {
    
    .post-title,
    .entry-title,
    .single-post h1 {
        font-size: 18px !important;
        line-height: 1.3;
        margin-bottom: 10px;
        word-break: break-word;
    }

}

/* ======================================================
   PAGINATION
====================================================== */

.pagination-wrapper {
    margin: 40px 0;
    text-align: center;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 991px) {

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .rm-home-wrapper {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }
}

/* ===============================
   HEADER BASE
================================ */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1084px;
    margin: 0 auto;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* LOGO */
.logo img {
    height: 38px;
}

/* DESKTOP NAV */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

/* SEARCH */
.search-toggle,
.burger-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav.active {
    max-height: 500px;
    }

.mobile-menu {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.mobile-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* SEARCH BOX */
.search-box {
    display: none;
    padding: 10px;
    border-top: 1px solid #eee;
}

.search-box.active {
    display: block;
}

.mobile-menu li a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

/* ===============================
   MOBILE BREAKPOINT
================================ */

@media (max-width: 991px) {

    .desktop-nav {
        display: none;
    }

    .burger-toggle {
        display: block;
    }

   .mobile-nav.active {
    max-height: 500px;
    }

}

/* Hide burger on desktop */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Hide mobile nav by default */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}

.mobile-menu {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.mobile-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu li a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

/* ================= MOBILE ================= */

@media (max-width: 991px) {

    .desktop-nav {
        display: none;
    }

    .burger-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: block;
    }

}

.archive-post-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.archive-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.archive-title-wrap {
    flex: 1;
}

.archive-title-wrap h2 {
    margin: 0;
    font-size: 16px;
}

.archive-title-wrap a {
    text-decoration: none;
}


/* Universal layout */
.site-main.content-with-sidebar {
    max-width: 1084px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 730px 350px;
    gap: 10px;
}

/* MOBILE */
@media (max-width: 991px) {

    .site-main.content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        margin-top: 20px;
        border-left: none;
        padding-left: 0;
    }

}


@media (max-width: 991px) {

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .single-featured-image img {
        width: 100%;
    }

}

.entry-content {
    width: 100%;
    overflow: hidden;
}

.entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 10px;
}


@media (max-width: 991px) {

    .content-with-sidebar {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .single-featured-image img,
    .entry-content img {
        width: 100%;
        max-width: 100%;
    }

}

/* =====================================
   Dynamic PREMIUM FOOTER (SAFE UPGRADE)
===================================== */

.site-footer {
    background: #0f1c2e;
    color: #cfd8e3;
    margin-top: 60px;
    font-size: 14px;
}

.footer-ad {
    text-align: center;
    padding: 20px 0;
    background: #fff;
}

.footer-inner {
    max-width: 1084px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
}

.footer-column h3::before {
    content: "";
    width: 3px;
    height: 18px;
    background: #00c896;
    position: absolute;
    left: -10px;
    top: 2px;
}

.footer-column p {
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #cfd8e3;
    text-decoration: none;
    transition: 0.2s;
}

.footer-column a:hover {
    color: #00c896;
}

/* SOCIAL */

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a2b44;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icons a:hover {
    background: #00c896;
}

/* COPYRIGHT */

.footer-bottom {
    text-align: center;
    padding: 18px;
    background: #0b1626;
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 991px) {

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

}


.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #cfd8e3;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #00c896;
}

/* top Header Content */
/* ================= COMMON SLIDER ================= */

.tn-banner-cards,
.tn-banner-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
}

.tn-banner-cards::-webkit-scrollbar,
.tn-banner-gallery::-webkit-scrollbar {
    display: none;
}

.tn-banner-cards,
.tn-banner-gallery {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ================= CATEGORY CARDS ================= */

.tn-card-item {
    flex: 0 0 260px;
    display: flex;
}

.tn-card-link {
    display: flex;
    align-items: center; /* vertical center */
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    min-height: 80px; /* UNIFORM HEIGHT */
}

.tn-card-thumb {
    width: 70px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.tn-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.tn-card-text {
    display: flex;
    align-items: center;
    height: 100%;
}

.tn-card-text h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}

/* ================= GALLERY ================= */

.tn-gallery-item {
    flex: 0 0 auto;
}

.tn-gallery-link {
    display: inline-block;
}

.tn-gallery-ring {
    width: 80px;
    height: 80px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6a00, #ff9f1c);
    display: flex;
    align-items: center;
    justify-content: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tn-gallery-item:hover .tn-gallery-ring {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        
}    

.tn-gallery-item:hover .tn-tooltip {
    backdrop-filter: blur(3px);
}

.tn-gallery-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.tn-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
    display: block;
}

.tn-banner-gallery {
    scroll-snap-type: x mandatory;
}

.tn-gallery-item {
    scroll-snap-align: center;
}

/* ===== CENTER OVERLAY TOOLTIP ===== */

.tn-banner-gallery {
    position: relative;
}

/* Hide default tooltip */
.tn-tooltip {
    display: none;
}

/* When hovering a gallery item, show its tooltip
   centered in the gallery strip */

.tn-gallery-item:hover .tn-tooltip {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    z-index: 1000;
}


/* HEADER BACKGROUND */
header {
    background: #c1121f;
}

/* MENU TEXT COLOR */
header nav a {
    color: #ffffff;
}

/* MENU HOVER */
header nav a:hover {
    color: #ffe5e5;
}