/* ------------------- */
/* Global Styles       */
/* ------------------- */
:root {
    --primary-color: #E40016;
    --secondary-color: #3A050A;
    --accent-color: #505359;
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #FEFEFE;
    --border-color: #E5E5E5;
    --container-width: 1400px;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Override for navigation links */
.main-navigation a,
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active,
.main-navigation .current-menu-item > a {
    color: #FFFFFF !important;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- */
/* Navigation Styles   */
/* ------------------- */
.main-navigation {
    background-color: #E40016;
    position: relative;
    z-index: 110;
    width: 100%;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.mobile-logo {
    display: none; /* Hidden by default on larger screens */
}

.nav-crs-logo {
    height: 70px;
    margin-top: 5px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

#primary-menu {
    display: flex;
    width: 100%;
}

#primary-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    width: 100%;
}

#primary-menu ul,
#primary-menu li {
    list-style: none;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    color: #fff;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Submenu styling */
#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #E40016;
    min-width: 200px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    z-index: 100;
    display: block;
    flex-direction: column;
}

#primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    #primary-menu .menu-item-has-children:hover > .sub-menu,
    #primary-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateX(0);
    }
}

#primary-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#primary-menu .sub-menu a {
    height: auto;
    padding: 12px 20px;
    justify-content: flex-start;
}

/* Dropdown toggle functionality */
.dropdown-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dropdown-toggle + label {
    position: absolute;
    right: 0;
    top: 0;
    display: none; /* Hidden by default, shown on mobile */
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2;
}

/* CSS-only dropdown for mobile */
.dropdown-toggle:checked ~ .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Dropdown indicator */
#primary-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: relative;
    top: -2px;
    transition: transform var(--transition-speed) ease;
}

#primary-menu .menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
}

#primary-menu .sub-menu .menu-item-has-children > a::after {
    transform: rotate(-45deg);
    position: absolute;
    right: 15px;
}

#primary-menu .sub-menu .menu-item-has-children:hover > a::after {
    transform: rotate(135deg);
}

#primary-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#primary-menu .current-menu-item > a {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* ------------------- */
/* Header Styles       */
/* ------------------- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* ------------------- */
/* Content & Sidebar Layout */
/* ------------------- */
.page-wrapper {
    padding: 40px 0;
}

.main-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-sidebar-wrapper {
    display: flex;
    gap: 40px;
}

.site-main {
    flex: 1;
    min-width: 0; /* Prevent content from overflowing */
}

.widget-area {
    flex: 0 0 300px;
}

@media (max-width: 768px) {
    .content-sidebar-wrapper {
        flex-direction: column;
    }
    
    .widget-area {
        flex: 1;
    }
}

/* Page header styles */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
}

/* Post styles */
.search-results-list, 
.archive-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.entry-content p {
    margin-bottom: 10px;
}

/* Search result styling */
.search-result-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.search-result-content {
    padding: 25px;
}

.search-result-item .entry-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.search-result-item .entry-title a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.search-result-item .entry-title a:hover {
    color: var(--primary-color);
}

.search-result-item .entry-meta {
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #777;
}

.search-result-item .entry-content-wrapper {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.search-result-item .post-thumbnail {
    flex: 0 0 200px;
    border-radius: 6px;
    overflow: hidden;
}

.search-result-item .post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.search-result-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.search-result-item .entry-summary {
    flex: 1;
}

.search-result-item .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    position: relative;
    padding-right: 20px;
}

.search-result-item .read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.search-result-item .read-more:hover::after {
    transform: translateX(5px);
}

.search-result-item .entry-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 768px) {
    .search-result-item .entry-content-wrapper {
        flex-direction: column;
    }
    
    .search-result-item .post-thumbnail {
        flex: 0 0 auto;
        margin-bottom: 15px;
    }
}

/* Pagination styles */
.pagination-container {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Post navigation */
.post-navigation-container {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Sidebar widgets */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* ------------------- */
/* Homepage Styles     */
/* ------------------- */
.homepage-wrapper {
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 661px; /* Match banner height */
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    background: #fff;
}

.hero-section .hero-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1;
}

.crs-tracks {
    height: 100%;
    width: auto;
}

.hero-center {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 30%;
}

.crs-logo {
    max-width: 100%;
    height: auto;
    padding: 10px;
}

.hero-section .hero-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 661px; /* Exact 661px height as specified */
    z-index: 0;
    overflow: visible;
}

.competitor-slideshow {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.competitor-slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1; /* Base z-index */
}

.competitor-slide.active {
    opacity: 1;
    z-index: 2; /* Higher z-index when active */
}

.competitor-image {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    transform: translateY(-50%); /* This makes it overlap the hero section by half */
}

.search-form {
    display: flex;
    height: 60px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-field {
    flex: 1;
    border: none;
    padding: 0 25px;
    font-size: 1.1rem;
    outline: none;
    color: #333;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.search-submit:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(228, 0, 22, 0.3);
}

/* Call to Action Buttons */
.cta-buttons-container {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
    gap: 20px;
}

.cta-button {
    flex: 1;
    border-radius: 0;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    color: #fff;
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-large {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cta-sub {
    font-size: 1rem;
    opacity: 0.9;
}

.cta-arrow {
    margin-left: 15px;
    position: relative;
    right: 0;
    transition: right var(--transition-speed) ease;
}

.cta-arrow img {
    transition: transform var(--transition-speed) ease;
}

.cta-button:hover .cta-arrow img {
    transform: translateX(5px);
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

.cta-button:hover::after {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Main Content Area */
.homepage-main {
    max-width: var(--container-width);
    margin: 60px auto;
    padding: 0 20px;
}

.main-columns {
    display: flex;
    gap: 40px;
}

.left-column {
    flex: 0.9;
}

.right-column-large {
    flex: 2.1;
}

.column-section {
    background-color: #fff;
    margin-bottom: 30px;
}

.column-section h2 {
    position: relative;
    padding: 27px 0;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    color: #FAFAFA;
    background-color: #DF2011;
}

.column-section .section-content {
    padding: 20px;
}

.main-hero {
    margin-bottom: 40px;
}

.news-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
}

.news-section h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.news-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.news-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-post {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    transition: transform 0.3s ease;
}

.news-post:hover {
    transform: translateX(5px);
}

.post-thumbnail {
    flex: 0 0 220px;
    margin-right: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    transition: transform 0.5s ease;
}

.news-post:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    flex: 1;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777777'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm-1-6.5V7h2v5.3l3.4 3.4-1.4 1.4-4-4z'/%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 5px;
    position: relative;
    top: 2px;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-right: 22px;
}

.read-more::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E40016'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z'/%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.3s ease;
}

.read-more:hover {
    text-decoration: none;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: #f5f5f5;
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .current:hover {
    background-color: var(--primary-color);
}

/* Hero Bottom Section */
.hero-bottom {
    position: relative;
    padding: 120px 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 0; /* Remove margin to connect with footer */
}

.hero-bottom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.hero-bottom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-bottom-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.centered-title-large {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.centered-title-large::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-btn.primary:hover {
    background-color: #c10012;
}

.hero-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ------------------- */
/* Footer Styles       */
/* ------------------- */
.site-footer {
    background-color: #F2F2F2;
    color: #333333;
    padding: 80px 0 20px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
}

.footer-container {
    display: flex;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 70px;
}

.footer-description {
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-right {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.nav-links-wrapper {
    display: flex;
    margin-bottom: 50px;
    gap: 40px;
}

.nav-links-column {
    flex: 1;
}

.nav-links-column .footer-menu {
    position: relative;
}

.nav-links-column .footer-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu a {
    color: #555555;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-menu a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-menu a:hover:before {
    background-color: var(--secondary-color);
}

.subscribe-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.subscribe-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.subscribe-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    max-width: 400px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999999;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(228, 0, 22, 0.1);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.newsletter-form button:hover {
    background-color: #c10012;
    box-shadow: 0 0 10px rgba(228, 0, 22, 0.5);
}

.newsletter-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.newsletter-placeholder p {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.newsletter-placeholder ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.newsletter-placeholder li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.newsletter-placeholder code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Newsletter Plugin Form Styling */
.subscribe-form .tnp-subscription {
    max-width: 400px;
}

/* Simple styling for both text and email inputs */
.subscribe-form .tnp-subscription input[type="text"],
.subscribe-form .tnp-subscription input[type="email"] {
    width: 100%;
    padding: .7em;
    display: block;
    border: 1px solid #ddd;
    color: #444;
    background-color: #f4f4f4;
    background-image: none;
    text-shadow: none;
    font-size: 1em;
    margin: 0 0 15px 0;
    line-height: normal;
    box-sizing: border-box;
}

/* Simplified subscribe button with all corners rounded */
.subscribe-form .tnp-subscription input[type="submit"] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 35px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    width: 100%;
    display: block;
    margin-top: 10px;
}

.subscribe-form .tnp-subscription input[type="submit"]:hover {
    background-color: #c10012 !important;
    box-shadow: 0 5px 15px rgba(228, 0, 22, 0.3);
    transform: translateY(-2px);
}

.site-info {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 25px 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
    text-align: center;
    color: #777777;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.hosting-credit {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999999;
}

.hosting-credit a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hosting-credit a:hover {
    color: #666666;
    text-decoration: underline;
}

/* ------------------- */
/* Responsive Styles   */
/* ------------------- */
@media (max-width: 1024px) {
    .main-columns {
        flex-direction: column;
    }

    .left-column, .right-column-large {
        flex: 1;
    }

    .cta-buttons-container {
        flex-wrap: wrap;
    }

    .cta-button {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 20px;
    }

    .main-hero, .news-section, .column-section {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-container {
        justify-content: space-between;
    }

    .mobile-logo {
        display: block;
        flex: 1;
    }

    /* Hide the logo in the hero section on mobile */
    .hero-center {
        display: none;
    }

    #primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #E40016;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 1000;
    }

    .primary-menu-container.active #primary-menu {
        display: block;
    }

    #primary-menu ul {
        flex-direction: column;
        justify-content: flex-end;
    }

    #primary-menu li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #primary-menu a {
        padding: 15px 20px;
        height: auto;
    }

    /* Mobile submenu styles */
    #primary-menu .sub-menu {
        position: static;
        visibility: hidden;
        display: none;
        opacity: 1;
        transform: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        padding-left: 15px;
    }

    /* Show toggle labels on mobile */
    .dropdown-toggle + label {
        display: block;
    }

    .dropdown-toggle + label::after {
        content: '';
        display: block;
        position: absolute;
        right: 20px;
        top: 22px;
        width: 8px;
        height: 8px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        transition: transform var(--transition-speed) ease;
    }

    .dropdown-toggle:checked + label::after {
        transform: rotate(225deg);
    }

    /* When checkbox is checked, show the submenu */
    #primary-menu .dropdown-toggle:checked ~ .sub-menu {
        display: block;
        visibility: visible;
    }

    #primary-menu .sub-menu .sub-menu {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Hide desktop arrow indicators on mobile */
    #primary-menu .menu-item-has-children > a::after {
        display: none;
    }

    #primary-menu .sub-menu .menu-item-has-children > a::after {
        display: none;
    }

    /* Search button mobile padding */
    .search-submit {
        padding: 0 10px !important;
    }
}

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left, .footer-right {
        flex: 1;
    }

    .nav-links-wrapper {
        flex-wrap: wrap;
        gap: 30px;
    }

    /* Hero section responsive */
    .hero-section {
        height: 500px;
    }

    .hero-section .hero-right {
        height: 500px;
        width: 100%;
    }
    
    .competitor-slideshow {
        height: 500px;
    }
    
    .competitor-slide {
        height: 500px;
    }
    
    .competitor-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-center {
        left: 10%;
        width: 40%;
    }

    .news-post {
        flex-direction: column;
    }

    .post-thumbnail {
        margin-right: 0;
        margin-bottom: 20px;
        flex: 0 0 auto;
        max-width: 100%;
        height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .centered-title-large {
        font-size: 2.5rem;
    }

    .column-section h2,
    .news-section h1 {
        font-size: 1.5rem;
    }

    .cta-large {
        font-size: 1.5rem;
    }

    .cta-sub {
        font-size: 0.9rem;
    }

}

@media (max-width: 576px) {
    .cta-button {
        flex: 0 0 100%;
    }
    
    .nav-crs-logo {
        height: 50px; /* Slightly smaller logo on very small screens */
    }

    .hero-section {
        height: 350px;
    }

    .hero-section .hero-right {
        height: 350px;
        width: 100%;
    }
    
    .competitor-slideshow {
        height: 350px;
    }
    
    .competitor-slide {
        height: 350px;
    }
    
    .competitor-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-center {
        left: 5%;
        width: 50%;
    }

    .centered-title-large {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-form {
        height: 50px;
    }

    .search-field {
        padding: 0 15px;
        font-size: 0.9rem;
    }

    .search-submit {
        padding: 0 10px !important;
        font-size: 0.9rem;
    }

    .cta-content {
        padding: 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .nav-links-column {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .subscribe-form {
        padding: 20px 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        border-radius: 25px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 25px;
        padding: 10px 0;
    }
}
