@import url('//fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/************ TEMPLATE  ************
Rotator Size: 1000x563 (wide, 16:9)

/************ FONTS  ************
Serif: Cinzel
Sans Serif: Lato

/************ COLORS  ************
Blue: #1a3b66; rgba(26,59,102,1)
Teal: #8ec3af; rgba(142,195,175,1)
Grey: c; rgba(213,213,213,1)
Light Grey: #f2f2f2; rgba(242,242,242,1)

/************ NOTES ************
*Anywhere that you see 'white' is actually the light grey, so use that where you see white: background color, quilink lines/text, menu text, footer text/icons, etc.
*Grey is only used on the rotator text background, 75% opacity: rgba(213,213,213,.75)
*Quicklinks overlay is blue at 70% opacity: rgba(26,59,102,.7)
*I placed a 20% black, 10px blur drop shadow on the news images, ads, and calendar
*Teal is only used as an accent here: title underlines, news article lines, pagination/arrows for news
**************************************/

.site-1 {
	--primary-color: #1a3b66;
}

body {color: #333; font-family: 'Lato', sans-serif;}

h1, h2, h3, h4, h5, h6 {margin: .75rem 0; line-height: 1.3; font-weight: normal;}
p {line-height: 1.3;}
.page-header h1 {text-transform: none; font-size: 3rem;}
h1 {color: #1a3b66; font-size: 3.5rem; font-weight: bold; font-family: 'Cinzel', serif;}
h2, .page-header h2 {font-variant-caps: small-caps; color: #1a3b66; font-size: 2.5rem; font-family: 'Cinzel', serif; font-weight: normal;}
h3 {color: #1a3b66; font-size: 2rem; border-bottom: 1px solid #8ec3af; line-height: 1.3; margin: 0 0 10px 0; font-family: 'Cinzel', serif}
h3.lato {font-family: 'Lato', sans-serif;}
h4 {color: #8ec3af; font-size: 2rem; font-family: 'Cinzel', serif;}
h4.lato {font-family: 'Lato', sans-serif;}
h5 {background: #1a3b66; font-size: 1.75rem; color: white; border-radius: .2rem; padding: .5rem;}
h6 {color: #1a3b66; font-size: 1.5rem; text-transform: uppercase; font-weight: bold;}
a {color: #0000ff;}
a:hover {color: black;}

#g-mainbar a:not(.button, .readon, .btn, p.readmore .btn, .k-ui-namespace .koowa_header__item ) {text-decoration: underline;}
.k-ui-namespace a  {
	text-decoration: none !important;
	color: #1a3b66;
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
    h1 {font-size: 2.2rem;}
    h2 {font-size: 1.95rem;}
    h3 {font-size: 1.75rem;}
    h4 {font-size: 1.75rem;}
    h5 {font-size: 1.5rem;}
    h6 {font-size: 1.5rem;}
    p {font-size: 1.05rem; margin-bottom: 4px;}
    h1, h2, h3 {line-height: 1.2;}
    h4, h5, h6, p {line-height: 1.1;}
}

@media only screen and (max-width: 767px) {
    h1 {font-size: 2.2rem;}
    h2 {font-size: 1.95rem;}
    h3 {font-size: 1.75rem;}
    h4 {font-size: 1.75rem;}
    h5 {font-size: 1.5rem;}
    h6 {font-size: 1.5rem;}
    p {font-size: 1rem; margin-bottom: 4px;}
    h1, h2, h3 {line-height: 1.2;}
    h4, h5, h6, p {line-height: 1.1;}
}

.readon, .button, .btn, p.readmore .btn, .sprocket-lists-portrait-container > li .sprocket-lists-portrait-item > a span, .listentobutton.moduletable a {
    background: #1a3b66;
}
.sprocket-lists-portrait-container > li .sprocket-lists-portrait-item > a span {background: transparent; color: #1a3b66; padding: 0; font-family: 'Cinzel', serif; }
.sprocket-lists-portrait-container > li .sprocket-lists-portrait-item > a span:hover {background: transparent; color: black; padding: 0;}

a.transparentbutton { 
  color: var(--primary-color); 
  font-size: 1rem;
  text-transform: none;
  font-weight: normal;
  background: transparent; 
  padding: .7rem 1.3rem; 
  border-radius: .5rem; 
  margin: 0;
  display: inline-block;
  font-weight: 500;
  line-height: 1.125rem;
  border: 2px solid var(--primary-color);
  transition: all .2s ease-in;
}
.transparentbutton:hover {background: var(--primary-color); color: white; border: 2px solid var(--primary-color);}


/*************** HOMELAYOUT ***************/
/*************** OFFCANVAS ****************/
/*************** TOP **********************/
/*.g-logo img {margin-bottom: -65px;}*/
.g-social {display: flex; justify-content: center;}
.g-social a {margin-right: 7px;}
.g-social a:hover {color: #bababa;}

@media only screen and (max-width: 767px) {
    .g-logo img {margin: 0 0 0 1rem; width: 85%;}
}

/*************** NAVIGATION ***************/
/*************** SLIDESHOW ****************/
/*************** HEADER *******************/
/*************** ABOVE ********************/
/*************** SHOWCASE *****************/
        /*Rotator Mass Times*/
.fwshowcase :is(h1,h2,h3,h4,h5,h6,a) {
    color: #1a3b66!important; margin-bottom: 0.25rem;
}
.fwshowcase :is(h1,h2,h3,h4,h5,h6) { font-size: 2.5vw !important;}

.fwshowcase p {
    color: #333!important;
}

.homelayout .fwshowcase .sprocket-features-content {
    background: url('/images/stories/template/bg-rotator.jpg') 0% 0% no-repeat;
    background-size: cover;
}
.youthlayout .fwshowcase .sprocket-features-content {
    background: url('/images/stories/template/bg-youthrotator.jpg') 0% 0% no-repeat;
    background-size: cover;
}

.fwshowcase .sprocket-features-desc {
	background: rgba(213,213,213,.75); padding: 3vw;
}

@media only screen and (min-width: 767px) {
    .fwshowcase .layout-showcase .sprocket-features-arrows .arrow > span {
        font-size: 6vw;
        font-weight: 900;
    }
    .layout-showcase .sprocket-features-pagination li {
        border: 2px solid #ffffff;
    }
}

@media only screen and (max-width: 767px){
	.fwshowcase .layout-showcase .sprocket-features-img-container img {height: 50vw;}
}
/*************youth ministry rotator*******************/
.itemid-193 .fwshowcase .layout-showcase .sprocket-features-img-container img {height: 35vw; }
.itemid-193 .fwshowcase .sprocket-features-content {height: 35vw;}



/*************** UTILITY ******************/
        /*Quicklinks*/
.qloverlaybackpic .sprocket-strips-content {background: rgba(26,59,102,.7);}
.qloverlaybackpic .sprocket-strips-content:hover {background: rgba(26,59,102,.9);}
.qloverlaybackpic h4.sprocket-strips-title a {color: #f2f2f2;}
.qlexpandingborder h4.sprocket-strips-title {border-color: #f2f2f2;}

@media only screen and (max-width: 767px) {
	.qloverlaybackpic .sprocket-strips-content, .qloverlaybackpic .sprocket-strips-content:hover {background: none;}
	.qloverlaybackpic li {background: rgba(26,59,102,1);}
    .qloverlaybackpic li:hover {background: #8ec3af;}
}

/*************** FEATURE ******************/
/*************** EXPANDED *****************/
.homelayout #g-expanded {background: url('/images/stories/template/bg-chapel.jpg') 100% 100% no-repeat; background-size: cover; padding: 2rem 5%!important;}

        /*Recent News*/
.zoompics .active .portrait-image img, .zoompics.noncollapse .portrait-image img {width: 18vw; height: 10.134vw; margin: 0 1rem 1rem 0;}
.zoompics .sprocket-lists-portrait-container li {border-color: #8ec3af; padding: 15px 0;}
.zoompics .sprocket-lists-portrait-pagination li {background: #8ec3af;}
#g-expanded p {margin: 0 0 0.75rem 0;}

.link-line {
    text-decoration: underline;
    font-size: 1.25vw;
}

@media only screen and (min-width: 767px) {
    .news-title-links {
        display: flex;
        flex-direction: row;
        gap: 2vw;
        justify-content: flex-start;
        align-items: center;
    }
    .news-title-links {
        border-bottom: 1px solid #1a3b66;
    }
    .news-title-links .g-title {
        border-bottom: none;
    }

    .homelayout #g-expanded > .g-grid:nth-child(1) > .g-block:nth-child(1) .platform-content {
        margin: 0;
        padding: 0;
    }
}

@media only screen and (max-width: 767px) {
    .news-title-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .news-title-links {
        border-bottom: 1px solid #1a3b66;
    }
    .news-title-links .g-title {
        border-bottom: none;
    }

    .homelayout #g-expanded > .g-grid:nth-child(1) > .g-block:nth-child(1) .platform-content {
        margin: 0;
        padding: 0;
    }
    .link-line {
        font-size: 5vw;
        text-align: left;
    }

    .homelayout #g-expanded > .g-grid > .g-block > .g-content {
        margin: 0;
        padding: 0;
    }

    .homelayout .zoompics .portrait-image {
        margin: 0;
        padding: 0;
        padding-bottom: 1rem;
    }
    .homelayout .zoompics .portrait-image img {
        margin: 0;
        padding: 0;
        width: 100%!important;
        height: unset!important;
        aspect-ratio: 16/9;
    }

    .page-header h2 {
        font-size: 7vw;
    }
}

@media only screen and (max-width: 767px) {
    .homelayout #g-expanded {background: #f2f2f2;}
    .zoompics .active .portrait-image img, .zoompics.noncollapse .portrait-image img {height: unset !important; width: 100%;}
}

#g-expanded .g-grid:first-child .g-content {padding: 1.5rem 2.5rem; margin: 0.5rem; }
#g-expanded .g-grid:last-child .g-content {padding: 0.5rem 0; margin: 0.5rem 0; }
#g-expanded {padding: 0 5% !important;}

/*************** EXTENSION ****************/
/*************** BOTTOM *******************/
#g-bottom {padding-top: 2vw!important; padding-bottom: 2vw!important;}

/*************** FOOTER *******************/
/*************** COPYRIGHT ****************/

/*************** MODULES ******************/
.moduletable .nav.menu, .moduletable .unstyled {background: #1a3b66;}
.moduletable .nav.menu li.current.active a, .moduletable .nav.menu li a:hover {
    color: #1a3b66;
    background: #8ec3af;
}
#g-aside  .moduletable .category-module li {margin-bottom:0.25rem; padding-bottom: 0.25rem; border: 0px solid #fff; list-style-type: disc;}
#g-aside  .moduletable .category-module  {border: 0px solid #fff; padding: 0.5rem;}

/*************** SECTIONS *****************/
#g-footer a {color: #ffffff;}

/*************** MOBILE *******************/
.g-offcanvas-toggle {color: #1a3b66;}

/*************** ADS **********************/


/*************make news images smaller*****************/
.newslayout .pull-right.item-image img { max-width: 25vw;}
.newslayout .pull-left.item-image img { max-width: 25vw;}
@media only screen and (max-width: 767px) {
	.newslayout .pull-left.item-image img { width: 100%;}
	.newslayout .pull-right.item-image img { width: 100%;}
} 

/*************** MINISTRY PAGES ***********/
.ministrypage.img-title .blogministrypage .row-fluid {border-bottom: none; margin-bottom: 30px;}
.ministrypage.img-title #g-container-main .blogministrypage img {height: 15vw; width: 100%; object-position: center; object-fit: cover;}
.ministrypage.img-title .items-row .item {position: relative; height: 13vw; overflow: hidden;}
.ministrypage.img-title .items-row .item .page-header {
    z-index: 10; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    top: 0; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    width: 100%; 
    height: auto; 
    text-align: center;
    margin: 0;
}
.ministrypage.img-title .items-row .item .page-header h2 {
    border-bottom: none;
    height: 100%;
    width: 100%;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,.8);
}
.ministrypage.img-title .items-row .item .page-header h2 a {
    color: #ffffff;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all .4s;
    background: rgba(0,0,0,.2);
}
.ministrypage.img-title .items-row .item .page-header h2 a:hover {background: rgba(0,0,0,.6);}
/*.ministrypage.img-title .items-row .item .page-header h2 a:hover ~ .item-image {margin-top: -10px; transform: translate(-10px);}*/

.ministrypage.img-title .items-row .item > div {position: absolute;}
.ministrypage.img-title .items-row .item > p.readmore {display: none;} 

@media only screen and (max-width: 767px) {
    .ministrypage.img-title .blogministrypage .row-fluid {margin-bottom: 0px;}
    .ministrypage.img-title .items-row .item {margin-bottom: 10px;}
    .ministrypage.img-title .items-row .item .page-header h2 {font-size: 1.3rem;}
    .ministrypage.img-title .items-row .item .page-header h2 a {background: rgba(0,0,0,.4);}
	.ministrypage.img-title #g-container-main .blogministrypage img {height: 13vw; width: 100%; object-position: center; object-fit: cover;}

}

@media only screen and (min-width: 767px) {
    .grid-business-card {
        margin: 0;
        padding: 0;
    }
    .grid-business-card > div {
        margin: 0;
        padding: 0;
    }
    .grid-business-card .g-content-array {
        margin: 0;
        padding: 0;
    }
}

.adult-ministry .page-header h1 {
    display: none;
}

/*  */

/* --- Desktop & Global Styles --- */

/* Add backdrop blur and make content scrollable if it exceeds container height */
.fwshowcase .sprocket-features-desc {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(26, 59, 102, 0.5) transparent;
}

/* --- Mobile Styles (Breakpoint: 50.99rem) --- */

@media (max-width: 50.99rem) {
  /* Force the container to stack vertically */
  .fwshowcase .sprocket-features-container {
    display: flex;
    flex-direction: column;
    height: auto !important;
  }

  /* Make image and content containers full width */
  .fwshowcase .sprocket-features-img-container,
  .fwshowcase .sprocket-features-content {
    width: 100% !important;
    inline-size: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* Ensure the image fits naturally */
  .fwshowcase .sprocket-features-img-container img {
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }

  /* Reset the text description to flow naturally (not absolute) */
  .fwshowcase .sprocket-features-desc {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible;
    padding: 2rem !important; 
  }

  /* INCREASED FONT SIZE FOR HEADINGS ON MOBILE */
  .fwshowcase .sprocket-features-desc h4 {
    font-size: 1.4rem !important; 
    line-height: 1.3 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Override the slideshow height calculations */
  .fwshowcase .sprocket-features-list {
    height: auto !important;
  }

  /* Make the active slide relative so it pushes content down */
  .fwshowcase .sprocket-features-list li.active {
    position: relative !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide inactive slides */
  .fwshowcase .sprocket-features-list li:not(.active) {
    display: none !important;
  }

  .fwshowcase .sprocket-features-img-container {
    padding-bottom: 0 !important;
  }

  .fwshowcase .sprocket-features-content {
    top: 0 !important;
  }

  .fwshowcase .sprocket-features-img-container img {
    aspect-ratio: 16/9;
  }
}

/*  */

/* Container adjustments 
  Overrides rigid positioning and sets the new height
*/
.j-vertical-calendar div[id^="cwwrapper"],
.j-vertical-calendar div[id^="cwucelist"] {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 850px !important; /* Approx 600px taller than standard inline frames */
  border: none !important;
  background-color: transparent !important;
  overflow-x: hidden !important;
  box-shadow: none !important;
}

/* Table Reset 
  Forces table to fill container and behave responsively
*/
.j-vertical-calendar table[id^="cwucetable"] {
  width: 100% !important;
  height: auto !important;
  display: table !important;
  border-collapse: separate !important; /* Allows border radius on rows */
  border-spacing: 0 10px !important; /* Spacing between event cards */
  margin-top: 10px;
  padding: 0 15px;
}

.j-vertical-calendar tbody {
  display: table-row-group !important;
}

/* Row Styling - Card Look 
*/
.j-vertical-calendar tr {
  display: table-row !important;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.j-vertical-calendar tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(26, 59, 102, 0.15);
}

/* Cell Styling 
*/
.j-vertical-calendar td.cwuceeventtitle {
  display: block !important;
  padding: 20px 25px !important;
  border: 1px solid #eee;
  border-radius: 8px;
}

/* Date / Link Styling 
  Styles the date as a modern badge/header
*/
.j-vertical-calendar a.uce_event_title {
  display: inline-block !important;
  color: #1a3b66 !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  border-bottom: 2px solid transparent;
  padding: 0 !important;
}

.j-vertical-calendar a.uce_event_title:hover {
  border-bottom-color: #1a3b66;
}

/* Event Description Styling 
*/
.j-vertical-calendar div[id^="eb"] {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  color: #555 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  border: none !important;
}

/* Scrollbar Styling (Webkit) 
*/
.j-vertical-calendar div[id^="cwucelist"]::-webkit-scrollbar {
  width: 8px;
}

.j-vertical-calendar div[id^="cwucelist"]::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.j-vertical-calendar div[id^="cwucelist"]::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.j-vertical-calendar div[id^="cwucelist"]::-webkit-scrollbar-thumb:hover {
  background: #1a3b66;
}

/* Mobile Breakpoint 
*/
@media (max-width: 50.99rem) {
  .j-vertical-calendar div[id^="cwucelist"] {
    height: 600px !important; /* Slightly shorter on mobile screens */
  }

  .j-vertical-calendar td.cwuceeventtitle {
    padding: 15px !important;
  }
  
  .j-vertical-calendar a.uce_event_title {
    font-size: 1rem !important;
  }
}

/*  */

/* --- Previous Grid Layout Styles (Keep these) --- */
.j-latest-news .sprocket-lists-portrait-container {
  padding: 0;
  margin: 0;
  list-style: none;
}

.j-latest-news .sprocket-lists-portrait-container li {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: min-content 1fr;
  gap: 0 20px;
  width: 100%;
  height: auto !important;
  padding: 30px 0;
  border-bottom: 1px solid #1a3b66;
  box-sizing: border-box;
}

.j-latest-news .portrait-image {
  grid-column: 1;
  grid-row: 1 / span 2;
  float: none;
  width: 100%;
  height: auto;
  margin: 0;
}

.j-latest-news .sprocket-lists-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.j-latest-news .sprocket-lists-portrait-title {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  margin: 0 0 10px 0;
  display: block;
}

.j-latest-news .sprocket-lists-portrait-title a {
  color: #1a3b66;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.j-latest-news .sprocket-lists-portrait-title a:hover {
  color: #555;
}

.j-latest-news .sprocket-lists-portrait-item {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: auto;
}

.j-latest-news .portrait-text {
  height: auto;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

/* --- UPDATED BUTTON STYLES --- */
.j-latest-news .sprocket-lists-portrait-item > a {
  display: inline-block; /* Prevents full-width stretching */
  width: fit-content;    /* Ensures it only wraps the text */
  height: auto !important; /* Overrides fixed height from base CSS */
  margin-top: 10px;
  padding: 10px 25px;
  background-color: #1a3b66;
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px; /* Rounded pill shape */
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  line-height: 1;
  transition: all 0.3s ease;
}

.j-latest-news .sprocket-lists-portrait-item > a span {
    color: white !important;
}

/* Inject 'Read More' text if missing */
/* .j-latest-news .sprocket-lists-portrait-item > a span::after {
  content: "Read More";
} */

.j-latest-news .sprocket-lists-portrait-item > a:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Pagination & Arrows (Keep these) */
.j-latest-news .sprocket-lists-portrait-pagination li {
  background-color: #ccc;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.j-latest-news .sprocket-lists-portrait-pagination li.active {
  background-color: #1a3b66;
}

.j-latest-news .sprocket-lists-portrait-arrows span.arrow {
  background-color: #1a3b66;
  color: #fff;
  opacity: 0.8;
  /* border-radius: 50%; */
  transition: opacity 0.3s ease;
}

.j-latest-news .sprocket-lists-portrait-arrows span.arrow:hover {
  opacity: 1;
}

/* --- Mobile Styles --- */
@media (max-width: 50.99rem) {
  .j-latest-news .sprocket-lists-portrait-container li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
    padding: 40px 0;
    text-align: center;
  }

  .j-latest-news .portrait-image {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .j-latest-news .sprocket-lists-portrait-title {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
  }

  .j-latest-news .sprocket-lists-portrait-item {
    grid-column: 1;
    grid-row: 3;
  }
}

/*  */

/* Container - Flex Row for Desktop */
.news-title-links {
  display: flex;
  flex-direction: row; /* Overrides base column direction */
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  border-bottom: 2px solid #1a3b66; /* Solid dark blue border */
  padding-bottom: 15px;
  margin-bottom: 30px;
}

/* Title Styling */
.news-title-links .g-title {
  color: #1a3b66;
  margin: 0;
  margin-right: auto; /* Pushes buttons to the right on desktop */
  width: auto;
  height: auto;
  line-height: 1.2;
}

/* Link/Button Styling (Updated: No Border Radius) */
.news-title-links .link-line {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto !important; /* Override fixed width */
  height: auto !important; /* Override fixed height */
  padding: 10px 25px;
  background-color: #1a3b66;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 0; /* Square edges */
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

/* Hover Effects */
.news-title-links .link-line:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mobile Layout */
@media (max-width: 50.99rem) {
  .news-title-links {
    flex-direction: column; /* Stack vertically */
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .news-title-links .g-title {
    margin-right: 0; /* Remove right margin to center */
    margin-bottom: 5px;
    width: 100%;
  }

  .news-title-links .link-line {
    width: 100% !important; /* Full width buttons on mobile */
    max-width: 280px;
  }
}

/*  */

@media (max-width: 50.99rem) {
    .homelayout #g-expanded {
        padding: 4rem 5% !important;
    }
}

/*  */

@media (max-width: 50.99rem) {
  /* 1. Container Height & Scroll (Half Height) */
  .j-vertical-calendar div[id^="cwucelist"] {
    display: block !important;
    height: auto !important;
    block-size: auto !important;
    /* Sets container to approx half height of original 600px */
    max-height: 600px !important; 
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    border-bottom: 1px solid #e5e7eb;
  }

  /* 2. Wrapper Reset */
  .j-vertical-calendar div[id^="cwwrapper"] {
    height: auto !important;
    block-size: auto !important;
    width: 100% !important;
    display: block !important;
  }

  /* 3. Table Structure Reset (Fixes the massive gap) */
  .j-vertical-calendar table,
  .j-vertical-calendar tbody,
  .j-vertical-calendar tr,
  .j-vertical-calendar td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    block-size: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }

  /* 4. Card Styling */
  .j-vertical-calendar tr {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  /* 5. Content Styling */
  .j-vertical-calendar td.cwuceeventtitle {
    padding: 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
  }

  .j-vertical-calendar a.uce_event_title {
    display: block !important;
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    color: #1a3b66 !important;
    text-decoration: none;
    margin-bottom: 0.5rem !important;
    white-space: normal !important;
    height: auto !important;
    block-size: auto !important;
  }

  .j-vertical-calendar a.uce_event_title:hover {
    color: #2563eb !important;
    text-decoration: underline;
  }

  .j-vertical-calendar td.cwuceeventtitle div {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    height: auto !important;
    block-size: auto !important;
  }
}