/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation styles are now in navigation.css - removed conflicting styles */

    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 250px;
        height: 250px;
    }

    .about-section,
    .mission-vision,
    .stats-section,
    .batch-content,
    .teachers-content {
        padding: 4rem 1.5rem;
    }

    .about-section h2,
    .batch-intro h2,
    .teachers-list h2 {
        font-size: 2rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-box,
    .vision-box {
        padding: 2rem;
    }

    .head-content {
        flex-direction: column;
        gap: 2rem;
    }

    .head-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .head-description h3 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .batch-hero h1,
    .teachers-hero h1 {
        font-size: 2.5rem;
    }

    .memory-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memory-photo img {
        height: 280px;
    }

    .photo-caption {
        font-size: 1.1rem;
        padding: 2.5rem 1rem 1rem;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(11, 45, 114, 0.9), rgba(11, 45, 114, 0.6), transparent);
    }

    .students-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teacher-card {
        padding: 1.8rem;
    }

    .batch-achievements {
        padding: 2rem;
    }

    .faculty-message {
        padding: 2rem;
    }

    .faculty-message h2 {
        font-size: 1.6rem;
    }

    .faculty-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 8px;
    }

    .logo {
        margin-left: 0;
        gap: 0.6rem;
    }

    .logo img {
        height: 50px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .hero {
        padding: 4rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .about-section,
    .mission-vision,
    .stats-section,
    .batch-content,
    .teachers-content {
        padding: 3rem 1rem;
    }

    .about-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .about-section p {
        font-size: 1rem;
        text-align: left;
    }

    .mission-box h3,
    .vision-box h3 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .batch-hero,
    .teachers-hero {
        padding: 3.5rem 1rem;
    }

    .batch-hero h1,
    .teachers-hero h1 {
        font-size: 1.8rem;
    }

    .memory-gallery {
        gap: 1.5rem;
    }

    .memory-photo img {
        height: 240px;
    }

    .photo-caption {
        font-size: 1rem;
        padding: 2rem 0.8rem 0.8rem;
    }

    .batch-achievements {
        padding: 1.5rem;
        margin-top: 3rem;
    }

    .teacher-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }

    .batch-hero,
    .teachers-hero {
        padding: 2.5rem 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a {
        padding: 0.8rem 1.2rem;
    }

    .photo-caption {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(11, 45, 114, 0.9), rgba(11, 45, 114, 0.6), transparent);
    }

    .student-card:hover,
    .teacher-card:hover,
    .memory-photo:hover,
    .stat-card:hover,
    .mission-box:hover,
    .vision-box:hover {
        transform: none;
    }

    .student-card:active,
    .memory-photo:active {
        transform: scale(0.98);
    }
}
