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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
	width: 100%;
    overflow-x: hidden;
	scroll-padding-top: 70px;
}

html {
    width: 100%;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #4a7c2c;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.wallet-balance {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-icon {
    font-size: 16px;
    color: #999;
}

.balance-text {
    font-weight: 600;
    color: #4a7c2c;
}

.header-icon {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.header-icon:hover {
    color: #4a7c2c;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-heading {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-heading-sub {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
	margin: 0; /* Removes spacing from top and bottom */
    line-height: 1.2; /* Adjust this number to make them even closer or further apart */
}

.banner-subheading {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-cta {
    padding: 12px 30px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    transition: background 0.3s;
}

.banner-cta:hover {
    background: #f57c00;
}

.cta-main {
    font-weight: 600;
}

.cta-sub {
    font-size: 11px;
    opacity: 0.8;
}

/* Talk to Doctor Header */
.talk-to-doctor-header {
    padding: 20px 0;
    background: white;
}

.search-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.search-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.section-heading {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.search-bar {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 350px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #4a7c2c;
    box-shadow: 0 0 0 2px rgba(74, 124, 44, 0.1);
}

.filter-btn {
    padding: 10px 16px;
    background: #999;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #777;
}

.balance-recharge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance {
    font-size: 16px;
    color: #000000;
}

.recharge-btn {
    padding: 10px 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.recharge-btn:hover {
    background: #f57c00;
}

/* Doctors Section */
.doctors-section {
    padding: 40px 0;
    background: #f5f5f5;
}

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

/* Doctor Card */
.doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

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

.card-top {
display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    position: relative;
}

.doctor-left-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
	overflow: hidden; /* This clips the image into a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid #ffcc00;
    box-shadow: inset 0 2px 4px rgba(200, 200, 200, 0.5), 0 2px 4px rgba(255, 152, 0, 0.3);
}

.profile-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents the photo from looking stretched */
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    overflow: hidden;
}

.doctor-rating-review {
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.rating-score {
    font-weight: 700;
    color: #ff9800;
}

.separator {
    margin: 0 4px;
    color: #ccc;
}

.reviews {
    color: #999;
}

.doctor-middle-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
	min-width: 0; /* Important: prevents long text from pushing the button */
}

.doctor-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.doctor-specialization {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.doctor-experience {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.doctor-degree {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.rate-wait-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding-right: 0;
}

.doctor-rate {
    font-size: 13px;
    color: #c41e3a;
    font-weight: 700;
    margin: 0;
}

.wait-time {
    font-size: 13px;
    color: #c41e3a;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

.rate-amount {
    font-weight: 700;
}

.action-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the wait time specifically under the button */
}

/* New wait time class for better mobile positioning */
.wait-time-mobile {
    font-size: 11px;
    color: #d32f2f;
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.doctor-video-btn {
flex-shrink: 0; /* Prevents the button area from shrinking or being pushed */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns both button and text to the right edge */
}
/* Wrapper to stack button and text vertically */
.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the wait time text under the button */
    gap: 4px;
}

/* Specific styling for the wait time to prevent layout shift */
.wait-time-small {
    display: block;
    font-size: 11px;
    color: #d32f2f;
    font-weight: 500;
    white-space: nowrap;
}

.video-call-btn {
    padding: 8px 12px;
    background: #5fa83d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-call-btn:hover {
    background: #4a9030;
}

.card-divider {
    height: 1px;
    background: #e0e0e0;
}

.card-bottom {
    padding: 12px 16px;
    background: #f9fdf9;
}

.free-consultation {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5fa83d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

.free-consultation:hover {
    color: #4a9030;
}

/* Testimonials Section */
.testimonials-section {
    padding: 50px 0;
    background: white;
}

.testimonials-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

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

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #4a7c2c;
    box-shadow: none;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

.testimonial-rating {
    color: #ff9800;
    font-size: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

/* FAQ Section */
.faq-section {
    padding: 50px 0;
    background: #f5f5f5;
}

.faq-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

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

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.faq-highlight {
    background: #fff3e0;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 5px solid #ff9800;
}

.faq-highlight-title {
    font-size: 18px;
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 10px;
}

.faq-highlight-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #5fa83d;
    margin-bottom: 10px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5fa83d;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #444;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #5fa83d;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
	
	.banner-image {
        background-attachment: scroll;
    }

    .banner-heading {
        font-size: 32px;
    }
	
	    .banner-heading-sub {
        font-size: 7px;
		margin: 0; /* Removes spacing from top and bottom */
    line-height: 1.2; /* Adjust this number to make them even closer or further apart */
    }

    .search-filter-row {
            flex-direction: column;
    align-items: stretch;
    gap: 15px;
    }
	
	.search-left-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .section-heading {
    font-size: 15px;
  }
   .balance {
    font-size: 15px;
  }
  .search-input {
    width: 100%;
  }
  .filter-btn {
    padding: 10px 14px;
  }

    .search-bar {
            width: 100%;
    max-width: 100%;
    flex-direction: row;
    }

    .balance-recharge {
       width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1px;

    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
	.hero-banner {
        height: 160px; /* Reduced for mobile */
    }
    .banner-heading {
        font-size: 20px !important; /* Scaled down for better fit */
    }
	
	    .banner-heading-sub {
        font-size: 7px !important; /* Scaled down for better fit */
		margin: 0; /* Removes spacing from top and bottom */
    line-height: 1.2; /* Adjust this number to make them even closer or further apart */
    }
	.recharge-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
    .search-filter-row {
        gap: 10px;
    }
    .balance-recharge {
        display: flex;
        flex-direction: row !important; /* Force side-by-side */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
.container {
        padding-left: 10px;
        padding-right: 10px;
    }
	.profile-header {
        padding: 16px;
    }
	.content-card {
        padding: 14px;
    }
	
	.profile-container {
        padding-left: 12px;
        padding-right: 12px;
    }
	
	.header {
        padding: 8px 0;
    }
	
	.talk-to-doctor-header {
        padding: 10px 0;
    }

    .doctors-section {
        padding: 20px 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .banner-heading {
        font-size: 24px;
    }
	
	.banner-heading-sub {
        font-size: 7px;
		margin: 0; /* Removes spacing from top and bottom */
    line-height: 1.2; /* Adjust this number to make them even closer or further apart */
    }

    .section-heading {
        font-size: 20px;
    }

    .card-top {
display: flex;
        flex-direction: row; /* Keeps image and info side-by-side */
        justify-content: space-between;
        align-items: flex-start;
    }

    .doctor-middle-section {
       padding-left: 10px;
        flex: 1;
    }

    .doctor-video-btn {
      position: absolute;
        bottom: 10px;
        right: 15px;
        width: auto !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
	.doctor-image {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Modal styles */
.modal-overlay.hidden { display: none; }
.modal-section.hidden { display: none; }
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; }
.modal {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    width: 420px;
    max-width: 92%;
    box-shadow: 0 14px 40px rgba(0,0,0,0.24);
    transform: translateY(6px) scale(0.98);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal h2 { margin-bottom: 8px; font-size: 20px; color: #233; }
.modal-sub { margin-bottom: 14px; color: #666; font-size: 13px; }
.modal-sub1 { margin-bottom: 14px; color: #666; font-size: 32px; text-align: center; line-height: 1.4;}
.modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.modal-form { display: flex; flex-direction: column; gap: 10px; }
.modal-form label { font-size: 13px; color: #444; }
.modal-form input {
    padding: 10px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 14px;
}
.btn.btn-primary {
    margin-top: 6px;
    padding: 10px 14px;
    background: linear-gradient(90deg,#5fa83d,#4a9030);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.btn.btn-primary:hover { filter: brightness(0.95); }

@media (max-width: 420px) {
    .modal { padding: 18px; }
}

/* Star Rating Container */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 8px; /* Spacing below the image */
}

/* Golden Stars */
.star-filled {
    color: #FFD700; /* Gold */
}

/* Gray Stars */
.star-empty {
    color: #D1D5DB; /* Light Gray */
}

.star-rating i {
    font-size: 14px; /* Adjust size as needed */
}

/* Container for the Warning Icon */
.warning-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    color: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.modal-title-alt { font-size: 20px; font-weight: 700; color: #1a202c; margin-bottom: 8px; }
.modal-desc { font-size: 14px; color: #718096; line-height: 1.5; margin-bottom: 25px; }

/* Recharge Card Grid */
.recharge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.amount-card {
    border: 2px solid #edf2f7;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-card.active {
    border-color: #4a7c2c; /* Matching your theme green */
    background-color: #f0fdf4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.amount-value { display: block; font-size: 20px; font-weight: 800; color: #2d3748; }
.amount-label { font-size: 11px; text-transform: uppercase; color: #a0aec0; letter-spacing: 0.05em; }

/* Main Button Formatting */
.btn-pay-proceed {
    width: 100%;
    background: #4a7c2c;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-pay-proceed:hover { background: #3d6624; }

.btn-back-link {
    width: 100%;
    background: transparent;
    border: none;
    color: #718096;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
}
