/* assets/style.css - Modern Styling (Teal/Orange theme) */

/* --- Base Styles --- */
body {
    font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #f4f7f6; /* very light gray/green tint */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #374151; /* dark gray text */
}

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

/* --- Global Header --- */
.header {
    background-color: #008080; /* teal */
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo-link {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

h1 {
    font-size: 28px;
    color: #008080; /* teal for headings */
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #d1e7e7;
    padding-bottom: 10px;
}

/* --- Homepage (index.html) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.city-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #111;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,128,128,0.2); /* teal shadow */
    border-color: #ff7f50; /* coral accent */
}
.city-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #333;
}
.city-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* --- City Page --- */
.filter-btn {
    background-color: #ff7f50; /* warm orange */
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin: 5px 5px 15px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.filter-btn:hover {
    background-color: #e0673b;
}
.filter-btn.active {
    background-color: #008080; /* teal active */
}

#doctor-search {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Doctor Cards */
.doctor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.doctor-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,128,128,0.15);
}
.doctor-card a {
    display: block;
    padding-bottom: 15px;
    text-decoration: none;
    color: inherit;
}
.doctor-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.card-content {
    padding: 15px;
}
.doctor-card h3 {
    font-size: 20px;
    margin: 0 0 4px;
    color: #008080; /* teal */
}
.doctor-card p {
    font-size: 15px;
    color: #444;
    margin: 0;
}

/* Doctor Profile Page */
.back-link {
    display:inline-block;
    margin-bottom:15px;
    color:#008080;
    text-decoration:none;
    font-weight: 500;
}
.back-link:hover {
    text-decoration: underline;
}
.profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.profile-left{
    flex:0 0 160px;
    text-align: center;
}
.profile-img{
    width:160px;
    height:160px;
    border-radius:50%;
    object-fit:cover;
    border: 4px solid #ff7f50; /* coral border */
}
.rating-badge {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #ffb347; /* gold/yellow rating */
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
}
.profile-right{flex:1}
.profile-right h1 {
    margin: 0 0 4px;
    font-size: 28px;
    color: #008080;
}
.muted{
    font-size: 16px;
    color:#374151;
    margin:0 0 20px;
    font-weight: 500;
}
.meta {
    padding: 15px;
    border-left: 3px solid #008080;
    background-color: #f8fafc;
    border-radius: 4px;
}
.meta strong {
    color: #111;
    font-weight: 600;
}
.meta p{
    margin:8px 0;
    font-size: 15px;
}
.meta a {
    color: #0b691a; /* green link */
    text-decoration: none;
    font-weight: 500;
}
.desc{
    margin-top:25px;
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.desc h2 {
    font-size: 22px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
    color: #333;
}

/* Responsiveness */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-left {
        flex: none;
    }
    .profile-right h1 {
        font-size: 24px;
    }
    .state-block h3 {
        font-size: 18px;
        margin-top: 15px;
        color: #008080;
    }
}

/* Hide mobile view on desktop */
.mobile-view { display: none; }
@media (max-width: 768px) {
    .desktop-view { display: none; }
    .mobile-view { display: block; }
}

/* Add this to your style.css */
.timing ul {
    list-style: none; /* Remove bullet points */
    padding-left: 0;
}

.timing li {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}

.timing li:last-child {
    border-bottom: none;
}
footer {
    margin-top: 40px;
    padding: 25px 20px;
    background: #008080;
    color: #fff;
    text-align: center;
    border-radius: 12px;
}
footer a {
    color: #fff;
    text-decoration: underline;
}
/* Heading row: H1 left + Country filter right */
.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* align to top instead of center */
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.heading-row h1 {
    margin: 0;
    font-size: 28px;
    color: #008080;
    border-bottom: none;
    padding-bottom: 0;
    line-height: 1.2;
}

/* Country filter buttons */
.country-filter {
    display: flex;
    gap: 10px;
    /* margin-top: 5px; adjust up/down for fine-tuning */
}

.filter-btn {
    background: #008080;
    color: #fff;
    border: none;
    padding: 8px 16px; /* slightly smaller buttons for better alignment */
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: #ff7f50;
}

/* Optional: smaller screens — stack vertically */
@media (max-width:768px) {
    .heading-row {
        display: block;
    }
    .country-filter {
        margin-top: 10px;
    }
}

#goTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: #008080;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
#goTopBtn:hover {
  background-color: #ff7f50;
}
/* Desktop Menu */
.menu a {
    color: #fff;
    margin-left: 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.menu a:hover {
    background: rgba(255,255,255,0.2);
}

/* Hamburger icon (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* Mobile Menu hidden by default */
.mobile-menu {
    display: none;
    background: #006666;
    padding: 10px 0;
    text-align: center;
}

.mobile-menu a {
    display: block;
    padding: 12px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile View Rules */
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .hamburger { display: block; }
}
/* --- NEW VIEW ALL CTA STYLES --- */

/* Center the button */
.view-all-link-container { 
    text-align: center; 
    margin-top: 25px; 
    margin-bottom: 20px;
}

/* Style the button */
.cta-button {
    display: inline-block;
    background-color: #ff7f50; /* Coral/Accent Color */
    color: #fff; /* White Text */
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(255,127,80,0.3);
}

.cta-button:hover {
    background-color: #ff6347; /* Slightly darker coral on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(255,127,80,0.4);
}
/* --- END NEW CTA STYLES --- */

/* You can remove or adjust the original .view-all-link if needed, but the new structure replaces it. */

