/* ===================================
   Responsive Styles for CoE-AM Website
   Mobile-First Approach
   =================================== */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {

    /* Top Bar */
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        margin: 5px 0;
    }

    .navbar {
        top: 40px;
    }

    .navbar.scrolled {
        top: 0;
    }

    /* Mobile Menu Styling - Override navbar background */
    .navbar-collapse {
        background: #ffffff !important;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    .navbar-nav {
        background: transparent !important;
    }

    .navbar-nav .nav-link {
        color: #0a4a5c !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid #e9ecef;
        font-weight: 500;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: #f8f9fa;
        color: #f59e0b !important;
        border-radius: 5px;
    }

    .navbar-logo {
        display: none;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-highlight {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }

    .hero-buttons .btn {
        padding: 9px 0px;
        font-size: 1rem;
        display: block;
        width: 50%;
        margin: 0;
    }

    .hero-image-wrapper {
        display: none;
    }

    .hero-section {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0891b2 100%);
        overflow: hidden;
        padding: 142px 0 33px;
    }

    .about-content-box .lead {
        text-align: justify;
    }

    .about-content-box p {
        text-align: justify;
    }

    /* Navigation */
    .navbar-logo {
        margin-top: 15px;
        justify-content: center;
    }

    .logo-img {
        height: 40px;
    }

    /* About Section */
    .about-content-box {
        padding: 20px;
        margin-bottom: 30px;
    }

    .about-image-box {
        position: relative;
        top: 0;
        margin-bottom: 30px;
        height: auto;
    }

    .about-image-box img {
        min-height: auto;
        height: auto;
    }

    .highlight-box {
        padding: 15px;
    }

    .stats-section {
        padding: 30px 20px;
    }

    .stat-box {
        margin-bottom: 20px;
    }

    /* About Section Stats */
    .stats-grid-about {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0;
        text-align: center;
    }

    .navbar-collapse {
        background: rgba(30, 58, 138, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    /* Event Highlight */
    .event-highlight {
        padding: 30px 20px;
    }

    .event-title {
        font-size: 1.5rem;
    }

    /* Contact Section */
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }

    /* Footer */
    .footer {
        text-align: center;
    }

    .footer-links {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Devices (576px and below) */
@media (max-width: 576px) {

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .hero-title .highlight {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Section Padding */
    .section-padding {
        padding: 40px 0;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Cards */
    .training-card,
    .service-card,
    .infra-card,
    .application-card {
        margin-bottom: 20px;
    }

    .training-card,
    .contact-form-wrapper,
    .contact-info {
        padding: 20px;
    }

    /* Stat Cards */
    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Event Highlight */
    .event-highlight {
        padding: 25px 15px;
    }

    .event-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .event-description {
        font-size: 1rem;
    }

    .session-card {
        padding: 15px;
    }

    /* WhatsApp Button */
    .whatsapp_btn {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp_btn img {
        width: 50px;
        height: 50px;
    }

    /* Navigation Brand */
    .navbar-brand .brand-text {
        font-size: 24px;
    }
}

/* Large Tablets (992px and below) */
@media (max-width: 992px) {

    /* About Section */
    .about-content {
        margin-bottom: 30px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Small Devices (400px and below) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .hero-title .highlight {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .training-card .card-icon,
    .app-icon {
        width: 60px;
        height: 60px;
    }

    .training-card .card-icon i,
    .app-icon i {
        font-size: 28px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .whatsapp_btn,
    .scroll-indicator,
    .hero-buttons {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 50px 0;
    }

    .section-padding {
        padding: 30px 0;
    }
}