MediaWiki:Common.css: Difference between revisions

From Sanatan Hindu Dharma
No edit summary
No edit summary
Line 628: Line 628:
.main-navbar a:hover { color: #fefefe !important;}
.main-navbar a:hover { color: #fefefe !important;}
.main-navbar .dropdown-menu { background-color: #fff !important; border: 1px solid #ccc; border-radius: 5px; }
.main-navbar .dropdown-menu { background-color: #fff !important; border: 1px solid #ccc; border-radius: 5px; }
.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a { color: #000 !important; font-weight: 500; }
.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a { color: #000 !important;   padding: .35rem 1.5rem !important; }


/* Fix for link states (MediaWiki override prevention) */
/* Fix for link states (MediaWiki override prevention) */

Revision as of 13:31, 8 November 2025

/* CSS placed here will be applied to all skins */

.flex-fill.container,.flex-fill.container{ max-width:100% !important}


.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;}
}


.mw-headline,
.page-title,
.firstHeading,
h1, h2, h3 { border: none !important; box-shadow: none !important;
}
.footercontainer { display:block !important; background:#eee; padding:20px; }



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

/* Hide only the A–Z headers on Category pages, keep all links visible */
.mw-category-group > h3 { display: none !important;
}



/*  Clean up MediaWiki layout spacing for particular Pages */


/* Spacing in Media wiki Body Containers */
body.skin-chameleon .col > #content.mw-body { padding: 30px 30px 0 30px !important;  /* top, right, bottom, left */ box-sizing: border-box !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 with Fixed Background */

.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;
}


@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; }
}






/* 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;
}

@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;
}

@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;
 
}

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

.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;
  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; 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); }


@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; }
}






/* Custom  Page Footer * /


/* Base footer */
.mw-footer {   font-family: poppins , system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
width: 100vw; position: relative; left: 50%; transform: translateX(-50%); background-color: #800000; /* maroon */ color: white; padding: 30px 5%; box-sizing: border-box;
 }

/* Links */
.mw-footer a { color: #ffe6e6; text-decoration: none;
}
.mw-footer a:hover,
.mw-footer a:focus { color: #ffffff; text-decoration: underline; outline: none;
}

/* Container / 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; color: #ffeceb; padding-left:0;}
.mw-footer-col ul { margin-left: 0;
}
.mw-footer .donate-button { background-color: #e07b00 !important; color: #ffffff !important; border: 2px solid #e07b00 !important; border-radius: 6px !important; padding: 10px!important; font-weight: 600 !important; text-transform: uppercase !important; cursor: pointer !important; transition: all 0.3s ease !important; margin-top: 12px !important; display: inline-block !important; width: auto !important;
}

.mw-footer .donate-button:hover,
.mw-footer .donate-button:focus { background-color: #ffffff !important; color: #800000 !important; border-color: #ffffff !important; outline: none !important; box-shadow: 0 0 8px rgba(255,255,255,0.4) !important;
}
.mw-footer-text { margin: 8px 0 0; color: #ffeceb; }

/* Newsletter & social */
.mw-newsletter { display: flex; gap: 8px; margin: 8px 0 0; align-items: center;
}
.mw-newsletter input[type="email"] { padding: 8px 10px; border-radius: 6px; border: none; min-width: 0; flex: 1; background: rgba(255,255,255,0.06); color: #fff;
}
.mw-newsletter input[type="email"]:focus { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 1px; background: rgba(255,255,255,0.08);
}

/* Newsletter button - keep visually styled distinct */
.mw-newsletter button { padding: 8px 12px; border-radius: 6px; border: none; background: #2563eb; color: #fff; cursor: pointer; font-weight: 600;
}
.mw-newsletter button:hover,
.mw-newsletter button:focus { background: #1e4fc2; outline: none; }

/* Social icons */
.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; text-decoration: none;
}
.mw-social-link svg { display: block; fill: currentColor; }

/* 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.06); box-sizing: border-box;
}
.mw-footer-copyright { color: rgba(255,255,255,0.9); }
.mw-footer-legallinks a { color: #ffe6e6; }

/* Accessibility helper (screen-reader only) */
.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;
}

/* ---- Toggle reset: make toggles visually plain but keyboard operable ---- */
/* Use for section headings on mobile: keep semantics of button but remove chrome */
.mw-footer-toggle { -webkit-appearance: none; appearance: none; border: none; background: transparent; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: block;
}

/* chevron indicator */
.mw-footer-toggle::after { content: "▾"; margin-left: 12px; opacity: 0.85; transition: transform .18s ease; transform-origin: center; color: inherit;
}
.mw-footer-toggle[aria-expanded="false"]::after { transform: rotate(-90deg); }

/* Focus style for toggle */
.mw-footer-toggle:focus { outline: 3px solid rgba(255,255,255,0.12); outline-offset: 2px; border-radius: 4px;
}

/* Ensure lists/text/internals have readable color */
.mw-footer-list,
.mw-footer-text,
.mw-footer-connect { color: #ffeceb; }

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

@media (max-width: 600px) { .mw-footer-inner { grid-template-columns: 1fr; gap: 12px; }
 /* Make toggles full width and bolder on mobile */ .mw-footer-toggle { width: 100%; font-weight: 700; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
 /* Default hide lists/connect/text on mobile; shown when aria-expanded="true" */ .mw-footer-list, .mw-footer-text, .mw-footer-connect { display: none; margin: 8px 0 12px; }
 /* Show following/adjacent blocks when expanded (covers several markup patterns) */ .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, .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 preference */
@media (prefers-reduced-motion: reduce) { .mw-footer-toggle::after { transition: none; }
}

/* Small visual polish */
.mw-footer-list li a { display: inline-block; padding: 2px 0; }
.mw-footer-text p { margin: 0; }

/* Ensure adequate contrast for small text */
.mw-footer small, .mw-footer .muted { color: rgba(255,255,255,0.8); }

/* Safety: override any framework button styles inside footer to keep plain appearance */
.mw-footer button:not(.mw-newsletter button) { background: transparent; border: none; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer;
}

/* Optional: increase hit area for social icons on touch devices */
@media (hover: none) { .mw-social-link { width: 44px; height: 44px; border-radius: 8px; }
}

/* 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); }


/* For Article Horizontally Running */
#horizontal-article-bar { display: flex; overflow: hidden; padding: 10px 0; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.1); white-space: nowrap; position: relative;
}

#horizontal-article-bar .scrolling-wrapper { display: inline-flex; animation: scroll-left 20s linear infinite;
}

#horizontal-article-bar:hover .scrolling-wrapper { animation-play-state: paused;
}

#horizontal-article-bar a { flex: 0 0 auto; margin-right: 15px; padding: 8px 16px; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); background-color: #fafafa; text-decoration: none; color: #0645ad; font-weight: 600; white-space: nowrap; font-size: 16px; transition: background-color 0.3s, box-shadow 0.3s;
}

#horizontal-article-bar a:last-child { margin-right: 0;
}

#horizontal-article-bar a:hover { background-color: #800000; color: #fafafa; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) { #horizontal-article-bar { padding: 8px 0; border: none; box-shadow: none; }
 #horizontal-article-bar a { margin-right: 10px; padding: 6px 12px; font-size: 14px; }
}

@media screen and (max-width: 480px) { #horizontal-article-bar a { margin-right: 8px; padding: 5px 10px; font-size: 13px; }
}

/* mw-accordion */

.mw-accordion-container { max-width: 800px; margin: 1.5em auto; background: #ffffff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; overflow: hidden;
}

.mw-accordion-item + .mw-accordion-item { border-top: 1px solid #ddd;
}

.mw-accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 1.5rem; font-weight: 600; background: #fff; cursor: pointer; user-select: none; color: #222; transition: background-color 0.3s ease; border: none;
}

.mw-accordion-header:hover,
.mw-accordion-checkbox:checked + .mw-accordion-header { background-color: #e1eaff;
}

.mw-accordion-icon { font-size: 1.2rem; transition: transform 0.3s ease;
}

.mw-accordion-checkbox:checked + .mw-accordion-header .mw-accordion-icon { transform: rotate(180deg);
}

.mw-accordion-content { max-height: 0; overflow: hidden; padding: 0 24px; font-size: 1.1rem; color: #444; line-height: 1.5; transition: max-height 0.35s ease, padding 0.35s ease;
}

.mw-accordion-checkbox:checked ~ .mw-accordion-content { max-height: 500px; /* large enough to reveal content */ padding: 18px 24px;
}

/* Responsive for tablets */
@media (max-width: 768px) { .mw-accordion-container { max-width: 90%; }
 .mw-accordion-header { font-size: 1.3rem; padding: 14px 20px; }
 .mw-accordion-content { font-size: 1rem; padding: 0 20px; }
 .mw-accordion-checkbox:checked ~ .mw-accordion-content { padding: 14px 20px; }
}

/* Responsive for mobiles */
@media (max-width: 480px) { .mw-accordion-header { font-size: 1.1rem; padding: 12px 16px; }
 .mw-accordion-content { font-size: 0.95rem; padding: 0 16px; }
 .mw-accordion-checkbox:checked ~ .mw-accordion-content { padding: 12px 16px; }
}
/* ----- Page Grid Container ----- */
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; padding: 10px;
}

/* ----- Individual Page Card ----- */
/* --- Related Pages Section (Desktop + Mobile Responsive) --- */

.page-links-container { width: 280px; display: flex; float: right; justify-content: flex-end; margin: 0 5px 10px 5px; /* tighter sides */
}

.page-links-list { background: #fff; padding: 18px 18px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.12); width: 100%; max-width: 100%;
}

/* --- List styling --- */
.page-links-list ul { list-style: none; padding: 0; margin: 0;}

.page-links-list li { margin: 8px 0; text-align: left; }

.page-links-list a { display: block; background: #f8f9fa; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: #1565c0; font-weight: 500; transition: all 0.2s ease;
}

.page-links-list a:hover { background: #e3f2fd; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transform: translateY(-2px);
}

/* --- Mobile Styling --- */
@media screen and (max-width: 768px) {
.page-links-container { float: none; width: calc(100% - 10px); /* reduce default padding */  margin: 0 5px; justify-content: flex-start; }

.page-links-list { max-width: 100%; margin: 0; padding: 0; box-sizing: border-box;}
 /* Collapsible Header */
.page-links-header { display: flex; background: #1565c0; color: #fff; padding: 12px 16px; font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; align-items: center; justify-content: space-between; border-radius: 10px 10px 0 0; }
.page-links-header::after { content: "▼"; font-size: 12px; transition: transform 0.3s ease; }
.page-links-header.active::after {transform: rotate(-180deg);}

.page-links-content { display: none; background: #fff; padding: 12px 16px; border-radius: 0 0 10px 10px;}
.page-links-content.open {display: block;}

.page-links-title {display: none; /* hide desktop heading inside mobile */ }

}











/* Start Pushkar Dayal Code */
body {font-family: "Poppins", sans-serif; font-weight: 400; font-style: normal; font-size: 1rem;}

body.skin-chameleon .col > #content.mw-body{padding: 0px !important}



body.page-Main_Page .container.flex-fill{ max-width: 1351px !important; width: 1351px !important; margin: 0 auto !important; padding: 0 !important;}


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

.p-logo {height: 6rem;}
.p-logo a {display:black;}
.p-logo img  {height: 5.5rem;}



/* === Custom Navbar Styling === */
.main-navbar {background: #531101; padding: 8px 15px; margin:0 -15px !important }
.main-navbar a { color: #fff !important; font-weight: 400; }
.main-navbar a:hover { color: #fefefe !important;}
.main-navbar .dropdown-menu { background-color: #fff !important; border: 1px solid #ccc; border-radius: 5px; }
.main-navbar .dropdown-menu .dropdown-item, .main-navbar .dropdown-menu a { color: #000 !important;    padding: .35rem 1.5rem !important; }

/* Fix for link states (MediaWiki override prevention) */
.main-navbar .dropdown-menu .dropdown-item:link,
.main-navbar .dropdown-menu .dropdown-item:visited,
.main-navbar .dropdown-menu .dropdown-item:active {color: #000 !important;
}

.main-navbar .dropdown-toggle{ display:flex}
.main-navbar .dropdown-toggle::after{
font-family: "Font Awesome 6 Free"!important;
content: '\f078';
border:none !important;
font-weight: 900;
}



/* -- Slick Core Styles -- */
@import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css');
@import url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css');


.btn-search  {background: #f87d22 !important; border: none!important; padding: 10px 20px !important; margin-left: auto; color: #fff; border-radius: 0 .25rem .25rem 0 !important;}
.btn-search:hover,.btn-search:focus,.btn-search:focus:active{background: #da670f !important; box-shadow: none !important; text-decoration: none !important; color: #fff;}


.btn{padding: 15px 40px;}
.btn-primary,.btn-donate { background: #f87d22 !important; border: none!important;}
.btn-primary{width: 100%;}
.btn-primary:hover,.btn-primary:focus,
.btn-primary:focus:active,
.btn-donate:hover,.btn-donate:focus,
.btn-donate:focus:active {background: #da670f !important; box-shadow: none !important; text-decoration: none !important;}
.btn-donate span{ display: flex !important; align-items: center !important; gap: 5px !important;}

body.page-Main_Page #firstHeading{display: none}
.hero-banner-section{overflow:hidden;}
.hero-banner-section .container{max-width: 1351px !important; padding: 0 !important;}
.hero-banner-section .adsBannerSliderHero  {position: relative;} /* -- Slick Wisdom Slider -- */
.hero-banner-section .slick-track{display: flex;}
.hero-banner-section .adsBannerSliderHero .slick-slide{position: relative; display: inline-block; width:1351px !important}
.hero-banner-section img{ width: 100%; height: 500px; object-fit: cover;}
.hero-banner-block { position: absolute; background: rgba(0,0,0,.5); text-align: center; max-width: 1000px; width: 100%; color: #fff; bottom: 0; left: 50%; transform: translate(-50%,-175px); padding: 20px; border-radius: 5px}

.hero-banner-heading {font-size: 2.6rem; font-weight: 700; margin-bottom: 10px;}
.hero-banner-subheading {font-size: 1.8rem; font-weight: 600}


 h2.section-heading{ font-size: 2.5rem; font-weight: 700; color: #531101; margin-bottom: 60px; text-align: center;}

.discover-Learn-Live-section{padding: 80px 40px 0 40px; background: #ffffff; color:#000;}
.discover-Learn-Live-section .section-heading{ text-align: left; margin-bottom: 30px;}
.discover-Learn-Live-section img {width: 100%; max-width: 539px;}
.discover-Learn-Live-btn{ background: #531101; width: 200px; border-radius: .5rem; display: table; padding: 1rem; margin: 20px auto 0 auto; text-align: center; text-decoration: none; color: #fff; font-size: 1rem;}
.discover-Learn-Live-btn:visited{ color: #fff !important;}
.discover-Learn-Live-btn:hover{ color: #fff; background: #410d01;}

.sanatan-circle { position: relative; width: 520px; height: 520px; margin: 0px auto 30px auto; font-family: "Poppins", sans-serif;}
.center-text {position: absolute; top: 50%; left: 0%; width: 175px; height: 175px; transform: translate(-0%, -50%); border-radius: 50%; background: #fff; color: #333; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; display: flex; align-items: center; justify-content: center; padding: 15px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); z-index: 2;}
.dotted-arc {position: absolute; top: 50%; left: 0%; width: 245px; height: 245px; transform: translate(-12%, -50%); border: 2px dashed #531101; border-radius: 50%;  clip-path: inset(0 0 0 50%); /* show only right half */ z-index: 1;}

.icon {position: absolute; width: 77px; height: 77px; box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, .15); border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 3;}

.icon img { width: 40px; height: 40px;}

.icon1 { top: 35px; left: 10%; }
.icon2 { top: 65px; left: 32%;}
.icon3 {top: 155px; left: 45%;}
.icon4 { top: 262px; left: 46%;}
.icon5 {top: 355px; left: 36%;}
.icon6 {top: 408px; left: 16%;}

.roundbullet{ position: absolute; width: 8px; height: 8px; border-radius: 4px; background-color: #531101;}
.roundbullet1 {left: 36px; top: 99px;}
.roundbullet2 {left: 0px; top: 96px;}
.roundbullet3 {left: -30px; top: 60px;}
.roundbullet4 {left: -33px; top: 27px;}
.roundbullet5 {left: -18px; top: -8px;}
.roundbullet6 {left: 14px; top: -31px;}

.iconTextBlock { position: absolute;}
.iconText1 {left:78px; top:-30px; width: 305px;}
.iconText2 {left:87px; top:13px; width: 250px; }
.iconText3 {left:87px; top:-5px; width: 200px; }
.iconText4 {left:87px; top:0; width: 210px;}
.iconText5 {left: 88px; top:18px; width: 180px;}
.iconText6 {left:75px; top:65px; width: 320px;}

@media screen and (max-width:400px) {
.sanatan-circle {margin: 20px 0 30px 0; width: 100%; height: 360px; }
.center-text {width: 145px; height: 145px; font-size: 12px;}
.dotted-arc {width: 185px; height: 185px; border: 1px dashed #531101;}

.icon {width: 45px; height: 45px;}
.icon img { width: 24px; height: 24px;}
.icon1 {top: 16px; left: 14%;}
.icon2 {top: 48px; left: 38%;}
.icon3 {top: 110px; left: 52%;}
.icon4 {top: 190px; left: 56%;}
.icon5 {top: 254px;left: 43%;}
.icon6 {top: 287px; left: 22%;}

.roundbullet {width: 6px; height: 6px; border-radius: 3px;}
.roundbullet1 {left: 23px; top: 69px;}
.roundbullet2 {left: 7px; top: 60px;}
.roundbullet3 {left: -8px; top: 46px;}
.roundbullet4 {left: -25px; top: 18px;}
.roundbullet5 {left: -12px; top: -6px;}
.roundbullet6 {left: 0px; top: -19px;}

.iconTextBlock{font-size: 11px;}
.iconText1 {left: 50px;top: -30px; width: 200px;}
.iconText2 {left: 56px; top: 5px; width: 152px;}
.iconText3 {left: 55px; top: -5px;  width: 115px;}
.iconText4 {left: 55px; top: 0;width: 98px;}
.iconText5 {left: 58px;top: 12px; width: 125px;}
.iconText6 {left: 56px; top: 26px; width: 180px;}
}

.explore-sanatan-wisdom-section{/*padding: 0px 40px 0 40px;*/ padding: 0px; background: #ffffff;}
.sanatanWisdomSlider {position: relative;} /* -- Slick Wisdom Slider -- */
.sanatanWisdomSlider .slick-track{display: flex; gap:30px;}
.sanatanWisdomSlider .slick-track div{display: inline-block;}
.sanatanWisdomSlider a{background: #fff !important; display: block; text-decoration: none; color: #000; border-radius: 10px; overflow: hidden; box-shadow: 0px 0px 10px 0px rgba(0,0,0,.2); margin-bottom: 20px;}
.sanatanWisdomSlider a .sanatan-wisdom-title{ padding: 15px; color:#000000; display: block; text-align: center;}
.sanatanWisdomSlider img {width: 100%;height: auto; display: block;}


.latest-articles-section { padding: 40px 40px 60px 40px; background: #ffffff;}
.latestArticlesSlider {position: relative;} /* -- Latest Articles Slider -- */
.latestArticlesSlider .slick-track{display: flex; gap:20px;}
.latestArticlesSlider .slick-track div{display: inline-block;}
.latestArticlesSlider a{white-space: nowrap; text-align: center; background: #f87d22 !important; padding: 8px 20px; display: block; text-decoration: none; color: #fff; border-radius: 5px;}
.latestArticlesSlider a:hover{background: #531101 !important}


.slick-arrow { position: absolute; z-index: 999; color: #fff; top: 50%; width: 25px; height: 30px; border: 0; background: rgba(0, 0, 0, .3); transform: translate(0, -50%);}
.prev-arrow {left: 0; border-radius: 5px; padding: 0;}
.next-arrow {right: 0; border-radius: 5px; padding: 0;}


.featured-and-highlights-section{padding: 40px 40px 60px 40px; background: #fff4f2;}
.featured-and-highlights-section img {width: 100%; overflow: hidden; border-radius: 15px; object-fit: cover; height: 345px;}
.home-featured-content{margin: 25px 0; padding: 0 50px; text-align: center; color: #000; height: 65px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis;}


.home-featured-btn{ background: #531101; width: 200px; border-radius: .5rem; display: table; padding: 1rem 2rem; margin: 0 auto; text-align: center; text-decoration: none; color: #fff; font-size: 1rem;}
.home-featured-btn:hover{color: #fff; background: #410d01;}


.join-and-collaborate-section {padding: 40px; text-align: center; background: #ffffff;}
.join-and-collaborate-section .btn-coin-collaborate-block { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;}
.join-and-collaborate-section .btn-coin-collaborate-block a{background: #f87d22 !important; border: none !important; padding: 1rem 2rem; color: #fff; font-size: 1.5rem; font-weight: 600; text-decoration: none; width: 325px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; gap:20px;}

#mw-custom-footer { background-color: #531101;}
.footer{ background-color: #531101; color: #fff; font-size: .9rem; font-weight: 300; line-height: 1.8;  margin:0 auto; max-width:1351px !important; padding: 58px 15px 0 15px !important;}
.footer h3{ font-size: 1rem; font-weight: 600; margin-top: 10px; margin-bottom: 15px; color: #fff;}
.footer ul { margin: 0; padding: 0; list-style: none;}
.footer ul.need-help li {display: flex; align-items: baseline; gap:10px; margin-bottom: 5px;}
.footer a { text-decoration: none; color:#fff;}
.footer a:hover{ color: #fff; text-decoration: underline;}
.footer .form-text{ color: #fff;}
.footer .form-control, .footer .form-control: hover, .footer .form-control: focus, .footer .form-control: active{ height: 50px; border: none; box-shadow: none;}
.footer ul.social-media{display: flex; gap:15px; margin-top: 10px; font-size: 1.6rem;}
.footer .footerBottom {padding:30px 0; border-top: 1px solid #fff;margin-top: 20px;}
.footer .footerBottom ul{ margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap:10px; line-height: 1;}
.footer .footerBottom ul li:not(:last-child) {border-right: 1px solid #fff; padding-right: 10px;}

@media (max-width: 767px) {
.p-logo img  {padding:5px;}
.top-head{ justify-content: center; gap: 10px;}
.hero-banner-section img{ height: 450px;}
.hero-banner-block {transform: translate(-50%, -40px);}
.hero-banner-heading {font-size: 1.6rem;}
.hero-banner-subheading {font-size: 1.2rem;}
h2.section-heading{ margin-bottom: 40px; font-size: 1.9rem;}

.discover-Learn-Live-section,.explore-sanatan-wisdom-section, .latest-articles-section, .featured-and-highlights-section, .join-and-collaborate-section{padding: 0 0 40px 0;}
.home-featured-content{ padding: 0; max-height: 65; height: auto;}

.join-and-collaborate .btn-coin-collaborate-block a{ padding: 1rem 2rem; width: 100%;}

}

/* End Pushkar Dayal Code */

#floatingCreateBtn { animation: floatUp 0.3s ease-in-out; }
@keyframes floatUp { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#createPopupBox input:focus { border-color: #0078D7; outline: none;
}