/* St. Justin's College – small additions for the PHP version */
.fm-msg{display:none;margin:0 0 20px;padding:14px 18px;border-radius:4px;font-size:15px;line-height:1.5;text-align:left}
.fm-msg.is-ok{background:#e9f6ec;border:1px solid #2e7d32;color:#1b5e20}
.fm-msg.is-err{background:#fdecea;border:1px solid #c62828;color:#b71c1c}
.fm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.gform_wrapper .fm-sum .gfield_label{display:none}
.gform_wrapper.gravity-theme .gfield_error input,.gform_wrapper.gravity-theme .gfield_error textarea{border-color:#c02b0a}
.gform_wrapper.gravity-theme .gfield_validation_message{font-size:13px;padding:6px 10px;margin-top:6px}
/* popup sections (were the Popups for Divi plugin) */
.et_pb_section.popup{display:none}
.sms-pop{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.sms-pop>.et_pb_section.popup{display:block;position:relative;width:min(900px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.sms-pop-x{position:absolute;top:8px;right:10px;z-index:2;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#000;font-size:24px;line-height:36px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.3)}
/* Home: slider straight under the menu (no white band), announcement bar text centred in the blue bar */
.home .et_pb_section_0{padding-top:0!important;padding-bottom:0!important}
.home .et_pb_section_0>.et_pb_row_0{padding:0!important}
.home .et_pb_section_1{background-size:cover!important;background-position:center!important;padding:0!important}
.home .et_pb_section_1>.et_pb_row_1{display:flex;align-items:center;min-height:100px;padding:0!important}
.home .et_pb_section_1 .et_pb_column{margin-bottom:0!important}
.home .et_pb_section_1 .et_pb_text_1 p,.home .et_pb_section_1 .et_pb_text_2 p{padding:0}
.home .et_pb_section_1 .et_pb_text_2 .et_pb_text_inner>p{display:none}
/* phone copy of the announcement bar (section 2) */
.home .et_pb_section_2{background-size:cover!important;background-position:left center!important;padding:14px 0!important;margin-top:0!important}
.home .et_pb_section_2 .et_pb_row_2{padding:0!important;width:90%!important}
.home .et_pb_section_2 .et_pb_column{margin:0!important}
.home .et_pb_section_2 .et_pb_text_3{padding:0!important;margin:0 0 6px!important;font-size:24px}
.home .et_pb_section_2 .et_pb_text_4,.home .et_pb_section_2 .et_pb_text_4 *{padding-left:0!important;padding-right:0!important;text-indent:0!important;margin-left:0!important;min-height:0!important}
.home .et_pb_section_2 .et_pb_text_4 div[style*="nowrap"]{white-space:normal!important;font-size:16px!important;line-height:1.6;text-align:center}
.home .et_pb_section_2 .et_pb_text_4 .et_pb_text_inner>p,.home .et_pb_section_2 .et_pb_text_4 .et_pb_text_inner>div:empty{display:none}
/* Phones / tablets: the old site's mobile header row was empty (no logo, no menu). Show the college logo + the main menu (Divi hamburger) */
@media (max-width:980px){
body .et_pb_section.et_pb_section_1_tb_header,body .et_pb_section.et_pb_section_2_tb_header{display:block!important}
body .et_pb_section.et_pb_section_3_tb_header{display:none!important}
body .et_pb_section_1_tb_header .et_pb_row{width:94%!important;padding:8px 0!important}
body .et_pb_section_1_tb_header img{max-width:100%;height:auto}
body .et_pb_section_2_tb_header .et_pb_row{padding:6px 0!important}
.et_pb_menu_0_tb_header{margin-top:0!important}
body .et_pb_section_2_tb_header .mobile_nav .mobile_menu_bar:before{color:#fff!important;font-size:36px}
body .et_pb_section_2_tb_header{position:relative;z-index:9999}
body .et_pb_section_2_tb_header .et_pb_menu .et_mobile_menu,body .et_pb_section_2_tb_header .et_pb_menu .et_mobile_menu ul{background-color:#fff!important}
body .et_pb_section_2_tb_header .et_pb_menu .et_mobile_menu{max-height:75vh;overflow:auto;padding:10px 4%;box-shadow:0 8px 24px rgba(0,0,0,.25)}
body .et_pb_section_2_tb_header .et_pb_menu .et_mobile_menu li a{color:#6f2f9f!important;font-size:15px;padding:9px 4%}
body .et_pb_section_2_tb_header .et_pb_menu .et_mobile_menu li li a{color:#444!important;font-size:14px}
}
/* Contact Us: Enquiry form (the "Enquiry Now" buttons point at #form) */
#form{padding:40px 0 60px!important;background:#f7f7f7}
#form>.et_pb_row{width:90%!important;max-width:800px!important;margin:0 auto!important;padding:0!important}
#form h2{font-size:32px;color:#6f2f9f;padding-bottom:10px}
#form .gform_wrapper input[type=text],#form .gform_wrapper input[type=email],#form .gform_wrapper input[type=tel],#form .gform_wrapper textarea{background:#fff;padding:12px 14px!important;border:1px solid #ccc;border-radius:4px;font-size:15px}
#form .gform_footer input[type=submit],#form .gform_footer button{background:#6f2f9f!important;color:#fff!important;border:0;padding:12px 40px!important;font-size:16px;cursor:pointer;border-radius:3px}
#form .gform_footer{justify-content:center;display:flex}
/* stray empty icon above the social buttons */
.page-id-30 .et_pb_icon_0{display:none}
/* wide tables (Important Links, Videos list...) scroll inside the page on phones instead of pushing the page sideways */
@media (max-width:980px){.et_pb_text_inner table,.et_pb_code_inner table,.et_pb_toggle_content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* ===== Buttons: one clean style everywhere =====
   The theme asked for "Gordita" weight 800, which never loaded, so Windows fell back to Arial Black (heavy, uneven).
   Same colours as before, normal weight, same size, even padding, centred text + arrow. */
.dnxt-btn-icon,.dnxt-blurb-btn,a.et_pb_button,a.et_pb_promo_button{font-family:'Roboto',Arial,Helvetica,sans-serif!important;font-weight:500!important;font-size:16px!important;line-height:1.35!important;letter-spacing:.2px!important;text-transform:none!important}
.dnxte_button .dnxt-btn-icon{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:13px 26px!important;border-radius:6px!important;text-align:center;min-height:50px;box-sizing:border-box;box-shadow:0 3px 10px rgba(111,47,159,.18);transition:transform .2s ease,box-shadow .2s ease}
.dnxte_button .dnxt-btn-icon:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(111,47,159,.28)}
.dnxt-btn-icon i,.dnxt-blurb-btn i{position:static!important;margin:0!important;font-size:18px!important;line-height:1!important;opacity:1!important;transform:none!important}
/* a column that holds a stack of 3+ buttons: all the same width (was every button a different width) */
.et_pb_column:has(.dnxte_button ~ .dnxte_button ~ .dnxte_button) .dnxte_button{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.et_pb_column:has(.dnxte_button ~ .dnxte_button ~ .dnxte_button) .dnxte_button .dnxt-button-wrapper{display:block!important}
.et_pb_column:has(.dnxte_button ~ .dnxte_button ~ .dnxte_button) .dnxte_button .dnxt-btn-icon{display:flex!important;width:100%!important}
/* a row of buttons side by side (Prospectus / B.Ed / M.Ed): same height, centred in their column */
.et_pb_row:has(> .et_pb_column > .dnxte_button) > .et_pb_column > .dnxte_button .dnxt-button-wrapper{display:flex!important;justify-content:center}
@media (max-width:767px){
.dnxt-btn-icon,.dnxt-blurb-btn,a.et_pb_button{font-size:15px!important}
.dnxte_button .dnxt-btn-icon{padding:12px 20px!important;min-height:46px;width:100%!important;display:flex!important}
.dnxte_button{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
}

/* ===== Home: Admission List card (the 3 cards next to it were exact copies of the row below) ===== */
.home .et_pb_column_36,.home .et_pb_column_37,.home .et_pb_column_38{display:none!important}
.home .et_pb_column_35{width:100%!important;margin-right:0!important;display:flex!important;flex-wrap:wrap;justify-content:center;gap:14px;padding:30px 4% 34px!important;box-sizing:border-box;background:#6f2f9f!important;border:0!important;border-radius:8px}
.home .et_pb_column_35>.dnxte_blurb{flex:0 0 100%;margin:0 0 6px!important;background:transparent!important}
.home .et_pb_column_35 .dnxt-blurb-image img,.home .et_pb_column_35 .dnxt-blurb-image svg{filter:brightness(0) invert(1);opacity:.95;width:64px!important;height:auto}
.home .et_pb_column_35 .dnxt-blurb-description h2,.home .et_pb_column_35 .dnxt-blurb-description h2 strong{font-size:24px;padding:10px 0 0;margin:0;color:#fff!important}
.home .et_pb_column_35>.et_pb_button_module_wrapper{flex:0 0 calc(25% - 11px);margin:0!important}
.home .et_pb_column_35 a.et_pb_button{display:block!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:11px 8px!important;font-size:15px!important;font-weight:500!important;text-align:center;background:#fff!important;color:#6f2f9f!important;border:0!important;border-radius:6px!important;line-height:1.3!important;box-shadow:0 3px 8px rgba(0,0,0,.15);transition:transform .2s,box-shadow .2s}
.home .et_pb_column_35 a.et_pb_button:after{display:none!important}
.home .et_pb_column_35 a.et_pb_button:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.25);background:#fff!important;color:#4b1d70!important}
@media (max-width:980px){.home .et_pb_column_35>.et_pb_button_module_wrapper{flex:0 0 calc(50% - 7px)}}
@media (max-width:420px){.home .et_pb_column_35>.et_pb_button_module_wrapper{flex:0 0 100%}}
/* top row: Prospectus / B.Ed / M.Ed buttons the same size */
.home .et_pb_row_2 .dnxte_button,.home .et_pb_row_3 .dnxte_button{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.home .dnxte_button_0 .dnxt-btn-icon,.home .dnxte_button_1 .dnxt-btn-icon,.home .dnxte_button_2 .dnxt-btn-icon{width:100%!important;max-width:340px;white-space:nowrap}
.home .dnxte_button_0 .dnxt-button-wrapper,.home .dnxte_button_1 .dnxt-button-wrapper,.home .dnxte_button_2 .dnxt-button-wrapper{display:flex!important;justify-content:center}
/* National Task Force: both links look like the same button */
.home .dnxte_blurb_0 a.dnxt-blurb-btn,.home .dnxte_blurb_1 .dnxt-blurb-post-heading{display:inline-flex!important;align-items:center;gap:8px;margin-top:12px!important;padding:10px 18px!important;font-family:'Roboto',Arial,sans-serif!important;font-size:15px!important;font-weight:500!important;line-height:1.3!important;color:#6f2f9f!important;background:#fff!important;border:1px solid #6f2f9f!important;border-radius:6px;cursor:pointer;transition:background .2s,color .2s}
.home .dnxte_blurb_0 a.dnxt-blurb-btn:hover,.home .dnxte_blurb_1 .dnxt-blurb-post-heading:hover{background:#6f2f9f!important;color:#fff!important}
.home .dnxte_blurb_0 .dnxt-blurb-heading,.home .dnxte_blurb_1 .dnxt-blurb-heading{font-size:21px!important;line-height:1.3!important}
/* Research Programme / Students Support labels sitting on the photos: keep their original size */
.home .dnxte_button_12 .dnxt-button-wrapper a.dnxt-btn-icon,.home .dnxte_button_13 .dnxt-button-wrapper a.dnxt-btn-icon{display:inline-block!important;min-height:0!important;height:52px!important;line-height:24px!important;overflow:hidden;margin-top:-72px!important;padding:14px 60px!important;white-space:nowrap;border-radius:0!important;box-shadow:none!important;font-size:18px!important}
@media (max-width:767px){.home .dnxte_button_12 .dnxt-button-wrapper a.dnxt-btn-icon,.home .dnxte_button_13 .dnxt-button-wrapper a.dnxt-btn-icon{padding:9px 24px!important;height:40px!important;line-height:22px!important;font-size:15px!important;width:auto!important}}
/* page-title banner for the event pages (same look as the other pages' title bar) */
.js-page-banner{background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),url(../images/2023/05/footer-bg.webp) center/cover;padding:58px 5% 54px;text-align:center}
.js-page-banner h1{color:#fff!important;font-size:26px;line-height:1.3;padding:0;margin:0;font-weight:400}
.js-banner #et-main-area .et_pb_section_0 .dnxte_multi_heading_0,.js-banner #et-main-area .et_pb_section_0 .et_pb_heading_0{display:none}
@media (max-width:767px){.js-page-banner{padding:38px 5%}.js-page-banner h1{font-size:21px}}

/* ===== Footer: tighter spacing + Google Map instead of the dotted world map ===== */
.et_pb_section_0_tb_footer{padding-bottom:12px!important}
.et_pb_section_0_tb_footer .et_pb_row_0_tb_footer{padding-top:34px!important;padding-bottom:6px!important}
.et_pb_section_0_tb_footer .et_pb_row_1_tb_footer{padding-top:22px!important;padding-bottom:10px!important;display:flex;align-items:flex-start;flex-wrap:wrap}
.et_pb_section_0_tb_footer .et_pb_row_0_tb_footer .et_pb_module{margin-bottom:14px!important}
.et_pb_section_0_tb_footer .et_pb_row_1_tb_footer .et_pb_module{margin-bottom:10px!important}
.et_pb_section_0_tb_footer .et_pb_row_1_tb_footer>.et_pb_column{margin-bottom:0!important}
.et_pb_section_0_tb_footer .et_pb_row_2_tb_footer{padding-top:8px!important}
.dnxte_feature_list_child_0_tb_footer,.dnxte_feature_list_child_1_tb_footer,.dnxte_feature_list_child_2_tb_footer,.dnxte_feature_list_child_3_tb_footer{margin-bottom:4px!important}
.js-footer-map{border-radius:8px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.35);line-height:0;margin:0!important}
.js-footer-map iframe{display:block;width:100%;height:230px}
@media (max-width:980px){.js-footer-map iframe{height:210px}.et_pb_section_0_tb_footer .et_pb_row_1_tb_footer>.et_pb_column{margin-bottom:18px!important}}
.et_pb_section.et_pb_section_0_tb_footer{padding-top:0!important}
.et_pb_section_0_tb_footer .dnxte_multi_heading_1_tb_footer,.et_pb_section_0_tb_footer .dnxte_multi_heading_2_tb_footer{margin-bottom:16px!important}
/* phones: the phone copy of "Our Studies" had no Admission List -> show the main one (same cards) instead */
@media (max-width:767px){
body.home .et_pb_section.et_pb_section_15{display:block!important}
body.home .et_pb_section.et_pb_section_16{display:none!important}
}
/* footer headings: a little room under "Get in touch" / "Quick Links" */
.et_pb_section_0_tb_footer .dnxte_multi_heading_1_tb_footer .header-level,.et_pb_section_0_tb_footer .dnxte_multi_heading_2_tb_footer .header-level{padding-bottom:12px!important}
/* phones: the footer "Enquiry Now" stays a normal-size button */
@media (max-width:767px){.dnxte_button_0_tb_footer .dnxt-btn-icon{width:auto!important;display:inline-flex!important}.dnxte_button_0_tb_footer .dnxt-button-wrapper{display:flex!important;justify-content:center}
.et_pb_section_0_tb_footer .et_pb_row_1_tb_footer{padding-top:18px!important}}
/* contact page: social icons -> one centered line under the 3 cards */
.et_pb_row:has(.et_pb_social_media_follow_0){display:flex;justify-content:center;padding:10px 0 30px}
.et_pb_row:has(.et_pb_social_media_follow_0)>.et_pb_column_empty{display:none}
.et_pb_row:has(.et_pb_social_media_follow_0)>.et_pb_column{width:auto!important;margin:0!important;float:none}
.et_pb_social_media_follow_0{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;margin:0!important}
.et_pb_social_media_follow_0 li{margin:0!important}
.et_pb_social_media_follow_0 li a.icon{margin:0!important}
/* contact page: map sits flush on the footer */
#form.fm-enquiry:has(iframe[src*="google.com/maps"]){padding-bottom:0!important}
#et-main-area iframe[src*="google.com/maps"]{display:block}
/* empty builder sections (no content) -> no blank gap above the footer */
#et-main-area .et_pb_section:not(.et_pb_with_background):not(:has(.et_pb_module,img,iframe,video)){display:none!important}
/* masonry galleries: lighter hover so the photo stays visible */
.dnxte-msnary-item .dnxte_ovl.et_overlay{background-color:rgba(111,47,159,.25)!important}
#videos{scroll-margin-top:20px}
