* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Index page: make main container white with 85% opacity over background image */
.index-body .container {
    background: rgba(255, 255, 255, 0.85);
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    font-size: 0.9em;
    opacity: 0.9;
}

.header-links {
    margin-top: 15px;
    text-align: center;
}

.travel-link {
    display: inline-block;
    padding: 8px 20px;
    background: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    border: 2px solid #007bff;
    transition: all 0.3s;
}

.travel-link:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.topic-header h1 {
    font-size: 1.4em;
    flex: 1;
    text-align: center;
    margin: 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 15px;
}

.topic-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.topic-card-number {
    font-size: 0.8em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.topic-card-title {
    font-size: 1.1em;
    font-weight: 600;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.language-selector,
.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-selector label,
.voice-selector label,
.speed-control label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9em;
}

.language-selector select,
.voice-selector select {
    padding: 6px 12px;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 180px;
}

.language-selector select:hover,
.voice-selector select:hover {
    border-color: #764ba2;
}

#speedSlider {
    width: 150px;
    cursor: pointer;
}

#speedValue {
    min-width: 50px;
    font-weight: 600;
    color: #667eea;
}

.auto-voice-display {
    font-size: 0.85em;
    color: #667eea;
    margin-top: 5px;
    font-style: italic;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    display: none;
}

.flashcard-container {
    padding: 20px 15px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flashcard {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* carousel animation */
    animation-duration: 0.25s;
    animation-fill-mode: both;
}

/* Slide in from right (for Next) */
.flashcard-animate-right {
    animation-name: flashcardSlideInRight;
}

/* Slide in from left (for Previous) */
.flashcard-animate-left {
    animation-name: flashcardSlideInLeft;
}

@keyframes flashcardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flashcardSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phase-number {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 12px;
    font-weight: 500;
}

.chinese-text {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinyin-text {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
    font-style: italic;
    min-height: 25px;
}

.translation-text {
    font-size: 1.2em;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.flashcard-controls {
    display: flex;
    justify-content: center; /* Center buttons in the middle of the card */
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap; /* Keep them on one line on larger screens */
}

.flashcard-controls .btn-nav {
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
    min-width: 120px;
    max-width: 200px;
    white-space: nowrap; /* Prevent text wrapping */
}

.flashcard-controls .play-controls {
    display: flex;
    gap: 8px;
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
    justify-content: center;
    align-items: center;
}

.flashcard-controls .btn-play {
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
    min-width: 100px;
    max-width: 150px;
    white-space: nowrap; /* Prevent text wrapping */
}

.navigation-controls {
    display: none; /* Hidden since controls are now in flashcard */
}

.topic-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    gap: 10px;
}

.topic-navigation .btn-topic-nav {
    flex: 1;
    max-width: 300px;
}

.topic-navigation .btn-play-all {
    flex: 0 0 auto;
    min-width: 150px;
}

.result-button-row {
    display: flex;
    justify-content: center;
    padding: 8px 15px 0;
}

.result-button-row #resultBtn {
    background: #ffffff;
    color: #007bff;
    border: 2px solid #007bff;
}

.result-button-row #resultBtn:hover {
    background: #007bff;
    color: #ffffff;
}

.page-footer {
    padding: 10px 15px 15px;
    font-size: 0.85em;
    color: #495057;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    line-height: 1.5;
}

.page-footer div:first-child {
    font-weight: 600;
    margin-bottom: 3px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner ONLY for Play / Play All buttons when disabled (audio playing) */
.btn-play:disabled,
.btn-play-all:disabled {
    position: relative;
}

.btn-play:disabled::after,
.btn-play-all:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-back,
.btn-menu {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.btn-back:hover,
.btn-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-play,
.btn-play-all {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-play:hover,
.btn-play-all:hover {
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.btn-play-all.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-nav {
    flex: 1;
    max-width: 200px;
}

.btn-topic-nav {
    flex: 1;
    max-width: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.close {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    line-height: 1;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 15px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.topic-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.topic-item-number {
    font-size: 0.8em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.topic-item-title {
    font-size: 1em;
    font-weight: 600;
}

/* Result modal styling */
.result-summary {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #343a40;
}

.result-summary strong {
    font-weight: 600;
}

.result-details {
    font-size: 0.9em;
    color: #495057;
}

.result-topic {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.result-topic h3 {
    font-size: 1em;
    margin-bottom: 4px;
}

.result-topic ul {
    margin: 0;
    padding-left: 18px;
}

.result-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-error {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.notification-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Website Description Section */
.website-description {
    padding: 30px 20px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    margin-top: 20px;
}

.description-title {
    font-size: 1.5em;
    color: #667eea;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.description-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2em;
    color: #764ba2;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.description-content {
    line-height: 1.8;
    color: #495057;
}

.description-paragraph {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.description-paragraph strong {
    color: #667eea;
    font-weight: 600;
}

.topic-list {
    margin: 15px 0 15px 20px;
    padding-left: 0;
    list-style-type: none;
}

.topic-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
    line-height: 1.7;
}

.topic-list li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.topic-list li strong {
    color: #764ba2;
    font-weight: 600;
}

.call-to-action {
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.call-to-action strong {
    color: #667eea;
    font-size: 1.1em;
}

/* How to Use Section */
.how-to-use-section {
    padding: 30px 20px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.section-title-main {
    font-size: 1.5em;
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.instruction-step {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.instruction-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.instruction-step h3 {
    color: #764ba2;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.instruction-step p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 8px;
}

/* Target Audience Section */
.target-audience-section {
    padding: 30px 20px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.audience-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.audience-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.audience-card h3 {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.audience-card p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 30px 20px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 20px;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: background 0.3s;
}

.faq-item:hover {
    background: #e9ecef;
}

.faq-question {
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-answer {
    color: #495057;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .topic-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .topic-header h1 {
        font-size: 1.4em;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .language-selector,
    .voice-selector,
    .speed-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .language-selector select,
    .voice-selector select {
        min-width: auto;
        width: 100%;
    }
    
    .chinese-text {
        font-size: 2em;
    }
    
    .navigation-controls {
        flex-direction: column;
    }
    
    .btn-nav,
    .btn-topic-nav {
        max-width: 100%;
        width: 100%;
    }
    
    .play-controls {
        width: 100%;
    }
    
    .btn-play,
    .btn-play-all {
        flex: 1;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-list {
        grid-template-columns: 1fr;
    }
    
    .website-description {
        padding: 20px 15px;
    }
    
    .description-title {
        font-size: 1.3em;
    }
    
    .section-title {
        font-size: 1.1em;
    }
    
    .description-paragraph {
        font-size: 0.9em;
    }
    
    .topic-list li {
        font-size: 0.9em;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-main {
        font-size: 1.3em;
    }
    
    .instruction-step,
    .audience-card {
        padding: 15px;
    }
    
    .faq-item {
        padding: 15px;
    }
}

/* Travel Page Styles */
.travel-content {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.travel-intro {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.travel-intro h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-text {
    font-size: 1em;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 12px;
}

.city-section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #667eea;
}

.city-title {
    color: #764ba2;
    font-size: 1.6em;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.city-category {
    margin-bottom: 25px;
}

.category-title {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
}

.photo-guide-btn {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.photo-guide-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.travel-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.travel-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    line-height: 1.7;
    color: #495057;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
}

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

.travel-list li::before {
    content: "▸";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

.travel-list li strong {
    color: #764ba2;
    font-weight: 600;
}

.bonus-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-top: 3px solid #f093fb;
}

.bonus-section .city-title {
    color: #f5576c;
}

/* Responsive for Travel Page */
@media (max-width: 768px) {
    .travel-content {
        padding: 15px;
    }
    
    .travel-intro {
        padding: 20px;
    }
    
    .travel-intro h2 {
        font-size: 1.5em;
    }
    
    .city-section {
        padding: 20px;
    }
    
    .city-title {
        font-size: 1.4em;
    }
    
    .category-title {
        font-size: 1.1em;
    }
    
    .travel-list li {
        font-size: 0.9em;
        padding-left: 20px;
    }
    
    .photo-guide-btn {
        font-size: 0.8em;
        padding: 5px 12px;
    }
    
    .city-category > div[style*="display: flex"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* Photography Page Styles */
.photography-content {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.photography-intro {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.photography-intro h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.photo-section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #667eea;
}

.highlight-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-top: 3px solid #f093fb;
}

.section-title-photo {
    color: #764ba2;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.photo-spot {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.spot-title {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.spot-details p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #495057;
    font-size: 0.95em;
}

/* Travel page image gallery */
.travel-gallery-section {
    margin-top: 30px;
}

.travel-gallery-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 10px;
    text-align: center;
}

.travel-gallery-note {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.travel-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.travel-thumb-btn {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.travel-thumb-btn img {
    display: block;
    width: 140px;
    height: auto;
}

.travel-thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.image-modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
}

.image-modal-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.image-modal-controls button,
.image-modal-controls a {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
}

.image-modal-controls button {
    background: #667eea;
    color: #ffffff;
}

.image-modal-controls button:hover {
    background: #764ba2;
}

.image-modal-controls a {
    background: #ffffff;
    color: #007bff;
    border: 1px solid #007bff;
}

.image-modal-controls a:hover {
    background: #007bff;
    color: #ffffff;
}

@media (max-width: 768px) {
    .travel-thumb-btn img {
        width: 110px;
    }
}

.spot-details code {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

.important-note {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.important-note p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

.gear-list {
    padding: 15px;
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.timing-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.timing-item.avoid {
    background: linear-gradient(135deg, rgba(238, 9, 121, 0.1) 0%, rgba(255, 106, 0, 0.1) 100%);
    border-left-color: #ee0979;
}

.timing-item h4 {
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.timing-item.avoid h4 {
    color: #ee0979;
}

.timing-item p {
    color: #495057;
    font-size: 0.9em;
    margin: 0;
}

.gps-table {
    overflow-x: auto;
    margin-top: 15px;
}

.gps-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.gps-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.gps-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9em;
}

.gps-table tr:hover {
    background: #f8f9fa;
}

.gps-table code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

.map-link {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s;
}

.map-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.map-link-table {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.map-link-table:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
}

/* Responsive for Photography Page */
@media (max-width: 768px) {
    .photography-content {
        padding: 15px;
    }
    
    .photography-intro {
        padding: 20px;
    }
    
    .photography-intro h2 {
        font-size: 1.5em;
    }
    
    .photo-section {
        padding: 20px;
    }
    
    .section-title-photo {
        font-size: 1.3em;
    }
    
    .photo-spot {
        padding: 15px;
    }
    
    .spot-title {
        font-size: 1.1em;
    }
    
    .timing-grid {
        grid-template-columns: 1fr;
    }
    
    .gps-table {
        font-size: 0.85em;
    }
    
    .gps-table th,
    .gps-table td {
        padding: 8px;
    }
}

