
@import url('https://fonts.maateen.me/baloo-da-2/font.css');
@import url('https://fonts.maateen.me/adorsho-lipi/font.css');
@import url('https://fonts.maateen.me/bensen-handwriting/font.css');



:root {
    --primary: #e63946;
    --primary-green: #1e7e72;
    --primary-teal: #1e7e72; /* Fixed missing variable */
    --hover-teal: #145e55; /* Added hover state */
    --secondary: #0f172a;
    --dark-footer: #1e293b;
    --text-light: #e2e8f0;
    --text-muted: #d1e0e2;
    --text-dark: #0f172a;
}


:root {
    --btn-blue: #1c2b4b;
    --specialty-red: #d32f2f;
}
body {
    font-family: 'Adorsho Lipi', sans-serif;
    /* font-family: 'BenSen Handwriting', cursive; */

    /* font-family: 'Baloo Da 2', sans-serif; */
    /* font-family: 'Hind Siliguri', sans-serif; */
    background: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Fix horizontal scrollbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'BenSen Handwriting', cursive;
}

/* Secondary Navbar */
.secondary-nav {
    background-color: var(--primary-teal);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.secondary-nav .nav-link {
    font-size: 16px;
    padding: 8px 15px;
    transition: opacity 0.3s;
}

.secondary-nav .nav-link:hover {
    opacity: 0.8;
}

/* Facebook Style Header */
.hospital-profile-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden; /* Fix potential overflow */
}


.cover-photo {
    height: 240px; /* Default for larger screens */
    background-size: cover;
    background-position: center;
    background-color: #ddd; /* Placeholder color */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (max-width: 768px) {
    .cover-photo {
        height: 140px; /* Reduced specific to mobile requirement */
    }
}

.profile-picture-container {
    margin-top: -80px; /* Overlap cover photo */
    position: relative;
    z-index: 10;
}

.profile-picture {
    width: 140px;
    height: 140px;
    object-fit: cover;
    background: white;
}


.profile-details h1 {
    font-size: 28px;
}

.text-teal {
    color: var(--primary-teal) !important;
}

.btn-primary {
    background-color: #1877F2; /* Facebook Blue-ish or use Teal? Image shows blue share button */
    border-color: #1877F2;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #1a5c53; /* Darker teal from image */
}

/* Secondary Nav Updates */
.secondary-nav {
    background: white;
}
.secondary-nav .nav-link {
    color: #444 !important;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    padding: 12px 15px;
}
.secondary-nav .nav-link.active {
    color: var(--primary-teal) !important;
    border-bottom: 3px solid #e63946; /* Red border for active tab as per image */
    background: #f8f9fa;
}
.secondary-nav .nav-link:hover {
    color: var(--primary-teal) !important;
    background: #f0f2f5;
}

/* Sub-nav sticky and mobile scrollable */
.secondary-nav {
    position: sticky;
    top: 100px; /* Increased offset for PC */
    z-index: 990;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 991px) {
    .secondary-nav {
        top: 75px; /* Increased offset for Mobile */
    }

    .secondary-nav .container {
        padding: 0;
        max-width: 100%;
    }
    .secondary-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        justify-content: flex-start !important; /* Start from left on mobile to allow scrolling */
    }
    /* Hide scrollbar but keep functionality */
    .secondary-nav .nav::-webkit-scrollbar {
        display: none;
    }
    .secondary-nav .nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .secondary-nav .nav-item {
        flex: 0 0 auto;
    }
    .secondary-nav .nav-link {
        font-size: 11px !important;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        border-bottom-width: 2px;
        min-width: 70px; /* Ensure enough space for each button */
    }
    .secondary-nav .nav-link i {
        margin-right: 0 !important;
        font-size: 18px !important; /* Slightly larger icon for touch */
        margin-bottom: 2px;
    }
}





/* Hide old header styles if any left */
.hospital-header { display: none; }
.hospital-logo-container { display: none; }

/* Sidebar Widgets */
.sidebar-widget {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-widget .widget-header {
    background-color: #1a7164;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
}

.sidebar-widget .widget-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sidebar-widget .widget-body {
    border: 1px solid #ddd;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Contact Items */
.contact-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.text-teal {
    color: var(--primary-teal) !important;
}

/* Location text should be green */
.contact-item .location-text,
.profile-details p.text-teal {
    color: #198754 !important;
}

/* Doctor List Item (Sidebar) */
.doctor-list-item {
    transition: background 0.2s;
}
.doctor-list-item:hover {
    background: #f1f1f1 !important;
}

/* Doctor names in sidebar should be green */
.dr-item-card h6,
.dr-item-card .fw-bold {
    color: #198754 !important;
}

/* Hospital names in sidebar should be black */
.dr-item-card .text-muted,
.dr-item-card small.text-muted {
    color: #000000 !important;
}

/* Feed Cards (Main Content) */
.feed-card {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.post-content img {
    max-height: 500px;
    object-fit: cover;
}

/* Service Item Grid in Post */
.service-post-grid {
    background: var(--primary-teal);
    color: white;
    padding: 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--hover-teal);
    border-color: var(--hover-teal);
}

.btn-booking {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}
.btn-booking:hover {
    background: var(--hover-teal);
    color: white;
}

/* Utilities */
.text-decoration-none {
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
   /* Adjust font sizes for mobile */
   .display-5 {
       font-size: 1.8rem;
   }
}


/* Facebook-like Interaction Section */
.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    font-size: 14px;
    color: #65676b;
}

.reaction-icons {
    display: flex;
    align-items: center;
}

.reaction-icons i {
    font-size: 16px;
    margin-right: -4px;
    border: 2px solid white;
    border-radius: 50%;
    background: white;
    position: relative;
    z-index: 1;
}

.reaction-icons i:first-child {
    z-index: 2;
}

.post-actions {
    display: flex;
    border-top: 1px solid #ced0d4;
    padding: 4px 0;
    margin: 0 4px;
}

.action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    padding: 8px 0;
    margin: 2px 0;
    border-radius: 4px;
    color: #65676b; /* FB Text Gray */
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #f0f2f5;
}

.action-btn i {
    font-size: 18px;
    margin-right: 8px;
}

/* Review Modal Styles */
.review-modal .modal-header {
    background: var(--primary-teal);
    color: white;
}
.review-modal .btn-close {
    filter: brightness(0) invert(1);
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

/* Date Section Styling */
.date-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid var(--primary-teal);
}
.date-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.date-item i {
    font-size: 20px;
    color: var(--primary-teal);
    width: 30px;
    text-align: center;
}
.date-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}
.date-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Fix footer overlap */
footer, .premium-footer {
    position: relative;
    z-index: 1001; /* Higher than secondary-nav and main-header */
    background: #1e293b; /* Ensure background is solid */
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .profile-picture {
        width: 100px !important;
        height: 100px !important;
        border-width: 3px !important;
    }
    .profile-picture-container {
        margin-top: -50px !important;
    }
    .profile-details-top h1 {
        font-size: 20px !important;
        line-height: 1.2;
        margin-bottom: 2px !important;
    }
    .profile-details-top p.text-teal {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }
    .profile-details-bottom {
        padding-left: 0;
        margin-top: 5px;
    }
    .contact-item span.small {
        font-size: 13px !important;
        line-height: 1.4;
        color: #444;
        display: block;
        text-align: left !important;
    }
    .info-content {
        text-align: left !important;
    }
}






@media (max-width: 576px) {
    .post-stats {
        font-size: 12px;
    }
    .action-btn {
        font-size: 13px;
        padding: 8px 0;
    }
    .action-btn i {
        font-size: 16px;
    }
}

