/* Custom CSS for Website Template */

/* =============================================
   DSP Design Tokens — shared with homepage
   ============================================= */
:root {
    /* Legacy tokens (kept for backward compat in other pages) */
    --primary-color: #06b6d4;
    --secondary-color: #4a5568;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #dc3545;
    --info-color: #3b82f6;
    --light-color: #f0f4f8;
    --dark-color: #0a0e17;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

    /* DSP tokens — dark tier */
    --dsp-ink:        #0a0e17;
    --dsp-slate:      #111827;
    --dsp-surface:    #1a2035;
    /* DSP tokens — light tier */
    --dsp-card:       #ffffff;
    --dsp-bg:         #f0f4f8;
    --dsp-bg-alt:     #e2e8f0;
    /* Text */
    --dsp-text:       #1a202c;
    --dsp-text-2:     #4a5568;
    --dsp-text-3:     #8b949e;
    --dsp-text-inv:   #e2e8f0;
    --dsp-text-inv-2: #94a3b8;
    /* Primary accent — cyan */
    --dsp-cyan:       #06b6d4;
    --dsp-cyan-hover: #22d3ee;
    /* Secondary — blue */
    --dsp-blue:       #3b82f6;
    --dsp-blue-hover: #60a5fa;
    /* Success — green */
    --dsp-accent:     #10b981;
    --dsp-accent-hover: #34d399;
    /* Warning — amber */
    --dsp-amber:      #f59e0b;
    /* Aliases */
    --dsp-teal:       #06b6d4;
    --dsp-teal-hover: #22d3ee;
    --dsp-purple:     #8b5cf6;
    --dsp-purple-hover: #a78bfa;
    /* Border */
    --dsp-border:     rgba(0,0,0,0.07);
    --dsp-border-dark:rgba(255,255,255,0.1);
    --dsp-nav-h:      60px;
    --dsp-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --dsp-mono:       "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --r-sm: 6px;
    --r-md: 10px;
}

/* Global mobile foundation */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--dsp-font);
    line-height: 1.6;
    color: var(--dsp-text);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

/* Safe area padding for notched phones */
@supports(padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Universal touch target minimum */
@media (hover: none) and (pointer: coarse) {
    a, button, [role="button"], input, select, textarea, .dsp-btn, .dsp-nav__link, .dsp-nav__cta {
        min-height: 44px;
    }
    select, input[type="text"], input[type="email"], input[type="tel"], textarea {
        font-size: 16px !important; /* prevent iOS zoom */
    }
}

/* =============================================
   DSP Navbar
   ============================================= */
.dsp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--dsp-nav-h);
    background: var(--dsp-ink);
    border-bottom: 1px solid var(--dsp-border-dark);
    transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.dsp-nav--scrolled {
    background: rgba(15, 17, 23, 0.97);
    box-shadow: 0 1px 12px rgba(0,0,0,0.3);
    border-color: transparent;
}
.dsp-nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Brand */
.dsp-nav__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.15s;
}
.dsp-nav__brand:hover { color: var(--dsp-cyan); }
.dsp-nav__brand-symbol {
    font-family: var(--dsp-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dsp-cyan);
    opacity: 0.9;
}

/* Menu */
.dsp-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.dsp-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dsp-text-inv-2);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.dsp-nav__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.dsp-nav__link--active {
    color: #fff;
    font-weight: 600;
}
.dsp-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--dsp-cyan);
    border-radius: 1px;
}
.dsp-nav__link--icon {
    padding: 6px 10px;
    font-size: 0.9375rem;
}
/* Make active link position relative for the underline */
.dsp-nav__menu li { position: relative; }

/* CTA */
.dsp-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 7px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--dsp-cyan);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.dsp-nav__cta:hover {
    background: var(--dsp-cyan-hover);
    color: #fff;
    box-shadow: 0 2px 10px rgba(6,182,212,0.35);
}

/* Mobile toggle */
.dsp-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--dsp-border-dark);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    cursor: pointer;
    margin-left: auto;
    width: 44px;
    height: 38px;
    transition: background 0.15s, border-color 0.15s;
}
.dsp-nav__toggle:hover,
.dsp-nav__toggle--open {
    background: rgba(6,182,212,0.1);
    border-color: rgba(6,182,212,0.3);
}
.dsp-nav__toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s, background 0.15s;
}
.dsp-nav__toggle:hover .dsp-nav__toggle-bar { background: var(--dsp-cyan); }
.dsp-nav__toggle--open .dsp-nav__toggle-bar { background: var(--dsp-cyan); }

/* =============================================
   DSP Footer
   ============================================= */
.dsp-footer {
    background: var(--dsp-ink);
    color: var(--dsp-text-inv-2);
    padding: 64px 0 0;
    font-size: 0.875rem;
    line-height: 1.7;
    border-top: 1px solid var(--dsp-border-dark);
}
.dsp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    background: var(--dsp-ink);
}
.dsp-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 16px;
}
.dsp-footer__brand:hover { color: var(--dsp-cyan); }
.dsp-footer__brand-symbol {
    font-family: var(--dsp-mono);
    font-weight: 700;
    color: var(--dsp-cyan);
    font-size: 0.9375rem;
}
.dsp-footer__desc {
    color: var(--dsp-text-inv-2);
    margin-bottom: 20px;
    max-width: 320px;
}
.dsp-footer__socials {
    display: flex;
    gap: 12px;
}
.dsp-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--dsp-border-dark);
    color: var(--dsp-text-inv-2);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dsp-footer__socials a:hover {
    color: #fff;
    border-color: var(--dsp-cyan);
    background: rgba(6,182,212,0.1);
}
.dsp-footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dsp-text-inv);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.dsp-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dsp-footer__links li { margin-bottom: 8px; }
.dsp-footer__links a {
    color: var(--dsp-text-inv-2);
    text-decoration: none;
    transition: color 0.15s;
}
.dsp-footer__links a:hover { color: var(--dsp-cyan); }
.dsp-footer__links--contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.dsp-footer__links--contact i {
    color: var(--dsp-cyan);
    margin-top: 4px;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.dsp-footer__links--contact span {
    color: var(--dsp-text-inv-2);
}
.dsp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--dsp-border-dark);
    font-size: 0.8125rem;
    color: var(--dsp-text-3);
}
.dsp-footer__bottom p { margin: 0; }
.dsp-footer__bottom-link {
    color: var(--dsp-text-3);
    text-decoration: none;
    transition: color 0.15s;
}
.dsp-footer__bottom-link:hover { color: var(--dsp-cyan); }

/* Main layout with fixed nav offset */
.dsp-main {
    padding-top: var(--dsp-nav-h);
    min-height: calc(100vh - 200px);
}

/* Breadcrumb - Hidden for cleaner UI but kept in HTML for SEO */
.breadcrumb-nav,
.breadcrumb {
    display: none !important;
}

/* Alternative: Keep breadcrumbs accessible to screen readers and search engines only */
/* Uncomment this and remove the display:none above if you prefer this approach
.breadcrumb-nav,
.breadcrumb {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
*/

/* Legacy main content (backward compat) */
.main-content {
    padding-top: var(--dsp-nav-h, 60px);
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.1) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

/* Blog Cards */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
body {
    padding-top: 0;
}

/* DSP Navbar — Mobile */
@media (max-width: 991px) {
    .dsp-nav__toggle {
        display: flex;
    }
    .dsp-nav {
        height: auto;
        min-height: var(--dsp-nav-h);
    }
    .dsp-nav__inner {
        flex-wrap: wrap;
    }
    .dsp-nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 12px 0 16px;
        border-top: 1px solid var(--dsp-border-dark);
    }
    .dsp-nav__menu--open {
        display: flex;
    }
    .dsp-nav__menu li { position: static; }
    .dsp-nav__link {
        padding: 10px 12px;
        border-radius: var(--r-sm);
        width: 100%;
    }
    .dsp-nav__link:hover {
        background: rgba(255,255,255,0.06);
    }
    .dsp-nav__link--active::after {
        display: none;
    }
    .dsp-nav__link--active {
        background: rgba(6,182,212,0.1);
        color: var(--dsp-cyan);
    }
    .dsp-nav__cta {
        margin-left: 0;
        margin-top: 4px;
        justify-content: center;
        padding: 10px 18px;
        min-height: 44px;
    }
    .dsp-nav__link {
        min-height: 44px;
    }
    /* Hamburger animation */
    .dsp-nav__toggle--open .dsp-nav__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .dsp-nav__toggle--open .dsp-nav__toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .dsp-nav__toggle--open .dsp-nav__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* DSP Footer — Mobile */
@media (max-width: 991px) {
    .dsp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .dsp-footer__brand-col {
        grid-column: 1 / -1;
    }
}
@media (max-width: 767px) {
    .dsp-footer {
        padding: 48px 0 0;
    }
    .dsp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .dsp-footer__desc {
        max-width: 100%;
    }
    .dsp-footer__brand-col {
        text-align: center;
    }
    .dsp-footer__socials {
        justify-content: center;
    }
    .dsp-footer__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .dsp-footer__col {
        text-align: center;
    }
    .dsp-footer__links--contact li {
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .dsp-footer {
        padding: 40px 0 0;
    }
    .dsp-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dsp-footer__brand-col,
    .dsp-footer__col {
        text-align: center;
    }
    .dsp-footer__socials {
        justify-content: center;
    }
    .dsp-footer__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .dsp-footer__links--contact li {
        justify-content: center;
    }
    .dsp-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Improve card layout on tablet */
    .card {
        margin-bottom: 2rem;
    }

    /* Footer responsive */
    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 576px) {

    .hero-section {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    /* Container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Improve form controls on mobile */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Footer stacking */
    footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }

    footer .social-links {
        justify-content: center;
        display: flex;
    }

    /* Buttons full width on mobile when needed */
    .btn-block-mobile {
        width: 100%;
        display: block;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Very compact spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 1rem 0;
    }

    section {
        padding: 2rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Better tap highlighting */
    a, button, .btn {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
    }
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Print Styles */
@media print {
    .dsp-nav, .dsp-footer, .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%) !important;
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.border-radius-xl {
    border-radius: 20px !important;
}


.location-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 60px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.location-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.location-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.location-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.location-info {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.location-item:hover {
    transform: translateX(5px);
}

.location-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.location-details h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.location-details p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.location-details a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.location-details a:hover {
    text-decoration: underline;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        order: 2;
        padding: 30px;
    }
    
    .map-container {
        order: 1;
        min-height: 300px;
    }
    
    .location-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .location-header {
        padding: 25px 20px;
    }
    
    .location-info {
        padding: 25px 20px;
    }
    
    .location-item {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .location-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .location-title {
        font-size: 1.8rem;
    }
    
    .location-item {
        flex-direction: column;
        text-align: center;
    }
    
    .location-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



.location-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 60px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.location-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.location-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.location-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.location-info {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.location-item:hover {
    transform: translateX(5px);
}

.location-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.location-details h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.location-details p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.map-overlay h5 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.map-overlay p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        order: 2;
        padding: 30px;
    }
    
    .map-container {
        order: 1;
        min-height: 300px;
    }
    
    .location-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .location-header {
        padding: 25px 20px;
    }
    
    .location-info {
        padding: 25px 20px;
    }
    
    .location-item {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .location-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .map-overlay {
        top: 15px;
        right: 15px;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .location-title {
        font-size: 1.8rem;
    }
    
    .location-item {
        flex-direction: column;
        text-align: center;
    }
    
    .location-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
/* ========================================
   IMAGE OPTIMIZATION & RESPONSIVE IMAGES
   ======================================== */

/* Prevent image distortion with object-fit */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Aspect ratio preservation for card images */
.card-img-top,
.blog-card img,
.service-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Featured images with different aspect ratios */
.featured-image {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

.square-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.portrait-image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}

/* Picture element support */
picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
}

/* Responsive images with proper sizing */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Hero images - large viewport */
.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}

/* Thumbnail images */
.img-thumbnail {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Avatar images */
.avatar {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* Prevent CLS (Cumulative Layout Shift) */
.aspect-ratio-container {
    position: relative;
    width: 100%;
}

.aspect-ratio-container::before {
    content: '';
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-ratio-container img,
.aspect-ratio-container picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific aspect ratios */
.aspect-16-9::before {
    padding-bottom: 56.25%; /* 16:9 */
}

.aspect-4-3::before {
    padding-bottom: 75%; /* 4:3 */
}

.aspect-3-2::before {
    padding-bottom: 66.67%; /* 3:2 */
}

.aspect-1-1::before {
    padding-bottom: 100%; /* 1:1 (square) */
}

/* Image quality for different screen sizes */
@media (max-width: 576px) {
    .hero-image {
        max-height: 300px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-image {
        max-height: 400px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero-image {
        max-height: 500px;
    }
}

/* Modern image format fallback */
picture img {
    background: #f5f5f5; /* Fallback while loading */
}

/* Improve rendering performance */
img,
picture,
picture img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* For photographs, use smooth rendering */
.photo,
.blog-image,
.service-image {
    image-rendering: auto;
}

/* Prevent image drag for better UX */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Gallery images */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
