/* Custom CSS for CanchaChilena */
:root {
    --primary-color: #363942;
    --secondary-color: #706c7d;
    --success-color: #193487;
    --light-color: #f8f9fa;
    --dark-color: #222129;
    --white-75: rgba(255, 255, 255, 0.75);
    --white-50: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Отступ для fixed navbar */
}

html {
    scroll-behavior: smooth;
}

.text-white-75 {
    color: var(--white-75) !important;
}

.text-white-50 {
    color: var(--white-50) !important;
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #193487 !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}
/* Footer */
.footer-section {
    background: linear-gradient(135deg, #2c3650 0%, #344c5e 100%);
}

.footer-section a:hover {
    color: var(--warning-color) !important;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content p {
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} 

/* new styles  */

/* Загальні стилі */
:root {
    --primary-color: #363942;
    --secondary-color: #706c7d;
    --success-color: #193487;
    --light-color: #f8f9fa;
    --dark-color: #222129;
    --white-75: rgba(255, 255, 255, 0.75);
    --white-50: rgba(255, 255, 255, 0.5);
}

/* Стилі для головного екрану */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 54, 66, 0.85), rgba(85, 25, 135, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--white-75);
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
 
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
 
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
@media (min-width: 1200px) {
.section-title {
    font-size: 2.5rem;
} 
}
/* Стилі для блоків 2-4 */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.card-sport {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none;
}

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

.card-img-top-fixed {
    height: 250px;
    object-fit: cover;
}

.moment-item {
    border-left: 3px solid var(--success-color);
    padding-left: 1.5rem;
    position: relative;
}

.moment-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}
/* Додаткові стилі для блоків 5-7 */
.fact-card {
    border-left: 4px solid var(--success-color);
    transition: transform 0.3s;
}

.fact-card:hover {
    transform: translateX(5px);
}

.article-card {
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
}

.article-card img {
    transition: transform 0.5s;
}

.article-card:hover img {
    transform: scale(1.05);
}

.btn-custom {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.community-section {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    color: white;
}
/* Додаткові стилі для нових блоків */
.about-img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-list {
    list-style: none;
    padding-left: 0;
}

.value-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

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

.value-list .material-icons {
    color: var(--success-color);
    margin-right: 12px;
}

.bg-soft-light {
    background-color: #f9f9f9;
}
/* Додаткові стилі для нових блоків */
.news-card {
    transition: transform 0.3s;
    overflow: hidden;
    border: none;
    border-radius: 10px;
}

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

.top-news-img {
    height: 200px;
    object-fit: cover;
}

.local-news {
    border-left: 4px solid var(--primary-color);
}

.moment-container {
    margin-bottom: 3rem;
}

.moment-container:last-child {
    margin-bottom: 0;
}

.moment-img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.moment-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.moment-meta .material-icons {
    font-size: 16px;
    vertical-align: text-bottom;
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    border-radius: 0 0 10px 10px;
}

.card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Стилі для блоку статей */
.article-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    background: #fff;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(85, 25, 135, 0.15);
}

.article-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.article-text {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.article-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    line-height: 1.5;
}

.article-list li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-size: 1.1rem;
}

.articles-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-img {
        height: 200px;
    }
}












/* Стилі для блоку "Контактная информация" */
.contact-section {
    padding: 6rem 0;
    background-color: var(--light-color);
    position: relative;
}

.contact-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.contact-info2 {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.contact-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--success-color);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.contact-text {
    color: var(--secondary-color);
    line-height: 1.6;
}

.contact-label {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.hours-table {
    width: 100%;
    margin: 0;
}

.hours-day {
    font-weight: 600;
    padding-right: 1rem;
    color: var(--primary-color);
}

.hours-time {
    color: var(--secondary-color);
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Стилі для форми зворотного зв'язку */
.contact-form-section {
    padding: 6rem 0;
    background-color: white;
    position: relative;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    position: relative;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--primary-color);
    background-color: #f8f9fa;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--success-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(36, 25, 135, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--success-color);
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.btn-submit:hover {
    background-color: #1e1470;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(36, 25, 135, 0.3);
}

.btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .contact-section, .contact-form-section {
        padding: 4rem 0;
    }
    
    .contact-title, .form-title {
        font-size: 1.75rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .form-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-section, .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-info2 {
        padding: 2rem;
    }
    
    .map-container {
        height: 250px;
    }
}