/* Mobile Responsive Enhancements for Asian Institute Website */

/* Global Mobile Optimizations */
@media only screen and (max-width: 767px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Full width containers */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    /* Responsive typography */
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    h4 { font-size: 18px !important; }
    h5 { font-size: 16px !important; }
    h6 { font-size: 14px !important; }
    
    /* Better spacing */
    .pt-100 { padding-top: 50px !important; }
    .pb-100 { padding-bottom: 50px !important; }
    .pt-70 { padding-top: 40px !important; }
    .pb-70 { padding-bottom: 40px !important; }
    
    /* Form improvements */
    .form-control {
        height: 48px;
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    /* Button improvements */
    .btn, .default-btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 8px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-lg {
        min-height: 52px;
        font-size: 18px;
        padding: 15px 30px;
    }
    
    /* Card improvements */
    .card {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        font-size: 15px;
        border-bottom: 1px solid #eee;
    }
    
    /* Page banner improvements */
    .page-banner-area {
        padding: 40px 0;
        text-align: center;
    }
    
    .page-banner-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .page-banner-content ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Section title improvements */
    .section-title {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 100%;
    }
    
    /* Academic cards improvements */
    .single-academics-card {
        height: auto;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .single-academics-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .single-academics-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Campus information improvements */
    .campus-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .campus-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .campus-content p {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
    }
    
    /* List improvements */
    .list ul li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .list ul li i {
        margin-right: 8px;
        color: #E32845;
    }
    
    /* Contact form improvements */
    .contacts-form {
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .contacts-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .contacts-form .form-group {
        margin-bottom: 20px;
    }
    
    /* Contact info improvements */
    .contact-card {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        text-align: center;
    }
    
    .contact-icon {
        font-size: 28px;
        color: #E32845;
        margin-bottom: 15px;
    }
    
    .contact-card h4 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #111D5E;
    }
    
    .contact-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    .contact-card a {
        color: #111D5E;
        text-decoration: none;
        font-weight: 500;
    }
    
    .contact-card a:hover {
        color: #E32845;
        text-decoration: underline;
    }
    
    /* Map improvements */
    .map-container {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-top: 30px;
    }
    
    .map-container iframe {
        width: 100%;
        height: 300px;
        border: none;
    }
    
    /* Footer improvements */
    .footer-area {
        text-align: center;
    }
    
    .footer-widjet {
        margin-bottom: 30px;
    }
    
    .footer-widjet h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-widjet .list ul li {
        margin-bottom: 8px;
    }
    
    .footer-widjet .list ul li a {
        font-size: 14px;
    }
    
    /* Modal improvements */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 12px;
        border: none;
    }
    
    .modal-header {
        padding: 20px;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #dee2e6;
    }
    
    /* Table improvements */
    .table-responsive {
        border: none;
        margin-bottom: 20px;
    }
    
    .table {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .table th,
    .table td {
        padding: 8px;
        vertical-align: middle;
    }
    
    /* Alert improvements */
    .alert {
        padding: 15px 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        font-size: 16px;
    }
    
    /* Utility classes */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .p-mobile-3 {
        padding: 1rem !important;
    }
    
    /* Fix any overflow issues */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better touch targets */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Tablet specific improvements */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .btn, .default-btn {
        width: auto;
        min-width: 120px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .modal-dialog {
        margin: 30px auto;
        max-width: 600px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .page-banner-content h1 {
        font-size: 32px;
    }
}

/* Desktop specific improvements */
@media only screen and (min-width: 992px) {
    .btn, .default-btn {
        width: auto;
        min-width: 140px;
    }
    
    .modal-dialog {
        margin: 50px auto;
        max-width: 800px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .page-banner-content h1 {
        font-size: 36px;
    }
    
    .card-body {
        padding: 30px;
    }
}

/* Large Desktop specific improvements */
@media only screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    .page-banner-content h1 {
        font-size: 42px;
    }
    
    .card-body {
        padding: 35px;
    }
}



