@charset "utf-8";
/*
Template Name: Academic Education V2
Author: <a href="http://www.os-templates.com/">OS Templates</a>
Author URI: http://www.os-templates.com/
Licence: Free to use under our free template licence terms
Licence URI: http://www.os-templates.com/template-terms
File: Layout CSS
*/

@import url("fontawesome-4.2.0.min.css");
@import url("../scripts/nivo-lightbox/nivo-lightbox.min.css");
@import url("framework.css");

/* 
 * RIMC Website Redesign
 * Responsive CSS
 * Created for Rashtriya Indian Military College
 */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-section {
    height: 60vh;
  }
  
  .feature-card {
    padding: 25px 15px;
  }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 50vh;
  }
  
  /* Navigation */
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--light-text);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: none;
  }
  
  .main-nav.active {
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
  }
  
  .nav-item {
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    padding: 15px;
    color: var(--primary-color);
  }
  
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  .has-dropdown.active .dropdown {
    height: auto;
  }
  
  .dropdown-link {
    padding-left: 30px;
  }
  
  /* Toggle dropdown with JavaScript */
  .has-dropdown > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .has-dropdown > .nav-link:after {
    content: '+';
    font-size: 1.2rem;
  }
  
  .has-dropdown.active > .nav-link:after {
    content: '-';
  }
  
  /* Layout adjustments */
  .about-container,
  .contact-container {
    flex-direction: column;
  }
  
  .about-image,
  .about-content {
    width: 100%;
  }
  
  .feature-card,
  .course-card,
  .news-card {
    max-width: 400px;
    margin: 0 auto 30px;
  }
  
  .features-container,
  .courses-container,
  .news-container {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer .row {
    flex-direction: column;
  }
  
  .footer .col {
    margin-bottom: 30px;
  }
  
  .footer .col:last-child {
    margin-bottom: 0;
  }
}

/* Extra small screens (up to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .top-bar-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .top-bar-nav li {
    margin: 5px 10px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    height: 40vh;
    min-height: 400px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-banner {
    height: 200px;
  }
  
  .page-banner h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  /* Tables */
  .fee-table {
    overflow-x: auto;
  }
  
  .fee-table table {
    min-width: 600px;
  }
  
  /* Forms */
  .contact-info,
  .contact-form {
    width: 100%;
  }
  
  /* Gallery */
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .menu-toggle {
    margin-top: 15px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .footer-contact-info p {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info-box {
    flex-direction: column;
  }
  
  .about-detail-content {
    flex-direction: column;
  }
  
  .about-detail-content .about-image,
  .about-detail-content .about-text {
    width: 100%;
  }
  
  .academics-content {
    flex-direction: column;
  }
  
  .academics-image,
  .academics-text {
    width: 100%;
  }
  
  /* Gallery */
  .gallery-container {
    grid-template-columns: 1fr;
  }
}

/* Very small screens (up to 375px) */
@media (max-width: 375px) {
  .logo img {
    height: 60px;
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}