/* Custom Stylesheet */
/**
 * Use this file to override Materialize files so you can update
 * the core Materialize files in the future
 *
 * Made By MaterializeCSS.com
 */

/*
@import url(https://fonts.googleapis.com/css?family=Quicksand);
@import url(https://fonts.googleapis.com/css?family=Quicksand:700);
*/



div,
p {
  cursor: default;
}

.clickable {
  cursor: pointer;
}

.card-image {
  float: left;
  width: 107px;
  padding: 2.5px;
}

.right-content {
  width: 60%;
  float: left;
}

.card.small {
  height: 100%;
  padding-left: 2px;
}

.card-content {
  padding: 1.5px;
}

.uppercase {
  text-transform: uppercase;
}

.quicksand {
  font-family: 'Quicksand', sans-serif;
}

.uplbtext {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  margin-bottom: 0px;
}

.osatext {
  font-family: 'Quicksand', sans-serif;
  font-size: 35px;
  margin-top: 0px;
  margin-left: 15px;
}

.banner-img {
  width: 105px;
  height: 105px;
}


.arrow-down {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-top: 65px solid #9d1518;
  z-index: 800;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f1f0f6 !important;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: 'Avenir', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f1f0f6 !important;
}


.main-logo {
  z-index: 850;
}

.triangle {
  display: none;
  position: relative;
  top: 0px;
  z-index: 850;
}

.logo {
  width: 50px;
  height: 50px;
}

#content {
  position: relative;
  float: left;
}


.appear {
  display: inline;
  top: 65px;
  left: 50%;
  margin-left: -70px;
  position: fixed;
  width: 100%;
  float: left;
}

.icon-block {
  padding: 0 15px;
}

.icon-block .material-icons {
  font-size: inherit;
}

nav {
  height: 65px;
  border-top: 1px solid white;
  background-color: #8D1436;
}

nav ul a:hover {
  background-color: #00563F;
}

#uplblogo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#banner {
  width: 100%;
  height: 125px;
  background-color: #8D1436;
  overflow: hidden;
  position: relative;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
@media (max-width: 768px) {
  .left {
    display: none !important;
  }
}

@media all and (min-width: 1000px) {

  .firstheader {
    display: flex;
    padding-right: 100px;
    position: absolute;
    top: 50%;
    -moz-transform: translate(-50%, -50%) -webkit-transform: translate(-50%, -50%) -ms-transform: translate(-50%, -50%) -o-transform: translate(-50%, -50%) transform: translate(-50%, -50%);
  }


  .secondheader {
    display: none;
  }

  .thirdheader {
    display: none;
  }


}


@media all and (max-width: 1100px) {

  .firstheader {
    display: none;

  }

  .secondheader {
    padding-right: 100px;
    display: flex;
  }

  .thirdheader {
    display: none;
  }

}

@media all and (max-width: 730px) {

  .firstheader {
    display: none;

  }

  .secondheader {
    display: none;
  }

  .thirdheader {
    padding-left: 11%;
    display: flex;
  }

}

.loginbtn {
  background-color: #00563F;
}

.loginbtn2 {
  background-color: #8D1436;
}

.loginbtn:hover {
  background-color: #1a5637;
}

.loginbtn2:hover {
  background-color: #9d1518;
}

.navbar-fixed {
  top: 0;
  z-index: 999;
  position: fixed;
  width: 100%;
}

.txtlogo {
  color: white;
}


.white-texts {
  font-size: 0.9em;
  color: #9e9e9e;
  line-height: 0.9;
}

.white-texts-p {
  line-height: 0.9;
  font-size: 0.9em;
  color: white;
  text-indent: 10px;
}

.upmail_signin {
  background-color: #8D1436;
  padding: 10px;
  border: none
}

.upmail_signin:hover {
  background-color: #520b0d;
}

footer.page-footer {
  padding-top: 20px;
  background-color: #8D1436;
}

footer.page-footer .footer-copyright {
  overflow: hidden;
  padding-top: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.8);
}

#footer-text {
  font-size: 0.9em;
}

nav ul li {
  background-color: #8D1436;
  transition: background-color .3s;
  float: left;
  padding: 0;
}

.dropdown-content li {
  /*text-align: center;*/
  vertical-align: middle;
}

.unclick {
  height: 60px;
  pointer-events: none;
  padding-top: 4%;
}

.right-triangle {
  float: right;
}

.dropdown-nested {
  overflow-y: visible;
}

.dropdown-content .dropdown-content {
  margin-left: 100%;
}

@media only screen and (max-width: 1250px) {
  .hide-on-med-and-down {
    display: none !important;  
  } 
}

@media only screen and (max-width: 1250px) {
  nav a.button-collapse {
    display: inline !important;
  }
}

.side-nav {
  position: fixed;
  width: 360px;
  left: 0;
  top: 0;
  margin: 0;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  height: 100%;
  height: calc(100% + 60px);
  height: -moz-calc(100%);
  padding-bottom: 60px;
  background-color: #8D1436;
  z-index: 998;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow-y: auto;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateX(-105%);
  transform: translateX(-105%);
}

.side-nav li {
  float: none;
  line-height: 64px;
  color: white;
}

.side-nav a:hover {
  background-color: #00563F;
}

.side-nav li:hover {
  background-color: #FFB61C;
}

.side-nav a {
  color: white;
  display: block;
  font-size: 1rem;
  height: 64px;
  line-height: 64px;
  padding: 0 30px;
}

.upmaroon {
  color: #8D1436;
}

.loginbtn:hover {
  background-color: #8D1436 !important;
}

.pagination li.active {
  background-color: #8D1436 !important;
}

blockquote {
  border-left: 5px solid #8D1436 !important;
}

a,
.collection a.collection-item {
  color: #8D1436;
}

.upmaroon-text {
  color: #8D1436 !important;
}

.collection-item.active {
  background-color: #8D1436 !important;
}

.upmaroon2 {
  background-color: #8D1436 !important;
}

.upmaroon2:hover {
  background-color: #8D1436 !important;
}

.upyellow2 {
  background-color: #ffb61c !important;
}

.upyellow2:hover {
  background-color: #ffb61c !important;
}

.btn {
  background-color: #8D1436;
}

.btn:hover {
  background-color: #8D1436;
}

.upgreen {
  color: #00563F;
}

.upgreen2 {
  background-color: #00563F;
}

.upgreen2:hover {
  background-color: #00563F;
}

.collapsible-drop {
  background-color: white;
  color: white;
  transition: background-color .3s;
}

.slider {
  position: relative;
  height: 500px;
  width: 100%;
  margin: 0 auto;  
}

.divider2 {
  height: 2px;
  overflow: hidden;
  background-color: #8D1436;
  width: 100%;
}

.divider3 {
  height: 2px;
  overflow: hidden;
  background-color: #8D1436;
  width: 650px;
}

.displayed {
  display: block;
  margin-left: auto;
  margin-right: auto
}

.modal {
  max-height: 100%;
}

/* label color */
.input-field label {
  color: #8D1436;
}

/* label focus color */
.input-field input[type=text]:focus+label {
  color: #8D1436;
}

/* label underline focus color */
.input-field input[type=text]:focus {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* valid color */
.input-field input[type=text].valid {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* invalid color */
.input-field input[type=text].invalid {
  border-bottom: 1px solid black;
  box-shadow: 0 1px 0 0 black;
  color: red;
}

/* password color */
.input-field label {
  color: #8D1436;
}

/* label focus color */
.input-field input[type=password]:focus+label {
  color: #8D1436;
}

/* label underline focus color */
.input-field input[type=password]:focus {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* valid color */
.input-field input[type=password].valid {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* invalid color */
.input-field input[type=password].invalid {
  border-bottom: 1px solid black;
  box-shadow: 0 1px 0 0 black;
  color: red;
}

button:focus {
  outline: none;
  background-color: #8D1436;
}

.indent1 {
  text-indent: 30px;
}

.bullet {
  list-style-position: inside;
  padding-left: 0;
}

.bullet li {
  list-style-type: circle;
}

.switch label input[type=checkbox]:checked+.lever {
  background-color: #8D1436;
}

.switch label input[type=checkbox]:checked+.lever:after {
  background-color: #8D1436;
  left: 24px;
}

.collapsible li.active i {
  background-color: #8D1436;
  color: white;
}

.collapsible li.active .collapsible-header {
  background-color: #8D1436;
  color: white;
}

.collapsible li.active .collapsible-header {
  background-color: #8D1436;
  color: white;
}

.spinner-layer {
  border-color: #8D1436;
}

#personalinfo {
  pointer-events: none;
}

nav .brand-logo.left {
  left: 2.5%;
  -webkit-transform: translateX(-3%);
  transform: translateX(-3%);
}

nav ul.left {
  padding-left: 7%;
}

nav ul.right {
  padding-right: 2%;
}

.dropdown-content {
  overflow: visible !important;
}

.sidedrop {
  background-color: #8D1436;
}

.slider .indicators .indicator-item {
  background-color: white;
  border: 3px solid #8D1436;
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.slider .indicators .indicator-item.active {
  background-color: #8D1436;
}


#goback {
  background-color: #8D1436;
}

.loadedimages {
  border: 1px solid #021a40;
}

.displaypicture {
  border: 1px solid #021a40;
}

/* label focus color */
.input-field textarea.materialize-textarea:focus+label {
  color: #8D1436;
}

/* label underline focus color */
.input-field textarea.materialize-textarea:focus {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* valid color */
.input-field textarea.materialize-textarea.valid {
  border-bottom: 1px solid #8D1436;
  box-shadow: 0 1px 0 0 #8D1436;
  color: #8D1436;
}

/* invalid color */
.input-field textarea.materialize-textarea.invalid {
  border-bottom: 1px solid black;
  box-shadow: 0 1px 0 0 black;
  color: red;
}

.listcontent {
  margin-left: 10px;
  margin-right: 10px;
}

.imglist div:first-child {
  margin-left: 0 !important;
}

.imglist div:last-child {
  margin-right: 0 !important;
}

.imglist {
  text-align: center
}

.imglist {
  text-align: center;
}

.listcontent {
  display: inline-block;
}

#submitformbutton {
  background-color: #8D1436;
}

#template-container {
  min-height: 50vh;
  /* margin-top: 20px; */
  overflow: auto;
}

#template-container-home {
  margin-top: 0px;
  padding-top: 0px !important;
  width: 100vw !important;

}

#mainbanner {
  position: relative;
  width: 100vw !important;
  margin-bottom: 0px;
}

@media screen and (min-width: 1250px) {
  #mainbanner {
    height: 500px;
  }
}

.container {
  max-width: 82vw !important;
  width: 82vw !important;
}

.qlabel {
  font-size: 12px !important;
}

.prenav {
  z-index: 99999 !important;
}

.footer-logo {
  height: 70px;
  width: auto;
}

.division-description {
  margin-top: 0px;
  margin-bottom: 10px;
  border-left: 2px solid #ee6e73;
  padding-left: 10px;
}

.vertical-align-middle {
  vertical-align: middle;
}

.padded-3 {
  padding-bottom: 1px;
  padding-left: 5px;
}

.inline-block {
  display: inline-block;
}

.info-list {
  font-size: 17px;
}

.info-list>.collection-item {
  height: 50px;
}

#loggedin {
  background-color: rgba(0, 0, 0, 0);
}

.material-tooltip {
  max-width: 33vw;
}

.fixedcb [type="checkbox"]+label,
.fixedcb [type="radio"]+label {
  pointer-events: auto;
}

.material-icons-align {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.sidekick {
  font-size: 0.8em;
  color: #888;
}

@font-face {
  font-family: 'Padayon';
  src: url('../fonts/Padayon.ttf') format('truetype');
  /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

.upheader {
  font-family: 'Padayon';
}

@font-face {
  font-family: 'Optima';
  src: url('../fonts/Optima.otf') format('opentype');
  /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

.header {
  font-family: 'Optima', sans-serif;
}

@font-face {
  font-family: 'Avenir-Black';
  src: url('../fonts/Avenir-Black.otf') format('opentype');
  /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

.title-header {
  font-family: 'Avenir-Black', sans-serif;
  color: #8a1538;
}

@font-face {
  font-family: 'Avenir-Roman';
  src: url('../fonts/Avenir-Roman.ttf') format('truetype');
  /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

@font-face {
  font-family: 'Optima-Medium';
  src: url('../fonts/Optima-Medium.otf') format('opentype');
  /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

.body-text {
  font-family: 'Optima','Optima-Medium', 'Helvetica','Arial', sans-serif;
}

/* ------------- */

.container-cal {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.container-bulletin {
  position: relative;
  overflow: hidden;
  width: 100%;
}


/* ------------- */

.resizeimg {
  height: auto;
  width: 90vh;
}

@media screen and (max-width: 360px) {
  .resizeimg {
    background-color: white;
    height: 180px;
    width: auto;
    flex: 0 1 100%;
  }

  .horizontalbox,
  .rowbox {
    display: flex;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 766px) {
  .resizeimg {
    background-color: white;
    height: 400px;
    width: 550px;
    flex: 0 1 100%;
  }

  .horizontalbox,
  .rowbox {
    display: flex;
    flex-wrap: wrap;
  }

  #mainbanner {
    height: 0px;
  }

  .story-title {
    font-size: 0.5em;
  }
}

@media screen and (max-width: 1065px) {
  .resizeimg {
    height: auto;
    width: 300px;
  }

  #mainbanner {
    height: 0px;
  }
}

.left_col {
  display: inline-block;
}

.right_col {
  display: inline-block;
}

.two_column {
  float: left;
  width: 100%;
}

/* dorm */

.dorm-option {
  background-color: #8D1436;
  border: none;
  color: white;
  font-size: 20px;
  height: 100px;
  width: 49.5%;
}

.dorm-option:hover {
  background-color: #520b0d;
}

details {
  background-color: #8D1436;
  padding: 4px;
  margin: 0;
  box-shadow: 1px 1px 2px #bbbbbb;
}

.summary-text:hover {
  background-color: #FFB61C;
}

.download-dtr {
  background-color: #8D1436;
  border: none;
  padding: 10px;
  color: white;
  font-size: .8em;
  margin-top: 30px;
  margin-bottom: 10px;
  box-shadow: 2px 2px #888888;
  border-radius: 5px;
}

.download-dtr:hover {
  background-color: #520b0d;
}


/* -------- OSG BROCHURES --------- */

.column {
  float: left;
  width: 25%;
  padding: 5px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}

.brochure-text{
  font-weight: bold;
}

.brochure-img:hover{
  -moz-box-shadow: 0 0 20px #7a7a7a;
  -webkit-box-shadow: 0 0 20px #7a7a7a;
  box-shadow: 0 0 20px #7a7a7a;
  cursor: pointer;
}

.tabs .tab a{
  color:#800000;
} /*Black color to the text*/

.tabs .tab a:hover {

  color:#800000;
} /*Text color on hover*/

.tabs .tab a.active {
  background-color:#800000;
  color:#eee;
} /*Background and text color when a tab is active*/

.tabs .indicator {
  background-color:#eee;
} /*Color of underline*/

/* Header */

.modern-header-bg {
  background: linear-gradient(90deg, #8A1538 0%, #8D1436 100%);
  padding: 15px 0 10px 0;
  font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.modern-header-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 0;
}
nav, .navbar-fixed {
  box-shadow: none !important;
  border: none !important;
}
nav .nav-wrapper {
  border-bottom: none !important;
  box-shadow: none !important;
  text-align: center;
}

.modern-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.modern-header-logo {
  width: 50%;
  height: 55%;
}
.modern-header-logo-mobile {
  display: none;
}
.modern-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.modern-header-univ {
  color: #fff;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.2;
}
.modern-header-office {
  color: #fff;
  font-size: 2.3em;
  font-weight: 500;
  line-height: 1.1;
}
.modern-header-divider {
  border-bottom: 1px solid #fff1f1;
  opacity: 0.5;
  margin: 24px 0 0 0;
}
.modern-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}


#profiletab {
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

#profiletab a.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
}

#profiletab img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.modern-nav-link {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.modern-nav-link:hover {
  color: #FFB61C !important;
}
.material-icons.tiny {
  font-size: 1em;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .modern-header-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .modern-header-logo {
    display: none;
  }
  .modern-header-logo-mobile {
    display: block;
    width: 48px;
    height: 48px;
  }
  .modern-header-office {
    font-size: 1.3em;
  }
  /* .dropdown-content {
    left: 0 !important;
    right: auto !important;
    min-width: 180px;
  } */
}
@media (max-width: 1250px) {
  .modern-header-nav {
      display: block; /* Removes the horizontal flex layout */
  } 
}
/* Service Wrapper */
  .service-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 340px;
    padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 6vw, 80px);
    overflow: hidden;
  }

  .service-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: translateX(-30px) scaleX(1.1);
    filter: brightness(0.5);
    pointer-events: none;
    z-index: 0;
  }

  .service-inner {
    position: relative;
    z-index: 1;
  }

  .service-heading {
    text-align: center;
    margin-bottom: clamp(16px, 3vw, 28px);

    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.6s ease forwards;
  }

  .service-heading h2 {
    font-size: clamp(1.6rem, 4vw, 2.0rem);
    font-weight: 700;
    color: #eee;
    line-height: 1.2;
  }

  .service-heading .underline {
    display: inline-block;
    width: clamp(40px, 6vw, 65px);
    height: 3px;
    background: #9d1518;
    border-radius: 2px;

    opacity: 0;
    transform: scaleX(0);
    animation: expandLine 0.5s ease 0.3s forwards;
  }

  .service-carousel {
    display: flex;
    gap: clamp(10px, 2vw, 18px);
    padding: 10px clamp(12px, 4vw, 40px) 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #9d1518 rgba(255,255,255,0.15);
    justify-content: safe center;
  }

  .service-carousel::-webkit-scrollbar { height: 5px; }
  .service-carousel::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
  .service-carousel::-webkit-scrollbar-thumb { background: #9d1518; border-radius: 4px; }

  /* Service Cards */
  .service-item {
    flex: 0 0 auto;
    width: clamp(180px, 28vw, 250px);
    height: clamp(120px, 20vw, 165px);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    cursor: pointer;

    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition:
      transform 0.28s cubic-bezier(.22,.68,0,1.2),
      box-shadow 0.28s ease,
      border-color 0.28s ease;
  }

  .service-item:nth-child(1) { animation: cardIn 0.55s ease 0.15s forwards; }
  .service-item:nth-child(2) { animation: cardIn 0.55s ease 0.25s forwards; }
  .service-item:nth-child(3) { animation: cardIn 0.55s ease 0.35s forwards; }
  .service-item:nth-child(4) { animation: cardIn 0.55s ease 0.45s forwards; }
  .service-item:nth-child(5) { animation: cardIn 0.55s ease 0.55s forwards; }
  .service-item:nth-child(6) { animation: cardIn 0.55s ease 0.65s forwards; }

  .service-item:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 2px rgba(157,21,24,0.4);
    border-color: rgba(157,21,24,0.5);
  }

  .service-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 3;
    pointer-events: none;
  }
  .service-item:hover::after { opacity: 1; }

  .service-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8A1538 0%, #c0253d 100%);
    border-radius: 50%;
    width: clamp(80px, 14vw, 140px);
    height: clamp(80px, 14vw, 140px);
    position: absolute;
    left: clamp(-30px, -3vw, -35px);
    bottom: clamp(-35px, -3vw, -35px);
    z-index: 1;
    box-shadow:
      0 4px 20px rgba(138,21,56,0.5),
      inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.2), box-shadow 0.28s ease;
  }

  .service-item:hover .service-icon-circle {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 28px rgba(138,21,56,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
  }

  .service-icon {
    font-size: clamp(45px, 8vw, 67px) !important;
    color: #fff;
    transition: transform 0.28s ease;
  }

  .service-item:hover .service-icon-circle .service-icon {
    transform: scale(1.1);
  }

  .service-badge {
    position: absolute;
    top: clamp(10px, 2vw, 18px);
    left: clamp(10px, 2vw, 18px);
    color: #333;
    font-size: clamp(14px, 1.7vw, 16px);
    font-weight: 550;
    line-height: 1.3;
    z-index: 2;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    max-width: calc(100% - 24px);
    letter-spacing: 0.3px;
  }

  .new-badge {
    position: absolute;
    top: clamp(8px, 1.5vw, 16px);
    right: clamp(8px, 1.5vw, 16px);
    background: linear-gradient(90deg, #8A1538 0%, #c0253d 100%);
    color: #fff;
    font-size: clamp(9px, 1.2vw, 12px);
    font-weight: 700;
    padding: clamp(2px, 0.4vw, 4px) clamp(7px, 1.2vw, 12px);
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(138,21,56,0.4);
    animation: pulse 2s ease 1.2s infinite;
  }

  .service-view-btn {
    position: absolute;
    right: clamp(8px, 1.5vw, 14px);
    bottom: clamp(8px, 1.5vw, 14px);
    color: #333;
    font-size: clamp(18px, 3vw, 26px) !important;
    z-index: 2;
    transition: color 0.2s, transform 0.28s cubic-bezier(.22,.68,0,1.2);
  }

  .service-item:hover .service-view-btn {
    color: #333;
    transform: translateX(4px);
  }

  @keyframes fadeDown {
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes expandLine {
    to { opacity: 1; transform: scaleX(1); }
  }

  @keyframes cardIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(138,21,56,0.4); }
    50% { box-shadow: 0 2px 18px rgba(138,21,56,0.75); }
  }

  @media (max-width: 1720px) {
      .service-carousel {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 8px 60px 16px;
        gap: 10px;
      }

      .service-item {
        width: 100%;
        height: clamp(100px, 28vw, 130px);
        scroll-snap-align: none;
      }

      .service-icon-circle {
        width: clamp(70px, 20vw, 95px);
        height: clamp(70px, 20vw, 95px);
        left: clamp(-18px, -4vw, -22px);
        bottom: clamp(-18px, -4vw, -22px);
      }

      .service-icon {
        font-size: clamp(26px, 7vw, 38px) !important;
      }

      .service-badge {
        font-size: clamp(9px, 2.4vw, 15px);
        top: 15px;
        left: 15px;
        max-width: calc(100% - 16px);
      }

      .service-view-btn {
        font-size: clamp(14px, 4vw, 25px) !important;
        right: 15px;
        bottom: 15px;
      }

      .new-badge {
        font-size: 12px;
        padding: 2px 6px;
        top: 15px;
        right: 15px;
      }
    }

  @media (max-width: 600px) {
      .service-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 8px 30px 16px;
        gap: 10px;
      }

      .service-item {
        width: 100%;
        height: clamp(100px, 28vw, 130px);
        scroll-snap-align: none;
      }

      .service-icon-circle {
        width: clamp(70px, 20vw, 95px);
        height: clamp(70px, 20vw, 95px);
        left: clamp(-18px, -4vw, -22px);
        bottom: clamp(-18px, -4vw, -22px);
      }

      .service-icon {
        font-size: clamp(26px, 7vw, 38px) !important;
      }

      .service-badge {
        font-size: clamp(9px, 2.4vw, 18px);
        top: 15px;
        left: 15px;
        max-width: calc(100% - 16px);
      }

      .service-view-btn {
        font-size: clamp(14px, 4vw, 36px) !important;
        right: 15px;
        bottom: 15px;
      }

      .new-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 30px;
        left: 10px;
      }
    }

  @media (prefers-reduced-motion: reduce) {
    .service-heading,
    .service-heading .underline,
    .service-item { animation: none; opacity: 1; transform: none; }
    .service-item, .service-icon-circle, .service-view-btn { transition: none; }
  }

/* Homepage */

  .featured-card:hover,
  .small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18) !important;
  }
  
  .featured-card:hover img,
  .small-card:hover img {
    transform: scale(1.05);
  }
  
  .story-title:hover {
    color: #6b0d0f !important;
  }

  .carousel.carousel-slider {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }

  .main.container.section {
    min-height: 500px;
  }

  .news-rotator {
    min-height: 300px;
  }

  @media only screen and (max-width: 992px) {
    .main.container.section {
      padding: 0 20px !important;
    }
    .small-card {
      flex-direction: column !important;
    }
    .small-card .responsive-img-container {
      width: 100% !important;
      max-width: 100% !important;
      height: 200px !important;
    }
  }

#dynamicModal.modal {
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background: rgba(0,0,0,0.4);
}

#dynamicModal.modal {
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background: rgba(0,0,0,0.4);
}

#dynamicModal .modal-content {
  background: #fff; 
  margin: 5% auto; 
  padding: 32px 24px 24px 24px;
  border-radius: 16px; 
  width: 95%; 
  max-width: 500px; 
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  box-sizing: border-box;  /* ADD THIS */
}

#dynamicModal .button-grid {
  width: 100%;
}

#dynamicModal .button-grid button {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 480px) {
  #dynamicModal .modal-content {
    width: 88%;
    max-width: 88%;
    margin: 5% auto;
    padding: 24px 14px;
    box-sizing: border-box;
  }

  .modern-btn {
    font-size: 0.95rem;
    padding: 12px 0;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #dynamicModal .modal-content {
    margin: 10% auto;
    width: 90%;
  }
}

#dynamicModal .button-grid {
  width: 100%;
}

#dynamicModal .button-grid button {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.close {
  position: absolute; right: 24px; top: 16px; font-size: 32px; cursor: pointer;
  color: #800000;
}
.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.modern-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(128,0,0,0.06);
  cursor: pointer;
}
.modern-btn:hover {
  background: #a83232;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(128,0,0,0.13);
}

#mainbanner {
  max-width: 1200px;
  margin: 15px auto 25px auto;
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  height: auto;
  overflow: visible;
}
#mainbanner .swiper-slide {
  border-radius: 24px;
  overflow: visible;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mainbanner .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 8px 32px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s;
  background: #fff;
}

#mainbanner .swiper-pagination-bullet {
  margin-bottom: -20px;
  background: #9c9c9c;
}
#mainbanner .swiper-pagination-bullet-active {
  margin-bottom: -20px;
  background: #363636;
}

#mainbanner .swiper-slide:not(.swiper-slide-active) {
  filter: blur(6px) brightness(0.9);
  opacity: 0.7;
  transform: scale(0.92);
}
#mainbanner .swiper-slide-active {
  filter: none;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

#mainbanner .swiper-slide-active {
  transform: scale(1.1);
}
#mainbanner .swiper-slide {
  transform: scale(0.9);
}

/* Footer */

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
}
.footer-nav-link {
  color: #d1d1d1 !important;
  margin: 0 12px;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-link:hover { color: #8a1538 !important; }

.footer-policy-link {
  color: #d1d1d1 !important;
  margin: 0 8px;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-policy-link:hover { color: #8a1538 !important; }

.footer-social-icon {
  display: inline-block;
  color: #fff;
  transition: color 0.2s;
  vertical-align: middle;
}
.footer-social-icon:hover {
  color: #ffd600;
}
.footer-social-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.footer-contact-col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-contact-box {
  padding: 28px 32px 24px 32px;
  width: 90%;
  max-width: 700px;
  margin-right: 0;
  margin-left: auto;
  text-align: left;
  transition: box-shadow 0.2s;
}

.footer-contact-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-icon {
  vertical-align: middle;
  font-size: 22px !important;
  margin: 0 8px 0 8px;
  color: #ffd600;
}

.footer-link-item {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-link-item:last-child {
  border-bottom: none;
}

@media (max-width: 992px) {
  .footer-contact-col {
    justify-content: center;
  }
  .footer-contact-box {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 20px 10px;
  }
}

@media (max-width: 600px) {
  .footer-contact-box {
    padding: 16px 4vw;
    border-radius: 10px;
    font-size: 0.98rem;
  }
  .footer-contact-title {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.sdg-section {
  margin: 0 0 0 0;
  padding: 20px 0;
  text-align: left;
}
.sdg-banner-img {
  width: 100%;
  max-width: 450px;
  margin-bottom: 18px;
  display: block;
  border-radius: 10px;
}

.sdg-icons-grid {
  display: flex;
  flex-wrap: wrap; /* Allows icons to move to the next line on small screens */
  
  /* Horizontal and Vertical spacing */
  gap: 10px 12px;
  
  /* Layout constraints */
  width: 100%;
  max-width: 450px; 
  
  /* Padding: 0 on top/bottom, 20px on right (as requested), 0 on left */
  /* Or use '0 20px' if you want it balanced on both sides */
  padding-right: 20px;
  
  margin: 0;
  box-sizing: border-box; /* Ensures the 20px padding doesn't push the box off-screen */
}

.sdg-icons-grid a {
  /* This ensures exactly 6 items per row on desktop (approx 16.6%) */
  /* We subtract the gap value to keep them perfectly aligned */
  flex: 0 1 calc(16.66% - 12px); 
  min-width: 45px; /* Prevents them from getting too tiny */
}

.sdg-icon-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Tablet/Mobile adjustment: switch to 4 icons per row when screen gets tight */
@media (max-width: 400px) {
  .sdg-icons-grid a {
    flex: 0 1 calc(25% - 12px); 
  }
}

.sdg-icon-img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Animation for news cards */
.news-featured-item, .news-side-item {
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
  top: 0;
  left: 0;
}

.news-featured-item.active, .news-side-item.active {
  opacity: 1;
  pointer-events: auto;
  position: static;
  z-index: 2;
}

.news-featured-item .responsive-img-container,
.news-side-item .responsive-img-container {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.news-featured-item.active .responsive-img-container,
.news-side-item.active .responsive-img-container {
  opacity: 1;
  transform: translateX(0);
}

.news-featured-item .card-content,
.news-side-item .card-content,
.news-side-item > div:not(.responsive-img-container) {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.news-featured-item.active .card-content,
.news-side-item.active .card-content,
.news-side-item.active > div:not(.responsive-img-container) {
  opacity: 1;
  transform: translateX(0);
}

.news-rotator .col {
  position: relative;
  min-height: 400px;
}

.news-featured-item.active,
.news-side-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Role Selection Page */
.role-selection-container {
    margin-top: 80px;
    margin-bottom: 50px;
    min-height: 500px;
}

.role-selection-title {
    color: #7B1113;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-family: 'Quicksand', sans-serif;
}

.role-selection-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.role-selection-card {
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.role-selection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(123, 17, 19, 0.15);
}

.role-selection-card .material-icons {
    font-size: 80px;
    color: #7B1113;
    margin-bottom: 20px;
}

.role-selection-card h5 {
    color: #7B1113;
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Quicksand', sans-serif;
}

.role-selection-card p {
    color: #999;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 0;
}

.role-selection-card a {
    color: inherit;
    text-decoration: none;
}

a:hover .role-selection-card {
    text-decoration: none;
}

#prenav-login-btn {
  display: none;
}

@media (max-width: 900px) {
  #prenav-login-btn {
    display: block;
    position: absolute;
    right: 16px;
    top: 0px;
  }
  #prenav-login-btn .loginbtn {
    padding: 8px 18px;
    font-size: 1em;
    border-radius: 8px;
    background: #00563F;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
}
 