/* ========================================
   NEPHROLOGY CARE - CUSTOM STYLESHEET
   Colors: Primary #cb0c0c, Secondary #952624
   Font: Figtree
   ======================================== */

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    --primary-color: #c13832;
    --secondary-color: #952624;
    --primary-light: #ffebee;
    --text-dark: #1a365d;
    --text-gray: #44596E;
    --text-light: #070606;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(149, 38, 36, 0.08);
    --shadow-md: 0 4px 16px rgba(149, 38, 36, 0.12);
    --shadow-lg: 0 8px 24px rgba(149, 38, 36, 0.16);
    --transition: all 0.3s ease;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
 /* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
p {
     
    color: #44596E;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   HERO SECTION
   ======================================== */
.nphr-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 50%, #ffe5e5 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* .nphr-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(203, 12, 12, 0.05) 0%, transparent 70%);
    border-radius: 50%;
} */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.btn-appointment {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: capitalize;
}

.btn-appointment:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
/* section {
    padding: 80px 0;
} */

.abtnphr-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
} */

/* ========================================
   ABOUT SECTION
   ======================================== */
.nphr-about {
    background-color: var(--bg-light);
}

.excellence-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.excellence-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.excellence-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.excellence-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.excellence-list li {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.excellence-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.accreditation-badge {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.badge-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.badge-icon i {
    color: var(--bg-white);
    font-size: 1.8rem;
}

.badge-content {
    flex: 1;
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.badge-year {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

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

.service-icon i {
    color: var(--bg-white);
    font-size: 1.2rem;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
} 

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   CONDITIONS SECTION
   ======================================== */
.conditions-section {
    background-color: var(--bg-white);
}

/* Horizontally Scrollable Tabs Container */
.condition-tabs-container {
    margin-bottom: 1rem;
    position: relative;
}

.condition-tabs {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* Custom Scrollbar for Webkit Browsers */
.condition-tabs::-webkit-scrollbar {
    height: 6px;
}

.condition-tabs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.condition-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.condition-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.condition-tab {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 12px 19px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.condition-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.condition-tab.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.condition-content-wrapper {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.condition-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.condition-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Description */
.content-description {
    margin-bottom: 2rem;
}

.content-description p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: justify;
}

.condition-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
     
    margin-bottom: 1rem;
}

/* Symptoms Section */
.symptoms-section {
    margin-top: 2rem;
}

.symptoms-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.symptoms-list-detailed {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.symptoms-list-detailed li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
}

.symptoms-list-detailed li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 5px;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.additional-note {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 1.5rem;
    padding: 15px;
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    line-height: 1.7;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin: 2rem 0;
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.info-box strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop (≥ 992px) - Default styles above */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .abtnphr-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .nphr-section {
        padding: 60px 0;
    }

    .excellence-card {
        padding: 30px;
        margin-bottom: 30px;
    }

    .condition-content-wrapper {
        padding: 35px;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .btn-appointment {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .abtnphr-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    section {
        padding: 50px 0;
    }

    .nphr-section {
        padding: 30px 0;
    }

    .excellence-card {
        padding: 20px;
    }

    .excellence-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Mobile Horizontal Scroll for Tabs */
    .condition-tabs-container {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }

    .condition-tabs {
        padding: 10px 0;
        gap: 10px;
    }

    .condition-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .condition-content-wrapper {
        padding: 25px;
    }

    .condition-subtitle {
        font-size: 1.2rem;
    }

    .symptoms-heading {
        font-size: 1.1rem;
    }

    .content-description p {
        font-size: 0.95rem;
        text-align: left;
    }

    .symptoms-list-detailed li {
        font-size: 0.95rem;
    }

    .additional-note {
        font-size: 0.95rem;
        padding: 12px;
    }

    .info-box {
        padding: 15px;
    }

    .info-box strong {
        font-size: 1rem;
    }

    .accreditation-badge {
        padding: 15px;
    }

    .badge-icon {
        width: 50px;
        height: 50px;
    }

    .badge-icon i {
        font-size: 1.5rem;
    }

    .badge-title {
        font-size: 1rem;
    }
}

/* Extra Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: .6rem;
    }

    .abtnphr-title {
        font-size: 1.6rem;
    }

    .condition-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mb-custom {
    margin-bottom: 3rem;
}

.mt-custom {
    margin-top: 3rem;
}

/* Accessibility */
.btn-appointment:focus,
.condition-tab:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nphr-section::before {
        display: none;
    }

    .btn-appointment {
        display: none;
    }

    .service-card,
    .excellence-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: slideInUp 0.8s ease-out;
}

.hero-image {
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}