* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '⭐';
    position: absolute;
    font-size: 3rem;
    top: 10px;
    left: 20px;
    animation: twinkle 2s infinite;
}

header::after {
    content: '🌙';
    position: absolute;
    font-size: 3rem;
    top: 10px;
    right: 20px;
    animation: twinkle 2s infinite 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

header h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    border: 3px solid #feca57;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: #feca57;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    transform: scale(1.1);
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: white !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subscribe-btn:hover {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-section {
    display: none;
    animation: slideIn 0.6s ease;
}

.content-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero {
    background: linear-gradient(135deg, #ffeaa7 0%, #74b9ff 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 5px solid #fff;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 3rem;
    animation: float 6s infinite ease-in-out;
}

.rocket { top: 10%; left: 5%; animation-delay: 0s; }
.star { top: 20%; right: 10%; animation-delay: 1s; }
.planet { bottom: 15%; left: 10%; animation-delay: 2s; }
.monkey { bottom: 20%; right: 5%; animation-delay: 1.5s; }
.tiger { top: 15%; left: 8%; animation-delay: 0.5s; }
.elephant { top: 25%; right: 8%; animation-delay: 2.5s; }
.maple { bottom: 10%; left: 15%; animation-delay: 1s; }
.parrot { top: 10%; right: 15%; animation-delay: 0.8s; }
.butterfly { top: 30%; left: 10%; animation-delay: 1.8s; }
.rainbow { bottom: 20%; right: 10%; animation-delay: 2.2s; }
.spaceship { top: 15%; left: 12%; animation-delay: 1.2s; }
.comet { bottom: 25%; right: 12%; animation-delay: 2.8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.hero h2 {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    color: #2d3436;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 5px solid white;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.carousel-btn:hover {
    background: #feca57;
    color: white;
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.container {
    background: linear-gradient(135deg, #a29bfe 0%, #fd79a8 100%);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 5px solid white;
}

.about-container {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.categories-container {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.contact-container {
    background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%);
}

.container h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.container p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: white;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.category-btn {
    background: white;
    color: #2d3436;
    border: 4px solid #feca57;
    padding: 2rem 1rem;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.category-btn:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.games-btn:hover { background: #ff6b6b; color: white; }
.youtube-btn:hover { background: #ff0000; color: white; }
.math-btn:hover { background: #48dbfb; color: white; }
.reading-btn:hover { background: #1dd1a1; color: white; }
.ebooks-btn:hover { background: #feca57; color: white; }

.category-content {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 4px solid white;
    position: relative;
    z-index: 1;
}

.category-content.active {
    display: block;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.category-content h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.level-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.level-btn {
    background: linear-gradient(135deg, #feca57, #ff6b6b);
    color: white;
    border: 3px solid white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.level-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.video-item {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid #ff0000;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.video-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
    background: rgba(255, 0, 0, 1);
}

.video-title {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3436;
    text-align: center;
}

/* Math Activity Styles */
.level-content {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.level-content.active {
    display: block;
}

.level-content h4 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.math-activity {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 4px solid #feca57;
}

.activity-instruction {
    font-size: 1.3rem;
    color: #2d3436;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

.counting-game {
    text-align: center;
}

.animals-display {
    font-size: 5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    border-radius: 15px;
    margin-bottom: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 4px solid white;
}

.number-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.number-btn {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.number-btn:hover {
    transform: scale(1.2);
    background: linear-gradient(135deg, #0abde3, #48dbfb);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.result-message {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-message.correct {
    background: #55efc4;
    color: #00b894;
    animation: celebrate 0.5s ease;
}

.result-message.incorrect {
    background: #fab1a0;
    color: #d63031;
    animation: shake 0.5s ease;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.next-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: 4px solid white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.next-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Reading Activity Styles */
.reading-activity {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 4px solid #1dd1a1;
}

.letter-game {
    text-align: center;
}

.sound-display {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 4px solid white;
}

.sound-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.sound-text {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.play-sound-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: 4px solid white;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.play-sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.letter-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.letter-btn {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    border: 4px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.letter-btn:hover {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, #10ac84, #1dd1a1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* E-books Styles */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.ebook-item {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 4px solid #feca57;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ebook-item:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.ebook-cover {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid white;
}

.ebook-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.ebook-cover h4 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.ebook-author {
    font-size: 1rem;
    color: #636e72;
    font-style: italic;
}

.read-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: 3px solid white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.read-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* E-book Modal */
.ebook-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.ebook-modal.active {
    display: flex;
}

.ebook-reader {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    border: 5px solid #feca57;
}

.close-ebook {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.close-ebook:hover {
    transform: scale(1.2) rotate(90deg);
    background: #d63031;
}

.ebook-reader h2 {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.ebook-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    min-height: 400px;
    margin-bottom: 2rem;
    border: 4px solid #feca57;
}

.page-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 3px solid #feca57;
}

.page-text {
    font-size: 1.4rem;
    line-height: 2;
    color: #2d3436;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    border-radius: 10px;
    font-weight: 500;
}

.read-aloud-btn {
    display: block;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: 3px solid white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.read-aloud-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: pulse 1s infinite;
}

/* Elementary Math Activities */
.elementary-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.elementary-activity.active {
    display: block;
}

.math-problem {
    text-align: center;
}

.problem-display {
    font-size: 3rem;
    font-weight: bold;
    color: #2d3436;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 4px solid white;
}

.math-input {
    width: 200px;
    padding: 1rem;
    font-size: 2rem;
    text-align: center;
    border: 4px solid #48dbfb;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', sans-serif;
}

.math-input:focus {
    outline: none;
    border-color: #feca57;
    transform: scale(1.05);
}

.check-btn {
    display: block;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    border: 4px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.check-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Middle School Math Activities */
.middle-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.middle-activity.active {
    display: block;
}

/* Geometry Visual */
.geometry-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    border: 4px solid #feca57;
}

.rectangle {
    position: relative;
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    border: 4px solid #2d3436;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dimension {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3436;
    background: #feca57;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 3px solid white;
}

.width-label {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.height-label {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

/* High School Math Activities */
.high-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.high-activity.active {
    display: block;
}

.dual-input {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dual-input div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dual-input label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3436;
}

.math-input.small {
    width: 120px;
}

/* Unit Circle Visual */
.unit-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 15px;
    border: 4px solid #feca57;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 4px solid #48dbfb;
    border-radius: 50%;
}

.axis {
    position: absolute;
    background: #dfe6e9;
}

.axis.horizontal {
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
}

.axis.vertical {
    left: 50%;
    top: 10%;
    width: 2px;
    height: 80%;
}

.angle-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.angle-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Elementary Reading Activities */
.elementary-reading-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.elementary-reading-activity.active {
    display: block;
}

/* Sight Words */
.sight-word-game {
    text-align: center;
}

.sight-word-display {
    font-size: 5rem;
    font-weight: bold;
    color: #2d3436;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 5px solid white;
    text-transform: lowercase;
    animation: pulse 2s infinite;
}

.know-btn {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    border: 4px solid white;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.know-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.sight-word-progress {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3436;
}

.sight-word-progress span {
    color: #ff6b6b;
    font-size: 1.5rem;
}

/* Short Stories */
.story-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.story-btn {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    color: white;
    border: 4px solid white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.story-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.story-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
    min-height: 200px;
}

.story-content h3 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-text {
    font-size: 1.3rem;
    line-height: 2;
    color: #2d3436;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Rhyming Words */
.rhyme-game {
    text-align: center;
}

.rhyme-word-display {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 5px solid white;
    display: inline-block;
    min-width: 200px;
}

.rhyme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.rhyme-option-btn {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    border: 4px solid white;
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rhyme-option-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Middle School Reading Activities */
.middle-reading-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.middle-reading-activity.active {
    display: block;
}

/* Comprehension */
.comprehension-passage {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
    margin-bottom: 2rem;
}

.comprehension-passage h3 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.comprehension-passage p {
    font-size: 1.2rem;
    line-height: 2;
    color: #2d3436;
    margin-bottom: 1rem;
    text-align: justify;
}

.comprehension-question {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid white;
}

.question-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.answer-btn {
    background: white;
    color: #2d3436;
    border: 3px solid #feca57;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-btn:hover {
    background: #feca57;
    color: white;
    transform: translateX(10px);
}

/* Vocabulary Builder */
.vocab-game {
    text-align: center;
}

.vocab-word-display {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 5px solid white;
}

.vocab-definition {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 2rem;
    font-weight: bold;
}

.vocab-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.vocab-option-btn {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    border: 4px solid white;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vocab-option-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Story Analysis */
.analysis-passage {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
    margin-bottom: 2rem;
}

.analysis-passage h3 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.analysis-passage p {
    font-size: 1.2rem;
    line-height: 2;
    color: #2d3436;
    text-align: justify;
}

.analysis-questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-question-item {
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid white;
}

.analysis-question-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 1.5rem;
}

.analysis-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.analysis-btn {
    background: white;
    color: #2d3436;
    border: 3px solid #ff6b6b;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.analysis-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: translateX(10px);
}

/* High School Reading Activities */
.high-reading-activity {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.high-reading-activity.active {
    display: block;
}

/* Literature Analysis */
.literature-passage {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
    margin-bottom: 2rem;
}

.literature-passage h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.poem-text {
    font-size: 1.2rem;
    line-height: 2;
    color: #2d3436;
    font-style: italic;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    padding: 2rem;
    border-radius: 10px;
    border: 3px solid white;
}

.literature-questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lit-question-item {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid white;
}

.lit-question-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.lit-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lit-btn {
    background: white;
    color: #2d3436;
    border: 3px solid #feca57;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.lit-btn:hover {
    background: #feca57;
    color: white;
    transform: translateX(10px);
}

/* Critical Reading */
.critical-passage {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
    margin-bottom: 2rem;
}

.critical-passage h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.critical-passage p {
    font-size: 1.2rem;
    line-height: 2;
    color: #2d3436;
    text-align: justify;
}

.critical-questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.critical-question-item {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid white;
}

.critical-question-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

.critical-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.critical-btn {
    background: white;
    color: #2d3436;
    border: 3px solid #48dbfb;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.critical-btn:hover {
    background: #48dbfb;
    color: white;
    transform: translateX(10px);
}

/* Essay Writing */
.essay-prompt {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid white;
    margin-bottom: 2rem;
}

.essay-prompt h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.prompt-text {
    font-size: 1.3rem;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 1.8;
}

.essay-structure {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 4px solid #feca57;
}

.essay-structure > h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.structure-section {
    margin-bottom: 2rem;
}

.structure-section h4 {
    color: #2d3436;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    border-radius: 10px;
    border: 3px solid white;
}

.essay-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 3px solid #48dbfb;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.8;
    resize: vertical;
}

.essay-input:focus {
    outline: none;
    border-color: #feca57;
}

.essay-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.save-essay-btn {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    border: 4px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.save-essay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.clear-essay-btn {
    background: linear-gradient(135deg, #ff6b6b, #d63031);
    color: white;
    border: 4px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.clear-essay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.essay-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.essay-feedback.success {
    background: #55efc4;
    color: #00b894;
}

.essay-feedback.warning {
    background: #fab1a0;
    color: #d63031;
}

.ebook-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-ebook-btn {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    border: 3px solid white;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-ebook-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-ebook-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageNumber {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3436;
}

.content-item {
    background: linear-gradient(135deg, #ffeaa7, #74b9ff);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
    font-weight: bold;
    font-size: 1.2rem;
    color: #2d3436;
}

.content-item:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Contact Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 3px solid white;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #feca57;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-cancel {
    background: #dc3545;
    color: white;
    border: 3px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-submit {
    background: #28a745;
    color: white;
    border: 3px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design - Comprehensive Media Queries */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    main {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .container {
        padding: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .youtube-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .ebooks-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .carousel {
        height: 250px;
    }
    
    .carousel-caption {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    .container h2 {
        font-size: 2rem;
    }
    
    .container p {
        font-size: 1.1rem;
    }
    
    .float-item {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-btn {
        padding: 1.5rem 1rem;
        font-size: 1.2rem;
    }
    
    .level-buttons {
        flex-direction: column;
    }
    
    .level-btn {
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .youtube-grid {
        grid-template-columns: 1fr;
    }
    
    .ebooks-grid {
        grid-template-columns: 1fr;
    }
    
    /* Math Activities */
    .animals-display {
        font-size: 3.5rem;
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .number-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .problem-display {
        font-size: 2rem;
        padding: 1.5rem;
    }
    
    .math-input {
        width: 150px;
        font-size: 1.5rem;
    }
    
    .dual-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .math-input.small {
        width: 150px;
    }
    
    /* Reading Activities */
    .letter-btn {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .sight-word-display {
        font-size: 3.5rem;
        padding: 2rem;
    }
    
    .rhyme-word-display {
        font-size: 3rem;
        padding: 1.5rem;
    }
    
    .rhyme-options {
        grid-template-columns: 1fr;
    }
    
    /* E-book Reader */
    .ebook-reader {
        width: 95%;
        padding: 1.5rem;
    }
    
    .ebook-reader h2 {
        font-size: 1.5rem;
    }
    
    .page-image {
        height: 200px;
    }
    
    .page-text {
        font-size: 1.2rem;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    /* Geometry Visual */
    .geometry-visual {
        padding: 1rem;
    }
    
    .dimension {
        font-size: 1.2rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Essay Writing */
    .essay-input {
        min-height: 120px;
        font-size: 1rem;
    }
    
    .essay-actions {
        flex-direction: column;
    }
    
    .save-essay-btn,
    .clear-essay-btn {
        width: 100%;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    header::before,
    header::after {
        font-size: 2rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .subscribe-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        padding: 1.5rem 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-caption {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .carousel-btn {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
        width: 35px;
        height: 35px;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .container h2 {
        font-size: 1.8rem;
    }
    
    .container p {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .float-item {
        font-size: 1.5rem;
    }
    
    .category-btn {
        padding: 1.2rem 0.8rem;
        font-size: 1rem;
    }
    
    .level-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Math Activities */
    .level-content h4 {
        font-size: 1.5rem;
    }
    
    .activity-instruction {
        font-size: 1.1rem;
    }
    
    .animals-display {
        font-size: 2.5rem;
        padding: 1rem;
        min-height: 100px;
    }
    
    .number-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .problem-display {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .math-input {
        width: 120px;
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    .math-input.small {
        width: 100px;
    }
    
    .check-btn,
    .next-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-message {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    /* Reading Activities */
    .sound-icon {
        font-size: 3rem;
    }
    
    .sound-text {
        font-size: 1.2rem;
        min-height: 60px;
    }
    
    .play-sound-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .letter-btn {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }
    
    .sight-word-display {
        font-size: 2.5rem;
        padding: 1.5rem;
    }
    
    .know-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    
    .rhyme-word-display {
        font-size: 2.5rem;
        padding: 1rem;
        min-width: 150px;
    }
    
    .rhyme-option-btn {
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .story-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .story-text {
        font-size: 1.1rem;
    }
    
    /* E-book */
    .ebook-icon {
        font-size: 3.5rem;
    }
    
    .ebook-cover h4 {
        font-size: 1.2rem;
    }
    
    .read-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .ebook-reader {
        width: 98%;
        padding: 1rem;
        max-height: 95vh;
    }
    
    .ebook-reader h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .page-image {
        height: 150px;
    }
    
    .page-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .read-aloud-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-ebook-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    #pageNumber {
        font-size: 1rem;
    }
    
    /* Video Items */
    .video-title {
        font-size: 1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Contact Form */
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-cancel,
    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Geometry */
    .rectangle {
        max-width: 200px;
        max-height: 200px;
    }
    
    .width-label {
        bottom: -35px;
    }
    
    .height-label {
        right: -35px;
    }
    
    /* Unit Circle */
    .unit-circle {
        width: 150px;
        height: 150px;
    }
    
    .circle {
        width: 120px;
        height: 120px;
    }
    
    .angle-line {
        width: 60px;
    }
    
    /* Essay Writing */
    .essay-prompt h3 {
        font-size: 1.5rem;
    }
    
    .prompt-text {
        font-size: 1.1rem;
    }
    
    .structure-section h4 {
        font-size: 1.1rem;
    }
    
    .essay-input {
        min-height: 100px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .save-essay-btn,
    .clear-essay-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Literature & Critical Reading */
    .literature-passage h3,
    .critical-passage h3 {
        font-size: 1.5rem;
    }
    
    .poem-text,
    .literature-passage p,
    .critical-passage p {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .lit-question-text,
    .critical-question-text,
    .analysis-question-text {
        font-size: 1.1rem;
    }
    
    .lit-btn,
    .critical-btn,
    .analysis-btn,
    .answer-btn,
    .vocab-option-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .vocab-word-display {
        font-size: 3rem;
        padding: 1.5rem;
    }
    
    .vocab-definition {
        font-size: 1.1rem;
    }
}


/* Mascot Character */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: mascotFloat 3s ease-in-out infinite;
}

.mascot-character {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    cursor: pointer;
    border-radius: 20px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: opacity 1s ease, transform 1s ease;
}

.mascot-character.active {
    opacity: 1;
    transform: scaleY(1);
}

.mascot-character:hover {
    transform: scaleY(1) scale(1.05) rotate(2deg);
}

.mascot-speech-bubble {
    position: absolute;
    bottom: 40px;
    right: 130px;
    background: white;
    color: #ff6b6b;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid #feca57;
    white-space: nowrap;
    opacity: 1;
    animation: bubbleFade 4s ease-in-out infinite;
    min-width: 150px;
    text-align: center;
    z-index: 1000;
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid white;
}

.mascot-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 18px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid #feca57;
    z-index: -1;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bubbleFade {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .mascot-container {
        bottom: 10px;
        right: 10px;
    }
    
    .mascot-character {
        width: 80px;
    }
    
    .mascot-speech-bubble {
        bottom: 30px;
        right: 90px;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        min-width: 100px;
    }
    
    .mascot-speech-bubble::after {
        bottom: 15px;
        right: -10px;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid white;
    }
    
    .mascot-speech-bubble::before {
        bottom: 13px;
        right: -12px;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 12px solid #feca57;
    }
}

@media (max-width: 480px) {
    .mascot-container {
        bottom: 5px;
        right: 5px;
    }
    
    .mascot-character {
        width: 60px;
    }
    
    .mascot-speech-bubble {
        bottom: 20px;
        right: 70px;
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
        min-width: 80px;
    }
    
    .mascot-speech-bubble::after {
        bottom: 12px;
        right: -8px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid white;
    }
    
    .mascot-speech-bubble::before {
        bottom: 10px;
        right: -10px;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid #feca57;
    }
}

/* Reset Button Responsive */
@media (max-width: 768px) {
    .reset-button-container {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .reset-opening-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .reset-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reset-button-container {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .reset-opening-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .reset-info {
        font-size: 0.85rem;
    }
}

/* Grand Opening Styles */
.grand-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gradientShift 8s ease infinite;
}

.grand-opening-overlay.fade-out {
    animation: fadeOutOverlay 1.5s ease forwards;
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.grand-opening-content {
    text-align: center;
    position: relative;
    z-index: 10001;
}

.opening-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100px;
    left: 0;
    pointer-events: none;
}

.opening-stars .star {
    position: absolute;
    font-size: 3rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.opening-stars .star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.opening-stars .star:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.opening-stars .star:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 0.6s; }
.opening-stars .star:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 0.9s; }
.opening-stars .star:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.2s; }
.opening-stars .star:nth-child(6) { top: 50%; right: 5%; animation-delay: 1.5s; }

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5) rotate(180deg);
        opacity: 0.5;
    }
}

.opening-title {
    margin-bottom: 3rem;
    animation: titleEntrance 1.5s ease-out;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.grand-title {
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 107, 107, 0.6),
                 0 0 60px rgba(254, 202, 87, 0.4);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 40px rgba(255, 107, 107, 0.6),
                     0 0 60px rgba(254, 202, 87, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1),
                     0 0 60px rgba(255, 107, 107, 0.8),
                     0 0 90px rgba(254, 202, 87, 0.6);
    }
}

.grand-subtitle {
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 2.5rem;
    color: #feca57;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.grand-message {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.verification-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 5px solid #feca57;
    max-width: 500px;
    margin: 0 auto;
    animation: boxEntrance 1s ease-out 0.5s backwards;
}

@keyframes boxEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-box h3 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.verification-box p {
    color: #2d3436;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.month-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.month-select {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: 3px solid #48dbfb;
    border-radius: 15px;
    font-family: 'Comic Sans MS', sans-serif;
    font-weight: bold;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-select:focus {
    outline: none;
    border-color: #feca57;
    transform: scale(1.02);
}

.verify-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    border: 3px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.verify-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.verification-error {
    color: #d63031;
    font-weight: bold;
    font-size: 1.1rem;
    min-height: 30px;
    animation: shake 0.5s ease;
}

.ribbon-container {
    position: relative;
    width: 600px;
    height: 300px;
    margin: 2rem auto;
}

.ribbon-left,
.ribbon-right {
    position: absolute;
    top: 50%;
    width: 280px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #d63031);
    border: 5px solid #feca57;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%);
}

.ribbon-left {
    left: 0;
    border-radius: 20px 0 0 20px;
}

.ribbon-right {
    right: 0;
    border-radius: 0 20px 20px 0;
}

.ribbon-left.cut,
.ribbon-right.cut {
    animation: ribbonCut 1s ease forwards;
}

@keyframes ribbonCut {
    0% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(var(--cut-direction)) rotate(var(--cut-rotation));
        opacity: 0;
    }
}

.ribbon-left.cut {
    --cut-direction: -200px;
    --cut-rotation: -45deg;
}

.ribbon-right.cut {
    --cut-direction: 200px;
    --cut-rotation: 45deg;
}

.scissors {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scissorsBounce 1s ease-in-out infinite;
}

@keyframes scissorsBounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.scissors:hover {
    transform: translate(-50%, -50%) scale(1.3) rotate(45deg);
}

.scissors.cutting {
    animation: scissorsCut 0.5s ease;
}

@keyframes scissorsCut {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(90deg) scale(1.5);
    }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Grand Opening Responsive */
@media (max-width: 1024px) {
    .grand-title {
        font-size: 3rem;
    }
    
    .grand-subtitle {
        font-size: 2rem;
    }
    
    .opening-stars .star {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .grand-title {
        font-size: 2.5rem;
    }
    
    .grand-subtitle {
        font-size: 1.8rem;
    }
    
    .grand-message {
        font-size: 1.2rem;
    }
    
    .verification-box {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .verification-box h3 {
        font-size: 1.5rem;
    }
    
    .verification-box p {
        font-size: 1rem;
    }
    
    .ribbon-container {
        width: 90%;
        height: 200px;
    }
    
    .ribbon-left,
    .ribbon-right {
        width: 40%;
        height: 60px;
    }
    
    .scissors {
        font-size: 3rem;
    }
    
    .month-input-container {
        flex-direction: column;
    }
    
    .month-select {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .verify-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .opening-stars .star {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grand-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .grand-subtitle {
        font-size: 1.3rem;
    }
    
    .grand-message {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .verification-box {
        padding: 1rem;
        max-width: 95%;
    }
    
    .verification-box h3 {
        font-size: 1.3rem;
    }
    
    .verification-box p {
        font-size: 0.9rem;
    }
    
    .ribbon-container {
        width: 95%;
        height: 150px;
    }
    
    .ribbon-left,
    .ribbon-right {
        width: 42%;
        height: 50px;
    }
    
    .scissors {
        font-size: 2.5rem;
    }
    
    .month-select {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .verify-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .verification-error {
        font-size: 0.9rem;
    }
    
    .opening-stars .star {
        font-size: 1.5rem;
    }
    
    .confetti {
        width: 8px;
        height: 8px;
    }
}

/* Hidden Reset Button */
.reset-button-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 3px dashed #feca57;
    animation: resetPulse 2s ease-in-out infinite;
}

@keyframes resetPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(254, 202, 87, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(254, 202, 87, 0.6);
    }
}

.reset-opening-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: 4px solid white;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
    }
}

.reset-opening-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.8);
}

.reset-opening-btn:active {
    transform: scale(1.05);
}

.reset-info {
    margin-top: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Additional Responsive Utilities */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly tap targets (minimum 44x44px) */
button,
.nav-btn,
.category-btn,
.level-btn,
a {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent text overflow */
.category-content h3,
.level-content h4,
.container h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Improve touch scrolling on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Small Phones (360px and below) */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .carousel {
        height: 180px;
    }
    
    .container h2 {
        font-size: 1.5rem;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 1rem 0.6rem;
    }
    
    .grand-title {
        font-size: 1.5rem;
    }
    
    .grand-subtitle {
        font-size: 1.1rem;
    }
    
    .verification-box {
        padding: 0.8rem;
    }
    
    .verification-box h3 {
        font-size: 1.1rem;
    }
    
    .month-select,
    .verify-btn {
        font-size: 0.85rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }
    
    .carousel {
        height: 200px;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .grand-opening-overlay {
        overflow-y: auto;
    }
    
    .grand-opening-content {
        padding: 1rem 0;
    }
    
    .grand-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .grand-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .grand-message {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .verification-box {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .ribbon-container {
        height: 150px;
        margin: 1rem auto;
    }
    
    .opening-stars .star {
        font-size: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .grand-opening-overlay,
    .mascot-container,
    .reset-button-container,
    .carousel-btn,
    nav,
    .floating-elements {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Keep the colorful design - no changes needed */
    /* The vibrant gradient design works well in both modes */
}

/* Focus Styles for Keyboard Navigation */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 3px solid #feca57;
    outline-offset: 2px;
}

/* Improve button active states for touch */
button:active,
.nav-btn:active,
.category-btn:active {
    transform: scale(0.98);
}

/* Ensure proper spacing on very small screens */
@media (max-width: 320px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .hero {
        padding: 1rem 0.5rem;
    }
    
    .verification-box {
        padding: 0.6rem;
    }
    
    .month-select {
        font-size: 0.8rem;
    }
    
    .verify-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}
