/* =============================================
   Gymdocare Frontend CSS
   ============================================= */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-blue: #0a1c5e;
    /* Logo Navy Blue */
    --primary-cyan: #00aeef;
    /* Logo Cyan */
    --accent-cyan: #33beff;
    --dark-blue: #0f172a;
    --light-blue: #eff6ff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #06113b 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    background: white;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ---------- Buttons ---------- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 182, 212, 0.4);
}

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

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* ---------- Container ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Alert Messages ---------- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- Card ---------- */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* ---------- Grid ---------- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---------- Footer - Modern ---------- */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #94a3b8;
    padding-top: 4rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Optional: Decorative glow at the top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.footer-brand h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 320px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--primary-cyan);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-left: 10px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    line-height: 1;
    transform: translateX(-10px);
    color: var(--primary-cyan);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.contact-icon {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    margin-top: 2px;
    background: rgba(6, 182, 212, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-list li:hover .contact-icon {
    background: var(--primary-cyan);
    color: white;
    transform: rotate(15deg);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4);
}

.newsletter-form {
    position: relative;
    margin-top: 2rem;
}

.newsletter-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    padding-right: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.newsletter-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 44px;
    height: 44px;
    background: var(--primary-cyan);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.newsletter-btn:hover {
    background: #0ea5e9;
    transform: scale(1.05);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.footer-legal a:hover {
    color: var(--primary-cyan);
}

/* ---------- Responsive Footer ---------- */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-features-list{
            gap: .25rem !important;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 1rem;
    }
}

/* ---------- Responsive Nav ---------- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 1rem;
    }
}

/* ---------- Form Styles (Used Generally) ---------- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

select.form-control {
    cursor: pointer;
}

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

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ---------- Auth Specific Styles ---------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    padding: 2rem 0;
}

.auth-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.auth-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
}

.auth-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-cyan);
    bottom: -50px;
    left: -100px;
}

.auth-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-blue);
    top: 50%;
    left: 10%;
    opacity: 0.1;
}

.auth-container {
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.04em;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    font-weight: 500;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card .form-control {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-100);
    border-radius: 15px;
    font-size: 1rem;
    background: #fbfcfe;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i.icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
    font-size: 0.9rem;
}

.input-with-icon .form-control {
    padding-left: 2.75rem;
}

.input-with-icon:focus-within i.icon {
    color: var(--primary-cyan);
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.password-toggle-btn:hover {
    color: var(--gray-600);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-cyan);
}

.remember-check label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-blue), #06113b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* Grid for Two Columns (e.g. Register form) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Home Page Styles --- */
.home-hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/hero-bg.png") no-repeat center center/cover;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(8, 145, 178, 0.9) 100%);
    z-index: 1;
}

/* Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: floatShape 10s infinite alternate ease-in-out;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(34, 211, 238, 0.3);
    top: -100px;
    right: -50px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 40px) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.home-hero p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.7;
    font-weight: 400;
}

/* Glassmorphism Search */
.hero-search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem;
    border-radius: 60px;
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 650px;
    margin: 0 auto .5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-search-container i {
    line-height: 2;
}

.hero-search-container:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding-left: 1rem;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    font-family: var(--font-sans);
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.hero-search-input:focus {
    outline: none;
}

.hero-search-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

/* Features */
.hero-features-list {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(15, 23, 42, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Mobile/Desktop Specific Search Button Content */
.mobile-icon {
    display: none;
}

.desktop-text {
    display: inline;
}

/* Animations Utility */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease backwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats */
.stats-floating {
    margin-top: -6rem;
    position: relative;
    z-index: 20;
    margin-bottom: -3rem;
}

.home-stats-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.home-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.home-stats-card:hover {
    box-shadow: var(--shadow-xl);
}

.home-stats-card:hover::before {
    opacity: 1;
}

.home-stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.08);
    /* Lighter bg */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
}

.home-stats-card:hover .stats-icon {
    background: var(--primary-cyan);
    color: white;
    transform: rotateY(180deg);
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.stats-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    position: relative;
    order: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 5px;
    order: 2;
    font-family: var(--font-heading);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    order: 3;
}

/* Home Dept Card */
.home-dept-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.home-dept-card:hover {
    box-shadow: var(--shadow-xl);
}

.dept-img-box {
    height: 160px;
    background: linear-gradient(135deg, var(--gray-100), var(--light-blue));
    position: relative;
    overflow: hidden;
}

.dept-img-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.dept-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s;
}

.home-dept-card:hover .dept-img-inner img {
    transform: scale(1.1);
}

.home-dept-card .department-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-cyan);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -32px;
    left: 2rem;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-dept-card:hover .department-icon {
    background: var(--primary-blue);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.dept-content {
    padding: 3rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dept-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.dept-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Home Doc Card */
.home-doc-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.home-doc-card:hover {
    box-shadow: var(--shadow-xl);
}

.home-doc-card .doctor-photo-wrapper {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #f1f5f9;
}

.home-doc-card .doctor-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-doc-card:hover .doctor-photo-wrapper img {
    transform: scale(1.1);
}

.doctor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-doc-card:hover .doctor-overlay {
    opacity: 1;
}

.home-doc-card .doctor-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.home-doc-card:hover .doctor-social {
    transform: translateY(0);
    opacity: 1;
}

.home-doc-card .doctor-social a {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.home-doc-card .doctor-social a:hover {
    background: var(--primary-cyan);
    color: white;
    transform: scale(1.1);
}

.home-doc-card .doctor-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-dept-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.home-doc-card .doctor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
    font-family: var(--font-heading);
}

.home-doc-card:hover .doctor-name {
    color: var(--primary-blue);
}

.home-doc-card .doctor-specialization {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.home-doc-card .doctor-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultation-fee-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.consultation-fee {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-doc-card:hover .btn-icon-circle {
    background: var(--primary-blue);
    color: white;
}

/* Process */
.process-wrapper {
    position: relative;
    padding: 2rem 0;
}

.process-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
    display: none;
    border-radius: 4px;
}

@media (min-width: 992px) {
    .process-line {
        display: block;
    }
}

.process-step {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.process-icon-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.process-step:hover .process-icon-box {
    background: var(--primary-cyan);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), 0 0 0 12px rgba(6, 182, 212, 0.2);
}

.step-number {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-cyan);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 4px solid #1e3a8a;
    /* Should match bg color behind it */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(6, 182, 212, 0.3);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 6rem;
    color: rgba(6, 182, 212, 0.05);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    flex-grow: 1;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(15, 23, 42, 0.9)), 
                url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&q=80&w=1200') center/cover;
    border-radius: 40px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.4);
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-box:hover {
    box-shadow: 0 50px 120px -30px rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-white-pulse {
    background: white;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 99px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-white-pulse:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.3);
    color: var(--primary-blue);
}

.btn-white-pulse i {
    transition: transform 0.3s ease;
}

.btn-white-pulse:hover i {
    transform: translateX(5px);
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 99px;
    font-size: 18px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.cta-box .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.floating-shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
.floating-shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%); animation-delay: -4s; }
.floating-shape-3 { width: 150px; height: 150px; top: 20%; right: 10%; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%); animation-delay: -2s; }

/* --- Shared Components --- */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.75rem;
    }
}

.section {
    padding:50px 0;
    position: relative;
    background: #ffffff;
    /* Default white background */
}

/* Specific spacing for first section with floating stats */
.home-hero+.stats-floating+.section,
.stats-floating+.section {
    padding-top: 60px;
    /* Reduced from 80px */
    /* Ensure enough space below floating stats + 30px standard spacing */
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.pagination li a:hover {
    background: var(--primary-cyan);
    color: white;
    border-color: var(--primary-cyan);
}

.pagination li.active span {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.breadcrumb {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 10;
}

.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* --- Departments Page --- */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.department-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.department-card:hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    border-color: var(--primary-cyan);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.department-card .department-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.department-card .department-icon i {
    font-size: 1.75rem;
}

.department-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.department-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.department-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.stat i {
    color: var(--primary-cyan);
}

.stat strong {
    color: var(--gray-900);
}

.department-action {
    margin-top: 1.5rem;
}

.department-action .btn {
    width: 100%;
}

/* --- Doctors Page --- */
.filters-section {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filters-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 200px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.doctor-photo {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-photo i {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
}

.availability-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.availability-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.doctor-specialization {
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.doctor-department {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.doctor-experience i {
    color: var(--primary-blue);
}

.doctor-fee {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.doctor-action {
    display: flex;
    gap: 0.75rem;
}

.doctor-action .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

/* --- Doctor Details Page --- */
.doctor-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
    color: white;
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
}

.profile-container {
    max-width: 1280px;
    margin: -6rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    position: relative;
    z-index: 20;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doctor-photo-wrapper {
    position: relative;
    height: 400px;
    background: #f8fafc;
}

.doctor-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.status-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-available {
    color: #059669;
}

.status-available .status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-unavailable {
    color: #dc2626;
}

.status-unavailable .status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f1f5f9;
}

.quick-stat {
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}

.quick-stat:last-child {
    border-right: none;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specialization-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    display: block;
}

.info-text {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1rem;
}

.info-text a {
    color: var(--primary-blue);
    text-decoration: none;
}

.qualifications-list {
    list-style: none;
}

.qualifications-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.qualifications-list li::before {
    content: "�";
    color: var(--primary-cyan);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.schedule-container {
    margin-top: 1rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.day-pill {
    text-align: center;
    padding: 0.75rem 0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.day-pill.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.day-pill.inactive {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 1px solid var(--gray-100);
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed var(--gray-300);
}

.time-box {
    text-align: center;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.time-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.booking-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 24px;
    padding: 2.5rem;
    color: white;
    text-align: center;
    position: sticky;
    top: 2rem;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
}

.fee-display {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
}

.fee-title {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.fee-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #22d3ee;
}

.btn-book {
    background: white;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-book:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
        margin-top: -4rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .doctor-hero {
        padding: 6rem 0 8rem;
    }

    .profile-sidebar {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-card {
        width: 350px;
        flex-shrink: 0;
    }

    .booking-cta {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        flex-direction: column;
    }

    .profile-card {
        width: 100%;
    }

    .days-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .header-content h1 {
        font-size: 2rem;
    }
}

/* --- Hospitals List --- */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.hospital-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hospital-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hospital-card-header {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.hospital-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hospital-icon i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
}

.hospital-card-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.hospital-body {
    padding: 1.5rem;
}

.hospital-info {
    margin-bottom: 1rem;
}

.hospital-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.hospital-info-item i {
    color: var(--primary-cyan);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.hospital-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.hospital-timing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gray-50);
    color: var(--gray-700);
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-100);
}

.hospital-timing i {
    color: var(--primary-cyan);
}


.hospital-action {
    display: flex;
    gap: 0.75rem;
}

.hospital-action .btn {
    flex: 1;
    text-align: center;
}

/* --- Hospital Details --- */
.hospital-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 3rem 2rem 6rem;
}

.hospital-header {
    max-width: 1280px;
    margin: 2rem auto 0;
}

.hospital-intro-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hospital-intro-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hospital-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.hospital-icon-large i {
    font-size: 3.5rem;
    color: white;
}

.hospital-intro h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.hospital-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hospital-location i {
    color: var(--primary-cyan);
}

.hospital-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-departments {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.badge-doctors {
    background: #d1fae5;
    color: #065f46;
}

.badge-timing {
    background: #fef3c7;
    color: #92400e;
}

.hospital-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-cyan);
}

.contact-item a {
    color: var(--gray-700);
    text-decoration: none;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card h3 i {
    color: var(--primary-cyan);
}

.description-text {
    color: var(--gray-700);
    line-height: 1.8;
}

.departments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.department-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.2s;
}

.department-item:hover {
    background: var(--light-blue);
}

.department-item i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.department-item span {
    font-weight: 500;
    color: var(--gray-900);
}

.doctor-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.doctor-mini-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-avatar i {
    color: white;
    font-size: 1.25rem;
}

.doctor-mini-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.doctor-mini-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

.sidebar-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: sticky;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    border: none;
    padding: 0;
}

.sidebar-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sidebar-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.sidebar-card .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.sidebar-card .btn-outline {
    border-color: white;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list i {
    color: var(--primary-cyan);
    font-size: 1rem;
    margin-top: 0.25rem;
    width: 20px;
}

.empty-section {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

/* --- Header & Navigation --- */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }

    nav {
        padding: 1rem;
    }
}

/* Navbar Layout Fixes */
nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative;
    padding: 1rem 1.5rem;
}

/* Ensure Logo Visibility */
.logo {
    display: flex !important;
    flex-shrink: 0;
    z-index: 1100;
}

.logo img {
    display: block !important;
    height: 45px;
    width: auto;
    max-width: 100%;
}

/* Toggle Button Placement */
.menu-toggle {
    display: none;
    /* Hidden on Desktop */
    z-index: 1100;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-left: auto;
    /* Push to right if flex fails */
}

/* Home Page Icons Visibility */
.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    display: inline-block;
    margin-bottom: 1rem;
}

.dept-img-box {
    position: relative;
    height: 200px;
    overflow: visible;
    /* Allow icon to overflow */
    border-radius: 16px 16px 0 0;
}

.dept-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid var(--gray-100);
    }

}

/* --- Final Responsive Overrides --- */

/* Container & Typography */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        width: 100% !important;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    body {
        overflow-x: hidden;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }
}

/* Section Spacing */
@media (max-width: 768px) {
    .section {
        padding: 30px 0 !important;
    }
}

/* Grid System Overrides */
@media (max-width: 640px) {

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .departments-grid,
    .doctors-grid,
    .hospitals-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Home Hero Responsive */
@media (max-width: 768px) {
    .home-hero {
        min-height: auto !important;
        padding: 3rem 1rem 3rem !important;
        /* Top padding for fixed nav */
        text-align: center;
        background-position: center bottom;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    /* Search Bar Mobile */
    .hero-search-container {
        flex-direction: row;
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 50px;
        height: auto !important;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        align-items: center;
    }

    .hero-search-input {
        width: auto;
        flex: 1;
        text-align: left;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        margin: 0;
        color: white;
        font-size: 1rem;
    }

    .hero-search-input::placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

    .hero-search-icon-wrapper {
        display: none;
    }

    .hero-search-btn {
        width: auto;
        border-radius: 50px;
        padding: 0.25rem 1rem;
        font-size: 0.95rem;
        background: white;
        color: var(--primary-blue);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        /* Ensure centering */
        align-items: center;
        justify-content: center;
    }

    .hero-search-btn .desktop-text {
        display: none !important;
    }

    .hero-search-btn .mobile-icon {
        display: inline-block !important;
        font-size: 1.2rem;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(6, 182, 212, 0.8) 100%);
    }
}

/* Stats Cards Mobile */
@media (max-width: 768px) {
    .stats-floating {
        margin-top: 1rem !important;
        padding: 0 1rem;
        transform: translateY(0);
    }

    .stats-floating .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .home-stats-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 400px) {
    .stats-floating .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Footer Responsive */
/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: left;
        gap: 2.5rem;
    }

    .footer-section h3::after {
        left: 0;
        transform: none;
    }

    .social-links,
    .footer-legal {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* --- Ultra-Specific Mobile Header Alignment --- */
@media (max-width: 768px) {
    header nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px;
        /* Fixed height for stability */
    }

    .logo {
        order: 1 !important;
        flex: 0 1 auto !important;
        margin-right: auto !important;
        /* Forces logo left */
        display: flex !important;
        /* Ensure visible */
    }

    .menu-toggle {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        /* Forces toggle right */
        display: block !important;
        /* Ensure visible */
        position: relative !important;
        right: 0 !important;
        top: 0 !important;
    }

    .nav-links {
        /* Ensure it doesn't mess with flex layout */
        position: absolute !important;
    }
}

/* --- Final Fix: Header Alignment Cleanup --- */
@media (max-width: 768px) {
    header nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0 !important;
    }

    /* Reset child margins to let justify-content work */
    .logo {
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 1 auto !important;
        order: 1 !important;
    }

    .menu-toggle {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        order: 2 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Right-Side Sliding Menu */
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        /* Below header */
        right: -100% !important;
        /* Start off-screen */
        left: auto !important;
        width: 280px !important;
        /* Drawer width */
        height: calc(100vh - 70px) !important;
        background: white !important;
        flex-direction: column !important;
        padding: 1rem 1.5rem !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
    }

    .nav-links.active {
        right: 0 !important;
        /* Slide in */
    }

    /* Reduce Link Spacing */
    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Reset li padding completely */
        border-bottom: 1px solid var(--gray-100) !important;
        text-align: left !important;
    }

    .nav-links li:last-child {
        border-bottom: none !important;
    }

    /* Target all clickable items for consistent spacing */
    .nav-links a,
    .nav-links button,
    .nav-links .btn {
        display: block !important;
        padding: 0.5rem 1rem !important;
        /* Minimal equal padding */
        font-size: 0.95rem !important;
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        border-radius: 0 !important;
        /* Remove individual radii for list look */
        box-shadow: none !important;
        /* Remove button shadows in menu */
        border: none !important;
        background: transparent !important;
        color: var(--gray-700) !important;
    }

    .nav-links a:hover,
    .nav-links button:hover {
        background: var(--gray-50) !important;
        color: var(--primary-cyan) !important;
    }

    /* Add overlay when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
}

/* ---------- Grid System (Bootstrap-style) ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Spacing Utilities (Top & Bottom) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* ---------- Other Utilities ---------- */
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-items-stretch { align-items: stretch !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.text-center { text-align: center !important; }
.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--primary-cyan) !important; }
.bg-light { background-color: var(--gray-50) !important; }
.rounded { border-radius: 8px !important; }
.shadow { box-shadow: var(--shadow-md) !important; }

/* Tailwind Compatibility */
.flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.flex-grow { flex-grow: 1 !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.rounded-full { border-radius: 9999px !important; }
.fw-bold { font-weight: 700 !important; }
.w-full { width: 100% !important; }

/* Swiper Base Layout */
.testimonials-slider {
    overflow: hidden !important;
}

.swiper-slide {
    height: auto !important;
    display: flex !important;
    padding-bottom: 20px;
}


/* ---------- Centered Testimonial Header ---------- */
.testimonial-container .section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Side Arrows Design */
.testimonial-container {
    position: relative;
    padding: 0 60px; /* Space for arrows */
}

.swiper-nav-prev,
.swiper-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.swiper-nav-prev {
    left: 0;
}

.swiper-nav-next {
    right: 0;
}

.swiper-nav-prev:hover,
.swiper-nav-next:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Hide pagination */
.swiper-pagination {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .testimonial-container {
        padding: 0 15px;
    }
    
    .swiper-nav-prev,
    .swiper-nav-next {
        display: none !important; /* Touch swipe is enough for mobile */
    }
}
/* =============================================
   Hospitals & Hospital Details Enhancements
   ============================================= */

/* Hospital Hero Section */
.hospital-hero {
    background: var(--primary-blue);
    padding: 2.5rem 0;
    color: var(--white);
}

.page-title-section {
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.5;
}

/* Hospital Header Style */
.hospital-header {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.hospital-intro-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2.5rem;
    align-items: center;
    border: 1px solid var(--gray-100);
}

.hospital-icon-large {
    width: 100px;
    height: 100px;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.hospital-intro h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.hospital-location {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hospital-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-departments { background: #eff6ff; color: #1d4ed8; }
.badge-doctors { background: #f0fdf4; color: #15803d; }
.badge-timing { background: #fff7ed; color: #c2410c; }

.hospital-contact-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.contact-item a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

/* Listings - Hospital Card */
.hospital-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.hospital-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hospital-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 28, 94, 0.1);
    border-color: rgba(0, 174, 239, 0.2);
}


.hospital-card:hover::after {
    transform: scaleX(1);
}


.hospital-card-header {
    display: flex;
    align-items: center;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    gap: 1.5rem;
    position: relative;
}

.hospital-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(10, 28, 94, 0.2);
}

.hospital-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hospital-header-info {
    display: flex;
    flex-direction: column;
}

.hospital-header-info::after {
    content: 'Verified Healthcare';
    font-size: 0.7rem;
    color: var(--primary-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hospital-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hospital-info-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
}

.hospital-info-item i {
    color: var(--primary-cyan);
    margin-top: 3px;
}

.hospital-stats {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.25rem 0;
    gap: 0.5rem;
    border: 1px solid #f1f5f9;
}

.stat-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-item:first-child {
    border-right: 1px solid var(--gray-200);
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hospital-action {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.hospital-action .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.hospital-listing-container {
    margin-top: 0;
}

/* Detail Page Cards */
.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
}

.content-card h3 i {
    color: var(--primary-cyan);
}

.description-text {
    line-height: 1.8;
    color: var(--gray-600);
}

.departments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.department-item {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.department-item:hover {
    background: var(--white);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.department-item i {
    display: block;
    font-size: 1.75rem;
    color: var(--primary-cyan);
    margin-bottom: 0.75rem;
}

.department-item span {
    font-weight: 600;
    color: var(--gray-800);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.doctor-mini-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.doctor-mini-card:hover {
    border-color: var(--primary-cyan);
    transform: translateX(5px);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.doctor-mini-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.doctor-mini-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.sidebar-card {
    background: var(--primary-blue);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.sidebar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.sidebar-card p {
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-list li:last-child { margin-bottom: 0; }

.info-list li i {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.info-list li strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hospital-intro-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .hospital-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .hospital-badges {
        justify-content: center;
    }
    
    .hospital-contact-row {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hospital-hero h1 {
        font-size: 2.25rem !important;
    }

    .hospital-hero p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .hospital-hero {
        padding: 2.5rem 0 5rem;
        margin-bottom: -5rem;
    }
    
    .hospital-intro-card {
        margin-top: 0;
        border-radius: 12px;
        padding: 1.5rem;
    }

    .hospital-intro h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hospital-location {
        font-size: 0.85rem;
        justify-content: center;
    }

    .hospital-listing-container {
        margin-top: 1rem !important;
    }

    .content-card {
        padding: 1.5rem;
    }

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

    .sidebar-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hospital-hero h1 {
        font-size: 1.75rem !important;
    }

    .departments-list {
        grid-template-columns: 1fr;
    }

    .hospital-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem 0;
    }

    .stat-item + .stat-item {
        border-left: none !important;
        border-top: 1px solid var(--gray-200);
    }
}



/* Specific Buttons for Hospital Details */
.btn-cta-white {
    background: white !important;
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--gray-50) !important;
}

.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
    background: transparent !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: white !important;
    color: var(--primary-blue) !important;
}

/* CTA Section Styling */
.section-bg-gradient {
    background: linear-gradient(to bottom, var(--white), var(--gray-50));
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-cta {
    border-radius: 50px;
    font-weight: 700;
    padding: 1rem 3rem;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.15);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.25);
}

/* Specific Hospital Detail Cleanups */
.breadcrumb span.active {
    opacity: 1;
}

.no-decoration {
    text-decoration: none !important;
}

.contact-link-primary {
    color: var(--primary-cyan) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.contact-link-secondary {
    color: var(--primary-cyan) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.contact-address-text {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.sidebar-btn-pill {
    border-radius: 12px !important;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.page-item .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-item .page-link:hover:not(.active) {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.hospital-timing-badge {
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hospital-timing-badge span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.hospital-timing-badge i {
    color: var(--primary-cyan);
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a365d 100%);
    padding: 2rem 1rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 1rem;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
}
