MediaWiki:Common.css

From Sanatan Hindu Dharma
Revision as of 07:00, 15 October 2025 by Balaji (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

.flex-fill.container,.flex-fill.container{ max-width:100% !important}
.p-navbar .navbar-brand.p-logo {
    height: 3rem;
}

.p-navbar .navbar-brand img {
    height: 3.5rem;
}


.p-logo {
    height: 6rem;
}

.p-logo img  {
padding-left:30px;
    height: 5.5rem;
    margin-top:.2rem;
}

.bodyContent{ border:1px solid rgba(0,0,0,0.1); padding:16px; border-radius:.25rem;}
.firstHeading,h2,h3,h4{font-weight: 700;}

.mw-parser-output a.extiw:visited, .mw-parser-output a.external:visited, a, a[href].new  {
    color: #1b599b;
    text-decoration: none;
    background-color: transparent
}



a:hover, a[href].new:hover {
    color: #10345a;
    text-decoration: underline
}


a:visited, a[href].new:visited {
    color: #1b599b;
}

.footercontainer{max-width:100%;}

.mw-body.content{max-width:1140px; margin:0 auto;}


.tableVideo{text-align : center; margin: 0 auto;}
.embedvideo-wrapper{ border:1px solid #ccc;}
.embedvideo-loader__footer{display : none !important}

.panchangimg img{max-width:800px; width:100%; height:auto; margin:10px auto; display:table;}

.panchangimg a[href].external{ position: fixed; bottom: 20px; right: 20px; background-color:#1B599B; color: #ffffff; padding: 10px 20px; border-radius: 5px; box-shadow: 0px 0px 4px #d1d1d1; font-weight: 600;z-index: 9;}

.p-navbar.collapsible .navbar-nav .dropdown-menu{height:auto; max-height:95vh; overflow: auto;}

/* Hide the entire page tools section (content navigation) for users not logged in */
body:not(.mw-editable) #p-contentnavigation {
    display: none !important;
}

span.mw-editsection {
    display: none !important;
}

@media (min-width: 1105px) {
.navbar-expand-cmln, .p-navbar.collapsible {flex-flow: row wrap;}
.navbar-expand-cmln .navbar-nav, .p-navbar.collapsible .navbar-nav {flex-wrap: wrap; justify-content: center;}
}



@media (max-width: 575.98px) {
.flex-fill.container .row:first-child {justify-content: center;}
.tableVideo {
    max-width: 300px;
    width: 100% !important;
    height: 169px !important
}

.embedvideo-wrapper, .embedvideo {
    max-width: 300px;
    width: 100% !important;
    height: 169px !important
}
.panchangimg a[href].external{ bottom: 20px; right: 20px; padding: 10px 15px; border-radius: 4px;;}
.panchangimg img{width:100%; height:auto;}
}
.page-title, .firstHeading, #firstHeading {
  display: none !important;
}
.mw-headline,

.page-title,
.firstHeading,
h1, h2, h3 {
  border: none !important;
  box-shadow: none !important;
}
/* Remove default footer */
.footercontainer {
  display: none !important;
}

.thumb,
.thumbinner,
.image,
img.thumbimage {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}



/*  Clean up MediaWiki layout spacing */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.mw-body,
.mw-body-content,
.mw-parser-output,
#content,
#bodyContent,
#mw-content-text {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
}




/* Full width Slider */

/* Full-bleed slider (stretches to viewport edges while remaining inside the page flow) */
.mw-fullslider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  overflow: visible;
  --fs-height: 420px; /* desktop height; adjust as needed */
}

/* Viewport and track */
.mw-fullslider-viewport {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.mw-fullslider-track {
  display: flex;
  gap: 0;
  transition: transform 500ms cubic-bezier(.22,.9,.2,1);
  will-change: transform;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* Single slide: full viewport width */
.mw-fullslide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: var(--fs-height);
  box-sizing: border-box;
  position: relative;
}

/* Image wrapper enforces consistent size */
.mw-fullslide .fs-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  z-index: 0;
}
.mw-fullslide .fs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Text overlay area */
.mw-fullslide .fs-text {
  position: relative;
  z-index: 2;
  padding: 36px;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,.6);
  box-sizing: border-box;
}
.mw-fullslide h2 { margin: 0 0 8px; font-size: 2rem; }
.mw-fullslide p { margin: 0; font-size: 1rem; opacity: .95; }

/* Buttons */
.mw-fullslider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mw-fullslider-btn.prev { left: 12px; }
.mw-fullslider-btn.next { right: 12px; }
.mw-fullslider-btn:disabled { opacity: .35; cursor: default; }

/* Pagination dots */
.mw-fullslider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 12;
}
.mw-fullslider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.mw-fullslider-dots .dot[aria-pressed="true"],
.mw-fullslider-dots .dot.active {
  background: #fff;
  width: 12px;
  height: 12px;
}

/* Small-screen / responsive tweaks */
@media (max-width: 900px) {
  .mw-fullslider { --fs-height: 320px; }
  .mw-fullslide h2 { font-size: 1.5rem; }
  .mw-fullslide .fs-text { padding: 20px; }
  .mw-fullslider-btn { width: 44px; height: 44px; font-size: 24px; }
}
@media (max-width: 480px) {
  .mw-fullslider { --fs-height: 220px; }
  .mw-fullslide h2 { font-size: 1.15rem; }
  .mw-fullslide p { font-size: .95rem; }
  .mw-fullslider-btn { width: 40px; height: 40px; }
  .mw-fullslider-dots { bottom: 10px; }
}

/* Accessibility focus styles */
.mw-fullslider-btn:focus,
.mw-fullslider-dots .dot:focus { outline: 3px solid rgba(255,255,255,0.16); outline-offset: 2px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mw-fullslider-track { transition: none !important; }
}




.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  width: 100%;            
  margin: 0 auto;
  padding: 100px 20px;

  background-image: url('https://palegoldenrod-hawk-418440.hostingersite.com/wp-content/uploads/2025/10/19376570_w66m_ob1h_190906-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  text-align: center;
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* Dark overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: #FFE687;
}

/* ----------------------------- */
/* 4️⃣ Responsive adjustments */
/* ----------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    background-attachment: scroll;
    padding: 80px 15px;
  }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 70px 15px;
  }
    .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 10px;
  }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.95rem; }
}




/*  Clean up MediaWiki layout spacing */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.mw-body,
.mw-body-content,
.mw-parser-output,
#content,
#bodyContent,
#mw-content-text {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
}

/* Two-column layout container */
.custom-two-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Left column - holds image */
.custom-two-column .left-column {
  flex: 1 1 45%;
  text-align: center;
}

.custom-two-column .left-column img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 12px;

  display: block;
  margin: 0 auto;
}

/* Right column - list of articles */
.custom-two-column .right-column {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
align-items:center;
  padding: 10px;
  box-sizing: border-box;
}

.custom-two-column .right-column h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  border-bottom: 2px solid #FFD44C;
  display: inline-block;
  padding-bottom: 5px;
}

.custom-two-column .right-column ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

.custom-two-column .right-column li {
  margin: 10px 0;
}

.custom-two-column .right-column a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0056b3;
  transition: color 0.2s ease;
}

.custom-two-column .right-column a:hover {
  color: #FFD44C;
}

/* Responsive Design */
@media (max-width: 992px) {
  .custom-two-column {
    flex-direction: column;
    text-align: center;
  }

  .custom-two-column .right-column h2 {
    text-align: center;
  }

  .custom-two-column .right-column ul {
    display: inline-block;
    text-align: left;
  }
}

.engage-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  text-align: center;
}

.engage-section h1 {
  color: maroon;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.engage-section h2 {
  color: #333;
  font-size: 1.4rem;
  font-weight: normal;
  margin: 0;
}

/*  Mobile responsiveness */
@media (max-width: 600px) {
  .engage-section {
    padding: 30px 15px;
  }

  .engage-section h1 {
    font-size: 1.8rem;
  }

  .engage-section h2 {
    font-size: 1.1rem;
  }
}




/* Core categories section */

.three-cards-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 40px auto;
  padding: 0px 30px;
 
  box-sizing: border-box;
  /* remove outer gaps — if you want inner page padding, wrap this in .container */
}

/* row */
.three-cards-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 0; /* no gap between children */
}

/* each card: exactly one-third width on desktop (no gap) */
.three-cards-row .card {
  box-sizing: border-box;
  flex: 0 0 calc(33.3333%); /* three equal columns */
  padding: 0;               /* no padding between cards */
  margin: 0;
  border: none;
  background: #fffcef;
  /* subtle divider between cards (optional). If you truly want no visual gap set border:none;*/
  /* border-left: 1px solid rgba(0,0,0,0.03); */
  display: flex;
  flex-direction: column;
  align-items: stretch;
justify-content:center;
}

/* remove default link/image frames added by wiki/skin when using [[File:...]] */
.three-cards-row .card img,
.three-cards-row .card .thumbimage,
.three-cards-row .card .thumbinner {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto;
  display: block;
}

/* image area */
.card .card-image {
  width: 100%;
  height: 220px; 
  align-items:center;
justify-content: center;               /* image box height */
  overflow: hidden;
  flex: 0 0 auto;
}

.card .card-image img {
  width: 150px;
  object-fit: cover; 
 vertical-align: middle;           /* keeps image aspect and fills area */
  display: block;
}

/* content area */
.card .card-body {
  padding: 28px 24px;
  text-align: center;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* title / paragraph */
.card h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  color: #222;
  font-weight: 700;
}

.card p {
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* button */
.card .card-btn {
  display: inline-block;
  text-decoration: none;
  background: #0b66d1;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background .15s ease, transform .12s ease;
  align-self: center;
}
.card .card-btn:hover { background: #085bb0; transform: translateY(-2px); }

/* ===== Responsive adjustments ===== */
@media (max-width: 1024px) {
  .three-cards-row .card {
    flex: 0 0 calc(50%); /* two columns */
  }
  .card .card-image { height: 200px; }
}

@media (max-width: 640px) {
  .three-cards-wrap { margin: 20px auto; }
  .three-cards-row .card {
    flex: 0 0 100%; /* one column */
  }
  .card .card-image { height: 180px; }
  .card .card-body { padding: 20px; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.95rem; }
}

/* sanatan Knowledge */




/* Custom  Page Footer * /
 /* Footer base */
.mw-footer {
  background: #0f1720;
  color: #e6eef8;
  padding: 36px 18px 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  box-sizing: border-box;
  width: 100%;
}
.mw-footer a { color: #dbeafe; text-decoration: none; }
.mw-footer a:hover, .mw-footer a:focus { text-decoration: underline; }

/* Inner grid */
.mw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  box-sizing: border-box;
}

/* Columns */
.mw-footer-col { min-width: 0; }
.mw-footer-title { font-weight: 700; margin: 0 0 8px; display: block; color: #fff; }

/* Lists and text */
.mw-footer-list { list-style: none; margin: 0; padding: 0; }
.mw-footer-list li { margin: 8px 0; }
.mw-footer-text { margin: 8px 0 0; color: #d1dff6; }

/* Newsletter & social */
.mw-newsletter { display: flex; gap: 8px; margin: 8px 0 0; }
.mw-newsletter input[type="email"] {
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  min-width: 0;
  flex: 1;
}
.mw-newsletter button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
.mw-social { display: flex; gap: 10px; margin-top: 10px; }
.mw-social-link { color: #fff; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 6px; }

/* Bottom row */
.mw-footer-bottom {
  max-width: 1200px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.mw-footer-bottom a { color: #cfe3ff; }

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive: 2 columns on medium, 1 column on small */
@media (max-width: 900px) {
  .mw-footer-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .mw-footer { padding: 28px 14px 14px; }
}

/* Mobile: accordion behavior (toggleable sections) */
@media (max-width: 600px) {
  .mw-footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .mw-footer-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
  }
  .mw-footer-toggle::after {
    content: "▾";
    margin-left: 12px;
    opacity: 0.85;
    transition: transform .18s ease;
    transform-origin: center;
  }
  .mw-footer-toggle[aria-expanded="false"]::after { transform: rotate(-90deg); }

  .mw-footer-list,
  .mw-footer-text,
  .mw-footer-connect { display: none; margin: 0 0 12px; }
  .mw-footer-toggle[aria-expanded="true"] + .mw-footer-list,
  .mw-footer-toggle[aria-expanded="true"] + .mw-footer-text,
  .mw-footer-toggle[aria-expanded="true"] + .mw-footer-list + .mw-footer-toggle,
  .mw-footer-toggle[aria-expanded="true"] + .mw-footer-text + .mw-footer-toggle,
  .mw-footer-toggle[aria-expanded="true"] ~ .mw-footer-list,
  .mw-footer-toggle[aria-expanded="true"] ~ .mw-footer-text,
  .mw-footer-toggle[aria-expanded="true"] ~ .mw-footer-connect { display: block; }

  .mw-newsletter { flex-direction: column; }
  .mw-newsletter input, .mw-newsletter button { width: 100%; }
  .mw-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mw-footer-toggle::after { transition: none; }
}

/* Slider One */
.slider {
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
  }
  .slider-track {
    display: flex;
    padding-left: 100px;
    padding-right: 100px;
    transition: transform 0.4s ease-in-out;
  }
  .slide {
    flex: 0 0 33.333%; /* show 3 slides at a time on desktop */
    padding: 15px;
  }
  .slide-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  .slide h3 {
    margin: 15px;
    font-size: 1.2rem;
    color: #333;
  }
  .slide p {
    margin: 0 15px 15px;
    color: #666;
    flex-grow: 1;
  }

  /* Navigation Buttons */
  .nav-btn {
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
    user-select: none;
  }
  .nav-btn:focus {
    outline: none;
    background-color: #ffd476;
  }
  .nav-prev {
    left: 40px;
  }
  .nav-next {
    right: 40px;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .slide {
      flex: 0 0 50%; /* show 2 slides at a time */
    }
    .slide img {
      height: 140px;
    }
  }
  @media (max-width: 480px) {
    .slide {
      flex: 0 0 100%; /* show 1 slide at a time */
    }
    .slide img {
      height: 200px;
    }
  }

/* Slider base */
.mw-slider {
  position: relative;
  --gap: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Buttons */
.mw-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 22px;
  line-height: 1;
  display: flex;
align-items:center;
justify-content:center;

  cursor: pointer;
}
.mw-slider-btn.prev { left: 8px; }
.mw-slider-btn.next { right: 8px; }
.mw-slider-btn:disabled { opacity: 0.35; cursor: default; }

/* Viewport and track */
.mw-slider-viewport {
  overflow: hidden;
  padding: 8px 56px; /* space for buttons */
}
.mw-slider-track {
  display: flex;
  gap: var(--gap);
  transition: transform 350ms cubic-bezier(.22,.9,.2,1);
  will-change: transform;
  align-items: stretch;
  padding-bottom: 8px;
}

/* Item */
.mw-slider-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - (2 * var(--gap))) / 3); /* default: 3 items */
  box-sizing: border-box;
}

/* Image */
.mw-slider-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Text */
.mw-slider-item h3 {
  margin: 12px 12px 6px;
  font-size: 1.05rem;
}
.mw-slider-item p {
  margin: 0 12px 12px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.3;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .mw-slider-item { flex: 0 0 calc((100% - var(--gap)) / 2); } /* 2 items */
  .mw-slider-viewport { padding: 8px 46px; }
}

@media (max-width: 600px) {
  .mw-slider-item { flex-basis: 100%; }
  .mw-slider-viewport { padding: 8px 56px; } /* leave room for arrows on both sides */
  .mw-slider-btn {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    font-size: 24px;
    align-items: center;
    justify-content: center;
    z-index: 30;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mw-slider-btn.prev { left: 8px; }
  .mw-slider-btn.next { right: 8px; }

  /* Slightly larger hit area for accessibility */
  .mw-slider-btn::after {
    content: "";
    position: absolute;
    inset: -6px; /* increases clickable area without changing visual size */
    border-radius: 50%;
  }
}
/* Image wrapper: enforces same aspect ratio and prevents layout shifts */
.mw-slider-item .img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;

  /* Preferred modern API */
  aspect-ratio: 4 / 3;

  /* Fallback for older browsers: padding-top for 4:3 */
  height: 0;
  padding-top: 75%; /* 3/4 = 75% */
}

/* Make the image fill the wrapper and crop while keeping center */
.mw-slider-item .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Responsive: slightly wider on narrower screens (16:9) */
@media (max-width: 900px) {
  .mw-slider-item .img-wrap {
    aspect-ratio: 16 / 9;
    padding-top: 56.25%; /* 9/16 = 56.25% */
  }
}

/* Small tweak for mobile rendering smoothness */
@media (max-width: 600px) {
  .mw-slider-item .img-wrap {
    aspect-ratio: 16 / 9;
    padding-top: 56.25%;
  }
  .mw-slider-item .img-wrap img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Small accessibility tweak */
.mw-slider-item:focus { outline: 3px solid rgba(21,156,228,0.35); }


/* === Custom Navbar Styling === */
.main-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: maroon;
  border-bottom: 2px solid #e07b00;
  padding: 8px 20px;
  margin: 10px 20px;
}

/* Navbar links container */
.main-navbar .navbar-nav {
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

/* Navbar links */
.main-navbar a {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
}

.main-navbar a:hover {
  color: #ffe082 !important;
}

/* === Dropdown (submenu) styling === */
.main-navbar .dropdown-menu {
  background-color: #ffcc80 !important;
  border: 1px solid #e07b00;
  border-radius: 6px;
}

.main-navbar .dropdown-item {
  color: #000 !important;
  font-weight: 500;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: #ff9933 !important;
  color: #fff !important;
}

/* === Responsive Fixes === */
@media (min-width: 992px) {
  /* Desktop only */
  .main-navbar .navbar-collapse {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .main-navbar .navbar-nav {
    flex-direction: row !important;
  }

  .main-navbar .nav-item {
    display: inline-flex !important;
    align-items: center;
  }
}

@media (max-width: 991px) {
  /* Mobile View */
  .main-navbar {
    flex-direction: column;
    padding: 10px;
  }

  .main-navbar .navbar-collapse {
    display: none; /* Let Bootstrap JS control visibility */
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .main-navbar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-navbar .nav-item {
    display: block;
    text-align: center;
  }
}
.main-navbar .p-Donate-dropdown > a {
  background-color: #FFDAAD !important;  /* saffron orange */
  color: maroon !important;
  border-radius: 6px;
  padding: 8px 16px !important;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 15px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Hover effect */
.main-navbar .p-Donate-dropdown > a:hover {
  background-color: #cc5200 !important;  /* darker orange on hover */
  color: #fff !important;
  transform: translateY(-2px);
  text-decoration: none !important; }