/* Mobile-specific styles */

/* General Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #333;
    }

    h1 { 
        font-size: 2.5rem;
        color: #333;
    }
    h2 { 
        font-size: 2rem;
        color: #333;
    }
    h3 { 
        font-size: 1.5rem;
        color: #333;
    }
    p { 
        font-size: 0.95rem;
        color: #666;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

/* News Articles Section */
/* News Articles Section */
.news-articles {
    padding: 60px 20px;
    background-color: #ffffff;
}

.news-articles .container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-articles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.news-article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Desktop View: 3-column grid */
@media screen and (min-width: 992px) {
    .news-articles-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-article {
        flex: 1 1 calc(33.333% - 40px);
        max-width: calc(33.333% - 40px);
    }

    .news-article img {
        width: 100%;
        height: auto;
    }
}



/* Optional: Grid layout on wider screens */
@media (min-width: 768px) {
    .news-articles-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .news-article-img {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}



/* Header & Navigation */
@media (max-width: 768px) {
    .header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
    }
    
    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }

    .nav {
        padding: 0.85rem 1.2rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .header.scrolled .nav {
        padding: 0.65rem 1.2rem;
    }

    .logo-img-container {
        display: none;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1010;
        position: relative;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: #ff8c00;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 280px;
        background: white;
        display: flex;
        flex-direction: column;
        padding: 80px 15px 20px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        color: #333;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        letter-spacing: 0.3px;
        font-weight: 500;
    }

    .nav-links a:hover, 
    .nav-links a:active {
        color: #ff8c00;
        background: rgba(255, 140, 0, 0.06);
    }

    .language-switch {
        margin-top: 25px;
        padding: 15px 0;
        border-top: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
    
    .language-switch .language-switcher {
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        background: #f9f9f9;
        margin-right: 8px;
        font-size: 0.9rem;
        outline: none;
        color: #333;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 1em;
        padding-right: 25px;
        width: auto;
    }

    .language-switch i {
        color: #ff8c00;
        font-size: 1.1rem;
    }
    
    /* Close button for mobile menu */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 34px;
        height: 34px;
        background: rgba(255, 140, 0, 0.06);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 140, 0, 0.12);
    }

    .mobile-menu-close::before,
    .mobile-menu-close::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 2px;
        background-color: #ff8c00;
        border-radius: 2px;
    }
    
    .mobile-menu-close::before {
        transform: rotate(45deg);
    }
    
    .mobile-menu-close::after {
        transform: rotate(-45deg);
    }
    
    /* Overlay when menu is active */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(3px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        margin-top: 60px;
        overflow: hidden;
    }

    .carousel {
        height: 100%;
    }

    .carousel-inner {
        height: 100%;
    }

    .carousel-slide {
        height: 100%;
        position: absolute;
        width: 100%;
    }

    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .carousel-content {
        padding: 20px;
        text-align: center;
        background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: #ff8c00;
    }

    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #fff;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* About Section */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        width: 100%;
    }

    .achievements {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Focus Areas */
@media (max-width: 768px) {
    .focus-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .focus-content {
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        background-color: #fff5e6;
        margin: 0 15px;
    }

    .focus-content.active {
        display: grid;
        grid-template-columns: 1fr;
        padding: 20px;
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .focus-text {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .focus-text h3 {
        color: #333;
        margin-bottom: 15px;
        text-align: center;
    }

    .focus-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .focus-text p {
        color: #333;
        text-align: center;
    }

    .focus-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .focus-image-grid img {
        height: 150px;
        border-radius: 8px;
    }

    .focus-icon {
        transition: transform 0.3s ease, background-color 0.3s ease;
        background: white;
    }

    .focus-icon.active {
        transform: translateY(-5px);
        background-color: #fff5e6;
    }

    .focus-icon.active .icon-wrapper {
        background-color: #ff8c00;
    }

    .focus-icon.active i {
        color: white;
    }

    .focus-icon i {
        color: #ff8c00;
    }

    .focus-icon span {
        color: #333;
    }
}

/* Gallery Section */
@media (max-width: 768px) {
    .gallery-item {
        min-width: 250px;
        height: 350px;
        margin: 0 10px;
    }

    .gallery-overlay h3 {
        font-size: 1.2rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }

    .gallery-nav button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Contact Section */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }

    .contact-info {
        width: 100%;
        padding: 30px 20px;
        text-align: center;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Social Media Section */
@media (max-width: 768px) {
    .social-feeds {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .social-feed {
        margin-bottom: 20px;
    }

    .feed-content {
        min-height: 400px;
    }

    .instagram-feed {
        min-height: 500px;
    }
}

/* Footer Section */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
        background-color: #1a1a1a;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-section {
        padding: 0;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: #ff8c00;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
        background-color: #ff8c00;
    }

    .footer-section .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section .contact-info p {
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
        max-width: 300px;
        color: #b3b3b3;
    }

    .footer-section .contact-info .contact-icon {
        margin: 0;
        min-width: 24px;
        color: #ff8c00;
    }

    .footer-section .contact-info span {
        text-align: center;
        color: #b3b3b3;
    }

    .footer-section .contact-info a {
        display: inline-block;
        padding: 5px 10px;
        color: #b3b3b3;
        text-decoration: none;
    }

    .footer-section .contact-info a:active {
        color: #ff8c00;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
        gap: 20px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        color: #b3b3b3;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-links a:active {
        color: #ff8c00;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .social-links a i {
        font-size: 1.3rem;
    }

    .copyright-bar {
        margin-top: 30px;
        padding: 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #b3b3b3;
    }

    .footer-bottom-links {
        margin-top: 15px;
        justify-content: center;
        gap: 20px;
    }

    .footer-bottom-links a {
        color: #b3b3b3;
        text-decoration: none;
    }

    .footer-bottom-links a:active {
        color: #ff8c00;
    }

    .newsletter-form input {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid #333;
        color: #fff;
        padding: 12px 15px;
        border-radius: 5px;
    }

    .newsletter-form button {
        background-color: #ff8c00;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 5px;
        font-weight: 600;
    }

    .newsletter-form button:active {
        background-color: #e67e00;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .focus-icons {
        grid-template-columns: 1fr;
    }

    .focus-icon {
        padding: 20px 15px;
    }

    .focus-icon .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .focus-icon i {
        font-size: 1.5rem;
    }

    .focus-content {
        padding: 20px 15px;
    }

    .focus-image-grid {
        grid-template-columns: 1fr;
    }

    .focus-image-grid img {
        height: 200px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section p,
    .footer-section ul li a,
    .footer-section .contact-info span {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links a i {
        font-size: 1.2rem;
    }

    .footer-section .contact-info p {
        max-width: 250px;
        font-size: 0.95rem;
    }

    .footer-section .contact-info .contact-icon {
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn:active,
    .nav-links a:active,
    .social-links a:active,
    .read-more:active {
        transform: translateY(1px);
    }

    .focus-icon:active,
    .achievement-item:active,
    .gallery-item:active {
        transform: translateY(-2px);
    }

    .footer-section ul li a:hover::after {
        width: 0;
    }

    .social-links a:hover {
        transform: none;
    }

    .quick-links ul li a:hover,
    .contact-info a:hover {
        background: rgba(255, 140, 0, 0.1);
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }

    .nav-links {
        height: -webkit-fill-available;
        padding-bottom: 80px; /* Add extra padding at bottom for better scrolling */
    }

    /* Fix for 100vh issues on iOS */
    .contact,
    .social-media {
        min-height: -webkit-fill-available;
    }
    
    /* Prevent bouncing/overscrolling effect in the mobile menu */
    .nav-links.active {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for Safari mobile menu transitions */
    .menu-overlay,
    .nav-links {
        -webkit-transition: all 0.3s ease;
    }
}

.carousel-dots {
    bottom: 10px;
}

/* News Section */
@media (max-width: 768px) {
    .news-section {
        display: none;
    }
    
    .news-grid {
        display: none;
    }
    
    .news-img {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-grid {
        display: none;
    }
    
    .news-img {
        display: none;
    }
} 