/* ===================================
   Shivam X-ray and Sonography Center
   Professional Medical Website Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f2ff;
    --secondary-color: #00a86b;
    --secondary-dark: #008555;
    --accent-color: #ff6b35;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #6b6b8a;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --border-color: #e1e5eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Header Styles
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.slide-overlay {
    /* position: absolute; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.5) 0%, rgba(26, 26, 46, 0.45) 100%);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero .btn-secondary {
    border-color: white;
    color: white;
}

.hero .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto auto;
    gap: 40px 60px;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    grid-row: span 2;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    display: block;
    object-fit: contain;
    object-position: center top;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.about-text {
    grid-column: 2;
}

.about-features {
    grid-column: 1 / -1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--text-dark);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about-feature {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   X-ray Section
   =================================== */
.xray-section {
    background: var(--bg-white);
}

.info-card {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    padding: 35px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.list-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.services-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.service-item:hover {
    background: var(--primary-light);
}

.service-bullet {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.procedure-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.procedure-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.procedure-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.procedure-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ===================================
   Sonography Section
   =================================== */
.sonography-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.sonography-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.sonography-intro-content {
    font-size: 1.05rem;
    padding-top: 20px;
}

.sonography-intro-content p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Gallery Component Styles */
.sonography-gallery,
.xray-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.gallery-main-img {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: var(--transition);
    background: var(--bg-light);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* X-ray Section Gallery Layout */
.xray-intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.xray-gallery .gallery-main-img {
    min-height: 280px;
    max-height: 450px;
}

.xray-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usg-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.usg-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.usg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.usg-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, #e8f5e9, #fff);
    border-color: var(--secondary-color);
}

.usg-icon {
    width: 60px;
    height: 60px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.usg-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.usg-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.usg-features {
    padding-left: 20px;
}

.usg-features li {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
}

.usg-features li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* ===================================
   Clinic Gallery Section
   =================================== */
.gallery-section {
    background: var(--bg-white);
}

.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.gallery-item.large img {
    object-position: center top;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===================================
   Why Us Section
   =================================== */
.why-us {
    background: var(--text-dark);
    color: white;
}

.why-us .section-title {
    color: white;
}

.why-us .section-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
}

.why-us-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.why-us-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.why-us-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-location-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.contact-location-image img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.instagram-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.instagram-icon svg {
    color: white;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    /* filter: brightness(0) invert(1); */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1024px) {
    .services-grid,
    .usg-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usg-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Slider responsive */
    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto 30px;
        grid-row: auto;
    }

    .about-text {
        grid-column: 1;
    }

    .about-features {
        grid-column: 1;
    }

    .about-stats {
        justify-content: center;
    }

    .services-grid,
    .xray-info,
    .services-grid-small,
    .procedures-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .sonography-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sonography-gallery {
        order: -1;
    }

    .xray-intro-section {
        grid-template-columns: 1fr;
    }

    .xray-gallery {
        order: -1;
    }

    .clinic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item.large {
        grid-row: span 1;
        grid-column: span 2;
        height: 200px;
    }

    .gallery-main-img {
        min-height: 200px;
        max-height: 300px;
    }

    .usg-services {
        grid-template-columns: 1fr;
    }

    .usg-card.featured {
        grid-column: span 1;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .logo-img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .about-stats {
        flex-direction: column;
        gap: 25px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .btn {
        padding: 12px 24px;
    }

    .clinic-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.large {
        grid-column: span 1;
        height: 220px;
    }

    .gallery-thumbs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-thumb {
        width: 70px;
        height: 50px;
    }

    .about-image img {
        max-height: 400px;
    }

    .gallery-main-img {
        min-height: 180px;
        max-height: 280px;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations - activated via JavaScript */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
