/* Variables */
:root {
    --primary-color: #8C1116;
    --primary-light: hsl(from var(--primary-color) h s 90% / .2);
    --primary-dark: hsl(from var(--primary-color) h s 30% / 1);
    --secondary-color: #333333;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-spacing: 1rem;
    --card-spacing: 1.5rem;
}

/* General Styles */
body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

section {
    padding: 1rem 0;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

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

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

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.section-header {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Header and Navigation */
header {
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

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

.btn-login {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    border-radius: var(--border-radius);
    margin-left: 0.5rem;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600" preserveAspectRatio="none"><rect fill="%23f8f9fa" width="1000" height="600"/><path d="M0,600 C200,450 300,300 500,300 C700,300 800,450 1000,600 L1000,600 L0,600 Z" fill="%238C1116" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
}

.image-placeholder {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 2px dashed var(--primary-light);
}

/* Programs Section */
.programs-section {
    background-color: var(--light-bg);
}

.program-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: var(--card-spacing);
    margin-bottom: 1.5rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* News Section */
.news-section {
    background-color: var(--background-color);
}

.news-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.news-content {
    padding: var(--card-spacing);
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Events Section */
.events-section {
    background-color: var(--light-bg);
}

.event-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    height: 100%;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-content {
    padding: var(--card-spacing);
    flex: 1;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Join Section */
.join-section {
    background-color: var(--background-color);
}

.benefits-list {
    margin: 2rem 0;
}

.benefit-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefit-item i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--light-bg);
    padding: 3rem 0;
}

.newsletter-container {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.newsletter-form .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0.8rem 1.5rem;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
}

.footer-brand {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p {
    opacity: 0.7;
    /*margin-bottom: 1.5rem;*/
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

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

.footer-contact li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-top: 4px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    /*padding: 1.5rem 0;*/
    margin-top: 0rem;
}

.footer-bottom p {
    /*margin-bottom: 7rem;*/
}

.terms-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.terms-links li {
    margin-left: 1.5rem;
}

.terms-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.terms-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-image, .join-image {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .newsletter-container {
        padding: 2rem;
    }
    
    .terms-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .terms-links li {
        margin-left: 0;
        margin-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        padding: 0.8rem;
        justify-content: center;
        min-width: auto;
    }
    
    .event-date .day, .event-date .month {
        margin: 0 5px;
    }
}


#scrollTopButton {
      position: fixed;
	  top: auto;
	  left: auto;
      bottom: 24px;
      right: 24px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background-color: #8C1116;
      color: #ffffff;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
      cursor: pointer;
      opacity: 1;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 999;
    }
    #scrollTopButton.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    #scrollTopButton svg {
      width: 22px;
      height: 22px;
      fill: currentColor;
    }
    #scrollTopButton:focus {
      outline: 3px solid rgba(140, 17, 22, 0.35);
      outline-offset: 2px;
    }
	