/* ============================================
   FOUC Prevention for Program Detail Page
   ============================================ */

.program-detail-layout {
    opacity: 0;
    animation: programDetailFadeIn 0.2s ease-out forwards;
    animation-delay: 0.02s;
}

@keyframes programDetailFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Tabs and Content Styles
   ============================================ */

.tabs-vertical {
    flex-direction: column;
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 0;
}

.tab-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #131836;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 22px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tab-btn:last-child {
    margin-bottom: 0;
}

.tab-btn.active {
    border-color: #D4AF37;
    background: #f9fafb;
    color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212,175,55,0.08);
}

.tab-btn:hover {
    border-color: #D4AF37;
    background: #fefbf5;
    color: #D4AF37;
}
/* Placeholder image styles for fallback */
/* Use the correct ScholarIQ logo for placeholders */
.img-placeholder {
    background: #f5f5f5 url('/images/Scholar_IQ_logo.svg') center center no-repeat;
    object-fit: contain !important;
    border: 1px dashed #e0e0e0;
}
.img-placeholder-company {
    background: #f5f5f5 url('/images/Scholar_IQ_logo.svg') center center no-repeat;
    object-fit: contain !important;
    border: 1px dashed #e0e0e0;
    max-width: 80px;
    max-height: 40px;
}

/* Center main container and limit width */
.tf-container.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    padding-left: 0;
    padding-right: 0;
}

/* Reduce excessive whitespace and padding for better content presentation */
.program-hero-section, .program-tabs-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.program-header-block, .content-block {
    padding-left: 24px !important;
    padding-right: 24px !important;
}
.row.gx-4 {
    --bs-gutter-x: 1.5rem;
}
.program-hero-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.tab-content-wrapper {
    margin-bottom: 0 !important;
}
/* =========================================
   PROGRAM DETAIL PAGE - PREMIUM DESIGN
   Following DESIGN_SYSTEM_AUDIT standards
   ========================================= */

/* =========================================
   HERO SECTION
   ========================================= */

.program-detail-layout {
    background: #ffffff;
    padding: 32px 0 80px;
}

.program-detail-row {
    margin-top: 12px;
    align-items: flex-start;
}

.program-hero-section {
    background: linear-gradient(135deg, #fefbf5 0%, #ffffff 100%);
    padding: 0px 28px 32px;
    border-radius: 18px;
    position: relative;
    margin-bottom: 24px;
    margin-top: 0;
}

/* Breadcrumb */
.program-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--color-secondary);
}

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 10px;
}

/* Program Header Block */
.program-header-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* University Badge */
.university-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.university-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.university-info {
    flex: 1;
}

.university-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.university-name:hover {
    color: var(--color-secondary);
}

.university-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #4CAF50;
    font-size: 14px;
}

/* Program Title */
.program-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: 'Cardo', serif;
}

.program-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Quick Info Cards */
.program-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border: 1.5px solid #e8dcc4;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.12);
    border-color: var(--color-secondary);
}

.info-card i {
    font-size: 24px;
    color: var(--color-secondary);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.indicator-item i {
    color: var(--color-secondary);
    font-size: 16px;
}

/* =========================================
   STICKY CTA CARD
   ========================================= */

.program-cta-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

/* Sticky CTA on desktop */
@media (min-width: 992px) {
    .cta-col {
        position: sticky;
        top: 90px;
        bottom: 20px;
        align-self: flex-start;
        z-index: 50;
    }

    .program-cta-card {
        position: static;
    }
}

.program-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(184, 134, 11, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

/* Price Section */
.price-section {
    padding: 24px;
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border-bottom: 1px solid #f0f0f0;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
}

.amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-secondary);
    line-height: 1;
}

.period {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.price-subtext {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-subtext i {
    color: var(--color-secondary);
}

/* Eligibility Box */
.eligibility-box {
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.eligibility-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.eligibility-header i {
    color: var(--color-secondary);
}

.eligibility-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* CTA Buttons */
.cta-buttons {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-apply-primary {
    width: 100%;
    padding: 16px;
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.btn-apply-primary:hover {
    background: #9d7608;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35);
}

.btn-ai-career {
    width: 100%;
    padding: 8px 12px;
    background: #ffffff;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ai-career:hover {
    background: #fefbf5;
    transform: translateY(-2px);
}

/* Additional Actions */
.additional-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #fefbf5;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.action-btn i {
    font-size: 18px;
}

/* Contact Box */
.contact-box {
    padding: 20px 24px;
    background: linear-gradient(135deg, #e9f7ff 0%, #f0f9ff 100%);
    text-align: center;
}

.contact-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.contact-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0077b6;
    text-decoration: none;
}

.contact-number:hover {
    color: #005f8a;
}

/* =========================================
   TABS SECTION
   ========================================= */

.program-tabs-section {
    padding: 0;
    background: transparent;
}

.tabs-wrapper {
    background: #ffffff;
}

/* Tabs Layout */
.tabs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.tabs-navigation {
    display: flex;
    gap: 8px;
}

.tabs-vertical {
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 12px;
    position: sticky;
    top: 110px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.tab-btn {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.tab-btn:hover {
    color: var(--color-secondary);
    background: #fefbf5;
}

.tab-btn.active {
    color: var(--color-secondary);
    border-left-color: var(--color-secondary);
    background: #fefbf5;
}

/* Tab Content */
.tab-content-wrapper {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.related-widgets {
    margin-top: 24px;
}

.section-heading {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: 'Cardo', serif;
}

.section-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =========================================
   PROGRAM OVERVIEW LONG DESCRIPTION
   ========================================= */

.overview {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.overview h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: 'Cardo', serif;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.overview h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 26px 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.35;
}

.overview p {
    margin-bottom: 16px;
    text-align: justify;
}

.overview h2 i,
.overview h3 i {
    font-size: 20px;
    margin-top: 4px;
}

.overview strong {
    color: var(--color-primary);
}

.overview hr {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 26px 0;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    display: grid;
    gap: 10px;
}

.course-list li {
    position: relative;
    padding: 12px 16px 12px 40px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    font-size: 15px;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.course-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-secondary);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.course-blockquote {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--color-secondary);
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    color: var(--color-primary);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.08);
}

.course-table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    margin: 16px 0 24px;
    background: #ffffff;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.course-table thead {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
}

.course-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid #e8dcc4;
}

.course-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    vertical-align: top;
}

.course-table tbody tr:hover {
    background: #fafafa;
}

.course-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .overview h2 {
        font-size: 22px;
    }

    .overview h3 {
        font-size: 18px;
    }

    .course-list li {
        padding: 10px 14px 10px 36px;
    }
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.highlight-card {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border: 1.5px solid #e8dcc4;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.15);
    border-color: var(--color-secondary);
}

.highlight-card i {
    font-size: 36px;
    color: var(--color-secondary);
    margin-bottom: 14px;
    display: block;
}

.highlight-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border-left: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #fefbf5;
    transform: translateX(5px);
}

.benefit-icon {
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 28px;
    color: var(--color-secondary);
}

.benefit-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Curriculum Accordion */
.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.curriculum-year {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.year-header {
    width: 100%;
    padding: 18px 24px;
    background: #f8f8f8;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-header:hover {
    background: #fefbf5;
}

.year-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-title i {
    color: var(--color-secondary);
}

.year-header i.fa-chevron-down {
    color: #888;
    transition: transform 0.3s ease;
}

.curriculum-year.active .year-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.year-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.curriculum-year.active .year-content {
    max-height: 500px;
}

.subject-list {
    list-style: none;
    padding: 24px;
    margin: 0;
    background: #ffffff;
}

.subject-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subject-list li:last-child {
    border-bottom: none;
}

.subject-list li i {
    color: var(--color-secondary);
    font-size: 14px;
}

/* Career Roles Grid */
.career-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.career-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-secondary);
}

.career-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.career-icon i {
    font-size: 28px;
    color: var(--color-secondary);
}

.career-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.career-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.salary-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-secondary);
    color: #ffffff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* Hiring Companies Section */
.hiring-companies-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.hiring-companies-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.companies-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
}

.company-logo-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
}

.company-logo-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.company-logo-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.company-logo-item:hover img {
    filter: grayscale(0%);
}

/* Industry Sectors */
.industry-sectors {
    margin-top: 40px;
}

.industry-sectors h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sector-tag {
    padding: 10px 18px;
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border: 1.5px solid #e8dcc4;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sector-tag:hover {
    background: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.sector-tag i {
    font-size: 16px;
}

/* Fee Table */
.fee-breakdown {
    margin-bottom: 40px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.fee-table thead {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
}

.fee-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid #e8dcc4;
}

.fee-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.fee-table tr:hover {
    background: #fafafa;
}

.total-column {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 16px;
}

.total-row {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border-top: 2px solid #e8dcc4;
}

.total-row td {
    border-bottom: none;
}

/* Payment Options */
.payment-options {
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.payment-options h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.payment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.payment-card {
    background: linear-gradient(135deg, #e9f7ff 0%, #f0f9ff 100%);
    border: 1.5px solid #b3e0ff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.15);
}

.payment-card i {
    font-size: 36px;
    color: #0077b6;
    margin-bottom: 14px;
}

.payment-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 8px;
}

.payment-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fefbf5;
}

.faq-question i {
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 20px 24px;
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* =========================================
   SIDEBAR WIDGETS
   ========================================= */

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.related-programs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-program-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-program-card:hover {
    border-color: var(--color-secondary);
    background: #fefbf5;
}

.related-program-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.related-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.related-meta {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Counselor Widget */
.counselor-widget {
    background: linear-gradient(135deg, #fefbf5 0%, #fff8f0 100%);
    border: 2px solid #e8dcc4;
    text-align: center;
}

.counselor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--color-secondary);
}

.counselor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counselor-widget h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.counselor-widget p {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.btn-call-counselor {
    width: 100%;
    padding: 14px;
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call-counselor:hover {
    background: #9d7608;
    transform: translateY(-2px);
}

/* =========================================
   MOBILE FLOATING ACTIONS
   ========================================= */

.mobile-floating-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    height: auto;
}

.mobile-action-btn {
    padding: 12px 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-call {
    width: 44px;
    min-width: 44px;
    background: #ffffff;
    color: #0077b6;
    border: 2px solid #0077b6;
    padding: 10px;
    font-size: 18px;
}

.btn-whatsapp {
    width: 44px;
    min-width: 44px;
    background: #25D366;
    color: #ffffff;
    padding: 10px;
    font-size: 18px;
}

.btn-apply-main {
    flex: 1;
    min-width: 100px;
    background: var(--color-secondary);
    color: #ffffff;
    padding: 12px 12px;
    font-size: 13px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 991px) {
    .program-title {
        font-size: 28px;
    }

    .program-subtitle {
        font-size: 16px;
    }

    .program-quick-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-cta-card {
        position: static;
        margin-bottom: 32px;
    }

    .tabs-layout {
        grid-template-columns: 1fr;
    }

    .tabs-vertical {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-vertical::-webkit-scrollbar {
        display: none;
    }

    .tabs-vertical .tab-btn {
        white-space: nowrap;
    }

    .section-heading { 
        font-size: 24px;
    }

    .content-block {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .program-hero-section {
        padding: 20px 0 32px;
    }

    .program-header-block {
        padding: 24px 20px;
    }

    .program-title {
        font-size: 24px;
    }

    .program-subtitle {
        font-size: 15px;
    }

    .university-badge-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .program-quick-info {
        grid-template-columns: 1fr;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }

    .tab-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .career-roles-grid {
        grid-template-columns: 1fr;
    }

    .companies-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-cards {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .additional-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1 1 45%;
    }
}

@media (max-width: 576px) {
    .program-title {
        font-size: 22px;
    }

    .price-main .amount {
        font-size: 36px;
    }

    .section-heading {
        font-size: 20px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .fee-table {
        font-size: 13px;
    }

    .fee-table th,
    .fee-table td {
        padding: 12px 8px;
    }
}

/* =========================================
   PROGRAM OVERVIEW LONG DESCRIPTION
   ========================================= */

/* =========================================
   SPECIALIZATION TAGS
   ========================================= */

.specialization-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 18px;
    flex-wrap: wrap;
}

.spec-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    padding-top: 4px;
    flex-shrink: 0;
}

.spec-label i {
    color: #D4AF37;
    margin-right: 4px;
}

.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background: #fffbeb;
    color: #92600a;
    border: 1px solid #f5d87a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.spec-tag:hover {
    background: #fef3c7;
    border-color: #D4AF37;
}

.spec-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    background: transparent;
    color: #D4AF37;
    border: 1px dashed #D4AF37;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.spec-toggle-btn:hover {
    background: #fffbeb;
}

/* Specialization full tag grid (tab + modal) */
.specialization-tags--full {
    gap: 8px;
}

.spec-tab-intro {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* =========================================
   SPECIALIZATION MODAL
   ========================================= */

.spec-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInOverlay 0.15s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.spec-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: slideUpModal 0.18s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.spec-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.spec-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #131836;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-modal-header h3 i {
    color: #D4AF37;
}

.spec-modal-count {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.spec-modal-close {
    background: none;
    border: none;
    font-size: 17px;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.spec-modal-close:hover {
    color: #131836;
    background: #f3f4f6;
}

.spec-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .spec-modal {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }
    .spec-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .spec-modal-body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    }
}
