﻿/* Base Variables */
:root {
    --primary-color: #1b4332;
    --secondary-color: #ddb892;
    --accent-color: #b08d57;
    --hover-color: #2d6a4f;
    --text-color: #333;
    --gradient-start: #b08d57;
    --gradient-end: #ddb892;
    --glass-bg: rgba(27, 67, 50, 0.1);
    --glass-border: rgba(221, 184, 146, 0.2);
    --gold-gradient: linear-gradient(135deg, #b08d57, #ddb892);
    --green-gradient: linear-gradient(135deg, #1b4332, #2d6a4f);
    --dark-green-gradient: linear-gradient(135deg, #081c15, #1b4332);
    --gold-brown-gradient: linear-gradient(135deg, #b08d57, #816653, #b08d57);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    color: var(--text-color);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, 
        rgba(27, 67, 50, 0.05) 0%,
        rgba(221, 184, 146, 0.1) 50%,
        rgba(176, 141, 87, 0.05) 100%
    );
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(221, 184, 146, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(176, 141, 87, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Contact Wrapper */
.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(221, 184, 146, 0.1),
        rgba(27, 67, 50, 0.05),
        rgba(176, 141, 87, 0.1)
    );
    border-radius: 30px;
    z-index: -1;
    backdrop-filter: blur(10px);
}

/* Header Styles */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
}

.contact-header h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-header h4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.gradient-text {
    background: var(--dark-green-gradient);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    animation: gradientMove 3s ease infinite;
}

.info-card h3.gradient-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.form-header h2.gradient-text {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.header-underline {
    width: 100px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.header-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Contact Sections */
.contact-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 184, 146, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(27, 67, 50, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-section:nth-child(1) { animation-delay: 0.6s; }
.contact-section:nth-child(2) { animation-delay: 0.8s; }
.contact-section:nth-child(3) { animation-delay: 1s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-sections {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .contact-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-sections {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .contact-section {
        padding: 1.5rem;
    }
}

/* Section Title */
.section-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

/* Contact Buttons Container */
.email-container,
.phone-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    margin: 0.5rem 0;
}

/* Social Media Container */
.social-media-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    margin: 0.5rem 0;
}

/* Contact Buttons */
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    min-height: 60px;
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    margin: 0 auto;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    backdrop-filter: blur(0px);
}

.contact-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gold-gradient);
    border-radius: 50px;
    z-index: -2;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.contact-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 48px;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-button i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(27, 67, 50, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(12px);
}

.contact-button:hover::before {
    opacity: 1;
    background: var(--green-gradient);
}

.contact-button:hover::after {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    transform: scale(0.99);
}

.contact-button .shine-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.contact-button:hover .shine-effect {
    transform: translateX(100%);
    transition: transform 0.8s ease;
}

@keyframes glassShimmer {
    0% {
        opacity: 0;
        transform: translateX(-100%) skewX(-15deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) skewX(-15deg);
    }
}

.contact-button:hover i {
    color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(27, 67, 50, 0.3));
}

/* Social Media Icons Container */
.social-media-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(27, 67, 50, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(221, 184, 146, 0.3);
    max-width: 400px;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(27, 67, 50, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.social-media-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(27, 67, 50, 0.05),
        rgba(221, 184, 146, 0.1)
    );
    border-radius: 20px;
    z-index: -1;
}

/* Social Icon Base Styles */
.social-icon {
    position: relative;
    width: 75px;
    height: 75px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(27, 67, 50, 0.2);
    box-shadow: 
        0 8px 20px rgba(27, 67, 50, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
    background: var(--green-gradient);
}

/* Viber Specific Styles */
.social-icon.viber::before {
    background: linear-gradient(135deg, 
        #003366 0%,
        #665CAC 50%,
        #BE59B3 100%
    );
    box-shadow: 0 5px 15px rgba(102, 92, 172, 0.4);
}

.social-icon.viber i {
    background: linear-gradient(135deg, #665CAC, #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* WhatsApp Specific Styles */
.social-icon.whatsapp::before {
    background: linear-gradient(135deg, 
        #003366 0%,
        #25D366 50%,
        #128C7E 100%
    );
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.social-icon.whatsapp i {
    background: linear-gradient(135deg, #25D366, #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Messenger Specific Styles */
.social-icon.messenger::before {
    background: linear-gradient(135deg, 
        #003366 0%,
        #00B2FF 50%,
        #006AFF 100%
    );
    box-shadow: 0 5px 15px rgba(0, 178, 255, 0.4);
}

.social-icon.messenger i {
    background: linear-gradient(135deg, #00B2FF, #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Icon Inner Styles */
.social-icon i {
    font-size: 2.2rem;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Hover Effects */
.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 30px rgba(27, 67, 50, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.3);
    border-color: rgba(221, 184, 146, 0.4);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    -webkit-text-fill-color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(27, 67, 50, 0.3));
}

/* Glass Effect Enhancement */
.social-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.social-icon:hover::after {
    opacity: 1;
}

/* Locations Section */
.locations-section {
    grid-column: 1 / -1;
}

.location-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.map-container {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(27, 67, 50, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(221, 184, 146, 0.2);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(221, 184, 146, 0.1),
        rgba(176, 141, 87, 0.1)
    );
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Branches Grid */
.branches-section {
    padding-top: 2rem;
}

.branches-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.branches-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.branch-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(221, 184, 146, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 10px 30px rgba(27, 67, 50, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(221, 184, 146, 0.1),
        rgba(176, 141, 87, 0.1)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(27, 67, 50, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border-color: rgba(221, 184, 146, 0.4);
}

.branch-card:hover::before {
    opacity: 1;
}

.branch-title {
    background: linear-gradient(135deg, 
        var(--gold-gradient),
        var(--gold-brown-gradient)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.branch-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--gold-gradient),
        var(--gold-brown-gradient)
    );
    border-radius: 2px;
}

.branch-address {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.branch-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-link, .map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-link:hover, .map-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-link i, .map-link i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-link:hover i, .map-link:hover i {
    color: var(--accent-color);
}

/* Scroll to Top Button Enhancement */
.scroll-top-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--gold-gradient),
        var(--dark-green-gradient)
    );
    box-shadow: 
        0 8px 20px rgba(27, 67, 50, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
}

.scroll-top-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(27, 67, 50, 0.25),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.scroll-top-button i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientStatic {
    0%, 100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.icon-container {
    width: 100px; /* Fixed width for uniformity */
    height: 100px; /* Fixed height for uniformity */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: hidden; /* Hide overflow */
}

    .icon-container img {
        width: 100%; /* Scale to fit container width */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Contain within the div */
    }
/* Card styling */
.card {
    border-radius: 15px; /* Smooth rounded corners */
    height: auto !important; /* Change from fixed height to auto */
    min-height: 300px; /* Set a minimum height instead of fixed */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
    padding: 15px !important;
    justify-content: space-between; /* Spread content evenly */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the card */
    position: relative; /* Keep content inside the card */
    margin-bottom: 0; /* Remove bottom margin */
}
.card-title {
    font-size: 1.25rem; /* Smaller title font size */
    color: #003366 !important; /* Dark blue color */
    font-weight: bold !important; /* Bold text */
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
}
/* Keep buttons from affecting card size */
.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Spread content, including buttons */
    flex-grow: 1; /* Allow body to grow and fill space */
    width: 100%; /* Ensure it takes full card width */
    padding: 10px; /* Adjust padding to avoid overflow */
    box-sizing: border-box;
}
.card-text {
    overflow: visible; /* Add ellipsis (...) to overflowing text */
    display: -webkit-box; /* Display as a flexbox */
    -webkit-box-orient: vertical; /* Set the orientation to vertical */
    -webkit-line-clamp: 3; /* Limit to 3 lines of text */
    max-height: 4.5em; /* Fixed height for text */
    font-size: 15px; /* Smaller text size */ /* Fixed height for text */
    color: #003366 !important; /* Dark blue color */
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
}

/* Hover effect on card */
.card:hover {
    background-color: rgba(100, 120, 180, 0.1); /* Desaturated blue */
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.1); /* Stronger shadow on hover */
}
.row {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 0; /* Remove bottom margin */
}

.col-12.col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px; /* Add bottom padding to create gap */
}

.contact-info-container {
    background: rgba(76, 175, 220, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(50, 0, 139, 0.1);
    text-align: center;
    margin: 20px 0;
    width: 100%;
    max-width: 700px;
    padding: 20px;
}
.image-container {
    display: flex; /* Ensure the icons are laid out in a row */
    justify-content: center; /* Center the content horizontally */
    margin-bottom: 20px; /* Add space below the image container */
    overflow: visible; /* Allow images to overflow if scaled */
}

.icon-container {
    width: 100px; /* Fixed width for uniformity */
    height: 100px; /* Fixed height for uniformity */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: visible; /* Hide overflow */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

    .icon-container img {
        width: 100%; /* Scale to fit container width */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Contain within the div */
        transition: transform 0.3s ease; /* Smooth transition for scaling */
    }

    /* Scale image on hover */
    .icon-container:hover img {
        transform: scale(1.1); /* Slightly enlarge the image on hover */
        overflow: visible; /* Allow overflow on hover */
    }

h1, h2, h3, h4 {
    background: var(--dark-green-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: bold !important;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
    text-align: center;
}

h1 {
    font-size: 60px !important;
    text-align: center;
}

h4 a {
    background: var(--dark-green-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    transition: background-color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
}

h4 a:hover {
    background: var(--gold-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.contact-info-container h1, .contact-info-container h2 {
    margin-bottom: 15px; /* Spacing below headers */
}

.container-fluid {
    max-width: 80%; /* Limit the container width */
    display: flex;
    justify-content: flex-start; /* Align cards to the left */
    flex-wrap: wrap; /* Allow wrapping for responsive design */
    gap: 10px; /* Space between cards */
    margin: 40px;
}

.btn-xlarge {
    padding: 30px 20px !important;
    font-size: 30px !important;
    padding: 15px !important;
    margin: 20px;
}

.scroll-top {
    position: fixed;
    bottom: 20px; /* Changed from 40px to 20px */
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 51, 102, 0.2) !important;
    border-radius: 50% !important;
    border: none;
    display: flex; /* Added to enable centering */
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

    .scroll-top:hover {
        background-color: rgba(0, 51, 102, 0.8); /* Change background on hover */
        opacity: 1; /* Fully visible on hover */
        border-radius: 50% !important;
        transform: scale(1.15); /* Scale up slightly on hover */
    }

    .scroll-top:focus {
        outline: 2px solid rgba(76, 175, 80, 0.8) !important; /* Custom outline */
        outline-offset: 2px !important; /* Space between the outline and the button */
    }

    .scroll-top i {
        font-size: 24px; /* Increased from 20px to 24px for better visibility */
        color: #fff;
        display: flex; /* Added to ensure proper centering */
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

.location-title {
    text-align: center;
    font-size: 40px;
    margin: 30px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 48%; /* Ensure two cards fit on larger screens */
        max-width: 48%;
    }
}

/* Add this new class for centering content */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Adjust this value as needed */
    margin: 0 auto;
}

.maps-container {
    margin-bottom: 20px; /* Add 20px space at the bottom */
}

/* Adjust the scroll-top button position */
.scroll-top {
    position: fixed;
    bottom: 55px; /* Changed from 40px to 20px */
    right: 40px;
    /* ... rest of the properties remain the same ... */
}

/* Remove or adjust negative margin if present */
.row {
    margin-left: 0; /* Changed from -25px */
    margin-right: 0; /* Changed from -25px */
    margin-bottom: 20px; /* Add 20px space at the bottom */
}

/* Ensure the last row of cards has proper spacing */
.col-12.col-md-6:last-child {
    margin-bottom: 0;
}

/* Adjust the container padding if necessary */
.container {
    padding-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .card {
        padding: 10px !important;
    }

    .card-text {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .btn-dark.btn-lg {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* Specific styling for the location button */
.btn-dark.btn-lg {
    padding: 5px 10px;
    font-size: 16px;
    margin-top: 5px;
}

/* Adjust the row margins and padding */
.row {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 0; /* Remove bottom margin */
}

/* Adjust the column padding */
.col-12.col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px; /* Add bottom padding to create gap */
}

/* Remove bottom margin from cards */
.card {
    margin-bottom: 0;
}

/* Adjust the container padding if necessary */
.container {
    padding-bottom: 0;
}

/* Ensure the last row of cards doesn't have extra bottom padding */
.col-12.col-md-6:last-child,
.col-12.col-md-6:nth-last-child(2) {
    padding-bottom: 0;
}

/* For mobile view, adjust the bottom padding */
@media (max-width: 767px) {
    .col-12.col-md-6 {
        padding-bottom: 15px;
    }

    .col-12.col-md-6:last-child {
        padding-bottom: 0;
    }
}

/* Location Container Enhanced */
.location-info-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(27, 67, 50, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(221, 184, 146, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.location-info-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(27, 67, 50, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.location-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.location-details {
    flex: 0 0 250px; /* Reduced width for details section */
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(221, 184, 146, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.location-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(221, 184, 146, 0.1),
        rgba(176, 141, 87, 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-details:hover::before {
    opacity: 1;
}

.location-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.location-address {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
}

.location-address p {
    margin: 0.5rem 0;
    transition: transform 0.3s ease;
}

.location-address p:hover {
    transform: translateX(10px);
}

.map-section {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.location-marker {
    display: none;
}

@keyframes markerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes markerGlow {
    0%, 100% {
        transform: scale(1);
    }
}

.email-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.open-maps-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.1);
}

.open-maps-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gold-gradient);
    border-radius: 50px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.open-maps-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 48px;
    z-index: -1;
    transition: all 0.3s ease;
}

.open-maps-button:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 25px rgba(176, 141, 87, 0.3);
}

.open-maps-button:hover::before {
    opacity: 1;
}

.open-maps-button:hover::after {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.open-maps-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.open-maps-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .location-content {
        flex-direction: column;
        gap: 2rem;
    }

    .location-details {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 1.5rem;
    }

    .map-section {
        width: 100%;
        min-height: 400px;
    }

    .map-section iframe {
        min-height: 400px;
    }

    .location-marker {
        display: none;
    }
}

/* Update existing styles */
.contact-sections {
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Add these animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Update contact header with animation */
.contact-header {
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
}

.contact-header h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-header h4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Animate contact sections */
.contact-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-section:nth-child(1) { animation-delay: 0.6s; }
.contact-section:nth-child(2) { animation-delay: 0.8s; }
.contact-section:nth-child(3) { animation-delay: 1s; }

/* Animate location section */
.location-info-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-header {
        padding: 0 1rem;
    }

    .contact-header h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .contact-header h4 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .contact-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
        width: 100%;
    }

    .contact-section {
        padding: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }

    .social-media-container {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-button {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .location-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }

    .location-details {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
    }

    .location-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .location-address {
        font-size: 1rem;
    }

    .map-section {
        width: 100%;
        min-height: 300px;
        margin: 0;
    }

    .map-section iframe {
        min-height: 300px;
    }

    .open-maps-button {
        width: 90%;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    .location-marker {
        display: none;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 1.75rem;
    }

    .contact-header h4 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .button-text {
        font-size: 0.9rem;
    }

    .map-section {
        min-height: 250px;
    }

    .contact-section {
        padding: 1rem;
    }

    .contact-button {
        padding: 0.8rem 1.2rem;
    }
}

/* Improve glass effect on mobile */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(221, 184, 146, 0.2);
    }

    .contact-button {
        backdrop-filter: blur(8px);
    }

    .location-info-container {
        padding: 1rem;
        margin: 1rem 0;
    }
}

.phone-button .button-text {
    font-size: 0.95rem;  /* Smaller font size specifically for phone number */
}

