/* =====================================================
   RESPONSIVE CSS - Updated & Cleaned
   File: assets/css/responsive.css
   ===================================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .institutions-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        min-width: 500px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-content {
        padding: 80px 40px;
    }

    .split-media-overlay {
        bottom: 30px;
        left: 30px;
        right: 30px;
        padding: 30px;
    }

    .gallery-item {
        min-width: 400px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
    }

    .timeline-dot {
        display: none;
    }

    .vision-mission-container,
    .stats-container,
    .testimonials-grid,
    .updates-grid,
    .cards-grid {
        padding: 0 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .contact-departments {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    
    /* Hero */
    .hero {
        padding: 60px 0;
        /* margin-top: 70px;  */
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 40px;
    }

    .carousel-dots {
        bottom: 20px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }

    .about-section,
    .excellence-section,
    .testimonials-section,
    .journey-section,
    .updates-section,
    .cards-section,
    .gallery-section,
    .contact-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 16px;
    }
    
    /* Grids */
    .about-content,
    .contact-content,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .institutions-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .vision-mission-container,
    .stats-container,
    .testimonials-grid,
    .updates-grid,
    .timeline,
    .gallery-container {
        padding: 0 20px;
    }

    .vision-mission-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vm-card {
        padding: 40px 30px;
    }

    .vm-title {
        font-size: 28px;
    }

    .vm-text {
        font-size: 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-box {
        padding: 30px 20px;
    }

    .stat-count {
        font-size: 40px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    .split-content {
        padding: 60px 20px;
    }

    .split-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .split-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .marquee-section {
        padding: 80px 0;
    }

    .marquee-item {
        font-size: 50px;
        padding: 0 30px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .update-content {
        padding: 30px;
    }

    .update-title {
        font-size: 20px;
    }

    .cards-section {
        padding: 80px 20px;
    }

    .cards-title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .extended-cards {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .card {
        height: 450px;
    }

    .card-content {
        padding: 30px;
    }

    .card-title {
        font-size: 24px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .gallery-title {
        font-size: 40px;
    }

    .gallery-nav {
        align-self: flex-end;
    }

    .gallery-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .gallery-item {
        min-width: 300px;
        height: 250px;
    }

    .gallery-overlay {
        padding: 30px;
    }

    .gallery-overlay h3 {
        font-size: 24px;
    }

    .contact-section {
        padding: 80px 20px;
    }

    .contact-content h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .contact-tagline {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .contact-info {
        gap: 30px;
    }

    .contact-item {
        gap: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .contact-details h3 {
        font-size: 20px;
    }

    .contact-form {
        padding: 40px 30px;
        margin-top: 40px;
    }

    .form-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px;
    }

    footer {
        padding: 60px 20px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand img {
        height: 50px;
        margin-bottom: 20px;
    }

    .footer-brand p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .footer-column h4 {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .floating-apply {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .floating-apply-tooltip {
        display: none;
    }

    /* Mobile specific scroll adjustment */
    html {
        scroll-padding-top: 70px;
    }

    /* Improve touch targets */
    .footer-links a,
    .card-link,
    .read-more {
        padding: 10px 0;
        min-height: 44px; /* iOS touch target requirement */
    }

    /* Fix horizontal scroll issues */
    .excellence-bg {
        width: 400px;
        height: 400px;
        right: -50%;
    }

    .contact-bg-shape {
        width: 300px;
        height: 300px;
    }
    
    /* Tables */
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-width: 280px;
        height: 200px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .vision-mission-container {
        grid-template-columns: 1fr;
    }

    .vm-card {
        padding: 30px 20px;
    }

    .timeline-content {
        padding: 30px;
    }
}

/* Extra Small Mobile */


/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--pure-white);
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Special Features Section */
.features-section {
    padding: 120px 0;
    background: var(--pure-white);
}

.features-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-box {
    text-align: center;
    padding: 40px;
    background: var(--gradient-soft);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--grey);
    line-height: 1.6;
}