/*
Theme Name: Unitedceres
Description: This is a Custom Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: unitedceres
*/
/*-- --*/

.menu-toggle i{
    position: relative;
    top: -6px;
}

.banner  > .container-xl .hero-title{
    max-width: 1140px;
    margin-left: auto !important;   
    padding-top: 100px; 
}

.banner > .container-xl{
max-width: 100%;
}

.grid-item .card img {
    height: auto !important;
    width: 100% !important;
}

.menu > li > ul {
    min-width: unset;
    line-height: 1.5;
}
.menu > li > ul > li > ul{
    min-width: inherit;
    line-height: 1.5;
}
.menu > li > ul ul{
    line-height: 1.5;
}

.menu > li li{
    margin-bottom: 5px;
    padding-right: 1rem;
}
.menu .last-child li{
    margin-bottom: 10px;
}

.menubar{
    z-index: 999999;
}

.get-in .wp-block-image figure img{
    margin-bottom: 50px;
}

.single-post .section ul li {
    margin: 0 0 0 0;
}
.single-post .section p, .single-post .section ul, .single-post .section ul li {
    line-height: 1.8;
}

.error-404{
    padding: 50px 15px;
    text-align: center;
}


input#searchsubmit{
    color: #fff;
    background: #16284a;
    border: 0;
    border-radius: 0;
    padding: 10px 25px;
}

form#searchform{
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

form#searchform input#s{
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #16284a;
    background: #fff;
    margin-bottom: 15px;
}
#scrolltop{
    line-height: 43px;
}

/* Reduce the consent text size and keep it readable = Keep in Touch News and Information Page*/
.wpcf7 .wpcf7-list-item-label { font-size: 11px !important; line-height: 1.2 !important; color: #ffffff !important; } .wpcf7 .wpcf7-list-item-label { font-size: 11px !important; line-height: 1.25 !important; }
  .wpcf7 p { margin: 0 !important; }
  .wpcf7 .wpcf7-form-control-wrap { display: block !important; width: 100% !important; }
  .wpcf7 .wpcf7-list-item { display: block !important; margin: 0 !important; }
  .wpcf7 label { display: flex !important; align-items: flex-start !important; gap: 8px !important; }
  .wpcf7 input[type="checkbox"] { margin-top: 2px !important; }


/*contact us css */
/* Container */
.wpcf7 .ucc-privacy-box{
  padding-top:10px;
  padding-bottom:10px;
}

/* Header + note */
.wpcf7 .ucc-privacy-text{
  font-size:16px;
  line-height:1.15;
  color:#6c757d;
  display:block;
  margin:0;
  padding:0;
}
.wpcf7 .ucc-privacy-title{
  font-size:16px;
  line-height:1.05;
  margin:0;
  padding:0;
  display:inline-block;
}

/* Links (small, inline) */
.wpcf7 .ucc-policy-links{
  margin-top:6px;
  margin-bottom:10px;
  font-size:16px !important;
  line-height:1.15 !important;
}
.wpcf7 .ucc-policy-links a{
  display:inline !important;
  color:#6c757d !important;
  text-decoration:underline !important;
  white-space:nowrap !important;
  font-size:16px !important;
  font-weight:400 !important;
}
.wpcf7 .ucc-sep{
  display:inline !important;
  margin:0 8px !important;
  color:#6c757d !important;
  font-size:16px !important;
  font-weight:400 !important;
}

/* Checkbox rows (avoid browser "Please fill out this field" weird focus spacing) */
.wpcf7 .ucc-consent-row{
  margin:10px 0;
}

/* Align checkbox and label text */
.wpcf7 .ucc-consent-row .wpcf7-list-item{
  margin:0 !important;
  display:flex !important;
  align-items:flex-start;
  gap:12px;
}
.wpcf7 .ucc-consent-row input[type="checkbox"]{
  margin-top:3px;
  accent-color:#495057 !important;
}
.wpcf7 .ucc-consent-row .wpcf7-list-item-label{
  display:inline !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#6c757d !important;
  font-size:16px !important;
  line-height:1.15 !important;
}


/* CF7: remove extra vertical gaps between label and input at CONTACT US PAGE */
body .wpcf7 form label,
body .wpcf7 form .form-label {
  display: block !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

/* Remove forced <br> spacing */
body .wpcf7 form label + br {
  display: none !important;
}

/* 2. Add spacing AFTER each field */
body .wpcf7 form p {
  margin: 0 0 18px 0 !important; /* gap after each field */
}

/* Ensure input has no top margin */
body .wpcf7 input.wpcf7-form-control,
body .wpcf7 textarea.wpcf7-form-control {
  margin-top: 0 !important;
}


/* Sidebar TOC style, remove underline and use border-bottom + hover effect for https://unitedceres.edu.sg/academic-courses*/
.sidebar ul.list-unstyled a,
.sticky-lg-top ul.list-unstyled a,
ul.list-unstyled.lead a {
  text-decoration: none !important;
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  color: inherit;
}

/* Hover behaviour */
.sidebar ul.list-unstyled a:hover,
.sticky-lg-top ul.list-unstyled a:hover,
ul.list-unstyled.lead a:hover {
  background: rgba(0,0,0,0.04);
  text-decoration: none !important;
}

/* Optional: active/current section */
.sidebar ul.list-unstyled a.active,
.sidebar ul.list-unstyled a[aria-current="page"] {
  font-weight: 600;
}
