/*
This software is copyright Anthony Fralick and Little Ridge Tech Consulting - 2024
Please visit https://www.littleridge.ca for more information. anthony@littleridge.ca
*/
/* 
    Created on : May 14, 2025, 2:57:38 p.m.
    Author     : anthony
*/



.lrtch-fa-topmenu-container {
    width: 100%;
    background-color: #181818;
}

.lrtch-fa-menu-container {
    width: 100%;
    border-bottom: 1px solid #d60303;
}

.lrtch-fa-menu-links-container {
    position: relative; /* Necessary for absolutely positioning the middle */
    display: flex;
    align-items: flex-start;  /* Vertical center alignment for left & right groups */
    justify-content: space-between;
    width: 100%;
    padding: 0 0;
    background-color: #d3d3d3;
}

.lrtch-fa-topmenu-links-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    vertical-align: middle;
}

.lrtch-fa-cpt-button-container {
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

/* Left group: The links group */
.lrtch-fa-topmenu-links-left,
.lrtch-fa-menu-links-left
{
    display: flex;
    gap: 15px; /* Adjust spacing between links as desired */
}

.lrtch-fa-menu-links-left a {
    display: inline-block;
    font-size: 1.2em;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

.lrtch-fa-menu-links-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

/* Right group: Use margin-left: auto to push it to the right */
.lrtch-fa-topmenu-links-right,
.lrtch-fa-menu-links-right {
    margin-left: auto;  /* This pushes the button group to the far right */
}

.lrtch-fa-topmenu-links-item {
    display: inline-block;
    font-size: 1.2em;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

.lrtch-fa-topmenu-links-item:hover {
    color: gold;
}

.lrtch-fa-menu-links-item {
    display: inline-block;
    font-size: 1.4em;
    margin: 40px 40px;
    padding: 10px 10px;
    color: #000000;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.lrtch-fa-menu-links-item:hover {
    border: 1px solid #d60303;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #181818;
    color: white;
}

.lrtch-fa-menu-links-item.active {
    padding: 9px 9px;
    border: 1px solid red;
    border-radius: 8px;
}

/* Remove any existing button rounding from Bootstrap */
.lrtch-fa-topmenu-links-container .btn-group .btn {
    font-size: 1.2em;
    border-radius: 0;
    border-color: gold;
    background-color: #d60303;
    color: #000;
    width: auto;
    padding: 3px 10px;
    margin-left: 0;
    margin-right: 0;
}
.lrtch-fa-topmenu-links-container .btn-group .btn:hover {
    background-color: #000;
    color: #fff;
}

.btn-primary {
    border-radius: 8px !important;
    text-transform: none !important;
}

/* Left button: rounded on the left */
.lrtch-fa-topmenu-links-container .btn-group .btn.btn-left {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right-width: 0;
}

/* Middle button: no rounding */
.lrtch-fa-topmenu-links-container .btn-group .btn.btn-middle {
    border-radius: 0;
}

/* Right button: rounded on the right */
.lrtch-fa-topmenu-links-container .btn-group .btn.btn-right {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left-width: 0;
}

.lrtch-fa-menu-logo {
    width: 140px;
    margin: 0;
    padding: 0;
}

.lrtch-fa-menu-logo:hover {
    opacity: 0.8;
}

.lrtch-fa-header-container {
    border-width: 2px;
    border-style: solid;
}

.lrtch-fa-department-logo {
    width: 200px;
}

/* Container for the links list */
.lrtch-fa-links-container {
    width: 100%;
}


/* Each link item container */
.lrtch-fa-link-item {
    border: 1px solid #ccc;
    margin: 10px 0;
    border-radius: 4px;
    overflow: hidden;
}

/* The clickable wrapper for the entire item; using flex for layout */
.lrtch-fa-link-wrapper {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: background-color 0.3s ease;
}

/* Hover state changes the background */
.lrtch-fa-link-wrapper:hover {
    background-color: #f0f0f0;
}

/* The image container on the left */
.lrtch-fa-link-image {
    flex: 0 0 auto;
    width: 120px;      /* Set desired width */
    height: 120px;     /* Set desired height */
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lrtch-fa-link-image-placeholder {
    flex: 0 0 auto;
    width: 0px;      /* Set desired width */
    height: 120px;     /* Set desired height */
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured image styles */
.lrtch-fa-link-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Placeholder image when no featured image exists */
.placeholder-image {
    background-color: #e0e0e0;
    width: 100%;
    height: 100%;
}

/* Details container (title and content) on the right */
.lrtch-fa-link-details {
    flex: 1;
}

/* Header styling for the title */
.lrtch-fa-link-header {
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;  /* vertically center the image and text */
}

/* Title styling */
.lrtch-fa-link-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

/* Article content */
.lrtch-fa-article-content {
    font-size: 1em;
    line-height: 1.5;
}

/* Utility: center text within parent */
.lrtch-fa-center {
    text-align: center;
}

/* Ensure the centered content block is horizontally centered within its parent */
.lrtch-fa-article-content.lrtch-fa-center {
    display: inline-block;          /* shrink to content width so margin auto works visually */
    margin-left: auto;              /* center the whole block */
    margin-right: auto;
}

/* Spacing for address and phone in list items */
.lrtch-fa-article-content .dept-address {
    margin-bottom: 6px;
}
.lrtch-fa-article-content .dept-phone {
    color: #34495e;
}

/* Container for the links list */
.lrtch-fa-news-container {
    width: 100%;
}

/* Each link item container */
.lrtch-fa-news-item {
    border: 1px solid #ccc;
    margin: 10px 0;
    border-radius: 4px;
    overflow: hidden;
}

/* The clickable wrapper for the entire item; using flex for layout */
.lrtch-fa-news-wrapper {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: background-color 0.3s ease;
}

/* Hover state changes the background */
.lrtch-fa-news-wrapper:hover {
    background-color: #f0f0f0;
}

/* The image container on the left */
.lrtch-fa-news-image {
    flex: 0 0 auto;
    width: 120px;      /* Set desired width */
    height: 120px;     /* Set desired height */
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured image styles */
.lrtch-fa-news-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Details container (title and content) on the right */
.lrtch-fa-news-details {
    flex: 1;
}

/* Header styling for the title */
.lrtch-fa-news-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;  /* vertically center the image and text */
}

/* Title styling */
.lrtch-fa-news-title {
    margin: 0;
    font-size: 1.2em;
}

.lrtch-fa-event-title {
    margin: 0;
    text-align: center;
    font-size: 1.2em;
}

/* Link content */
.lrtch-fa-article-content {
    font-size: 1em;
    line-height: 1.5;
}

/* Container for Department Info: full-width header style */
.department-info-container {
    width: 100%;
    padding: 20px;
    background: #f1f4fa; /* Light, prominent background color */
    margin-bottom: 30px;
}

/* Wrapper to hold the thumbnail and details */
.department-info-wrapper {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Thumbnail container on the left */
.department-thumbnail {
    flex: 0 0 auto;
    width: 150px;      /* Increased width for more prominence */
    height: 150px;     /* Increased height */
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for the thumbnail image */
.department-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Placeholder styling if no image exists */
.placeholder-image {
    background-color: white;
    width: 100%;
    height: 100%;
}

/* Details area on the right */
.department-details {
    flex: 1;
}

/* Post content column on the far right */
.department-content {
    flex: 1;
    margin-left: 20px;
    text-align: justify;           /* Fully justify the department post content */
    text-justify: inter-word;      /* Improves justification spacing in some browsers */
}

/* Header styling – this is the main focal point */
.department-header {
    margin-bottom: 15px;
}

/* Title styling for more prominence */
.department-title {
    margin: 0;
    font-size: 2em;         /* Larger font size */
    color: #2c3e50;         /* Darker color for a stronger impact */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Chief and phone information styling */
.chief-info,
.department-phone,
.department-address {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #34495e;
}

/* Slight link styling to match header prominence */
.chief-info a {
    color: #2980b9;
    text-decoration: underline;
}

/* Grid container for events */
.lrtch-fa-event-container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 0;
}

/* Tablet screens: 2 columns */
@media (max-width: 992px) {
    .lrtch-fa-event-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .lrtch-fa-menu-links-middle {
        /* Remove absolute positioning and centering */
        position: static;
        left: auto;
        transform: none;

        /* Now behave like the right group */
        margin-left: auto;

        /* Retain display and gap if needed */
        display: flex;
        gap: 15px;
    }
}

/* Each event item styled like a calendar page */
.lrtch-fa-event-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Date and time block at the top */
.lrtch-fa-event-datetime {
    background-color: #f7f9fc;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.lrtch-fa-event-datetime .event-date {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
}

.lrtch-fa-event-datetime .event-time {
    font-size: 0.95em;
    color: #34495e;
}

/* Featured image block */
.lrtch-fa-event-image {
    width: 100%;
    height: auto;
}
.lrtch-fa-event-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder for missing image */
.placeholder-image {
    background-color: #e0e0e0;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio placeholder */
}

/* Event content block */
.lrtch-fa-event-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title styling */
.lrtch-fa-link-title h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #2c3e50;
}

/* Content styling */
.lrtch-fa-article-content {
    flex: 1;
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
    text-justify: inter-word;
}

/* Link styling */
.lrtch-fa-link-url a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #2980b9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lrtch-fa-link-url a:hover {
    background-color: #1f6391;
}

.lrtch-module-section {
    border-top: 1px solid #d60303;
    margin: 10px 0;
    padding: 10px 10px;
}

.lrtch-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container for the articles using CSS Grid */
.lrtch-article-container {
    display: grid;
    gap: 20px;
    padding: 10px 0;
}

/* Each article card styling */
.lrtch-article {
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
}

/* Container for full-width articles using CSS Grid */
.lrtch-fullwidth-article-container {
    display: grid;
    grid-template-columns: 1fr; /* one column regardless of screen size */
    gap: 20px;
    padding: 10px 0;
}

/* Each full-width article styling */
.lrtch-fullwidth-article {
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
}

.toggle-article-content {
    display: inline-block;           /* Allows box-shadow to be applied */
    background: transparent;         /* No background color */
    border: none;                    /* No border */
    border-radius: 4px;
    margin-left: 80%;
    color: #d60303;                  /* Base text color */
    font: inherit;                   /* Inherit font settings for consistency */
    font-size: 0.9em;
    cursor: pointer;                 /* Indicates it's clickable */
    padding: 5px 5px;                      /* Remove default padding */
    text-decoration: none;           /* Remove underline if it’s a link */
    transition: color 0.3s ease, box-shadow 0.3s ease;  /* Smooth transition of color and shadow */
}

.toggle-article-content:hover,
.toggle-section:hover {
    color: #005bb5;                  /* Slight color change on hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Subtle drop shadow effect */
    outline: none;                   /* Removes the standard focus outline */
}

.toggle-section,
.news-archive-button {
    display: inline-block;           /* Allows box-shadow to be applied */
    background: transparent;         /* No background color */
    border: none;                    /* No border */
    border-radius: 4px;
    color: #d60303;                  /* Base text color */
    font: inherit;                   /* Inherit font settings for consistency */
    font-size: 0.9em;
    cursor: pointer;                 /* Indicates it's clickable */
    padding: 5px 5px;                      /* Remove default padding */
    text-decoration: none;           /* Remove underline if it’s a link */
    transition: color 0.3s ease, box-shadow 0.3s ease;  /* Smooth transition of color and shadow */
}

/* Desktop: 3 articles per row */
@media (min-width: 1025px) {
    .lrtch-article-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 articles per row */
@media (min-width: 768px) and (max-width: 1024px) {
    .lrtch-article-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone: articles stack vertically */
@media (max-width: 767px) {
    .lrtch-article-container {
        grid-template-columns: 1fr;
    }
}

/* Responsive styling for smaller screens (e.g., mobile devices) */
@media (max-width: 600px) {
    .lrtch-fa-menu-links-container {
        /* Switch to grid layout */
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
      "logo middle"
      "logo right";
        align-items: center;
        gap: 2px;
        padding: 2px;
        position: static; /* Remove relative positioning */
    }

    /* Left group (logo) stays in its grid area */
    .lrtch-fa-menu-links-left,
    .lrtch-fa-menu-links-container .lrtch-fa-menu-links-left {
        grid-area: logo;
    }

    /* Middle group goes into the top-right cell */
    .lrtch-fa-menu-links-middle {
        grid-area: middle;
        position: static; /* Remove absolute positioning */
        transform: none;
        /* Optionally, align content to the right */
        justify-self: center;
        display: flex; /* maintain flex if multiple items exist */
        gap: 2px;
        flex-direction: column;
    }

    /* Right group goes into the bottom-right cell */
    .lrtch-fa-menu-links-right {
        grid-area: right;
        position: static;
        justify-self: end;
        display: flex;
        gap: 10px;
    }

    .lrtch-fa-topmenu-links-left {
        display: none;
    }

    /* Adjust individual link/item styling for small screens */
    .lrtch-fa-menu-links-item {
        margin: 5px 0;
        padding: 2px 10px;
        font-size: 1.2em;
    }

    .lrtch-fa-link-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Override the flex layout for the image container on small screens */
    .lrtch-fa-link-image {
        display: block !important;       /* Remove flex so margin auto works */
        width: 100px;
        height: auto;         /* Adjust height if needed */
        margin: 0 auto 10px !important;   /* Center horizontally and add bottom spacing */
    }

    /* Ensure images inside the container are displayed inline-block
       (or you might also set auto margins on the image itself if needed) */
    .lrtch-fa-link-image img {
        display: inline-block;
    }

    .lrtch-fa-link-details {
        width: 100%;
    }

    .department-info-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .department-thumbnail {
        display: block !important;
        width: 120px;
        height: auto;
        margin: 0 auto 15px !important;
    }

    .department-details {
        width: 100%;
    }

    .department-content {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .lrtch-fa-event-container {
        grid-template-columns: 1fr !important;
    }

    .lrtch-fa-link-title h3 {
        text-align: center;
    }

    .lrtch-fa-article-content {
        text-align: justify;
        text-justify: inter-word;
    }
}