/* ==========================================================================
   Programme Details Page Styles - SVPISTM
   Fully Responsive UI (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* 1. Hero Section */
.prog-hero {
    background: linear-gradient(135deg, #0e3d3c 0%, #177f7e 100%);
    color: #ffffff;
    padding: 135px 0 60px;
    position: relative;
    overflow: hidden;
}

.prog-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.prog-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.prog-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.prog-hero__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 800px;
    line-height: 1.5;
}

.prog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.prog-hero__meta-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.prog-hero__meta-item i {
    color: #ffd166;
    font-size: 14px;
}

.prog-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-apply-main {
    background: #e63946;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
    text-decoration: none;
    white-space: nowrap;
}

.btn-apply-main:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
}

.btn-syllabus-download {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-syllabus-download:hover {
    background: #fff;
    color: #177f7e !important;
    transform: translateY(-2px);
}

/* 2. Main Content & Cards */
.prog-main-content {
    padding: 50px 0 70px;
    background: #f8fafb;
}

.prog-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    transition: box-shadow 0.3s ease;
}

.prog-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.prog-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #177f7e;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e8f4f4;
    padding-bottom: 12px;
}

.prog-card__title i {
    color: #177f7e;
}

.prog-card p {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
}

/* 3. Custom Tables */
.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

.prog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
}

.prog-table th, .prog-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

.prog-table th {
    background: #f1f8f8;
    color: #177f7e;
    font-weight: 600;
    white-space: nowrap;
}

.prog-table tr:nth-child(even) {
    background: #fafcfc;
}

.prog-table tr:hover {
    background: #f4fbfb;
}

.prog-table td:first-child {
    font-weight: 600;
    color: #2b2d42;
    width: 32%;
}

/* 4. Syllabus & Curriculum List */
.curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.curriculum-list li {
    background: #f8fbfa;
    border: 1px solid #e0edea;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.curriculum-list li:hover {
    background: #edf7f5;
    border-color: #177f7e;
    transform: translateY(-1px);
}

.curriculum-list li i {
    color: #177f7e;
    font-size: 13px;
    flex-shrink: 0;
}

/* 5. Career Paths */
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.career-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #177f7e;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.career-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(23, 127, 126, 0.12);
    border-left-color: #e63946;
}

.career-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.career-item p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

/* 6. Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.faculty-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    text-align: center;
    padding: 18px 12px;
    transition: all 0.25s ease;
}

.faculty-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #177f7e;
}

.faculty-card img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #e8f4f4;
    transition: transform 0.25s ease;
}

.faculty-card:hover img {
    transform: scale(1.05);
    border-color: #177f7e;
}

.faculty-card h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    line-height: 1.3;
}

.faculty-card p {
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.3;
}

.faculty-card .btn-view-profile {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #177f7e;
    border: 1px solid #177f7e;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faculty-card .btn-view-profile:hover {
    background: #177f7e;
    color: #fff;
}

/* 7. Sidebar Card */
.prog-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
    position: sticky;
    top: 90px;
    margin-bottom: 30px;
}

.prog-sidebar-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #177f7e;
    margin-bottom: 18px;
    border-bottom: 2px solid #e8f4f4;
    padding-bottom: 10px;
}

.sidebar-key-fact {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
    gap: 10px;
}

.sidebar-key-fact span:first-child {
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.sidebar-key-fact span:last-child {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.sidebar-enquiry-box {
    margin-top: 20px;
    padding: 15px;
    background: #f0fdf9;
    border-radius: 8px;
    border-left: 3px solid #177f7e;
}

.sidebar-enquiry-box h6 {
    font-size: 14px;
    font-weight: 700;
    color: #177f7e;
    margin-bottom: 8px;
}

.sidebar-enquiry-box p {
    font-size: 13px;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .prog-hero {
        padding: 95px 0 45px;
    }
    .prog-hero__title {
        font-size: 30px;
    }
    .prog-sidebar-card {
        position: static;
        margin-top: 15px;
    }
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices & Phones (max-width: 767px) */
@media (max-width: 767px) {
    .prog-hero {
        padding: 85px 0 35px;
    }
    .prog-hero__badge {
        font-size: 11.5px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    .prog-hero__title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 10px;
        word-break: break-word;
    }
    .prog-hero__subtitle {
        font-size: 14.5px;
        margin-bottom: 18px;
        line-height: 1.45;
    }
    .prog-hero__meta {
        gap: 8px;
        margin-bottom: 20px;
    }
    .prog-hero__meta-item {
        font-size: 12.5px;
        padding: 6px 12px;
        border-radius: 6px;
    }
    .prog-hero__cta {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-apply-main,
    .btn-syllabus-download {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 18px;
        font-size: 14px;
    }
    .prog-main-content {
        padding: 30px 0 50px;
    }
    .prog-card {
        padding: 20px 16px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .prog-card__title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 10px;
        gap: 8px;
    }
    .prog-card p {
        font-size: 14px;
        line-height: 1.6;
    }
    .prog-table th, .prog-table td {
        padding: 9px 10px;
        font-size: 13px;
    }
    .prog-table td:first-child {
        width: 40%;
    }
    .curriculum-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .curriculum-list li {
        padding: 10px 14px;
        font-size: 13px;
    }
    .career-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .career-item {
        padding: 14px;
    }
    .career-item h5 {
        font-size: 14.5px;
    }
    .career-item p {
        font-size: 12.5px;
    }
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .faculty-card {
        padding: 14px 8px;
    }
    .faculty-card img {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }
    .faculty-card h5 {
        font-size: 13px;
    }
    .faculty-card p {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .faculty-card .btn-view-profile {
        font-size: 11px;
        padding: 3px 8px;
    }
    .prog-sidebar-card {
        position: static;
        padding: 20px 16px;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    .prog-sidebar-card h4 {
        font-size: 17px;
        margin-bottom: 14px;
    }
    .sidebar-key-fact {
        font-size: 13px;
        padding: 8px 0;
    }
    .sidebar-enquiry-box {
        padding: 12px 14px;
    }
    .sidebar-enquiry-box h6 {
        font-size: 13.5px;
    }
    .sidebar-enquiry-box p {
        font-size: 12.5px;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .prog-hero {
        padding: 80px 0 28px;
    }
    .prog-hero__title {
        font-size: 22px;
    }
    .prog-hero__meta-item {
        font-size: 11.5px;
        padding: 5px 10px;
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
    }
    .prog-card {
        padding: 16px 12px;
    }
    .prog-card__title {
        font-size: 16.5px;
    }
    .prog-table th, .prog-table td {
        padding: 8px 8px;
        font-size: 12px;
    }
}

/* Very Narrow Devices (max-width: 360px) */
@media (max-width: 360px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    .prog-hero__meta-item {
        flex: 1 1 100%;
    }
}
