/* Custom styles for Lipski Eye Center */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Establishing a consistent font for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    /* Inherit the body font by default */
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: inherit;
}

main {
    flex: 1;
}

.navbar {
    transition: background-color 0.3s ease;
    background-color: var(--bs-dark) !important;
}

.navbar.scrolled {
    background-color: var(--bs-dark) !important;
}

/* Navbar hover styles */
.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: black !important;
}

.navbar .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

.navbar .active {
    color: blue !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

.card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 1rem 0;
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .navbar .nav-link::after {
        display: none;
    }
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons i {
    font-size: 1.5rem;
}

/* Facebook */
.social-icons .fa-facebook-f {
    color: #1877f2;
}

/* Twitter/X */
.social-icons .fa-twitter {
    color: #000000;
}

/* Instagram */
.social-icons .fa-instagram {
    color: #e4405f;
}

/* LinkedIn */
.social-icons .fa-linkedin-in {
    color: #0077b5;
}

/* YouTube */
.social-icons .fa-youtube {
    color: #ff0000;
}

/* Google */
.social-icons .fa-google {
    color: #ea4335;
}

/* Footer Social Icons */
.footer-social a {
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1.25rem;
}

/* Footer Facebook */
.footer-social .fa-facebook-f {
    color: #1877f2;
}

/* Footer Twitter/X */
.footer-social .fa-twitter {
    color: #000000;
}

/* Footer Instagram */
.footer-social .fa-instagram {
    color: #e4405f;
}

/* Footer LinkedIn */
.footer-social .fa-linkedin-in {
    color: #0077b5;
}

/* Footer YouTube */
.footer-social .fa-youtube {
    color: #ff0000;
}

/* Footer Google */
.footer-social .fa-google {
    color: #ea4335;
}

/* Section Styles */
section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
}

section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section Specific */
.hero-background {
    min-height: auto;
    padding: 0;
}

.hero-background .container {
    min-height: auto;
}

/* Section Spacing */
section+section {
    margin-top: 0;
}

/* Section Headers */
section h2 {
    margin-bottom: 3rem;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bs-primary);
    margin: 1rem auto 0;
}

/* Card Sections */
.card-section {
    background: #f8f9fa;
}

/* Doctor Cards Section */
.doctor-card {
    text-align: center;
    margin-bottom: 2rem;
}

.doctor-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.doctor-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.doctor-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Mobile Responsive Styles for Doctor Section */
@media (max-width: 768px) {
    .doctor-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .doctor-card img {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem auto;
    }

    .doctor-card .text-end {
        text-align: center !important;
    }

    .doctor-card .d-flex {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .doctor-card img {
        width: 120px;
        height: 120px;
    }
}

/* Services Section Styles */
.services-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    /* A medium dark gray */
    /* If you want it completely opaque, remove or set opacity to 1 */
    opacity: 1;
    z-index: 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .service-img {
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    color: #fff;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
}

.btn-modern {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: linear-gradient(45deg, #0056b3, #0097a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* General Styles */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .hero-background {
        padding: 2rem 0;
    }

    .hero-background h1 {
        font-size: 2rem;
    }

    .hero-background .lead {
        font-size: 1rem;
    }

    .hero-background .social-proof {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero-background .phone-number {
        font-size: 1.2rem;
    }

    /* Services Section */
    .services-section {
        padding: 2rem 0;
    }

    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem !important;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem !important;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }

    .btn-modern {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }

    /* Google Reviews Section */
    .review-card {
        margin: 0.5rem;
        padding: 1rem;
    }

    .review-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .review-card .d-flex>div {
        margin-bottom: 0.5rem;
    }

    .review-card .d-flex>div:last-child {
        margin-bottom: 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 28px;
        height: 28px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 10px;
        height: 10px;
    }

    .carousel-control-prev {
        margin-left: -14px;
    }

    .carousel-control-next {
        margin-right: -14px;
    }

    /* Doctor Section */
    .doctor-card {
        margin-bottom: 2rem;
    }

    .doctor-card img {
        width: 150px;
        height: 150px;
    }

    .doctor-card h3 {
        font-size: 1.25rem;
    }

    .doctor-card p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer p,
    .footer a {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

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

    /* Hero Section */
    .hero-background h1 {
        font-size: 1.75rem;
    }

    .hero-background .lead {
        font-size: 0.9rem;
    }

    .hero-background .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Services Section */
    .service-card {
        padding: 1rem !important;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    /* Google Reviews Section */
    .review-card {
        padding: 0.75rem;
    }

    .review-card .d-flex {
        font-size: 0.9rem;
    }

    /* Doctor Section */
    .doctor-card img {
        width: 120px;
        height: 120px;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    .service-icon {
        width: 90px;
        height: 90px;
    }
}

/* Ensure smooth transitions */
.service-card,
.review-card,
.doctor-card,
.btn,
.social-links a {
    transition: all 0.3s ease;
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {

    .service-card,
    .review-card,
    .doctor-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Glide.js Custom Styles */
.glide {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 3rem;
}

.glide__track {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.glide__slides {
    position: relative;
    width: 100%;
    list-style: none;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    touch-action: pan-Y;
    padding: 0;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    margin: 0;
}

.glide__slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    white-space: normal;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0 10px;
}

.glide__slide>div {
    height: 100%;
    /* Ensure the direct child of the slide (the card) takes up full height */
}


.glide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
    padding: 0;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.glide__arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #dee2e6;
    color: white;
    border-radius: 50%;
    opacity: 1;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glide__arrow:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.glide__arrow--left {
    left: -1.5rem;
}

.glide__arrow--right {
    right: -1.5rem;
}

.glide__arrow i {
    font-size: 14px;
    color: #6c757d;
}

/* Doctor Slider */
.doctor-slider {
    padding: 2rem 0;
    margin: 0;
}

.doctor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    padding: 1.5rem;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Reviews Slider */
.reviews-slider {
    padding: 2rem 0;
    margin: 0;
}

.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    padding: 1.5rem;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .glide {
        padding: 0 2.5rem;
    }

    .glide__arrow {
        width: 36px;
        height: 36px;
    }

    .glide__arrow--left {
        left: -1.25rem;
    }

    .glide__arrow--right {
        right: -1.25rem;
    }

    .glide__arrow i {
        font-size: 12px;
    }

    .doctor-slider,
    .reviews-slider {
        padding: 1rem 0;
    }

    .glide__slide {
        padding: 0 5px;
    }

    .doctor-card,
    .review-card {
        padding: 1rem;
    }
}

/* Remove any Bootstrap carousel styles */
.carousel,
.carousel-inner,
.carousel-item,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}

/* CTA Section and Modern Button styles (centralized) */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.btn-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-modern:hover {
    color: #1a1a1a;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: transparent;
}

.btn-modern:hover::before {
    width: 100%;
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-modern.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-modern.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-modern.btn-outline:hover {
    border-color: white;
    background: transparent;
}

/* Add this to your existing <style> block or CSS file */

/* Ensure buttons wrap nicely for three buttons */
.cta-buttons-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
    /* Align items vertically to ensure same height */
}

/* Base style for all buttons in this group to make them equal size */
.cta-buttons-group .btn {
    flex: 1;
    /* Allows buttons to grow and shrink to fill available space equally */
    min-width: 250px;
    /* Set a minimum width to prevent them from becoming too narrow */
    max-width: 300px;
    /* Set a max width to keep them from getting too wide on large screens */
    padding: 1rem 1.5rem;
    /* Standardized padding for all buttons */
    display: flex;
    /* Make buttons themselves flex containers */
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    /* Horizontally center content */
    text-align: center;
    /* Fallback for text alignment */
}

/* Specific styling for the Google Reviews button */
.google-reviews-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* No min-width or padding here, as it's handled by .cta-buttons-group .btn */
    font-size: unset;
    /* Reset font size, inner elements will control it */
    line-height: normal;
    /* Reset line height */
}

.google-reviews-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: white;
}

/* Specific styling for Google logo within the button */
.google-reviews-btn .google-logo-in-btn {
    width: 75px;
    /* FURTHER INCREASED WIDTH FOR GOOGLE LOGO */
    height: 34px;
    /* FURTHER INCREASED HEIGHT FOR GOOGLE LOGO (maintaining aspect ratio approx) */
    object-fit: contain;
    /* Ensure image scales correctly within its bounds */
}

/* Specific styling for Google stars */
.google-reviews-btn .google-stars {
    font-size: 1.1rem;
    /* Adjust star size for visual balance */
}

/* Ensure the inner content of the Google button is centered vertically and horizontally */
.google-reviews-btn .d-flex {
    flex-direction: column;
    /* Default to column for inner button content */
    text-align: center;
}

.google-reviews-btn .d-flex.align-items-center.justify-content-center {
    flex-direction: row;
    /* Override to row for the stars and 4.9 */
}


/* Responsive adjustments for three buttons */
@media (max-width: 767.98px) {
    .cta-buttons-group {
        flex-direction: column;
        /* This stacks the buttons vertically */
        align-items: center;
        /* This centers the stacked buttons horizontally */
    }

    .cta-buttons-group .btn {
        /* Disable flex: 1 on mobile */
        flex: none;
        /* Prevents buttons from growing to fill space */
        width: 100%;
        /* Make all buttons full width on small screens */
        margin-bottom: 0.75rem;
        /* Add space between stacked buttons */
        padding: 0.85rem 1rem;
        /* Adjust padding for mobile */
        font-size: 0.95rem;
        /* Adjust font size for mobile */
    }

    .cta-buttons-group .btn:last-child {
        margin-bottom: 0;
    }

    .google-reviews-btn .google-logo-in-btn {
        width: 55px;
        /* INCREASED Google logo on mobile */
        height: 25px;
        /* INCREASED */
    }

    .google-reviews-btn .google-stars {
        font-size: 0.95rem;
        /* Adjust star size for mobile */
    }

    .google-reviews-btn .fw-bold.fs-6 {
        font-size: 1rem !important;
        /* Keep rating readable on mobile */
    }

    .google-reviews-btn small {
        font-size: 0.8rem !important;
        /* Keep review count readable on mobile */
    }
}

/* Adjustments for medium screens if needed, where buttons might start wrapping */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cta-buttons-group .btn {
        min-width: 200px;
        /* Allow buttons to be a bit narrower on tablets if needed */
        padding: 0.9rem 1.5rem;
        font-size: 1.05rem;
    }

    .google-reviews-btn .google-logo-in-btn {
        width: 65px;
        /* INCREASED size for tablets */
        height: 30px;
        /* INCREASED */
    }

    .google-reviews-btn .google-stars {
        font-size: 1.05rem;
    }
}

/* --- NEW/UPDATED CSS FOR THE "Have questions..." SECTION --- */
.contact-cta-section {
    background-color: #f8f9fa;
    /* Equivalent to bg-light from original */
    color: #212529;
    /* Equivalent to text-dark from original */
    padding-top: 2rem;
    /* Reduced padding from original py-5 (3rem) */
    padding-bottom: 2rem;
    /* Reduced padding from original py-5 (3rem) */
}

/* Ensure centering on mobile for the button */
@media (max-width: 767.98px) {
    .contact-cta-section .col-12 {
        text-align: center !important;
        /* Forces center alignment for content within columns */
    }

    .contact-cta-section .btn {
        width: auto;
        /* Allow button to shrink to content width */
        display: inline-block;
        /* Treat button as inline-block to allow text-align: center on parent to center it */
    }
}

.custom-top-spacing {
    margin-top: 100px;
    /* Adjust this value as needed, e.g., 80px, 120px */
}

/* If you want to ensure it works well on smaller screens too, you can use media queries */
@media (max-width: 768px) {
    .custom-top-spacing {
        margin-top: 60px;
        /* A bit less margin for smaller screens */
    }
}

/* =================================
   Testimonial/Review Card Styles
==================================== */
.review-card {
    background: white;
    border-radius: 0.5rem;
    /* 8px */
    padding: 1.5rem;
    /* 24px */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    /* A light border */
    height: 100%;
    /* Make sure it takes full height of its container */
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card .flex-grow-1 {
    color: #495057;
    /* A softer black for the text */
}