/* Layout fixes for the public website (loaded after the theme's style.css). */

/* ---------- Header: logo, menu, #Donate and mobile menu button on one line ---------- */
.header-bottom > .container > .row {
    align-items: center;
}
.header-bottom .logo img {
    max-width: 100%;
    height: auto;
}
.header-bottom .header-button {
    margin: 0 !important;
}
.header-bottom .header-button .btn {
    white-space: nowrap;
}

/* Desktop: keep everything on one line; shrink the menu a little on smaller laptops */
@media only screen and (min-width: 992px) {
    .header-bottom > .container > .row {
        flex-wrap: nowrap;
    }
    .header-bottom > .container > .row > .col:first-child {
        flex: 0 0 auto;
    }
    .header-bottom > .container > .row > .col.d-lg-block {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: flex-end;
    }
    .header-bottom > .container > .row > .col:nth-last-child(2) {
        flex: 0 0 auto;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .header-bottom .logo img {
        max-height: 56px;
        width: auto;
    }
    .main-menu nav > ul > li {
        margin-right: 14px !important;
    }
    .main-menu nav > ul > li > a {
        font-size: 12px;
    }
    .header-bottom .header-button .btn {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Tablet and mobile: logo on the left, #Donate and the menu button on the right, same line */
@media only screen and (max-width: 991px) {
    .header-bottom > .container > .row {
        flex-wrap: wrap;
    }
    .header-bottom > .container > .row > .col:first-child {
        flex: 1 1 0 !important;
        min-width: 0;
        width: auto !important;
        max-width: none !important;
        height: 76px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    .header-bottom .logo {
        width: auto !important;
        margin: 0 !important;
        flex: 0 1 auto !important;
        display: inline-block;
    }
    .header-bottom .logo img {
        max-height: 60px;
        width: auto;
    }
    .header-bottom > .container > .row > .col:nth-last-child(2) {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-right: 0 !important;
        padding-right: 54px; /* room for the menu button */
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .header-bottom > .container > .row > .mobile-menu {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    /* Menu button: centred on the logo line */
    .mobile-menu .mean-bar .meanmenu-reveal {
        top: -47px !important;
    }
}
@media only screen and (max-width: 479px) {
    .header-bottom > .container > .row > .col:first-child {
        height: 66px;
    }
    .header-bottom .logo img {
        max-height: 52px;
    }
    .header-bottom .header-button .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .header-bottom > .container > .row > .col:nth-last-child(2) {
        padding-right: 48px;
    }
    .mobile-menu .mean-bar .meanmenu-reveal {
        top: -42px !important;
    }
}

/* ---------- Home page: photo slider above "View More" ---------- */
.testimonial-section .testimonial-slider {
    padding: 30px 0 0 !important;
}
.testimonial-section .testimonial-slider .testimonial img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 640px);
    margin: 0 auto;
    object-fit: contain;
}
.testimonial-section .testimonial-slider .slick-dots {
    margin-top: 16px !important;
}
.testimonial-section .view-more-wrap {
    margin: 18px 0 30px !important;
}
@media only screen and (max-width: 767px) {
    .testimonial-section .testimonial-slider {
        padding-top: 20px !important;
    }
    .testimonial-section .testimonial-slider .testimonial img {
        max-height: 70vh;
    }
    .testimonial-section .view-more-wrap {
        margin: 14px 0 24px !important;
    }
}

/* ---------- Home page: top slider (hero) ---------- */
/* Text fades up into place instead of sliding in from outside the screen (it looked cut off on the left). */
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes heroTextOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.hero-item .hero-content > div * {
    animation-name: heroTextOut !important;
    animation-duration: .4s !important;
}
.hero-item.slick-active .hero-content > div * {
    animation-name: heroTextIn !important;
    animation-duration: .8s !important;
}
.hero-item.slick-active .hero-content > div.title * { animation-delay: .1s !important; }
.hero-item.slick-active .hero-content > div.title-2 * { animation-delay: .3s !important; }
.hero-item.slick-active .hero-content > div.sub-title * { animation-delay: .5s !important; }
.hero-item.slick-active .hero-content > div.button * { animation-delay: .7s !important; }

/* Less empty space: start the slide just below the header, smaller padding around the text,
   and keep the photo within the screen height. */
.hero-item {
    padding-top: 154px !important;
}
.hero-item .hero-content {
    padding: 100px 15px 120px !important;
}
/* Karsevak slide: keep Sanjay Kelkar's face (centre of the photo) between the header and the
   title. Centred, the (shorter) slide hid the heads under the header; 44% shows the full face
   just above the second title line on desktop. Phones fill by height, so this has no effect there. */
.hero-item.hero-item--faces {
    background-position: center 44% !important;
}
.hero-item .hero-image img {
    max-height: 600px;
    width: auto !important;
    max-width: 100%;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .hero-item .hero-content {
        padding: 80px 15px 100px !important;
    }
    .hero-item .hero-image img {
        max-height: 520px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero-item {
        padding-top: 120px !important;
    }
    .hero-item .hero-content {
        padding: 50px 15px 70px !important;
    }
    .hero-item .hero-image img {
        max-height: 420px;
    }
}
@media only screen and (max-width: 767px) {
    .hero-item {
        padding-top: 136px !important;
    }
    .hero-item .hero-content {
        padding: 30px 15px 10px !important;
    }
    .hero-item .hero-image img {
        max-height: 320px;
        float: none !important;
        display: block;
        margin: 0 auto !important;
    }
}

/* ---------- Home page: gap between the top slider and "MLA Sanjay Mukund Kelkar" ---------- */
.feature-section.pt-110 {
    padding-top: 60px !important;
}
.feature-section .section-title.mb-80 {
    margin-bottom: 40px !important;
}
@media only screen and (max-width: 767px) {
    .feature-section.pt-110 {
        padding-top: 40px !important;
    }
    .feature-section .section-title.mb-80 {
        margin-bottom: 28px !important;
    }
}

/* ---------- Contact Us form: clearly visible fields ----------
   The theme gave the fields a light grey fill with no border, so on a white page
   it was hard to see where to type. */
.contact-form input:not([type=submit]),
.contact-form textarea {
  background-color: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  color: #333333;
  font-size: 14px;
  -webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea {
  height: 140px;
  resize: vertical;
}
.contact-form input:not([type=submit]):hover,
.contact-form textarea:hover {
  border-color: #9e9e9e;
}
.contact-form input:not([type=submit]):focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #196701;
  box-shadow: 0 0 0 3px rgba(25, 103, 1, 0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #808080;
  opacity: 1;
}
.contact-form .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.contact-form .mb-10 {
  margin-bottom: 14px;
}

/* ---------- Videos: click-to-play preview ----------
   Each video shows only YouTube's preview picture until it is clicked, instead of
   loading 12 full YouTube players with the page. */
.yt-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}
.yt-lite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-lite-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.yt-lite:hover .yt-lite-play,
.yt-lite:focus-visible .yt-lite-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-lite:focus-visible {
  outline: 3px solid #196701;
  outline-offset: 2px;
}
.yt-lite-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-bottom: 24px;
  border: 0;
  border-radius: 6px;
}

/* Home banner pictures are served as WebP (much smaller) with the PNG as fallback. */
.hero-item .hero-image picture {
  display: contents;
}

/* Video card: preview/player with the YouTube title under it. */
.video-item {
  margin-bottom: 28px;
}
.video-item .yt-lite,
.video-item .yt-lite-frame {
  margin-bottom: 0;
}
.video-title {
  margin: 10px 2px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #2b2b2b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SEO: one-line summary under the home "MLA Sanjay Mukund Kelkar" heading. */
.seo-intro {
  margin: -4px auto 14px;
  font-size: 15px;
  color: #555555;
}
/* SEO: page heading on Vidhan Sabha (the page had none). */
.seo-page-heading {
  font-size: 26px;
  font-weight: 700;
  color: #b22222;
  text-align: center;
  margin: 0 0 24px;
}

/* Home "Attendance": keep the two figures close together and centred,
   side by side on every screen size, with a thin divider between them.
   The label / number / years are a heading, spans and a paragraph (not h4/h1/h5)
   so the page has one h1 and headings in order; they look as before. */
.contiribution-section.attendance-section {
  padding-top: 80px;
  padding-bottom: 85px;
}
.attendance-row {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.attendance-item {
  padding: 8px 15px;
}
.attendance-item + .attendance-item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.attendance-item .att-label {
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  font-family: "Montserrat", sans-serif;
  line-height: 32px;
  max-width: 540px;
  margin: 0 auto 24px;
  position: relative;
  padding-bottom: 18px;
}
.attendance-item .att-label::before {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -40px;
  height: 2px;
  width: 80px;
  background-color: #ffffff;
  content: "";
}
.attendance-item .att-num {
  display: inline-block;
  color: #ffffff;
  font-size: 100px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.attendance-item .att-pct {
  display: inline-block;
  color: #ffffff;
  font-size: 40px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.attendance-item .att-years {
  color: #ffffff;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  line-height: 32px;
  margin: 8px 0 0;
}
@media only screen and (max-width: 991px) {
  .attendance-item .att-num { font-size: 84px; }
}
@media only screen and (max-width: 767px) {
  .contiribution-section.attendance-section {
    padding-top: 60px;
    padding-bottom: 65px;
  }
  .attendance-item .att-label { font-size: 16px; line-height: 28px; }
  .attendance-item .att-num { font-size: 64px; }
  .attendance-item .att-pct { font-size: 30px; }
}
@media only screen and (max-width: 479px) {
  .contiribution-section.attendance-section {
    padding-top: 45px;
    padding-bottom: 50px;
  }
  .attendance-item { padding: 4px 8px; }
  .attendance-item .att-label {
    font-size: 14px;
    line-height: 24px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .attendance-item .att-label::before { width: 50px; margin-left: -25px; }
  .attendance-item .att-num { font-size: 46px; }
  .attendance-item .att-pct { font-size: 24px; }
  .attendance-item .att-years { font-size: 13px; line-height: 22px; margin-top: 4px; }
}

/* Home top slider: the big words are styled paragraphs now (the page keeps one real h1,
   "MLA Sanjay Mukund Kelkar"). Same look as the theme's hero h1 / h3. */
.hero-item .hero-content .hero-title {
  font-size: 60px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  line-height: 1;
  margin: 0;
  padding-bottom: 13px;
}
.hero-item .hero-content .hero-subtitle {
  font-size: 26px;
  line-height: 28px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  margin-top: 16px;
  margin-bottom: 0;
  padding-bottom: 5px;
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .hero-item .hero-content .hero-title { font-size: 80px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .hero-item .hero-content .hero-title { font-size: 50px; padding-bottom: 8px; }
  .hero-item .hero-content .hero-subtitle { font-size: 20px; margin-top: 10px; }
}
@media only screen and (max-width: 767px) {
  .hero-item .hero-content .hero-title { font-size: 40px; padding-bottom: 8px; }
  .hero-item .hero-content .hero-subtitle { font-size: 18px; margin-top: 10px; }
}

/* Home feature cards (My Thoughts, Ahval, ...): h2 instead of h4, same look. */
.feature .content .feature-title {
  font-size: 22px;
  line-height: 24px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #404040;
  margin-top: 0;
  margin-bottom: 17px;
}

/* Loader logo is wrapped in <picture> (WebP); keep the old layout. */
#loader-overlay picture {
  display: contents;
}

/* Second headings on a page are h2 now (one h1 per page); same look as the theme's section h1. */
.section-title h2.section-heading {
  font-size: 36px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: #404040;
  line-height: 46px;
  margin: 0;
  text-transform: capitalize;
}
.section-title.title-white h2.section-heading { color: #ffffff; }
@media only screen and (max-width: 767px) {
  .section-title h2.section-heading { font-size: 30px; line-height: 36px; }
}
@media only screen and (max-width: 479px) {
  .section-title h2.section-heading { font-size: 22px; line-height: 28px; }
}

/* Footer: links to the main pages and the office address (helps visitors and search engines). */
.footer-copyright .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.footer-copyright .footer-links a,
.footer-copyright .footer-address a { color: inherit; text-decoration: none; font-size: 14px; }
.footer-copyright .footer-links a:hover,
.footer-copyright .footer-address a:hover { text-decoration: underline; }
.footer-copyright .footer-address { font-size: 13px; opacity: .85; margin-bottom: 6px; }
