:root {
    --primary-color: #c4302b;
    --secondary-color: #f5f5f5;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --bs-danger: #f5313b;
    --bs-danger-rgb: 245, 49, 59;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* Override Bootstrap fw-bold for headings */
h1.fw-bold, h2.fw-bold, h3.fw-bold, h4.fw-bold, h5.fw-bold, h6.fw-bold {
    font-weight: 400 !important;
}

/* Header Styles */
.topbar {
    background-color: var(--bs-danger) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.topbar a {
    color: white;
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.navbar {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 2rem;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .logo-text span:first-child {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-brand .logo-text span:last-child {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--dark-color);
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    color: var(--dark-color);
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    display: none;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    display: none;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-form {
    position: relative;
}

.search-form input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    width: 250px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.1);
}

.search-form .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.date-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: #b0b0b0;
}

footer a:hover {
    color: var(--primary-color);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a02420;
    border-color: #a02420;
}

/* Responsive */
@media (max-width: 992px) {
    .search-form input {
        width: 150px;
    }

    .navbar-brand {
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .search-form input {
        width: 120px;
    }

    .search-container {
        gap: 0.5rem;
    }

    .navbar {
        padding: 0.25rem 0;
    }
}

/* Swiper Slider Styles */
.swiper {
    width: 100%;
    height: 400px;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.slider-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background-color: rgba(196, 48, 43, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .swiper {
        height: 250px;
    }

    .slider-overlay {
        padding: 1.5rem;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* Workshop Swiper Styles */
.workshopSwiper {
    padding: 20px 0;
}

.workshopSwiper .swiper-wrapper {
    display: flex;
}

.workshopSwiper .swiper-slide {
    width: 50% !important;
    height: auto;
}

@media (max-width: 992px) {
    .workshopSwiper .swiper-slide {
        width: 100% !important;
    }
}

/* Custom Red Switch Styles */
.form-check.custom-switch-container {
    padding-left: 1rem !important; /* Override bootstrap form-switch padding */
    display: flex !important;
    align-items: center !important;
}

.form-check-input.red-switch {
    margin-left: 0 !important; /* Override bootstrap negative margin */
    margin-top: 0 !important;
    width: 3em !important;
    height: 1.5em !important;
    cursor: pointer;
}

.form-check-input.red-switch:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input.red-switch:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(196, 48, 43, 0.25) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23c4302b'/%3e%3c/svg%3e") !important;
}
