/* Responsive Design for Rize Kindergarten Website */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
    
    .program-card {
        min-height: 400px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .program-card {
        min-height: 350px;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .program-card {
        margin-bottom: 2rem;
        min-height: auto;
    }
    
    .teacher-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .calendar-day {
        height: 100px;
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    .header {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .playful-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .program-card {
        margin-bottom: 1.5rem;
    }
    
    .program-card .bg-success,
    .program-card .bg-warning,
    .program-card .bg-info {
        padding: 1rem !important;
    }
    
    .program-card .bg-success i,
    .program-card .bg-warning i,
    .program-card .bg-info i {
        font-size: 2rem !important;
    }
    
    .program-card .bg-success h3,
    .program-card .bg-warning h3,
    .program-card .bg-info h3 {
        font-size: 1.2rem !important;
        margin-top: 0.5rem !important;
    }
    
    .teacher-card {
        margin-bottom: 1.5rem;
    }
    
    .teacher-image {
        padding: 20px;
    }
    
    .teacher-image i {
        font-size: 3rem !important;
    }
    
    .gallery-placeholder {
        padding: 30px 15px;
    }
    
    .gallery-placeholder i {
        font-size: 2rem !important;
    }
    
    .calendar-day {
        height: 80px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .calendar-day h5 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .calendar-day p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .contact-info i {
        width: 16px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .header {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .playful-btn,
    .btn-outline-light {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .gap-3 {
        gap: 0.5rem !important;
    }
    
    .program-card {
        margin-bottom: 1rem;
    }
    
    .program-card ul li {
        font-size: 0.85rem;
        padding: 3px 0;
    }
    
    .teacher-card {
        margin-bottom: 1rem;
    }
    
    .teacher-image {
        padding: 15px;
    }
    
    .teacher-image i {
        font-size: 2.5rem !important;
    }
    
    .teacher-card h4 {
        font-size: 1.1rem;
    }
    
    .teacher-card p {
        font-size: 0.9rem;
    }
    
    .gallery-placeholder {
        padding: 20px 10px;
    }
    
    .gallery-placeholder i {
        font-size: 1.5rem !important;
    }
    
    .gallery-placeholder h5 {
        font-size: 1rem;
    }
    
    .calendar-day {
        height: 70px;
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .calendar-day h5 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .calendar-day p {
        font-size: 0.65rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .contact-info i {
        width: 14px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .social-links a {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    
    footer {
        padding: 1rem 0;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top i {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .header {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .min-vh-100 {
        min-height: 70vh !important;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .program-card,
    .teacher-card,
    .gallery-item {
        border-radius: 25px;
    }
    
    .playful-btn {
        border-radius: 60px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .program-card:hover,
    .teacher-card:hover,
    .gallery-item:hover,
    .calendar-day:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --text-dark: #ffffff;
        --text-light: #cccccc;
    }
    
    body {
        background-color: var(--light-bg);
        color: var(--text-dark);
    }
    
    .program-card,
    .teacher-card,
    .gallery-item,
    .calendar-day {
        background: #2d2d2d;
        color: var(--text-dark);
    }
    
    .form-control,
    .form-select {
        background: #2d2d2d;
        color: var(--text-dark);
        border-color: #444;
    }
    
    .gallery-placeholder {
        background: linear-gradient(135deg, #2d2d2d, #444);
    }
    
    .virtual-tour-placeholder {
        background: linear-gradient(135deg, #2d2d2d, #444);
    }
} 