/* ===== PAGE BANNER (reuse from gallery) ===== */
.page-banner {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 40%, var(--primary-dark) 100%);
  padding: 140px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s infinite ease-in-out alternate;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  animation: heroGlow 10s infinite ease-in-out alternate-reverse;
}

.page-banner h1 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.page-banner p {
  font-size: 17px;
  opacity: 0.8;
  max-width: 550px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.breadcrumb-custom li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-custom li a:hover {
  color: var(--accent-light);
}

.breadcrumb-custom li.active {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb-custom li.active::before {
  content: '›';
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  margin-right: 0;
}



/* ============================================
   CARDIAC & NEURO DIAGNOSTICS PAGE
   Co-operative Hospital Kurunegala
   ============================================ */

/* ===== MAIN SECTION ===== */
.diag-main {
    padding: 80px 0 40px;
}

/* ===== DIAGNOSTIC BLOCKS ===== */
.diag-block {
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.diag-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diag-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.diag-block:hover::before {
    opacity: 1;
}

/* ===== VISUAL PANEL ===== */
.diag-visual {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.04), rgba(6, 182, 212, 0.03));
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diag-visual-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.diag-visual-icon.ecg-color {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.12));
    color: #ef4444;
}

.diag-visual-icon.echo-color {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    color: #6366f1;
}

.diag-visual-icon.exe-color {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.12));
    color: #10b981;
}

.diag-visual-icon.eeg-color {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.12));
    color: #f59e0b;
}

.diag-visual-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #94a3b8;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Wave Animation — ECG */
.diag-visual-wave {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 40px;
    color: rgba(239, 68, 68, 0.15);
    overflow: hidden;
}

.diag-visual-wave svg {
    width: 200%;
    height: 100%;
    animation: waveScroll 4s linear infinite;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Rings Animation — Echo */
.diag-visual-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringExpand 3s ease-out infinite;
}

.ring-1 { width: 100px; height: 100px; animation-delay: 0s; }
.ring-2 { width: 160px; height: 160px; animation-delay: 1s; }
.ring-3 { width: 220px; height: 220px; animation-delay: 2s; }

@keyframes ringExpand {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* Bars Animation — Exercise ECG */
.diag-visual-bars {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 40px;
}

.bar {
    width: 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    animation: barPulse 1.2s ease-in-out infinite;
}

.bar-1 { height: 16px; animation-delay: 0s; }
.bar-2 { height: 24px; animation-delay: 0.15s; }
.bar-3 { height: 36px; animation-delay: 0.3s; }
.bar-4 { height: 28px; animation-delay: 0.45s; }
.bar-5 { height: 20px; animation-delay: 0.6s; }

@keyframes barPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Brainwave — EEG */
.diag-visual-brainwave {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 40px;
    color: rgba(245, 158, 11, 0.15);
    overflow: hidden;
}

.diag-visual-brainwave svg {
    width: 200%;
    height: 100%;
    animation: waveScroll 6s linear infinite;
}

/* ===== CONTENT PANEL ===== */
.diag-content {
    position: relative;
}

.diag-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    color: #ef4444;
    margin-bottom: 14px;
}

.diag-badge.echo-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    color: #6366f1;
}

.diag-badge.exe-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
    color: #10b981;
}

.diag-badge.eeg-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.08));
    color: #f59e0b;
}

.diag-content h3 {
    font-weight: 700;
    font-size: 22px;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.diag-content h3::after {
    display: none;
}

.diag-content > p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Details Grid */
.diag-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.dd-item {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background 0.3s ease;
}

.dd-item:hover {
    background: rgba(13, 148, 136, 0.04);
}

.dd-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.dd-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-dark);
}

/* Indications */
.diag-indications {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ind-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ind-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ind-tags span {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(6, 182, 212, 0.04));
    color: var(--primary);
    border: 1px solid rgba(13, 148, 136, 0.1);
    transition: all 0.3s ease;
}

.ind-tags span:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(6, 182, 212, 0.08));
    transform: translateY(-1px);
}

/* ===== DARK SECTION ===== */
.diag-dark-section {
    padding: 80px 0;
}

/* ===== PREPARATION TIPS ===== */
.prep-tips-section {
    padding: 80px 0;
}

.tip-card {
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.tip-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: transform 0.3s ease;
}

.tip-card:hover .tip-icon {
    transform: scale(1.15);
}

.tip-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.tip-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.tip-icon.amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tip-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tip-icon.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.tip-card h6 {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-dark);
    margin-bottom: 6px;
}

.tip-card p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .diag-main {
        padding: 60px 0 30px;
    }

    .diag-block {
        padding: 28px;
    }

    .diag-block::before {
        width: 100%;
        height: 4px;
        left: 0;
        top: 0;
    }

    .diag-visual {
        min-height: 180px;
        padding: 30px 20px;
        margin-bottom: 10px;
    }

    .diag-content h3 {
        font-size: 20px;
    }

    .diag-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .diag-block {
        padding: 22px 18px;
    }

    .diag-visual {
        min-height: 160px;
        padding: 28px 16px;
        border-radius: 16px;
    }

    .diag-visual-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
        border-radius: 16px;
    }

    .diag-visual-label {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .diag-content h3 {
        font-size: 18px;
    }

    .diag-content > p {
        font-size: 13px;
    }

    .diag-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .dd-item {
        padding: 10px 12px;
    }

    .dd-label {
        font-size: 10px;
    }

    .dd-value {
        font-size: 13px;
    }

    .ind-tags span {
        padding: 4px 10px;
        font-size: 11px;
    }

    .tip-card {
        padding: 22px 12px;
    }

    .tip-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .tip-card h6 {
        font-size: 12px;
    }

    .tip-card p {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .diag-block {
        padding: 18px 14px;
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .diag-visual {
        min-height: 140px;
        padding: 24px 14px;
        border-radius: 14px;
    }

    .diag-visual-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 14px;
    }

    .diag-visual-label {
        font-size: 11px;
    }

    .diag-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .diag-content h3 {
        font-size: 16px;
    }

    .diag-content > p {
        font-size: 12px;
    }

    .diag-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dd-item {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .dd-label {
        font-size: 9px;
    }

    .dd-value {
        font-size: 12px;
    }

    .ind-tags {
        gap: 4px;
    }

    .ind-tags span {
        padding: 3px 8px;
        font-size: 10px;
    }

    .tip-card {
        padding: 18px 10px;
        border-radius: 14px;
    }

    .tip-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .tip-card h6 {
        font-size: 11px;
    }

    .tip-card p {
        font-size: 10px;
    }
}


/* ===== TENDER INFO CARD (Dark Section) ===== */

     .about-section {
        background: linear-gradient(160deg, var(--navy-dark), var(--navy), var(--primary-dark));
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .about-glass {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        padding: 40px;
    }

    .about-feature {
        display: flex;
        gap: 16px;
        margin-bottom: 28px;
    }

    .about-feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(13, 148, 136, 0.2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--accent-light);
        flex-shrink: 0;
    }

    .about-feature h6 {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .about-feature p {
        font-size: 14px;
        opacity: 0.7;
        margin: 0;
    }
    
    /* ===== TENDER INFO CARD (Dark Section) ===== */


.tender-info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.tender-info-header {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tender-info-header i {
  font-size: 20px;
  color: var(--accent-light);
}

.tender-info-header h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.tender-info-header h5::after {
  display: none;
}

.tender-info-body {
  padding: 8px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}

.info-row:last-child {
  border: none;
}

.info-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-align: right;
}

.tender-info-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-tender-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(13, 148, 136, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tender-contact:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}


/* =====  ===== */

 .about-section {
        background: linear-gradient(160deg, var(--navy-dark), var(--navy), var(--primary-dark));
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .about-glass {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        padding: 40px;
    }

    .about-feature {
        display: flex;
        gap: 16px;
        margin-bottom: 28px;
    }

    .about-feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(13, 148, 136, 0.2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--accent-light);
        flex-shrink: 0;
    }

    .about-feature h6 {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .about-feature p {
        font-size: 14px;
        opacity: 0.7;
        margin: 0;
    }
    