/* 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);
}

/* Загальні стилі */
body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    background-color: #ffffff;
}

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

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(25, 52, 135, 0.7) 0%, rgba(34, 33, 41, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

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

.hero-subtitle {
    font-weight: 600;
    color: var(--white-75);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.hero-description {
    color: var(--white-75);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Медіа-запити для адаптивності */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
/* Стилі для блоків контенту */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    display: inline-block;
}

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

.card-custom {
    border: none;
    transition: transform 0.2s;
    height: 100%;
}

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

.card-custom .card-body {
    padding: 1.5rem;
}

.card-custom .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.card-custom .card-text {
    color: var(--secondary-color);
}

.news-item {
    padding: 1.5rem;
    border-left: 3px solid var(--success-color);
    background-color: var(--light-color);
    margin-bottom: 1rem;
}

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

.news-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-color);
}

.stat-icon {
    margin-right: 1rem;
    color: var(--success-color);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-text {
    color: var(--secondary-color);
}

.match-fact {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    background-color: var(--light-color);
    padding: 0.35rem 0.75rem;
}
/* Додаткові загальні стилі */
.section-title::after {
    width: 80px;
    height: 3px;
}

.card-custom {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Стилі для блоку новин */
.news-item {
    transition: all 0.3s ease;
    border-left: 3px solid var(--success-color);
    padding: 1.75rem;
}

.news-item:hover {
    background-color: #f0f2f5;
    transform: translateX(5px);
}

.news-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    background-color: rgba(112, 108, 125, 0.1);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

/* Стилі для блоку статистики */
.stat-item {
    position: relative;
    padding: 1.75rem;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.stat-item:hover {
    border-left-color: var(--success-color);
    transform: translateX(5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--success-color);
    margin-right: 1.25rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Стилі для блоку контактів */
.contact-info {
    margin-top: 2rem;
}

.contact-info .material-icons {
    font-size: 1.35rem;
    background-color: rgba(25, 52, 135, 0.1);
    padding: 10px;
    border-radius: 50%;
    color: var(--success-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--success-color);
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Розширені стилі для форми */
.contact-form {
    position: relative;
    padding: 1rem 0;
}

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

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

.contact-form .form-control {
    height: 52px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: var(--success-color);
    box-shadow: none;
    background-color: #fff;
}

.contact-form .invalid-feedback {
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.5rem;
}

.btn-submit {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-submit:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Стилі для статей */
.timeline .card-custom {
    position: relative;
    margin-bottom: 2rem;
    border-left: 3px solid var(--success-color);
}

.timeline .card-custom::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.match-fact {
    border-radius: 0;
    background-color: #f0f2f5;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 2px solid var(--success-color);
}

.match-fact:hover {
    background-color: #e6e9ec;
    transform: translateX(3px);
}

/* Стилі для експертних думок */
.card-custom .card-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-custom .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--success-color);
}

.text-muted {
    font-size: 0.9rem;
}

/* Стилі для тактичних схем */
.badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
}

/* Головні новини дня */
.card-custom .img-fluid {
    transition: all 0.5s ease;
}

.card-custom:hover .img-fluid {
    transform: scale(1.03);
}

/* Новини чемпіонатів */
.position-relative .news-item {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Трансферні новини */
.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Responsive стилі */
@media (max-width: 991px) {
    .stat-icon {
        font-size: 1.75rem;
        margin-right: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .map-container {
        min-height: 300px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .news-item, 
    .stat-item,
    .card-custom {
        padding: 1.25rem;
    }
    
    .card-custom .card-body {
        padding: 1.25rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .contact-info .d-flex {
        flex-direction: column;
    }
    
    .contact-info .material-icons {
        margin-bottom: 0.5rem;
    }
}