/* ============================================
   MOBILE RESPONSIVE STYLES
   Add this to your css/style.css file
   ============================================ */

/* Base responsive improvements */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }

    .logo-area {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-area img {
        width: 80px !important;
        height: 80px !important;
    }

    .school-name h1 {
        font-size: 18px !important;
        margin: 5px 0 !important;
    }

    .school-name h1:last-child {
        font-size: 14px !important;
    }
}

/* ============================================
   NAVIGATION RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background: #fff;
        border: 2px solid #333;
        border-radius: 8px;
        padding: 10px 15px;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 70px 0 20px 0;
        flex-direction: column !important;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-container a,
    .nav-container .dropdown > a.dropbtn {
        display: block;
        width: 100%;
        padding: 15px 20px !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px !important;
    }

    .nav-container .dropdown {
        width: 100%;
        margin: 0 !important;
    }

    .dropdown-content {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        background: #f8f8f8 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        padding: 12px 20px 12px 40px !important;
        margin: 0 !important;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px !important;
    }
}

/* ============================================
   NEWS BAR RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .news-bar {
        flex-direction: column;
        padding: 10px;
        gap: 5px;
    }

    .news-title {
        font-size: 14px;
        padding: 5px 10px;
        width: auto;
    }

    .news-text {
        font-size: 13px;
        padding: 5px;
    }
}

/* ============================================
   SLIDER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .slider-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .image-slider {
        width: 100% !important;
        height: 250px !important;
    }

    .slider-container {
        height: 250px !important;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .image-caption {
        font-size: 12px;
        padding: 6px;
    }

    .slide-indicator {
        width: 100%;
    }

    .slide-counter {
        font-size: 14px;
    }
}

/* ============================================
   MAIN CONTENT RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    .left-col,
    .right-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Head Teacher and President sections */
    .left-col > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .left-col > div[style*="display: flex"] > div:first-child {
        flex: 1 1 auto !important;
        text-align: center;
    }

    .left-col > div[style*="display: flex"] img {
        max-width: 200px;
        margin: 0 auto;
    }

    .left-col > div[style*="display: flex"] p[style*="font-size: 30px"] {
        font-size: 22px !important;
        text-align: center;
    }

    .left-col > div[style*="display: flex"] p[style*="font-size: 17px"] {
        font-size: 15px !important;
        text-align: justify;
    }
}

/* ============================================
   TEACHER CARDS RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .teacher-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .teacher-card img {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 15px;
    }

    .teacher-info h3 {
        font-size: 18px;
    }

    .teacher-info p {
        font-size: 14px;
    }
}

/* ============================================
   SIDEBAR CONTAINER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar-container {
        width: 100%;
    }

    .info-card {
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 16px;
        padding: 12px;
    }

    .card-title img {
        width: 30px !important;
    }

    .card-details {
        font-size: 14px;
    }
}

/* ============================================
   NOTICE BOARD RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .notice-board {
        padding: 10px;
    }

    .notice-header {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .notice-card {
        flex-direction: column;
        width: 100% !important;
        padding: 15px;
        gap: 10px;
    }

    .notice-info {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .notice-text h4 {
        font-size: 16px;
    }

    .notice-text p {
        font-size: 13px;
    }

    .btn-group {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   CALENDAR RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .calendar {
        margin: 15px 0;
    }

    .calendar-header {
        font-size: 16px;
        padding: 12px;
    }

    .calendar table {
        font-size: 12px;
    }

    .calendar th,
    .calendar td {
        padding: 8px 4px;
    }
}

/* ============================================
   LOCATION SECTION RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .location-section {
        margin: 15px 0;
    }

    .map-placeholder iframe {
        height: 300px !important;
    }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
        gap: 20px;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        width: 100%;
        text-align: center;
    }

    .footer-left img {
        width: 60px;
        height: 60px;
    }

    .footer-middle h3,
    .footer-right h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer-middle p,
    .footer-right ul {
        font-size: 14px;
    }

    .footer-menu {
        padding: 0;
    }
}

/* ============================================
   PDF VIEWER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pdf-content {
        width: 95% !important;
        height: 85% !important;
    }

    .close-btn {
        font-size: 28px;
        top: 5px;
        right: 10px;
        background: #fff;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }

    /* Reduce padding on mobile */
    .mobile-padding {
        padding: 10px !important;
    }

    /* Full width on mobile */
    .mobile-full-width {
        width: 100% !important;
    }
}

/* ============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        gap: 5px;
    }

    .nav-container a,
    .nav-container .dropdown > a.dropbtn {
        font-size: 15px;
        padding: 8px 10px;
    }

    main {
        gap: 20px;
    }

    .left-col {
        width: 65%;
    }

    .right-col {
        width: 35%;
    }

    .slider-wrapper {
        gap: 15px;
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
.nav-container,
.dropdown-content,
.notice-card,
.teacher-card {
    transition: all 0.3s ease;
}

/* ============================================
   TOUCH IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {


    /* Remove hover effects on touch devices */
    .nav-container a:hover::before,
    .nav-container a:hover::after {
        display: none;
    }
}

/* ============================================
   LANDSCAPE MODE MOBILE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .image-slider {
        height: 200px !important;
    }

    .slider-container {
        height: 200px !important;
    }

    .nav-container {
        width: 250px;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .school-name h1 {
        font-size: 16px !important;
    }

    .school-name h1:last-child {
        font-size: 12px !important;
    }

    .news-bar {
        font-size: 12px;
    }

    .teacher-card img {
        width: 100px !important;
        height: 100px !important;
    }

    .calendar table {
        font-size: 11px;
    }

    .calendar th,
    .calendar td {
        padding: 6px 2px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .mobile-toggle,
    .nav-container,
    .news-bar,
    .slider-nav,
    .slide-indicator,
    footer {
        display: none !important;
    }

    body {
        background: white;
    }

    main {
        display: block;
        width: 100%;
    }
}