/* IDEAL BLAZE MODEL SCHOOL - Responsive Styles */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .leadership-card img {
        width: 180px;
        height: 180px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .card-columns {
        column-count: 2;
    }
    
    .leadership-card img {
        width: 160px;
        height: 160px;
    }
    
    /* Logo Circle */
    .logo-circle {
        width: 350px;
        height: 350px;
    }
    
    .logo-inner {
        width: 300px;
        height: 300px;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .leadership-card img {
        width: 140px;
        height: 140px;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    /* Hero Features */
    .feature-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-item h5 {
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    /* Building Section */
    .building-image-wrapper img {
        height: 300px;
    }
    
    .building-info h3 {
        font-size: 1.8rem;
    }
    
    .building-info .lead {
        font-size: 1rem;
    }
    
    .building-stat h4 {
        font-size: 1.5rem;
    }
    
    .building-stat p {
        font-size: 0.9rem;
    }
    
    /* Facility Cards */
    .facility-card .card-title {
        font-size: 1.1rem;
    }
    
    .facility-card .card-text {
        font-size: 0.9rem;
    }
    
    .facility-icon i {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Navbar */
    .navbar-brand h4 {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Leadership Cards */
    .leadership-card {
        padding: 1rem;
    }
    
    .leadership-card img {
        width: 120px;
        height: 120px;
    }
    
    .leadership-name {
        font-size: 1.1rem;
    }
    
    .leadership-title {
        font-size: 0.9rem;
    }
    
    /* Carousel */
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Notice Board */
    .notice-board {
        padding: 1.5rem;
    }
    
    .notice-title {
        font-size: 1rem;
    }
    
    .notice-content {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-primary-custom,
    .btn-outline-primary-custom {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer h5,
    .footer h6 {
        font-size: 1.1rem;
    }
    
    .footer p,
    .footer li {
        font-size: 0.9rem;
    }
    
    /* Construction Banner */
    .construction-icon {
        font-size: 3rem;
    }
    
    .construction-banner h2 {
        font-size: 1.8rem;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
    }
    
    .navbar-collapse {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .scroll-to-top,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    .leadership-card img,
    .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .leadership-card:hover img {
        transform: none;
    }
    
    .dress-image:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --accent-color: #1a1a1a;
    }
    
    body {
        background-color: var(--accent-color);
        color: var(--text-dark);
    }
    
    .card {
        background-color: #2d2d2d;
        color: var(--text-dark);
    }
    
    .notice-board {
        background-color: #2d2d2d;
        color: var(--text-dark);
    }
    
    .form-control {
        background-color: #2d2d2d;
        color: var(--text-dark);
        border-color: #555;
    }
}

/* Container Queries (Future-proofing) */
@container (min-width: 400px) {
    .leadership-card {
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .leadership-card img {
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .leadership-card:hover img {
        transform: none;
    }
    
    .dress-image:hover {
        transform: none;
    }
    
    .btn-primary-custom:hover,
    .btn-outline-primary-custom:hover {
        transform: none;
    }
}
