/**
 * Program Review Template Styles
 * Unified styling for all program reviews (Columbia, Wharton, etc.)
 */

/* Container and Layout */
.program-review-content {
    padding: 60px 0;
    background: #ffffff;
}

.program-review-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Header */
.post-head {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.review-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.review-title:hover {
    color: #508EFF;
    transform: scale(1.02);
    text-shadow: 0 2px 8px rgba(80, 142, 255, 0.2);
}

.review-tagline {
    font-size: 20px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.post-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.meta-date, .meta-updated {
    display: inline-block;
}

/* Two-Column Article Layout */
.article-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    max-width: 70%;
}

.sidebar {
    width: 350px;
    min-width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Main Content Typography */
.main-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

/* Program Content Wrapper - for cleaned HTML content */
.program-content-wrapper {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.program-content-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(80, 142, 255, 0.1);
}

.program-content-wrapper h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: #1a1a1a;
}

.program-content-wrapper h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
    color: #2a2a2a;
}

.program-content-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #3a3a3a;
}

.program-content-wrapper p {
    margin: 1rem 0;
    line-height: 1.6;
    color: #4a4a4a;
}

.program-content-wrapper ul,
.program-content-wrapper ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.program-content-wrapper li {
    margin: 0.5rem 0;
}

.program-content-wrapper section {
    margin: 2rem 0;
}

.program-content-wrapper article {
    max-width: none;
}

/* Fix spacing for nested content */
.program-content-wrapper > *:first-child {
    margin-top: 0;
}

.program-content-wrapper > *:last-child {
    margin-bottom: 0;
}

.main-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
    line-height: 1.3;
}

.main-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.main-content ul, .main-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.main-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    font-family: 'Georgia', serif;
}

/* YouTube Video Section */
.youtube-video-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.youtube-video-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    text-align: center;
}

.youtube-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-play-button {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.youtube-video-placeholder:hover .youtube-play-button {
    background: rgba(80, 142, 255, 0.9);
    transform: scale(1.1);
}

.youtube-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 30px solid white;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 8px;
}

/* Tables */
.program-snapshot {
    margin: 30px 0;
    transition: all 0.3s ease;
}

.program-snapshot:hover {
    transform: translateY(-3px);
}

.snapshot-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-snapshot:hover .snapshot-table {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.snapshot-table thead {
    background: #508EFF;
    color: white;
}

.snapshot-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.snapshot-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #444;
}

.snapshot-table tbody tr:last-child td {
    border-bottom: none;
}

.snapshot-table tbody tr {
    transition: all 0.3s ease;
}

.snapshot-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(3px) scale(1.01);
    box-shadow: 3px 0 12px rgba(80, 142, 255, 0.1);
}

/* Sidebar Styles - Condensed for one-screen view */
.sidebar-sticky {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-sticky:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-logo {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.institution-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.institution-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(80, 142, 255, 0.3);
}

/* Table of Contents */
.toc-container {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.toc-container:hover {
    background: rgba(80, 142, 255, 0.02);
    transform: translateY(-1px);
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.toc-nav {
    max-height: 300px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 4px;
}

.toc-nav a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    padding: 4px 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.toc-nav a:hover {
    color: #508EFF;
    background: #f8f9fa;
    border-left-color: #508EFF;
    transform: translateX(3px);
    box-shadow: 2px 0 8px rgba(80, 142, 255, 0.15);
}

.toc-nav a.active {
    color: #508EFF;
    font-weight: 600;
    background: #508EFF1A;
    border-left-color: #508EFF;
}

/* Nested TOC items */
.toc-nav ul ul {
    margin-left: 20px;
    margin-top: 5px;
}

.toc-nav ul ul a {
    font-size: 13px;
    color: #999;
}

/* Promo Box */
.promo-box {
    padding: 15px 15px;
    background: linear-gradient(135deg, #508EFF1A 0%, #fff 100%);
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.promo-box:hover {
    background: linear-gradient(135deg, #508EFF2A 0%, #fff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 142, 255, 0.1);
}

.promo-title {
    font-size: 18px;
    font-weight: 600;
    color: #508EFF;
    margin-bottom: 10px;
    text-align: center;
}

.promo-text {
    font-size: 14px;
    color: #444;
    text-align: center;
    margin-bottom: 12px;
}

.coupon-display {
    text-align: center;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coupon-code-image {
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.coupon-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(80, 142, 255, 0.3);
}

.click-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

.deadline-info {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.deadline-info:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(80, 142, 255, 0.2);
    background: linear-gradient(135deg, #fff 0%, #508EFF05 100%);
}

.deadline-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.deadline-date {
    font-size: 16px;
    font-weight: 600;
    color: #508EFF;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #508EFF;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #3a7de0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 142, 255, 0.3);
}

/* Discount Section */
.discount-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.discount-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(80, 142, 255, 0.1);
}

.discount-box {
    font-size: 17px;
    line-height: 1.8;
}

.discount-tiers {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #508EFF;
    transition: all 0.3s ease;
}

.discount-tiers:hover {
    transform: translateX(5px);
    box-shadow: 5px 0 15px rgba(80, 142, 255, 0.15);
    border-left-width: 6px;
}

.discount-tiers li {
    margin-bottom: 15px;
    color: #333;
}

.discount-note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

/* Faculty and Speakers Sections */
.faculty-section,
.speakers-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faculty-section:hover,
.speakers-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(80, 142, 255, 0.1);
}

.faculty-section h2,
.speakers-section h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
}

.faculty-list,
.speakers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faculty-list li,
.speakers-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.faculty-list li:hover,
.speakers-list li:hover {
    padding-left: 10px;
    background: #f8f9fa;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
}

.faculty-list li:last-child,
.speakers-list li:last-child {
    border-bottom: none;
}

/* Related Programs Grid */
.related-programs-section {
    margin-top: 60px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.program-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.program-card-body {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-card-icon {
    text-align: center;
    margin-bottom: 15px;
}

.institution-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.institution-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(80, 142, 255, 0.3);
}

.program-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    text-align: center;
    display: block;
}

.program-card-title a:hover {
    color: #508EFF;
}

.program-card-cta {
    color: #508EFF;
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.program-card-cta a {
    color: #508EFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.program-card-cta a:hover {
    color: #3a7de0;
    transform: translateX(3px);
    display: inline-block;
}

/* Inline Coupon Images */
.inline-coupon {
    transition: opacity 0.3s ease;
}

.inline-coupon:hover {
    opacity: 0.7;
}

/* Faculty and Speakers Lists */
.faculty-list, .speakers-list {
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 8px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.faculty-list:hover, .speakers-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faculty-list li, .speakers-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.faculty-list li:hover, .speakers-list li:hover {
    transform: translateX(5px);
    padding-left: 15px;
    border-left-color: #508EFF;
    background: rgba(80, 142, 255, 0.05);
}

/* Institution-specific colors */
.columbia-program .promo-box {
    background: linear-gradient(135deg, #1a4d8f1a 0%, #fff 100%);
}

.columbia-program .promo-title,
.columbia-program .deadline-date {
    color: #1a4d8f;
}

.columbia-program .cta-button {
    background: #1a4d8f;
}

.columbia-program .cta-button:hover {
    background: #153f73;
}

.wharton-program .promo-box {
    background: linear-gradient(135deg, #990f3d1a 0%, #fff 100%);
}

.wharton-program .promo-title,
.wharton-program .deadline-date {
    color: #990f3d;
}

.wharton-program .cta-button {
    background: #990f3d;
}

.wharton-program .cta-button:hover {
    background: #7a0c31;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .review-title {
        font-size: 32px;
    }
    
    .main-content h2 {
        font-size: 26px;
    }
    
    .main-content h3 {
        font-size: 22px;
    }
    
    .main-content p,
    .main-content li {
        font-size: 16px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .youtube-play-button {
        width: 60px;
        height: 60px;
    }
    
    .youtube-play-button::after {
        border-left: 20px solid white;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 5px;
    }
}