/* Bhilwara Kesari — polish: responsive, smooth, speed-friendly */
:root {
  --bk-red: #be0024;
  --bk-red-dark: #9a001c;
  --bk-ink: #1a1a1a;
  --bk-muted: #555;
  --bk-paper: #faf9f7;
  --bk-line: #e6e2dc;
  --bk-tap: 44px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  overflow-x: hidden;
  color: var(--bk-ink);
  background: var(--bk-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

.page-wrapper {
  overflow-x: hidden;
}

/* Logo / header */
header .logo img {
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

header .logo a {
  display: inline-block;
  transition: opacity 0.2s ease;
}
header .logo a:hover { opacity: 0.9; }

/* Nav link transitions */
.sf-menu a,
.slicknav_nav a,
.footer-menu a,
.thumbnail .caption h3 a,
.thumbnail1 .caption h3 a,
.thumbnail2 .caption h3 a,
.thumbnail3 .caption h3 a {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* Touch-friendly targets */
.sf-menu > li > a,
.slicknav_btn,
.slicknav_nav a,
.top-social a,
.scrollup {
  min-height: var(--bk-tap);
  min-width: var(--bk-tap);
}

.slicknav_btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  background: var(--bk-red) !important;
  border-radius: 4px;
}

.slicknav_menu {
  background: transparent !important;
}

.slicknav_nav {
  background: #fff !important;
  border: 1px solid var(--bk-line);
  border-radius: 6px;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.slicknav_nav a {
  padding: 12px 16px !important;
  color: var(--bk-ink) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.slicknav_nav a:hover,
.slicknav_nav .slicknav_open > a {
  background: #f7f0f1 !important;
  color: var(--bk-red) !important;
}

/* Top bar readability on small screens */
.top-bar .list,
.top-bar a {
  font-size: 13px;
}
.top-social ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

/* News cards / photos */
.news .photo img,
.news-single-page .photo img {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.news .thumbnail .caption h3,
.news .thumbnail1 .caption h3,
.news .thumbnail2 .caption h3 {
  line-height: 1.35;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.news .heading h2 {
  letter-spacing: 0.02em;
}

/* Sticky header: lighter shadow, less jank */
header.sticky {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  will-change: transform;
}

/* Scroll-up button */
.scrollup i {
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.scrollup:hover i {
  transform: translateY(-2px);
}

/* Forms / buttons */
input[type="submit"],
button,
.btn {
  transition: background-color 0.2s ease, transform 0.15s ease;
  min-height: 40px;
}

/* Typography newspaper feel */
.news-single-page .caption p,
.news-single-page .caption {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Prevent horizontal overflow from long words / embeds */
.caption, .news-content, .footer-col {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile layout polish */
@media (max-width: 991px) {
  header {
    margin-bottom: 16px;
  }
  header .logo {
    float: none;
    text-align: center;
    padding: 8px 48px 4px 12px; /* room for hamburger */
    position: relative;
  }
  header .logo img {
    max-height: 56px;
    margin: 10px 0;
  }
  .nav-wrapper {
    float: none;
    width: 100%;
  }
  .slicknav_menu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100001;
    width: auto;
  }
  header {
    position: relative;
  }
  .top-bar .top-contact .list {
    display: inline-block;
    margin: 2px 8px;
  }
  .slide-carousel .item .text h2,
  .slide-carousel .item .text h3 {
    font-size: clamp(1rem, 4vw, 1.6rem) !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  header .logo img {
    max-height: 48px;
    max-width: 220px;
  }
  .news .heading h2 {
    font-size: 1.15rem;
  }
  .footer-col {
    margin-bottom: 8px;
  }
}

/* Content images in articles */
.thumbnail .caption img,
.news-single-page img {
  max-width: 100%;
  height: auto;
}
