#main-navigation h3 a {
  text-decoration: none;
  opacity: .9;
}
p, li {
  line-height: 1.5;
}
li {
  margin-bottom: 12px;
}
.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}
.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.kofc-pattern {
    flex-wrap: wrap;
}
.kofc-pattern .wp-block-columns {
    flex-wrap: nowrap;
}
.kofc-pattern .is-content-justification-center {
    display: flex;
    justify-content: center;
}

.wp-block-quote h3 {
    color: #064392;
}

.wp-block-quote {
  background-color: #dceaef;
  border-color: #dceaef!important;
  border: 1px solid!important;
  border-radius: 10px;
  margin: 1.75em 0 1.75em 0!important;
  padding: 1.5em;
}
.kofc-pattern .width-100 {
    width: 100%;
}

.kofc-pattern .kofc-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}
.kofc-pattern .kofc-form-wrapper p {
    margin-bottom: 15px;
}
.kofc-pattern .kofc-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.kofc-pattern .kofc-form-wrapper input[type="text"],
.kofc-pattern .kofc-form-wrapper input[type="email"],
.kofc-pattern .kofc-form-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.kofc-pattern .kofc-form-wrapper textarea {
    height: 150px;
}
.kofc-pattern .kofc-form-wrapper input[type="submit"] {
    background-color: #BB0606;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.kofc-pattern .kofc-form-wrapper input[type="submit"]:hover {
    background-color: #064392;
}
.kofc-pattern.success-message,
.kofc-pattern.error-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    opacity: 0; /* Initial state */
    animation: fadeIn 1s forwards; /* Apply animation */
}
.kofc-pattern.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.kofc-pattern.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kofc-pattern .wp-block-post-date {
    font-size: 15px;
    color: #777;
    line-height: 15px;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  border: 0px!important;
  padding-top: 12px;
}
.wp-block-navigation__submenu-container a:hover {
    color: #fcb900!important;
}

:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)) {
  padding: .2em .8em!important;
}

@media (max-width: 781px) {
    .kofc-pattern {
        margin-bottom: 50px;
    }
    .kofc-pattern .wp-block-columns {
        flex-wrap: wrap!important;
    }
    .kofc-pattern .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .kofc-pattern-padded .wp-block-columns, .kofc-pattern-padded .wp-block-group {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .kofc-pattern-no-margin-bottom {
        margin-bottom: 0px;
    }

    .sidenav-list {
        padding-left: 0px;
        margin-top: 30px;
    }

}

.kofc-columns .columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(4, 64, 118, 0.8); /* .8 transparent background */
    z-index: 100;
    transition: background-color 0.3s ease;
}

.sticky {
  opacity: 0.8;
}

/* Adjust body margin when nav is sticky */
body.sticky-active {
    margin-top: 60px; /* Adjust based on nav height */
}

.news_cat_list {
  margin-top: 16px;
  text-decoration: none;
  color: #333!important;
  width: 100%;
  display: block;
  clear: both;
}
.news_cat_list strong {
  color: #aaa;
}
.full-width-clear {
  width: 100%;
  display: block;
  clear: both;
}

/* Include this CSS in your external script or its stylesheet */
.kofc-pattern .wp-block-post-template-is-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.events-calendar {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.calendar-title h2 {
    text-align: center;
    margin: 6px 0px 6px 8px;
    font-size: 24px;
}

.nav-arrows {
  display: flex;
  flex-direction: row;
}

.nav-arrows img {
  margin: 6px 3px 0px 3px;
  height: 24px;
}

.calendar-nav {
    text-align: center;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calendar-table th, .calendar-table td {
    width: 14.28%; /* 100 / 7 days */
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.calendar-table th {
    background-color: #f4f4f4;
    text-align: center;
}

.calendar-table td {
    height: 100px;
    position: relative;
}

.calendar-table td.empty {
    background-color: #f9f9f9;
}

.day-number {
    font-weight: bold;
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 16px;
    margin-bottom: 4px;
}

.event-item {
    margin-top: 10px;
}

td .day-number + .event-item {
    margin-top: 20px!important;
}

.event-item a {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.event-item a:hover {
    text-decoration: underline;
}

.event-item.more-events {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
}

.mb-event-item {
  display: none;
  font-size: 32px;
  font-weight: bold;
  margin-top: 25px;
}

.mb-event-item a {
  text-decoration: none;
  color: #aaa;
}

.list-view-toggle {
    text-align: center;
    margin-top: 20px;
}

.list-view-toggle a {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.list-view-toggle a:hover {
    background-color: #005a87;
}

.events-list-navigation {
    text-align: center;
    margin-bottom: 20px;
}

.events-list-navigation a {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
}

.events-list-navigation a:hover {
    background-color: #005a87;
}

/* Flexbox for header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 60px!important;
}

.calendar-header .nav-arrows {
  height: 24px;
  width: auto;
}

.event-details-date {
    color: #999;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 20px;
}

.event-details-description {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    line-height: 22px;
}

/* Right-aligned navigation buttons */
.calendar-nav {
    display: flex;
    gap: 10px;
}

/* Style the Today button */
.calendar-nav button {
    color: white;
    padding: 12px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.calendar-nav .today-button, .calendar-nav .back-button {
  background-color: #cb0e0e;
}

.calendar-nav .today-button:hover, .calendar-nav .back-button:hover {
    background-color: #b61010;
}

/* Style the Previous and Next buttons */
.calendar-nav .list-button {
  background-color: #0073aa;
}

.calendar-nav .list-button:hover {
  background-color: #005a87;
}

.events-list-view {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.events-list-view h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.events-list-view h3 {
    font-size: 20px;
    color: #333;
}

.event-detail-container {
    width: 85%;
    display: flex;
    flex-direction: row;
}
.event-list-item {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    padding-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.events-list-view {
  font-size: 28px;
}

.events-list-view h4 {
  font-size: 22px;
  margin-bottom: 0px;
  margin-top: 0px;
}

.event-details-categories {
    font-size: 13px;
    color: #aaa;
}
.event-list-day-inner {
    background-color: #fff;
    border-radius: 12px;
    color: #333;
    font-size: 32px;
    font-weight: bold;
    text-align: left;
    margin: auto 12px auto 0px;
    padding: 0px 0px;
}
.event-list-day-inner small {
  font-size: 14px;
  color: #999;
}
.event-image img {
    height: auto;
    max-width: 100%;
    margin-top: 30px;
}

.event-list-day {
    width: 10%;
}
.event-image {
    width: 18%;
    margin-left: 10px;
}
.event-details {
    width: 80%;
}

.event-list-day h4 {
    font-size: 20px;
    margin: 0px 0 6px 0;
}

.event-details a {
    color: #0073aa;
    text-decoration: none;
}

.event-details a:hover {
    text-decoration: underline;
}

.mobile-display {
  display: none;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.dropdown-item {
    padding: 10px;
    text-decoration: none;
    display: block;
    color: black;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}

.printable-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 5px;
}

.printable-button:hover {
    background-color: #005a87;
}

.pagination {
  margin-block-start: 30px!important;
}
.pagination ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.pagination_link {
  color: #005a87;
  padding: 5px 10px;
  text-decoration: none;
  font-weight: bold;
}
.pagination_link_active {
  color: #f00;
  border-bottom: 2px solid #005a87;
  padding: 0px 10px 5px 10px;
  font-weight: bold;
  font-size: 16px;
}
.pagination_nextprev_active {
  color: #005a87;
  font-weight: bold;
  margin-right: 15px;
  text-decoration: none;
}
.pagination_nextprev {
  color: #ccc;
  font-weight: bold;
  margin-left: 15px;
}
/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .event-image {
        width: 20%;
        margin-right: 0;
    }

    .event-details {
        width: 76%;
        margin-right: 0;
    }

    .event-list-day {
      width: 100%;
      display: block;
    }
    .event-list-item {
        flex-direction: column;
    }
    .news_cat_list {
      margin-top: 0px;
    }
    .post_item_figure {
      margin-bottom: 0px!important;
    }
    .post_item_heading {
      margin-top: 0px!important;
    }
    .calendar-header {
        margin-block-end: 20px!important;
        height: 32px;
    }
    .calendar-header .calendar-title h2 {
      font-size: 18px;
    }
    .calendar-header .nav-arrows img {
      height: 20px;
      width: auto;
    }
    .calendar-nav button {
      padding: 9px 10px;
      font-size: 13px;
    }
    .event-item {
      display: none;
    }
    .mb-event-item {
      display: block;
    }
    .calendar-table th {
      font-size: 13px;
    }
    .calendar-table td {
      height: 65px;
      text-align: center;
    }
    .event-list-day-inner {
      font-size: 36px;
    }
    .event-list-day-inner small {
      font-size: 16px;
    }
    .mobile-display {
      display: block;
    }
    .mobile-hide {
      display: none;
    }
    .events-list-view h4 {
      margin-top: 8px;
    }
}


.event-featured-image {
    margin-bottom: 20px;
}

.event-navigation {
    text-align: center;
    margin-bottom: 20px;
}

.event-navigation a {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
}

.event-navigation a:hover {
    background-color: #005a87;
}

.event-meta {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.event-categories {
    font-size: 12px;
    color: gray;
}
.event-content {
    margin-bottom: 20px;
}

.event-dates {
    margin-bottom: 20px;
}

.event-dates p {
    color: #666666;
    font-size: 16px;
    margin-top: 4px;
}

.calendar-table td.today {
    background-color: #fffacd; /* Light yellowish/cream color */
    border: 1px solid #f0e68c; /* Optional: a slightly darker border */
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .event-meta span.event-categories {
        float: none;
        display: block;
        margin-top: 10px;
    }

    .event-categories {
        width: 100%;
    }

    .event-navigation a {
        display: block;
        margin: 10px 0;
    }
}

.kofc-square-image {
    width: 90px; /* Set the width of the image */
    height: 90px; /* Set the height to the same value to ensure it's square */
    object-fit: cover; /* This ensures the image maintains its aspect ratio and fills the square */
}

.mt-0 { margin-top: 0px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.me-0 { margin-right: 0px; }
.me-1 { margin-right: 10px; }
.me-2 { margin-right: 20px; }
.me-3 { margin-right: 30px; }
.me-4 { margin-right: 40px; }
.me-5 { margin-right: 50px; }

.ins_social_link img {
    margin: 0px 3px;
}

.kofc-links-cta a {
    color: #FFF;
    text-decoration: none;
}

.kofc-links-cta a:hover {
    color: #FFF;
    text-decoration: underline;
}


/* Event Detail Page */
.kofc-event-details .event-layout {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: 30px;
}

.kofc-event-details .event-image {
    flex: 1;
    max-width: 40%; /* 40% width for image on desktop */
    margin-right: 20px;
}

.kofc-event-details .event-image img {
    max-width: 300px;
    margin: 0px auto!important;
}

.kofc-event-details .event-info {
    flex: 2;
    max-width: 100%;
}

.kofc-event-details .event-info figure {
  margin: 30px 0;
  width: 100%;
  text-align: center;
}

.kofc-event-details .event-info figure img {
  margin: 0px auto;
  max-width: 100%;
}

.kofc-event-details .event-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.kofc-event-details .event-dates {
  display: block;
  text-align: center;
}

.kofc-event-details .event-info h2 {
    font-size: 20px;
    margin-bottom: 0px;
}

.kofc-event-details .event-categories {
    font-size: 14px;
    margin-bottom: 20px;
}

.kofc-event-details .event-content {
    font-size: 16px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .kofc-event-details .event-layout {
        flex-direction: column;
        align-items: center;
    }

    .kofc-event-details .event-image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .kofc-event-details .event-info {
        max-width: 100%;
        text-align: center;
    }

    .kofc-event-details .event-info h1,
    .kofc-event-details .event-info h2 {
        text-align: center;
    }
}

.venue-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.venue-container .venue-image {
    flex-shrink: 0;
    margin-right: 20px;
}

.venue-container .venue-details {
    flex-grow: 1;
}
.venue-container .venue-details h2 {
  color: var(--global-palette1, #3182CE)!important;
  font-size: 22px;
}

.single-staff-poition {
  margin-top: -100px;
}

.kadence-column11149_58713c-19777 {
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .venue-container {
        flex-direction: column;
        align-items: center;
    }

    .venue-container .venue-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* // Event Detail Page */

/* FOOTER */
.kofc-footer .council_no {
    color: #FFF;
    font-size: 32px;
    margin-bottom: 5px;
}

footer .wp-block-kadence-column ul {
    padding-left: 5px;
}
footer .wp-block-kadence-column ul li {
    list-style-type: none;
}

footer .wp-block-kadence-column ul li a {
    text-decoration: none;
}
/* // FOOTER */


/* INSURANCE AGENTS */
.kofc-insurance-agent {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.kofc-insurance-agent-image {
    flex: 0 0 30%;
    padding-right: 20px;
}
.kofc-insurance-agent-image img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}
.kofc-insurance-agent-content {
    flex: 0 0 65%;
}

.wp-block-navigation__submenu-container a:where(:not(.wp-element-button)) {
  color: #FFF!important;
}

@media (max-width: 768px) {
    .kofc-insurance-agent-image,
    .kofc-insurance-agent-content {
        flex: 0 0 100%;
        padding-right: 0;
    }
    .kofc-insurance-agent-image {
        text-align: center;
        margin-bottom: 20px;
    }
    .wp-block-navigation__responsive-container-close {
      margin-top: 8px!important;
    }
    .wp-block-navigation__responsive-container a {
        font-size: 20px;
    }
    .wp-block-navigation__responsive-close {
      width: 80%!important;
    }
    .event-detail-container {
        width: 100%;
    }
    .wp-block-navigation li {
      margin-bottom: 8px!important;
    }

}
/* // INSURANCE AGENTS */

.kofc_news_container .kt-row-column-wrap {
    display: flex;
    flex-wrap: wrap;
}

.kofc_news_container .kt-row-column {
    flex: 1 1 0px; /* This makes each column flex and take equal width and height */
    display: flex;
    flex-direction: column;
}

.kofc_news_container .kt-inside-inner-col {
    flex-grow: 1; /* This ensures that the content inside the column takes up all available space, pushing the footer (if any) to the bottom */
}

.sidenav-list {
    background-color: #FFF;
    padding-left: 5px;
}

.sidenav-list a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 26px;

    display: block;
    padding: 12px 0px;
    border-radius: 10px;
    padding-left: 15px;
}

.sidenav-list li {
    list-style-type: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 0px;
}

.sidenav-list li a:hover, .sidenav-list li a.side_active {
    color: #FFF;
    background-color: #3182ce;
}

.sidenav-box h2 {
    color: #3182ce!important;
}