/* assets/css/style.css - Frontend Styles */
:root {
    --primary-color: #0b5ed7;
    --primary-dark: #0a4ebd;
    --primary: #0b5ed7;
    --primary-light: #e8f0fe;
    --secondary-color: #6c757d;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --warning: #f59e0b;

    /* Extended palette for blog & modern pages */
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 20px rgba(11, 94, 215, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-padding {
    padding: 100px 0;
}

.text-warning {
    color: var(--warning);
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(11, 94, 215, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.hero-contact-btn:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
}

.top-bar a i {
    margin-right: 5px;
}

/* Main Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 30px;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-actions .btn {
    margin-right: 0;
}

.skeleton-box {
    background: #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.skeleton-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

.hero-img-skeleton {
    width: 100%;
    height: 400px;
    border-radius: 20px;
}

/* Sections */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

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

.page-header .section-subtitle {
    color: #ffffff;
}

/* Grids */
.departments-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.packages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Cards */
.department-card,
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.package-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    flex: 0 0 calc(33.333% - 20px);
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    /* Makes it a square */
}

@media (max-width: 768px) {
    .package-card {
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: auto;
        /* Allow normal height on mobile */
    }
}

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

.dept-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.package-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.package-header .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.package-body {
    margin-bottom: 20px;
}

.stars {
    margin-bottom: 15px;
}

.feedback {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 0 0;
}

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

.footer-col h2,
.footer-col h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-col ul li a {
    color: #bbb;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.brand-col .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.brand-col .social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links {
        flex-direction: column;
        margin: 0 0 20px 0;
        width: 100%;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-widget:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.slot-btn {
    padding: 12px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #333;
}

.slot-btn.slot-available {
    border-color: #e2e8f0;
}

.slot-btn.slot-available:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f7ff;
}

.slot-btn.slot-available.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slot-btn.slot-booked {
    background: #e2e8f0;
    color: #94a3b8;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: transparent;
}

/* =============================================
   Hospital Cards (Index Page)
   ============================================= */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.hospital-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--white);
}

.hospital-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hospital-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.hospital-card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.hospital-card-body {
    padding: 20px 24px 24px;
}

.hospital-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.hospital-card-body .hospital-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hospital-card-body .find-doctors-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.hospital-card-body .find-doctors-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* =============================================
   Hospital Detail Page
   ============================================= */
.hospital-detail-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
    color: #fff;
    padding: 60px 0;
}

.hospital-detail-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.hospital-detail-header .hospital-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hospital-detail-header .hospital-info-row i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.6);
}

/* Department Accordion */
.dept-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.dept-accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.dept-accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dept-accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(11, 94, 215, 0.1);
}

.dept-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.dept-accordion-header:hover {
    background: #f8fafc;
}

.dept-accordion-header .dept-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dept-accordion-header .dept-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dept-accordion-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.dept-accordion-header .dept-doc-count {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.dept-accordion-header .chevron {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dept-accordion-item.active .chevron {
    transform: rotate(180deg);
}

.dept-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.dept-accordion-body-inner {
    padding: 0 24px 24px;
}

/* Doctor Cards inside Accordion */
.doctor-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.doctor-mini-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.doctor-img-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.doctor-mini-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    display: block;
}

.gender-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gender-male {
    background-color: #0d6efd;
    /* Blue */
}

.gender-female {
    background-color: #e83e8c;
    /* Pink */
}

.gender-others {
    background-color: #198754;
    /* Green */
}

.doctor-mini-card:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.doctor-mini-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.doctor-mini-card .doctor-designation {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.doctor-mini-card .btn {
    font-size: 0.85rem;
    padding: 8px 20px;
}

/* Responsive adjustments for hospitals & accordion */
@media (max-width: 768px) {
    .hospitals-grid {
        grid-template-columns: 1fr;
    }

    .hospital-detail-header h1 {
        font-size: 1.8rem;
    }

    .hospital-detail-header .hospital-info-row {
        flex-direction: column;
        gap: 10px;
    }

    .doctor-mini-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dept-accordion-header {
        padding: 14px 16px;
    }

    .dept-accordion-body-inner {
        padding: 0 16px 16px;
    }
}

/* ========================================================================
   Dynamic Page Builder Premium Styles
   ======================================================================== */

.section-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--gray-600, #4b5563);
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5 {
    color: var(--gray-800, #1f2937);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-content ul,
.section-content ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: inside;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.section-content ul li {
    list-style-type: none;
}

.section-content ul li::before {
    content: '\2022';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    font-size: 1.2rem;
}

.section-content blockquote {
    font-style: italic;
    color: var(--gray-500, #6b7280);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-light, #f0fdf4);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Image + Text Block Enhancements */
.image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

@media (max-width: 991px) {
    .image-text-block {
        gap: 30px;
    }
}

.image-text-content-wrap {
    flex: 1;
    min-width: 320px;
}

.image-text-img-wrap {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.image-text-img-wrap::after {
    content: '';
    position: absolute;
    inset: -15px 15px 15px -15px;
    border: 3px solid var(--primary-light, #dbeafe);
    border-radius: 12px;
    z-index: -1;
}

/* Team Directory Enhancements */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.team-card {
    text-align: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-100, #f3f4f6);
}

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

.team-img-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    position: relative;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.1);
}

/* ========================================================================
   Blog Module Styles
   ======================================================================== */

/* Page Header (Blog Listing + Blog Detail) */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #084298 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 auto;
}

/* Filter Bar */
.blog-filter-bar {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-filter-bar input,
.blog-filter-bar select {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--gray-800);
    transition: border-color 0.2s;
    font-family: inherit;
}

.blog-filter-bar input:focus,
.blog-filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

/* Featured Blog Hero Card */
.featured-blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.featured-blog-card .featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--warning);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.featured-blog-card .blog-category-label {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.blog-card-img {
    position: relative;
    padding-top: 60%;
    /* 3:5 aspect ratio */
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-card-img .blog-category-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-card-img .img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2.5rem;
}

.blog-card-body {
    padding: 22px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.83rem;
    color: var(--gray-400);
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.blog-meta i {
    margin-right: 4px;
}

.blog-card-body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    color: var(--gray-600);
    font-size: 0.93rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 18px;
}

/* Blog Detail Page */
.blog-detail-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #063386 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: left;
}

.blog-detail-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    max-width: 820px;
    margin: 0 0 20px;
}

.blog-detail-meta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.88;
}

.blog-detail-meta i {
    margin-right: 5px;
}

/* Blog Content Typography */
.blog-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.blog-content h2 {
    font-size: 1.75rem;
    margin: 35px 0 15px;
    color: var(--gray-900);
}

.blog-content h3 {
    font-size: 1.4rem;
    margin: 28px 0 12px;
    color: var(--gray-800);
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 22px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: var(--primary);
}

.blog-content a:hover {
    text-decoration: underline;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-600);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

/* Tag Badges */
.tag-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    margin: 0 6px 6px 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--gray-200);
}

.tag-badge:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Related Blogs */
.related-blogs {
    background: #f8fafc;
    padding: 60px 0;
}

.related-blogs h3 {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    color: var(--gray-800);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.blog-pagination .btn {
    min-width: 44px;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 8px;
}

/* Responsive Blog */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-blog-card>div {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .blog-detail-header h1 {
        font-size: 1.9rem;
    }
}

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

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-detail-header h1 {
        font-size: 1.5rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* =============================================
   Dynamic Page Sections (page.php)
   ============================================= */
.dynamic-section {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.image-text-block {
    display: flex;
    gap: 40px;
    align-items: center;
}

.image-text-img-wrap,
.image-text-content-wrap {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
    max-width: 100%;
}

.image-text-img-wrap img {
    max-width: 100% !important;
    height: auto !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    justify-content: center;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-wrap img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
    border: 4px solid var(--primary-light);
}

@media (max-width: 768px) {
    .image-text-block {
        flex-direction: column !important;
        gap: 30px;
        align-items: stretch !important;
    }

    .image-text-img-wrap,
    .image-text-content-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* =============================================
   Premium UI/UX Enhancements
   ============================================= */
/* Advanced Typography & Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #111827 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-subtitle {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Premium Buttons & Pulse */
.btn-premium {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    border: none;
    box-shadow: 0 10px 20px rgba(11, 94, 215, 0.25);
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(11, 94, 215, 0.35);
}

.btn-premium:hover::after {
    opacity: 1;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 94, 215, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(11, 94, 215, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(11, 94, 215, 0);
    }
}

.btn-pulse {
    animation: pulse-shadow 2s infinite;
}

/* Glassmorphism Hero */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.432);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-glass-card h1,
.hero-glass-card p {
    color: var(--gray-900);
}

.hero-glass-card h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-glass-card p {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.hero-glass-card .btn-large {
    padding: 20px 50px;
    font-size: 1.4rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(11, 94, 215, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 40%);
    z-index: 0;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

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

.hero-inner {
    position: relative;
    z-index: 1;
    align-items: stretch;
}

@media (max-width: 768px) {
    .hero-section {
        background-size: cover !important;
        background-position: center !important;
        padding: 60px 0;
    }

    .quick-booking-wrapper {
        display: none !important;
    }

    .hero-glass-card {
        padding: 30px 20px;
    }
}

/* Premium Cards with Smooth Hover */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(238, 240, 243, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 15px rgba(0, 0, 0, 0.04);
    border-color: rgba(11, 94, 215, 0.15);
}

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

.premium-icon-wrap {
    transition: transform 0.4s ease;
}

.premium-card:hover .premium-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

/* Scanner Neumorphic Container */
.scanner-container-premium {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    }

    50% {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 25px 25px 70px #c1c5cb, -25px -25px 70px #ffffff;
    }
}

/* Review Marquee Styling */
.review-card-premium {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

/* Gallery Overlay Hover */
.gallery-item-premium .gallery-overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-item-premium .gallery-title,
.gallery-item-premium .gallery-meta {
    color: #ffffff !important;
}

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

.gallery-item-premium .gallery-title {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item-premium:hover .gallery-title {
    transform: translateY(0);
}

.gallery-item-premium .gallery-zoom-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-premium:hover .gallery-zoom-icon {
    transform: scale(1);
}



/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}