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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: #0a0a0a;
}

/* School Colors */
:root {
    --school-primary: #16a34a;
    --school-secondary: #22c55e;
    --school-dark: #15803d;
}

/* Slide Container */
.presentation {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
    animation: slideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 60px 100px;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Gradient Backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-dark) 50%, #14532d 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, var(--school-primary) 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, var(--school-secondary) 50%, #00f2fe 100%);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, var(--school-primary) 0%, #43e97b 50%, #38f9d7 100%);
}

.gradient-bg-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, var(--school-secondary) 100%);
}

.gradient-bg-6 {
    background: linear-gradient(135deg, #30cfd0 0%, var(--school-dark) 50%, #330867 100%);
}

.gradient-bg-7 {
    background: linear-gradient(135deg, var(--school-dark) 0%, #2563eb 50%, #1e40af 100%);
}

.gradient-bg-8 {
    background: linear-gradient(135deg, #6366f1 0%, var(--school-primary) 50%, #4f46e5 100%);
}

/* Title Slide */
.title-slide {
    flex-direction: column;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.title-slide::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.main-title {
    font-size: 5em;
    font-weight: 900;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    letter-spacing: -2px;
    animation: titleGlow 2s ease-in-out infinite alternate;
    z-index: 1;
    position: relative;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 3px 3px 6px rgba(0,0,0,0.7); }
    to { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(34, 197, 94, 0.5), 3px 3px 6px rgba(0,0,0,0.7); }
}

.subtitle {
    font-size: 2em;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Content Slides */
.content-slide {
    flex-direction: column;
    color: white;
}

.slide-header {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 0.8em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.slide-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: var(--school-primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.5);
}

/* Map Images */
.map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid var(--school-primary);
    margin: 20px auto;
    display: block;
}

/* Route Cards */
.routes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.route-card {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transform: translateY(50px);
    opacity: 0;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    border: 2px solid var(--school-primary);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
}

.route-card:nth-child(1) { animation-delay: 0.2s; }
.route-card:nth-child(2) { animation-delay: 0.4s; }

@keyframes cardPop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.route-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 0.8em;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--school-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.route-steps {
    list-style: none;
    counter-reset: step-counter;
}

.route-step {
    position: relative;
    padding-left: 45px;
    margin-bottom: 1em;
    line-height: 1.5;
    font-size: 1.1em;
    counter-increment: step-counter;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.5s ease forwards;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.route-step:nth-child(1) { animation-delay: 0.1s; }
.route-step:nth-child(2) { animation-delay: 0.2s; }
.route-step:nth-child(3) { animation-delay: 0.3s; }
.route-step:nth-child(4) { animation-delay: 0.4s; }
.route-step:nth-child(5) { animation-delay: 0.5s; }
.route-step:nth-child(6) { animation-delay: 0.6s; }
.route-step:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.route-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--school-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.rule-item {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
    border: 1px solid var(--school-primary);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(0,0,0,0.5);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.rule-item:nth-child(even) {
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rule-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.rule-text {
    flex: 1;
}

.rule-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--school-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.rule-desc {
    font-size: 1em;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Highlight Box */
.highlight-box {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 2px solid var(--school-primary);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    from { box-shadow: 0 0 20px rgba(22, 163, 74, 0.3); }
    to { box-shadow: 0 0 40px rgba(22, 163, 74, 0.6); }
}

/* Warning Card */
.warning-card {
    background: rgba(245, 87, 108, 0.2);
    border: 3px solid rgba(245, 87, 108, 0.6);
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(245, 87, 108, 0.5);
    }
}

.warning-text {
    font-size: 1.3em;
    font-weight: 600;
    color: #ff6b6b;
    text-align: center;
}

/* Call to Action */
.cta-slide {
    flex-direction: column;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    animation: bounceIn 1s ease;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-message {
    font-size: 1.8em;
    margin-bottom: 1.5em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

.contact-info {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease 0.8s forwards;
    border: 2px solid var(--school-primary);
}

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

.contact-item {
    font-size: 1.3em;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.volunteer-cta {
    background: var(--school-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    animation: pulseButton 2s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.4);
}

@keyframes pulseButton {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.volunteer-cta:hover {
    background: var(--school-dark);
    transform: scale(1.1);
}

/* Navigation */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 163, 74, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
    background: var(--school-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* Slide Indicator */
.slide-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    background: rgba(22, 163, 74, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Special Effects */
.emoji-large {
    font-size: 6em;
    margin-bottom: 0.3em;
    animation: emojiPulse 2s ease-in-out infinite;
}

@keyframes emojiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slide {
        padding: 20px 15px 80px 15px;
    }

    .content-slide {
        justify-content: flex-start;
        padding-top: 10px;
        overflow-y: auto;
    }

    .main-title {
        font-size: 2.2em;
        margin-bottom: 0.3em;
    }
    
    .slide-header {
        font-size: 1.6em;
        margin-bottom: 0.4em;
        margin-top: 5px;
    }

    .slide-header::after {
        bottom: -10px;
        width: 80px;
        height: 3px;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .subtitle:last-child {
        font-size: 0.85em !important;
        line-height: 1.3;
        padding: 0 10px;
    }

    .emoji-large {
        font-size: 4em;
    }
    
    .routes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .route-card {
        padding: 20px;
    }

    .route-title {
        font-size: 1.3em;
        margin-bottom: 0.5em;
    }

    .route-step {
        font-size: 0.9em;
        margin-bottom: 0.7em;
        padding-left: 35px;
    }

    .route-step::before {
        width: 25px;
        height: 25px;
        font-size: 0.9em;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rule-item {
        padding: 15px;
    }

    .rule-icon {
        font-size: 2em;
        min-width: 40px;
    }

    .rule-title {
        font-size: 1em;
    }

    .rule-desc {
        font-size: 0.85em;
    }

    .map-image {
        max-width: 100%;
        margin: 10px auto;
    }

    .highlight-box {
        padding: 20px;
        margin: 15px auto;
    }

    .highlight-box h3 {
        font-size: 1.4em !important;
    }

    .highlight-box p {
        font-size: 1em !important;
        line-height: 1.6 !important;
    }

    .warning-card {
        padding: 15px;
        margin: 10px 0;
    }

    .warning-text {
        font-size: 1.1em;
    }

    .cta-title {
        font-size: 2.2em;
    }

    .cta-message {
        font-size: 1.2em;
        margin-bottom: 1em;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-item {
        font-size: 1em;
    }

    .volunteer-cta {
        padding: 15px 25px;
        font-size: 1em;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .nav-arrow.prev {
        left: 10px;
    }
    
    .nav-arrow.next {
        right: 10px;
    }

    .slide-indicator {
        bottom: 20px;
        font-size: 1em;
        padding: 8px 15px;
    }

    /* Fix for title slide on mobile */
    .title-slide {
        padding: 30px 15px;
        justify-content: center;
    }
}
/* Add these CSS rules to your safety.css file */

/* Landscape mobile - more specific targeting */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .slide {
        padding: 10px 40px !important;
        overflow-y: auto !important;
    }

    .main-title {
        font-size: 2.5em !important;
        margin-bottom: 0.1em !important;
    }
    
    .slide-header {
        font-size: 2em !important;
        margin-bottom: 0.2em !important;
    }

    .subtitle {
        font-size: 1em !important;
        margin-top: 0.5em !important;
    }

    .emoji-large {
        font-size: 3em !important;
        margin-bottom: 0.1em !important;
    }

    .map-image {
        max-height: 60vh !important;
        width: auto !important;
        max-width: 80% !important;
    }

    .routes-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        font-size: 0.8em !important;
    }

    .route-card {
        padding: 10px !important;
    }

    .rules-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .rule-item {
        padding: 8px !important;
        font-size: 0.8em !important;
    }

    .highlight-box {
        padding: 15px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    .highlight-box h3 {
        font-size: 1.3em !important;
    }

    .highlight-box p {
        font-size: 1em !important;
    }

    /* Hide nav arrows on small landscape to save space */
    .nav-arrow {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8em !important;
    }
}

/* Alternative approach - max aspect ratio */
@media screen and (max-aspect-ratio: 3/2) and (max-height: 600px) {
    .content-slide {
        justify-content: flex-start !important;
        padding-top: 5px !important;
    }

    .slide {
        padding: 15px 50px !important;
    }
}

/* Another fallback for any landscape under 600px height */
@media screen and (max-height: 600px) {
    .slide {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .content-slide {
        justify-content: flex-start !important;
    }
}
/* Specific fixes for landscape mode issues */
@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Fix map images being too large */
    .map-image {
        max-height: 45vh !important;
        width: auto !important;
        max-width: 70% !important;
        margin: 10px auto !important;
    }
    
    /* Ensure content slides are scrollable */
    .content-slide {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        justify-content: flex-start !important;
        padding-top: 10px !important;
    }
    
    /* Fix Safety Essentials slide */
    .rules-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 10px 0 !important;
    }
    
    .rule-item {
        padding: 8px !important;
        margin: 0 !important;
    }
    
    .rule-icon {
        font-size: 1.8em !important;
    }
    
    .rule-title {
        font-size: 0.85em !important;
    }
    
    .rule-desc {
        font-size: 0.75em !important;
    }
    
    /* Fix Absolutely No slide */
    .warning-card {
        padding: 10px !important;
        margin: 8px auto !important;
    }
    
    .warning-text {
        font-size: 1.1em !important;
    }
    
    .highlight-box {
        padding: 12px !important;
        margin: 10px auto !important;
    }
    
    .highlight-box h3 {
        font-size: 1.2em !important;
        margin-bottom: 0.5em !important;
    }
    
    .highlight-box p {
        font-size: 0.9em !important;
        line-height: 1.5 !important;
    }
    
    /* Fix Thank You slide */
    .cta-slide {
        overflow-y: auto !important;
        justify-content: flex-start !important;
        padding-top: 20px !important;
    }
    
    .cta-title {
        font-size: 2.5em !important;
        margin-bottom: 0.3em !important;
    }
    
    .cta-message {
        font-size: 1.2em !important;
        margin-bottom: 0.5em !important;
    }
    
    .volunteer-cta {
        padding: 12px 24px !important;
        font-size: 1em !important;
        margin: 10px auto !important;
    }
    
    /* Reduce spacing for all slides in landscape */
    .slide-header {
        font-size: 2.2em !important;
        margin-bottom: 0.3em !important;
        padding-top: 5px !important;
    }
    
    .slide-header::after {
        display: none !important; /* Hide decorative line to save space */
    }
    
    /* Allow scrolling on all slides that need it */
    .slide {
        max-height: 100vh !important;
        overflow-y: auto !important;
        padding: 10px 50px !important;
    }
}

/* Even more aggressive for very small landscape screens */
@media screen and (max-height: 400px) {
    .map-image {
        max-height: 40vh !important;
        max-width: 60% !important;
    }
    
    .slide-header {
        font-size: 1.8em !important;
    }
    
    .emoji-large {
        font-size: 2.5em !important;
    }
    
    .highlight-box p {
        font-size: 0.85em !important;
        line-height: 1.3 !important;
    }
}

/* OPTION 3: Swipe-only on mobile (hide arrows, show swipe hint) */
@media (max-width: 768px) and (orientation: portrait) {
    .nav-arrow {
        display: none !important;
    }
    
    /* Add swipe hint at bottom */
    .slide::after {
        content: '← Swipe to navigate →';
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 0.9em;
        animation: fadeInOut 3s ease-in-out;
        pointer-events: none;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }
}