:root {
    --dept-red: #ed1c23;
    --dept-green: #479442;
    --dept-white: #ffffff;
    --dept-text: #130803;
    --dept-light-text: #4c4440;
    --dept-bg: #F4F8F9;
}

/* General Section Styling */
.dept-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dept-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--dept-red);
}

/* Hero Section */
.cardio-hero {
    background-color: var(--dept-white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dept-text);
    margin-bottom: 20px;
}

.hero-content .accent-red {
    color: var(--dept-red);
}

.hero-content p {
    font-size: 18px;
    color: var(--dept-light-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-main {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-red {
    background-color: var(--dept-red);
    color: var(--dept-white);
}

.btn-red:hover {
    background-color: #d1102d;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--dept-red);
    color: var(--dept-red);
}

.btn-outline:hover {
    background-color: var(--dept-red);
    color: var(--dept-white);
}







/* About Section */
.cardio-about {
    background-color: var(--dept-bg);
}

.about-text {
    max-width: 900px;
    margin: auto;
    text-align: center;
    line-height: 1.8;
    color: var(--dept-light-text);
}

/* HOD Section */
.cardio-hod {
    background-color: var(--dept-white);
}

.hod-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--dept-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.hod-img-wrap {
    flex: 0 0 300px;
    position: relative;
}

.hod-img-wrap img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid var(--dept-red);
}

.hod-info h3 {
    font-size: 28px;
    color: var(--dept-red);
    margin-bottom: 5px;
}

.hod-desig {
    font-weight: 600;
    color: var(--dept-text);
    margin-bottom: 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.team-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-item-info {
    padding: 20px;
    background: var(--dept-white);
}

/* Treatments & Ailments */
.info-tabs-wrap {
    display: flex;
    gap: 50px;
    align-items: center;
}

.info-list {
    flex: 1;
}

.info-visual-center {
    flex: 1;
    text-align: center;
}

.info-visual-center img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    border: 10px solid #f0f0f0;
}

.list-group {
    list-style: none;
    padding: 0;
}

.list-group-item {
    padding: 15px 20px;
    background: var(--dept-white);
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: var(--dept-red);
    color: var(--dept-white);
}

/* Tech Showcase */
.tech-slider {
    display: flex;
    gap: 20px;
}

.tech-card {
    flex: 1;
    background: var(--dept-white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tech-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tech-card h4 {
    padding: 15px;
    margin: 0;
    color: var(--dept-text);
}

/* Sub-Specialization */
.sub-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sub-spec-card {
    background: var(--dept-white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sub-spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(248, 19, 55, 0.1);
}

.sub-spec-icon {
    width: 60px;
    margin: 0 auto 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-flex, .hod-card, .info-tabs-wrap {
        flex-direction: column;
    }
    .team-grid, .sub-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .team-grid, .sub-spec-grid {
        grid-template-columns: 1fr;
    }
}
