:root {
    --primary-color: #8A7968; /* Warm taupe - elegant and sophisticated */
    --secondary-color: #C5B9A9; /* Creamy tone - soft and luxurious */
    --accent-color: #D4AF37; /* Gold - represents luxury, keeping this for Kazakhstan identity */
    --light-color: #FAF7F2; /* Warm milk-white - clean and spacious */
    --dark-color: #4A4A4A; /* Soft charcoal - elegant without heaviness */
    --highlight-color: #E6DFD3; /* Soft cream - complementary to fur tones */
    --text-color: #5A5A5A; /* Medium gray for better readability on light background */
    --subtle-color: #F0EBE3; /* Very subtle cream for backgrounds and accents */
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Consistent shadow for elements */
    --transition: all 0.3s ease; /* Consistent transition for animations */
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.display-4 {
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

p {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    color: var(--dark-color);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--highlight-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-light {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-light:hover {
    background-color: var(--light-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-outline-light:hover {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    border-bottom: 1px solid var(--highlight-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    transition: var(--transition);
    padding: 0;
    display: flex;
    align-items: center;
}

.brand-text {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.brand-text:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.navbar-brand:hover .brand-text:after {
    width: 100%;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
    }
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
    position: relative;
    margin: 0 5px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
    opacity: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link:hover:after {
    width: 50%;
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active:after {
    width: 50%;
    opacity: 1;
}

.footer {
    position: relative;
    width: 100%;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0;
    border-top: 1px solid var(--highlight-color);
    margin-top: 100px;
    display: flex;
    flex-direction: column;
}

/* Newsletter container in footer */
.newsletter-container {
    background-color: var(--subtle-color);
    border-color: var(--highlight-color) !important;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.newsletter-container:hover {
    border-color: var(--accent-color) !important;
}

.newsletter-container h5 {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.newsletter-container h5:after {
    display: none;
}

/* Newsletter form styles */
.newsletter-form {
    width: 100%;
}

.newsletter-form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-form-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

.newsletter-input-group {
    display: flex;
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.newsletter-input {
    height: 40px; /* Standardized height */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--highlight-color);
    transition: var(--transition);
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem; /* Consistent padding */
    flex: 1;
}

.newsletter-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.newsletter-button {
    height: 40px; /* Standardized height to match input */
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0 20px;
    transition: var(--transition);
    font-size: 0.9rem; /* Match input font size */
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: #c19b2e; /* Slightly darker gold */
    border-color: #c19b2e;
    color: white;
    transform: translateY(-1px); /* Subtle hover effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.newsletter-checkbox {
    display: flex;
    align-items: center; /* Center vertically */
    gap: 8px;
    flex-shrink: 0;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .newsletter-checkbox {
        margin-top: 0;
    }
}

.newsletter-checkbox .form-check-input {
    width: 16px; /* Standardized size */
    height: 16px; /* Standardized size */
    margin-top: 0;
    border-color: var(--highlight-color);
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.newsletter-checkbox .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.newsletter-checkbox .form-check-label {
    font-size: 0.85rem; /* Slightly smaller for better wrapping */
    margin-bottom: 0;
    line-height: 1.4; /* Better line height for wrapping */
    flex: 1; /* Allow label to take available space */
}

.newsletter-feedback-container {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .newsletter-input-group {
        width: 100%;
    }
    
    .newsletter-checkbox {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 4px;
        width: 100%;
    }
}

.footer-brand {
    position: relative;
    display: inline-block;
}

/* Improved footer column layout */
.footer .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

/* Ensure consistent column widths across all sections */
.footer .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive adjustments for footer */
@media (max-width: 991.98px) {
    /* Improved spacing and alignment for tablet view */
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Ensure consistent spacing between footer sections */
    .footer .row.g-4 > div:last-child {
        margin-bottom: 0;
    }
    
    /* Adjust newsletter container on tablet */
    .newsletter-container {
        padding: 1.5rem !important;
    }
}

@media (max-width: 767.98px) {
    /* Center align elements on mobile */
    .footer-brand, 
    .footer p,
    .footer h5 {
        text-align: center;
    }
    
    .footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer .social-icons {
        justify-content: center;
        margin: 1rem auto;
    }
    
    .newsletter-container .row {
        text-align: center;
    }
    
    /* Stack columns on mobile with improved spacing */
    .footer .col-6 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Last column in a row shouldn't have bottom margin */
    .footer .row > div:last-child .col-6:last-child {
        margin-bottom: 0;
    }
    
    /* Improve spacing on mobile */
    .footer .row.g-4 {
        row-gap: 1rem !important;
    }
    
    /* Ensure contact info and address don't wrap awkwardly */
    .footer-contact li,
    .footer .d-flex.align-items-start {
        flex-wrap: nowrap;
        align-items: flex-start !important;
    }
    
    /* Center the contact icons and text on mobile */
    .footer-contact li,
    .footer .d-flex.align-items-start {
        justify-content: center;
    }
    
    /* Ensure text doesn't wrap awkwardly on small screens */
    .footer p {
        word-wrap: break-word;
        max-width: 100%;
    }
}

.footer-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.brand-accent {
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin-bottom: 0; /* Remove margin as we're using gap */
    display: flex;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 15px;
    flex: 1;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0.7;
    transition: var(--transition);
}

/* Ensure privacy policy link has the same styling */
.footer-links a[asp-page="/Privacy"] {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding-left: 15px;
}

.footer-links a[asp-page="/Privacy"]:before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0.7;
}

.footer-links a[asp-page="/Privacy"]:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: translateX(5px);
}

.footer-links a[asp-page="/Privacy"]:hover:before {
    opacity: 1;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: translateX(5px);
}

.footer-links a:hover:before {
    opacity: 1;
}

.footer-contact {
    margin-top: 1.2rem;
}

.footer-contact li {
    margin-bottom: 0.6rem; /* Reduced vertical padding between address lines */
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    min-width: 25px; /* Increased fixed width for icons to improve alignment */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left-align icons for better text alignment */
}

.newsletter-form {
    position: relative;
    margin: 0;
    transition: var(--transition);
}

/* Adjust newsletter form for the new container */
.newsletter-container .newsletter-form {
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--highlight-color);
    padding: 0.375rem 0.75rem; /* Consistent with newsletter-input */
    font-size: 0.9rem;
    border-radius: 4px 0 0 4px;
    transition: var(--transition);
    height: 40px; /* Standardized height */
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
    background-color: white;
}

.newsletter-form .input-group {
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    display: flex; /* Ensure flexbox is used */
    align-items: stretch; /* Stretch items to same height */
}

.newsletter-form .btn-accent {
    padding: 0 20px; /* Consistent with newsletter-button */
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    height: 40px; /* Standardized height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .btn-accent:hover {
    background-color: #c19b2e; /* Consistent with newsletter-button hover */
    transform: translateY(-1px); /* Subtle hover effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.newsletter-form .form-check {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.newsletter-form .form-check-input {
    border-color: var(--highlight-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.newsletter-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.newsletter-form .form-check-label {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1; /* Allow label to take available space for better wrapping */
}

.newsletter-form .form-text {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

.newsletter-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

.newsletter-form .text-success {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

/* Responsive styles for newsletter form */
@media (max-width: 768px) {
    .newsletter-form {
        padding: 1.2rem;
    }
    
    .newsletter-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input, 
    .newsletter-form .form-control {
        border-radius: 4px;
        width: 100%;
    }
    
    .newsletter-button,
    .newsletter-form .btn-accent {
        border-radius: 4px;
        width: 100%;
    }
    
    .newsletter-checkbox {
        margin-top: 5px;
    }
    
    .newsletter-checkbox .form-check-label {
        font-size: 0.8rem;
    }
}

/* Fix for oversized checkbox in newsletter section */
.newsletter-section .form-check-input,
.form-check-input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .newsletter-form {
        padding: 1rem;
    }
    
    .newsletter-form .form-check-label {
        font-size: 0.8rem;
    }
    
    .newsletter-form .form-text {
        font-size: 0.75rem;
    }
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.footer .social-icons {
    display: flex;
    gap: 8px; /* Reduced spacing between social icons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.footer .social-icons a {
    font-size: 1.2rem;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--subtle-color);
    border: 1px solid var(--highlight-color);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--primary-color);
}

.footer .social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Kazakhstan-specific elements */
.kazakhstan-pattern {
    height: 20px;
    width: 100%;
    position: absolute;
    top: -10px;
    background: linear-gradient(90deg, 
        var(--accent-color) 25%, 
        transparent 25%, 
        transparent 50%, 
        var(--accent-color) 50%, 
        var(--accent-color) 75%, 
        transparent 75%, 
        transparent 100%);
    background-size: 20px 20px;
    opacity: 0.7;
}

.kazakh-ornament {
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.kazakh-ornament:before,
.kazakh-ornament:after {
    content: "❧";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.kazakh-ornament:before {
    left: 0;
}

.kazakh-ornament:after {
    right: 0;
}

.card {
    margin-bottom: 35px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
    width: 100%;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 0.8rem;
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.card-text {
    color: var(--text-color);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.card-footer {
    background-color: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 1.8rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.hero-section {
    background-color: var(--subtle-color);
    color: var(--primary-color);
    padding: 200px 0 180px;
    margin-bottom: 100px;
    text-align: center;
    position: relative;
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid var(--highlight-color);
    overflow: hidden;
    background-image: linear-gradient(to bottom right, rgba(250, 247, 242, 0.95), rgba(240, 235, 227, 0.95));
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    z-index: 1;
}

.hero-section:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-color);
    line-height: 1.6;
}

.hero-section .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 1.5px;
    box-shadow: var(--box-shadow);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 100px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        max-width: 90%;
    }

    .hero-section .btn {
        margin-bottom: 15px;
    }
}

.language-switcher {
    margin-left: 15px;
}

.language-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.language-switcher .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.language-switcher .dropdown-menu {
    min-width: 180px;
    padding: 0.5rem 0;
    border: 1px solid var(--highlight-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    max-height: 300px;
    overflow-y: auto;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
    background-color: var(--subtle-color);
    color: var(--accent-color);
}

.language-switcher .dropdown-divider {
    margin: 0.3rem 0;
    border-top: 1px solid var(--highlight-color);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Additional responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .card-img-top {
        height: 220px;
    }

    .footer {
        padding-bottom: 80px; /* Extra space for the fixed WhatsApp button */
    }
}

/* Additional Kazakhstan-inspired elements */
.kazakh-gold-accent {
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 1px;
}

.section-title {
    position: relative;
    margin-bottom: 2.8rem;
    text-align: center;
    font-weight: 400;
    color: var(--primary-color);
}

.section-title span {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title span:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

.section-title.text-start span:after {
    left: 0;
    transform: none;
}

/* Subtle decorative elements */
.subtle-snowflake-pattern {
    height: 40px;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    opacity: 0.6;
}

.subtle-snowflake-pattern:before,
.subtle-snowflake-pattern:after {
    content: "❄";
    color: var(--accent-color);
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.subtle-snowflake-pattern:before {
    left: 0;
}

.subtle-snowflake-pattern:after {
    right: 0;
}

/* About section styling */
.about-section {
    padding: 3rem 0;
}

.about-section p {
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/*
Purpose: Visual wrapper for the About page image.
- .about-image-container positions its children so that the decorative frame (.about-image-accent)
  can sit "behind" the actual image (.about-image) using z-index.
- Add your <img> with class "about-image" inside this container.
- If no image is provided, the accent frame still renders as a subtle design element.
*/
.about-image-container {
    position: relative;
    padding: 1.5rem;
}

/* Actual image inside the About block. It sits above the accent frame. */
.about-image {
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Decorative offset frame that creates a branded accent behind the image. */
.about-image-accent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid var(--accent-color);
    z-index: 1;
    transform: translate(15px, 15px);
}

/* Trust section styling */
.trust-section {
    background-color: var(--subtle-color);
    position: relative;
}

.trust-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.trust-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.trust-item {
    padding: 2.5rem 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: 8px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--box-shadow);
}

.trust-item:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    background-color: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.trust-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.8rem;
    opacity: 0.8;
    transition: var(--transition);
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
    opacity: 1;
}

.trust-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.trust-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.trust-item:hover h3:after {
    width: 60px;
}

.trust-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Steps styling */
.steps-container {
    margin: 3rem 0;
    position: relative;
}

.steps-container:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.5rem;
    width: 1px;
    background-color: var(--highlight-color);
    z-index: 1;
}

.step-item {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
    color: var(--primary-color);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    max-width: 90%;
}

/* Reviews section styling */
.reviews-section {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.reviews-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    z-index: 1;
}

.reviews-section .container {
    position: relative;
    z-index: 2;
}

.review-item {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.review-content {
    background-color: #fff;
    padding: 3rem;
    border: 1px solid var(--highlight-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.review-quote {
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 6rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    opacity: 0.2;
    line-height: 1;
}

.review-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.review-author {
    text-align: right;
    border-top: 1px solid var(--highlight-color);
    padding-top: 1.5rem;
}

.review-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-weight: 500;
}

.review-author p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--secondary-color);
    font-style: normal;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--subtle-color);
    border: 1px solid var(--highlight-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    left: 5%;
}

.carousel-control-next {
    right: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(25%) sepia(10%) saturate(1000%) hue-rotate(10deg) brightness(90%) contrast(85%);
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    opacity: 0.5;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    opacity: 0.7;
}

/* Contact section styling */
.contact-section {
    background-color: var(--light-color);
    position: relative;
}

.contact-info {
    padding: 1rem 0;
}

.contact-item {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    opacity: 0.8;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.contact-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.contact-text p.small {
    font-size: 0.85rem;
}

.social-contact a {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-contact a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.map-container {
    position: relative;
    padding: 1rem;
}

.map-container iframe {
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 3;
}

.map-accent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid var(--accent-color);
    z-index: 1;
    transform: translate(15px, 15px);
}

/* Authentication section styling */
.auth-section {
    background-color: var(--subtle-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.auth-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    z-index: 1;
}

.auth-section .container {
    position: relative;
    z-index: 2;
}

.auth-section .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.auth-section .card-body {
    padding: 2.5rem;
}

.auth-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.auth-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.auth-section .form-label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-section .form-control {
    padding: 0.8rem 1rem;
    border: 1px solid var(--highlight-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.auth-section .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.auth-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.auth-section a {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.auth-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Cookie Consent Banner Styling */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light-color);
    border-top: 1px solid var(--highlight-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1050;
    padding: 1.5rem 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.cookie-text h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.cookie-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.cookie-buttons .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}


/* Fix: Ensure CSS variables are defined correctly at :root (previously mistakenly declared with ::root) */
:root {
    --primary-color: #8A7968; /* Warm taupe - elegant and sophisticated */
    --secondary-color: #C5B9A9; /* Creamy tone - soft and luxurious */
    --accent-color: #D4AF37; /* Gold - represents luxury, keeping this for Kazakhstan identity */
    --light-color: #FAF7F2; /* Warm milk-white - clean and spacious */
    --dark-color: #4A4A4A; /* Soft charcoal - elegant without heaviness */
    --highlight-color: #E6DFD3; /* Soft cream - complementary to fur tones */
    --text-color: #5A5A5A; /* Medium gray for better readability on light background */
    --subtle-color: #F0EBE3; /* Very subtle cream for backgrounds and accents */
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Consistent shadow for elements */
    --transition: all 0.3s ease; /* Consistent transition for animations */
}


/* Fix 2: Define variables using html:root to avoid potential selector issues */
html:root {
    --primary-color: #8A7968;
    --secondary-color: #C5B9A9;
    --accent-color: #D4AF37;
    --light-color: #FAF7F2;
    --dark-color: #4A4A4A;
    --highlight-color: #E6DFD3;
    --text-color: #5A5A5A;
    --subtle-color: #F0EBE3;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* Externalized styles moved from Razor views */
.promotional-banner {
    background-color: var(--accent-color);
    color: #fff;
}
.promotional-banner h3 { color: #fff; }

/* Trust cards */
.trust-card {
    background-color: var(--subtle-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.trust-card i { color: var(--accent-color); }

/* Steps */
.steps-container .step-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--subtle-color);
    border-left: 3px solid var(--accent-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.steps-container .step-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
}
.steps-container i { color: var(--primary-color); }

/* Elevated card common style */
.card-elevated {
    background-color: var(--subtle-color);
    box-shadow: var(--box-shadow);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 6.5rem; /* moved up to avoid overlap with WhatsApp button */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent-color, #6c757d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease, transform .2s ease;
    transform: translateY(10px);
    z-index: 1030;
}
.back-to-top:hover { transform: translateY(6px); }
.back-to-top.show { opacity: 0.95; visibility: visible; transform: translateY(0); }

/* Prevent overlap: relocate Google reCAPTCHA badge away from bottom-right buttons */
.grecaptcha-badge {
    left: 20px !important; /* move to bottom-left */
    right: auto !important;
    bottom: 20px !important;
    z-index: 1025; /* keep visible above most UI but below modals */
}

@media (max-width: 576px) {
    /* On very small screens, keep badge at bottom-left so it doesn't collide with WhatsApp/back-to-top */
    .grecaptcha-badge {
        left: 12px !important;
        bottom: 12px !important;
    }
}


/* Payment logos styling */
.payment-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.payment-logo {
    height: 28px;
    width: auto;
    border-radius: 4px;
    background: transparent;
}
@media (min-width: 576px) {
    .payment-logo { height: 32px; }
}
