/* Haunted House package page styles */

/* Set Montserrat font for the entire haunted house page */
.hauntedhouse-container {
    padding: 40px 0;
    min-height: 80vh;
    font-family: "Montserrat", sans-serif;
}

.hauntedhouse-container * {
    font-family: "Montserrat", sans-serif;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Package Header */
.package-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.package-image {
    flex-shrink: 0;
}

.package-portrait-large {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-portrait-large:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.package-info {
    flex: 1;
}

.package-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
    background: linear-gradient(135deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.package-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
}

.package-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Package Contents */
.package-contents {
    margin-bottom: 60px;
}

.package-contents h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.audio-preview-btn-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: block;
    margin: 15px auto 0;
    min-width: 140px;
    text-align: center;
}

.audio-preview-btn-card:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.audio-preview-btn-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.content-category audio {
    display: none;
}

.no-preview {
    margin: 15px auto 0;
    text-align: center;
}

.no-preview span {
    background: #f8f9fa;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    display: inline-block;
    min-width: 140px;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-category {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.content-category h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.content-category ul {
    list-style: none;
    padding: 0;
}

.content-category li {
    padding: 8px 0;
    color: #555;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.content-category li:before {
    content: "▶";
    color: #007bff;
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Technical Specifications */
.tech-specs {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

.tech-specs h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
}

.spec-item strong {
    color: #333;
    font-weight: 600;
}

.spec-item span {
    color: #007bff;
    font-weight: 500;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 20px;
    color: white;
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.download-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    min-width: 180px;
}

.btn-primary {
    background: #fff;
    color: #007bff;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

.download-note a {
    color: #fff;
    text-decoration: underline;
}

.download-note a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hauntedhouse-container {
        padding: 20px 15px;
    }

    .package-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .package-portrait-large {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .package-info h1 {
        font-size: 2.2rem;
    }

    .package-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat {
        padding: 15px;
    }

    .contents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tech-specs {
        padding: 25px 20px;
    }

    .package-contents h2,
    .tech-specs h2 {
        font-size: 1.8rem;
    }
    
    .audio-preview-btn-card {
        font-size: 0.75rem;
        padding: 6px 14px;
        min-width: 120px;
    }

    .download-section h2 {
        font-size: 2rem;
    }
}

/* Presentation Section */
.package-presentation {
    margin-bottom: 60px;
}

.package-presentation h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

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

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px;
    object-fit: cover;
}

/* Responsive adjustments for presentation section */
@media (max-width: 768px) {
    .package-presentation h2 {
        font-size: 1.8rem;
    }
    
    .video-container {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .video-container iframe {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .video-container {
        border-radius: 8px;
    }
    
    .video-container iframe {
        border-radius: 8px;
    }
}

/* Package Download Section */
.package-download {
    margin-bottom: 60px;
}

.package-download h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.download-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-table-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.download-table thead {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.download-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.download-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-weight: 500;
}

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

.download-table tbody tr {
    transition: background-color 0.3s ease;
}

.download-table tbody tr:hover {
    background-color: #f8f9fa;
}

.download-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
}

.download-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive design for download table */
@media (max-width: 768px) {
    .package-download h2 {
        font-size: 1.8rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .download-table th {
        font-size: 1rem;
    }
    
    .download-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .download-table {
        font-size: 0.85rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 12px;
    }
    
    .download-link {
        padding: 5px 10px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .package-portrait-large {
        width: 160px;
        height: 160px;
    }

    .package-info h1 {
        font-size: 1.8rem;
    }

    .package-subtitle {
        font-size: 1.1rem;
    }

    .package-description {
        font-size: 1rem;
    }
}

/* Package Specifications */
.package-specs {
    margin-bottom: 60px;
}

.package-specs h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.specs-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.specs-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-weight: 500;
}

.specs-table td:first-child {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    width: 40%;
    font-weight: 600;
    color: #333;
}

.specs-table td:last-child {
    color: #007bff;
    font-weight: 600;
}

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

/* Updated Package Contents Styles */
.package-description-detailed {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contents-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contents-table-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.contents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.contents-table thead {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.contents-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.contents-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-weight: 500;
    vertical-align: middle;
}

.contents-table tbody tr {
    transition: background-color 0.3s ease;
}

.contents-table tbody tr:hover:not(.dropdown-row) {
    background-color: #f8f9fa;
}

.contents-table tbody tr:last-of-type:not(.dropdown-row) td {
    border-bottom: none;
}

/* Audio Preview Button for Table */
.audio-preview-btn-table {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    min-width: 80px;
    text-align: center;
}

.audio-preview-btn-table:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.audio-preview-btn-table:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Dropdown Toggle Button */
.dropdown-toggle {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    min-width: 90px;
    text-align: center;
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.dropdown-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Dropdown Row */
.dropdown-row {
    display: none;
    background: #f8f9fa;
}

.dropdown-row td {
    padding: 0;
    border-bottom: 2px solid #e9ecef;
}

.file-list {
    padding: 20px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.subcategory {
    margin-bottom: 25px;
}

.subcategory:last-child {
    margin-bottom: 0;
}

.subcategory h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.subcategory h5 {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 8px 0;
    padding-left: 15px;
    border-left: 3px solid #28a745;
}

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

.file-list li {
    padding: 6px 0 6px 20px;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list li:hover {
    color: #007bff;
    padding-left: 25px;
}

.file-list li:before {
    content: "🎵";
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 6px;
    opacity: 0.7;
}

/* Audio elements in table */
.contents-table audio {
    display: none;
}

/* Responsive styles for new elements */
@media (max-width: 768px) {
    .specs-table td,
    .contents-table th,
    .contents-table td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .contents-table th {
        font-size: 1rem;
    }
    
    .audio-preview-btn-table,
    .dropdown-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .file-list {
        padding: 15px;
    }
    
    .subcategory h4 {
        font-size: 1rem;
    }
    
    .subcategory h5 {
        font-size: 0.9rem;
    }
    
    .file-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .specs-table-container,
    .contents-table-container {
        border-radius: 12px;
    }
    
    .specs-table td,
    .contents-table th,
    .contents-table td {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .audio-preview-btn-table,
    .dropdown-toggle {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 60px;
        border-radius: 12px;
    }
    
    .file-list {
        padding: 12px;
        max-height: 300px;
    }
    
    .subcategory h4 {
        font-size: 0.95rem;
    }
    
    .subcategory h5 {
        font-size: 0.85rem;
    }
    
    .file-list li {
        font-size: 0.8rem;
        padding: 5px 0 5px 18px;
    }
    
    .file-list li:hover {
        padding-left: 22px;
    }
}