MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 69: Line 69:
     background-color: #fff !important;
     background-color: #fff !important;
}
}
/* Fix top spacing so tricolor bars don't overlap the page header */
/* =============================== */
body.page-Main_Page .mw-body {
/* MAIN PAGE SPACING FIX          */
/* =============================== */
 
/* Remove MediaWiki default top space on Main Page */
body.page-Main_Page .mw-body,
body.page-Main_Page #content {
     margin-top: 0 !important;
     margin-top: 0 !important;
     padding-top: 0 !important;
     padding-top: 0 !important;
}
}


/* Remove extra default margin above first section */
/* Add clean spacing below the header */
body.page-Main_Page #content {
body.page-Main_Page .mw-body-content {
    margin-top: 0 !important;
     padding-top: 0 !important;
     padding-top: 0 !important;
}
}


/* Add clean spacing BELOW the tricolor bars */
/* =============================== */
/* HERO SECTION                    */
/* =============================== */
 
.bw-hero {
.bw-hero {
     margin-top: 20px !important;
    width: 100%;
    padding: 60px 20px;
    background: white;
    border-top: 8px solid #ff9933;  /* Saffron bar */
    border-bottom: 8px solid #138808; /* Green bar */
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}
 
.bw-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
 
.bw-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}
 
.bw-subtitle {
    font-size: 18px;
    margin: 15px 0 30px;
    color: #555;
}
 
/* =============================== */
/* SEARCH BAR                      */
/* =============================== */
 
.bw-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
     margin-top: 10px;
    flex-wrap: wrap;
}
 
.bw-search-input {
    width: 420px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
}
 
.bw-search-btn {
    padding: 12px 26px;
    font-size: 16px;
    background: #0b57d0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
 
.bw-search-btn:hover {
    background: #0847b0;
}
 
/* =============================== */
/* SECTIONS                        */
/* =============================== */
 
.bw-section {
    max-width: 1080px;
    margin: 50px auto;
    padding: 0 20px;
}
 
.bw-section h2 {
    border-left: 5px solid #0b57d0;
    padding-left: 10px;
    font-size: 26px;
    margin-bottom: 20px;
}
 
/* =============================== */
/* BOX STYLE (Featured, DYK)      */
/* =============================== */
 
.bw-box {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}
 
/* =============================== */
/* CARDS SECTION                  */
/* =============================== */
 
.bw-cards .bw-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
 
.bw-card {
    display: block;
    padding: 20px;
    text-align: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #0b57d0;
    transition: 0.2s ease;
}
 
.bw-card:hover {
    background: #eef3ff;
    transform: translateY(-2px);
}
 
/* =============================== */
/* CATEGORY GRID                  */
/* =============================== */
 
.bw-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
 
.bw-category-grid div {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    font-size: 18px;
}
 
.bw-category-grid div:hover {
    background: #eef3ff;
}
 
/* =============================== */
/* FOOTER STRIP                    */
/* =============================== */
 
.bw-footer-strip {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #ff9933, white, #138808);
    margin-top: 60px;
}
}