/* CSS Variables for Scalability and Theming */
:root {
    /* --primary-color: #007bff; */
    --primary-color: #1F3A60;
    /* Blue for primary elements */
    --secondary-color: #6c757d;
    /* Gray for secondary */
    /* --accent-color: #28a745; */
    /* --accent-color: #EBC950; */
    --accent-color: #278EBA;
    /* Green for highlights */
    --text-color: #333;
    /* Dark text */
    /* --bg-color: #f8f9fa; */
    --bg-color: #d9dbde;
    /* Light background */
    --font-family: 'Arial', sans-serif;
    /* Base font */
    --font-size-base: 1rem;
    /* Base font size */
    --spacing-unit: 1.5rem;
    /* Unit for margins/paddings */
    --border-radius: 0.5rem;
    /* Rounded corners */
    --gallery-width: 800px;
    /* Fixed width for gallery images */
    --gallery-height: 400px;
    /* Fixed height for gallery images */
    --navbar-height: 60px;
    /* Approximate height of the navbar; adjust if needed */

}

/* Global Styles */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-top: var(--navbar-height);
    background-color: var(--bg-color);
    /* Adds space so content doesn't hide behind fixed navbar */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

/* Custom Card Styles */
.text-primary {
    color: var(--primary-color) !important;    
}

.card-custom {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-unit);
}

/* Section Spacing */
.section {
    padding: var(--spacing-unit) 0;
}

/* Gallery Image Sizing and Safeguarding */
.gallery-img {
    width: var(--gallery-width);
    /* Fixed width */
    height: var(--gallery-height);
    /* Fixed height */
    object-fit: cover;
    /* Ensures images fill without distortion */
    pointer-events: none;
    /* Prevents dragging and selection */
    user-select: none;
    /* Disables text/image selection */
    -webkit-user-drag: none;
    /* Prevents dragging in WebKit browsers */
    -khtml-user-drag: none;
    /* Prevents dragging in older browsers */
    -moz-user-drag: none;
    /* Prevents dragging in Firefox */
    -o-user-drag: none;
    /* Prevents dragging in Opera */
}

/* Optional: CSS-based watermark overlay for gallery images */
.carousel-item {
    position: relative;
}

.gallery-img::after {
    content: "Rohit Dental Clinic Dental";
    /* Watermark text */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(255, 255, 255, 0.5);
    /* Semi-transparent white */
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-unit);
    text-align: center;
}

/* Custom Properties */
/* Disable right click on all images */
img{
    pointer-events: none;
}

/* To control dr image size */
.img-size {
    width: 200px;
    height: 225px;
    align-self: center;
}

.card-height {
    height: 100%;
}

/* Navbar Custom Styles (Matching Hero) */
.navbar-custom {
    /* background: linear-gradient(to right, var(--primary-color), var(--accent-color)); */
    /* Same gradient as hero */
    color: white;
    /* White text to match hero */
    font-family: var(--font-family);
    /* Same font family as body/hero */
    font-size: var(--font-size-base);
    /* Same base font size */
    box-shadow: 0 2px 4px var(--accent-color);
    /* Optional: Subtle shadow for depth */
}

.navbar-logo {
    width: 60px;
    /* Scalable with SVG */
    height: auto;
    /* margin-right: var(--spacing-unit); */
    fill: white;
    background-color: #f8f9fa;
    /* border-radius: 45px; */
    flex-shrink: 0;
    /* Optional: If SVG has paths, make it white to match navbar */
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    /* color: white !important; */
    color: var(--primary-color);
    /* Ensures white text for brand and links */
}

.navbar-custom .nav-link:hover {
    color: var(--accent-color) !important;
    /* Subtle hover effect */
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    /* Toggler border for visibility */
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* White hamburger icon */
}

/* Navbar Brand Flexbox Layout */
.navbar-brand {
    display: flex !important;
    /* Override Bootstrap's default; logo and text side-by-side */
    align-items: center;
    /* Center logo vertically with text */
    text-decoration: none;
    /* Remove underline */
}

/* Brand Text: Stacked Vertically */
.brand-text {
    display: flex;
    flex-direction: column;
    /* Stack lines vertically */
    justify-content: center;
    /* Center text vertically */
    /* margin-left: var(--spacing-unit); */
    /* Space from logo */
    line-height: 1;
    /* Tight spacing between lines */
}

.brand-line-large {
    font-size: var(--brand-large-font);
    font-weight: bold;
    display: block;
    /* Ensure it's a block for stacking */
}

.brand-line-small {
    font-size: var(--brand-small-font);
    display: block;
}

.navbar-toggler {
    background-color: var(--primary-color);;
}

.row>* {
    margin-top: 1rem;
}

/* .hero-logo { */
/* width: 100px; */
/* Larger for hero */
/* height: auto; */
/* margin-bottom: var(--spacing-unit); */
/* fill: white; */
/* Make SVG white on gradient background */
/* border-radius: 45px; */
/* } */

/* New Media Query for 390px and Below (Ultra-Small Mobiles) */
@media (max-width: 390px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 1.5) 0; /* Tighter padding */
        padding-top: var(--navbar-height);
    }
    .section {
        padding: calc(var(--spacing-unit) * 1.5) 0; /* Reduce section padding */
    }
    .navbar-logo {
        width: 25px; /* Even smaller logo */
    }
    .brand-text {
        margin-left: calc(var(--spacing-unit) * 0.3); /* Less margin */
    }
    .brand-line-large {
        font-size: 1rem; /* Smaller large text */
    }
    .brand-line-small {
        font-size: 0.7rem; /* Smaller small text */
    }
    .hero-logo {
        width: 60px; /* Smaller hero logo */
    }
    .gallery-img {
        width: 100%;
        height: auto;
    }
    .card-custom {
        margin-bottom: calc(var(--spacing-unit) * 0.5); /* Tighter card spacing */
    }
    .card-custom:hover {
        transform: scale(1.05);
        /* Optional: Slight zoom on hover */
        transition: transform 0.3s ease;
    }
    /* Add more if needed, e.g., for buttons or text */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: calc(var(--spacing-unit) * 2) 0;
        padding-top: var(--navbar-height);
    }
    .section {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    .navbar-logo {
        width: 30px;
    }
    .brand-text {
        margin-left: calc(var(--spacing-unit) * 0.5);
    }
    .brand-line-large {
        font-size: 1.2rem;
    }
    .brand-line-small {
        font-size: 0.8rem;
    }
    /* .hero-logo {
        width: 80px;
    } */
    .gallery-img {
        width: 100%;
        height: auto;
    }
    .card-custom {
        margin-bottom: calc(var(--spacing-unit) * 0.5); /* Tighter card spacing */
    }
    .card-custom:hover {
        transform: scale(1.05);
        /* Optional: Slight zoom on hover */
        transition: transform 0.3s ease;
    }
    /* Add other 768px adjustments as needed */
}