/* =========================================================================
   SFXC 2026 — bridging overrides only.
   Visual design comes from the original tx_matheno / Expose CSS chain.
   ========================================================================= */

/* Mega menu: reproduce the old theme's dropdown panels (with background). */
#menu li.has-submenu > .childcontent {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #f4f4f4;
    border: 0;
    padding: 10px;
    margin-top: 1px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
}
#menu li.has-submenu:hover > .childcontent,
#menu li.has-submenu.over > .childcontent { display: block; }
#menu .childcontent-inner-wrap { display: block; position: static; }
#menu ul, #menu li { list-style: none; }

/* ==== Joomla 6 com_content markup mapped onto the old typography ==== */
#component .page-header,
#component h1.item-title,
#component .item-title,
#component h1 {
    font-family: 'PT Serif', serif;
    font-size: 40px;
    line-height: 40px;
    font-weight: normal;
    color: #585858;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #d7d7d7;
    box-shadow: 0 1px 1px #fff;
}
#component .item-title a { color: inherit; text-decoration: none; }
#component .article-info,
#component .mod-articles-category-date,
#component .item-meta { color: #999; font-size: 12px; }
#component article { margin: 0 10px 20px; }
#component .readmore a,
#component .btn-secondary {
    font-family: 'PT Serif', serif;
    font-style: italic;
}

/* bottom green strip: floating columns need clearing, copyright must sit below */
#bottom { overflow: hidden; }
#bottom > [class*="grid"] { float: left; }
#footer, #copyright { clear: both; }




/* =====================================================================
   Original Tx_Matheno style params "custom-css" (must override green.css
   lime palette with the school's darker green).
   ===================================================================== */
.bottom-wrapper { background-color: #43A047; }
.box2 {
    background: #43A047 !important;
    color: #ffffff !important;
    padding: 10px !important;
    margin: 0 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
a { color: #66BB6A; }
#menu li.active > a > span.menu-title,
#menu li:hover > a > span.menu-title,
#menu ul.level-1 li.mega .group-content > ul > li > a:hover > span.menu-title,
#menu ul.level-1 li.mega .group-content > ul > li > span:hover > span.menu-title,
#menu ul.level-1 li.mega .group-content > ul > li.active > a > span.menu-title {
    color: #66BB6A;
}
#copyright .widget-copyrightinfo, #copyright .widget-designedby {
    text-align: left;
    padding: 10px;
}
.title span, .scroller h4 span { color: #43A047; }

/* Box2 sidebar modules: white title, white links, white active highlight with green text */
.box2 .header {
    margin: 0 !important;
    padding: 0 !important;
}
.box2 .header .title,
.box2 .header .title span,
.box2 h2.title,
.box2 h2.title span,
.box2 .title,
.box2 .title span,
.box2 h2,
.box2 h3,
.box2 h4 {
    color: #ffffff !important;
    font-family: 'PT Serif', serif !important;
    font-size: 24px !important;
    line-height: 40px !important;
    font-weight: normal !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
}
.box2 .content {
    margin: 0 !important;
    padding: 0 !important;
}
.box2 .mod-menu,
.box2 .nav-list {
    padding: 0 15px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
}
.box2 .mod-menu > li,
.box2 .nav-list > li {
    line-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: list-item !important;
}
.box2 .mod-menu > li > a,
.box2 .nav-list > li > a,
.box2 ul.menu > li > a,
.box2 a {
    display: block !important;
    padding: 3px 15px !important;
    margin: 0 -15px !important;
    line-height: 20px !important;
    font-size: 14px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: normal !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}
.box2 .mod-menu > li > a:hover,
.box2 .nav-list > li > a:hover,
.box2 ul.menu > li > a:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.box2 .nav-list > li.active > a,
.box2 .nav-list > li.current > a,
.box2 ul.menu > li.active > a,
.box2 ul.menu > li.current > a,
.box2 .mod-menu li.active > a,
.box2 .mod-menu li.current > a {
    background: #ffffff !important;
    color: #43A047 !important;
    text-shadow: none !important;
    font-weight: bold !important;
    border-radius: 2px !important;
}
.box2 .nav-list > li.active > a:hover,
.box2 .mod-menu li.active > a:hover {
    background: #ffffff !important;
    color: #43A047 !important;
}

/* Contact Pane Sliders */
.pane-sliders .panel {
    margin-bottom: 5px;
}
.pane-sliders .pane-toggler.title {
    font-family: inherit;
    font-size: 20px;
    line-height: 24px;
    padding: 6px 0;
    margin: 8px 0;
    background: transparent;
    cursor: pointer;
    border: none;
    box-shadow: none;
}
.pane-sliders .pane-toggler.title a {
    color: #66BB6A;
    text-decoration: none;
}
.pane-sliders .pane-toggler.title a:hover {
    color: #43A047;
}
.pane-sliders .pane-toggler-down {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 9px;
}
.pane-sliders .pane-slider.content {
    padding: 10px 0 15px 0;
    border: none;
}

/* category blog: match the original item-title size (was 40px from #component .title) */
#component .blog .article .title {
    font-size: 30px;
    line-height: 1.25;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
}
#component .blog .article .title a { color: #66BB6A; text-decoration: none; }
#component .blog .article-intro { margin-bottom: 18px; }
#component .blog .pagination { clear: both; margin-top: 15px; }

/* no white gap under the black copyright bar */
.bottom-wrapper { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#copyright { margin-bottom: 0 !important; }
footer.bottom-wrapper { display: block; }

/* hero slider pagination controls centered over the caption area */
#slider .xslider_pagination,
#slider .xslider_pag_ul { text-align: center; left: 0; right: 0; }

/* announcement scroller navigator dots (old XpertScroller .navi) */
.basic_v { position: relative; }
.basic_v .navi {
    position: absolute;
    left: 0; right: 0; top: 2px;
    text-align: center;
    z-index: 5;
    line-height: 0;
}
.basic_v .navi .navi-dot {
    display: inline-block;
    width: 9px; height: 9px;
    margin: 0 3px;
    border-radius: 50%;
    background: #b9b9b9;
    box-shadow: 0 1px 0 #000;
    text-indent: -999em;
    overflow: hidden;
}
.basic_v .navi .navi-dot.active { background: #ffffff; }

/* roof menu: original had no panel/frame around the widget or nav */
.roof-2 .block.widget-menu,
.roof-2 .block.widget-menu .content,
#menu,
#menu .megamenu,
#menu ul.megamenu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
#menu { float: right; }

/* =========================================================================
   Phoca Download Classic Styling (Parity with Joomla 2.5)
   ========================================================================= */

/* Hide any stray Bootstrap modals in Phoca Download */
#phoca-dl-category-box .modal,
.modal.fade:not(.show) {
    display: none !important;
}

/* Phoca Download Category Box Inset */
#component #phoca-dl-category-box {
    margin: 0 10px;
    padding: 0 5px;
}

/* Category header box */
#phoca-dl-category-box .pd-category h3.pd-ctitle,
#phoca-dl-category-box .pd-category h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    line-height: 40px !important;
    font-weight: bold !important;
    color: #585858 !important;
    margin: 0 0 7px 0 !important;
    padding: 5px !important;
    background: #ffffff url('/media/com_phocadownload/images/grey-bg.png') left top repeat-x !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    box-shadow: inset 0 1px 3px #fff, 0 0 3px #ccc !important;
    -webkit-box-shadow: inset 0 1px 3px #fff, 0 0 3px #ccc !important;
}

/* File box container */
#phoca-dl-category-box .pd-filebox {
    clear: both;
    padding: 15px;
    margin: 10px 0px;
    background: #ffffff url('/media/com_phocadownload/images/grey-bg.png') left top repeat-x;
    border: 1px solid #ccc;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: inset 0 1px 3px #fff, 0 0 3px #ccc;
    -webkit-box-shadow: inset 0 1px 3px #fff, 0 0 3px #ccc;
}

/* Filename box */
#phoca-dl-category-box .pd-filenamebox {
    position: relative;
    float: left;
    margin: 5px;
}

#phoca-dl-category-box .pd-title {
    font-weight: bold;
    margin-bottom: 3px;
    color: #444;
    font-size: 13px;
}

#phoca-dl-category-box .pd-document16 {
    padding-left: 20px;
    background: url('/media/com_phocadownload/images/icon-document-16.png') 0px center no-repeat;
    height: 16px;
    line-height: 16px;
}

#phoca-dl-category-box .pd-document16 a,
#phoca-dl-category-box .pd-float a {
    color: #269926;
    text-decoration: none;
    font-weight: normal;
}

#phoca-dl-category-box .pd-document16 a:hover,
#phoca-dl-category-box .pd-float a:hover {
    text-decoration: underline;
}

#phoca-dl-category-box .pd-float {
    position: relative;
    float: left;
    margin: 0px 3px;
}

/* Buttons container */
#phoca-dl-category-box .pd-buttons {
    position: relative;
    float: right;
    margin: 5px;
}

/* Download button */
#phoca-dl-category-box .pd-button-download a {
    background: url('/media/com_phocadownload/images/btn.png') repeat-x, url('/media/com_phocadownload/images/icon-download.png') 6px center no-repeat;
    background-color: #269926;
    display: inline-block;
    padding: 7px 12px 8px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    -webkit-border-radius: 6px;
    position: relative;
    cursor: pointer;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    font-weight: bold;
    font-size: 110%;
    padding-left: 28px;
    color: #ffffff !important;
}

#phoca-dl-category-box .pd-button-download a:hover {
    background: url('/media/com_phocadownload/images/btn.png') repeat-x, url('/media/com_phocadownload/images/icon-download.png') 6px center no-repeat;
    background-color: #0c630c;
    color: #ffffff !important;
}

/* Clearfix */
#phoca-dl-category-box .pd-cb,
.pd-cb {
    clear: both;
}

/* Pagination */
#phoca-dl-category-box .pgcenter {
    text-align: center;
    margin: 15px 0 0 0;
}

#phoca-dl-category-box .pagination {
    text-align: center;
    margin: auto;
    border: none;
    display: block;
}

#phoca-dl-category-box .pginline {
    display: inline-block;
    color: #666;
}

#phoca-dl-category-box .pginline select,
#phoca-dl-category-box select#limit,
#phoca-dl-category-box .inputbox {
    display: inline-block;
    width: auto;
    height: 30px;
    padding: 4px 6px;
    font-size: 14px;
    line-height: 20px;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #bbb;
    border-radius: 3px;
    vertical-align: middle;
}

/* ==========================================================================
   Finder / Search Module - Parity with legacy site (:8081)
   ========================================================================== */
#sidebar-b .mod-129.box1 {
    background: #dedede;
    padding: 10px;
    margin: 0 10px;
}
#sidebar-b .mod-129 #mod-finder-searchform {
    margin: 0;
    position: relative;
}
#sidebar-b .mod-129 #mod-finder-searchform div.finder {
    margin-bottom: 0;
    background: #dedede;
    display: flex;
    align-items: center;
}
#sidebar-b .mod-129 #mod-finder-searchword {
    background: #fbfbfb;
    padding: 1px 0;
    width: 224px;
    height: 20px;
    border: 5px solid rgba(0, 0, 0, 0.4);
    border-radius: 3px 0 0 3px;
    color: #555;
    font: 14px / 20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: inline-block;
    box-sizing: content-box;
}
#sidebar-b .mod-129 #mod-finder-searchword:focus {
    background: #fff;
    outline: none;
}
#sidebar-b .mod-129 #mod-finder-searchform button.btn {
    background: #555;
    color: #fff;
    border-radius: 40px;
    border: 0;
    font-family: 'PT Serif', serif;
    text-transform: lowercase;
    font-style: italic;
    font-size: 17px;
    line-height: 32px;
    padding: 0 8px;
    margin: 0 0 0 6px;
    width: 33px;
    height: 32px;
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
}
#sidebar-b .mod-129 #mod-finder-searchform button.btn i,
#sidebar-b .mod-129 #mod-finder-searchform button.btn .icon-search {
    display: none;
}
#sidebar-b .mod-129 #mod-finder-searchform button.btn:hover {
    background: #000;
}

/* ==========================================================================
   Global News Module (mod_globalnews) - Parity with legacy site (:8081)
   ========================================================================== */
#sidebar-b .mod-213 {
    padding: 10px;
    margin: 0 10px;
}
.gn_clear {
    clear: both;
    height: 0;
    line-height: 0;
}
.gn_header_1 {
    background-color: #efefef;
    border: 1px solid #efefef;
    border-bottom: none;
    padding: 5px;
}
.gn_header_1 .gn_header a {
    color: #66bb6a;
    font-size: 14px;
    line-height: 20px;
    text-decoration: underline;
}
.gn_list_1 {
    border: 1px solid #efefef;
    border-top: none;
    padding: 5px;
    height: auto;
    background-color: #ffffff;
    overflow: hidden;
}
.gn_list_1 ul {
    margin: 0 0 10px 25px;
    padding: 0;
    list-style-type: disc;
}
.gn_list_1 li {
    height: 20px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #585858;
}
.gn_list_1 li a {
    color: #66bb6a;
    text-decoration: none;
}
.gn_list_1 li a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Accessibility, Bootstrap 5 Compatibility & Responsive Mobile UX Fixes
   ========================================================================== */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fallback directional glyphs for Joomla 6 Bootstrap 5 pagination icons */
.pagination [class^="icon-"]::before,
.pagination [class*=" icon-"]::before {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}
.pagination .icon-angle-left::before,
.pagination .icon-previous::before {
    content: "\2039";
}
.pagination .icon-angle-right::before,
.pagination .icon-next::before {
    content: "\203A";
}
.pagination .icon-angle-double-left::before,
.pagination .icon-first::before {
    content: "\00AB";
}
.pagination .icon-angle-double-right::before,
.pagination .icon-last::before {
    content: "\00BB";
}

@media (max-width: 767px) {
    #bottom > [class*="grid"],
    .container [class*="grid"].column {
        float: none !important;
        width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
    }
    .xslider_title,
    .slogan {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    a.AG_album_thumb span.AG_album_thumb_img img {
        max-width: 100% !important;
        height: auto !important;
    }
}



