﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.header {
    padding: 0.5rem 0;
}

.header .row {
    align-items: center;
}

.logo-placeholder {
    padding: 10px 15px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
}

.logo-placeholder .fs-4 {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

.logo-placeholder .small {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
    line-height: 1.2;
}

.logo-placeholder a {
    text-decoration: none !important;
}

.btn-calendar-text {
    display: inline-block;
}

@media (min-width: 769px) {
    .logo-placeholder .fs-4 {
        font-size: 1.75rem !important;
    }

    .logo-placeholder .small {
        font-size: 0.875rem;
    }

    .header .col-md-6.text-md-end {
        text-align: right !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .logo-placeholder .small {
        display: none !important;
    }

    .logo-placeholder .fs-4 {
        font-size: 1.25rem !important;
        font-weight: 600;
    }

    .btn-calendar-text {
        display: none !important;
    }

    .btn.btn-outline-secondary.btn-sm.ms-2 {
        padding: 0.375rem 0.5rem !important;
        margin-left: 0.5rem !important;
    }

    .header .row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .header .col-md-6 {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .header .col-md-6:first-child {
        flex-grow: 1;
        text-align: left !important;
    }

    .header .col-md-6.text-md-end {
        flex-grow: 0;
        text-align: right !important;
        margin-left: auto !important;
    }

    .header .row.align-items-center {
        gap: 0 !important;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.4rem 0 !important;
    }

    .logo-placeholder {
        padding: 8px 12px !important;
    }

    .logo-placeholder .fs-4 {
        font-size: 1.1rem !important;
    }

    .btn.btn-outline-secondary.btn-sm.ms-2 {
        padding: 0.25rem 0.375rem !important;
        min-width: 36px !important;
        margin-left: 0.25rem !important;
    }

    .btn.btn-outline-secondary.btn-sm.ms-2 i {
        margin: 0 !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 400px) {
    .logo-placeholder .fs-4 {
        font-size: 1rem !important;
    }

    .logo-placeholder {
        padding: 6px 10px !important;
    }

    .btn.btn-outline-secondary.btn-sm.ms-2 {
        padding: 0.2rem 0.3rem !important;
        min-width: 32px !important;
    }
}

.logo-placeholder a:hover {
    opacity: 0.8;
}

.logo-placeholder .small,
.btn-calendar-text {
    transition: opacity 0.3s ease;
}

.divider-line {
    height: 2px;
    background-color: #e9ecef;
    margin: 0;
}

.component-wrapper {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.component-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .component-wrapper {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .component-wrapper {
        padding: 0.75rem;
        border-radius: 4px;
    }
}

.afisha-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.afisha-card:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.1);
}

.afisha-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.afisha-card .card-body {
    padding: 1.25rem;
}

@media (max-width: 992px) {
    .afisha-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .afisha-card .card-img-top {
        height: 140px;
    }

    .afisha-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .afisha-card {
        margin-bottom: 1rem;
    }

    .afisha-card .card-img-top {
        height: 120px;
    }

    .afisha-card .card-body {
        padding: 0.75rem;
    }

    .afisha-card .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.footer {
    margin-top: 3rem;
}

.footer-top {
    padding: 2rem 0;
}

.footer-bottom {
    padding: 1rem 0;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
    }

    .footer-top {
        padding: 1.5rem 0;
    }

    .footer-bottom {
        text-align: center;
        padding: 0.75rem 0;
    }

    .footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 1rem 0;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        line-height: 32px;
        margin-right: 0.5rem;
    }

    .subscribe-form .input-group {
        flex-direction: column;
    }

    .subscribe-form .input-group input,
    .subscribe-form .input-group button {
        width: 100%;
        border-radius: 4px !important;
        margin: 2px 0;
    }
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    body {
        font-size: 0.9rem;
    }
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

.form-control {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
}

.form-select {
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
}

@media (max-width: 768px) {

    .form-control,
    .form-select {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {

    .form-control,
    .form-select {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    padding: 0.5rem 0.75rem;
    margin: 2px;
}

@media (max-width: 768px) {
    .pagination {
        margin: 0.5rem 0;
    }

    .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin: 1px;
    }
}

.d-none-mobile {
    display: block;
}

.d-only-desktop {
    display: none;
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .d-only-desktop {
        display: block !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a,
button,
.btn,
.card {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*@media (min-width: 576px) {
    body:after { content: 'sm'; background: orange; }
}

@media (min-width: 768px) {
    body:after { content: 'md'; background: yellow; color: black; }
}

@media (min-width: 992px) {
    body:after { content: 'lg'; background: green; }
}

@media (min-width: 1200px) {
    body:after { content: 'xl'; background: blue; }
}

@media (min-width: 1400px) {
    body:after { content: 'xxl'; background: purple; }
}*/