/* ============================================================
   MOBILE RESPONSIVE - COMPREHENSIVE FIX
   Handles: Header, Nav, Hero, All Sections, Footer
   ============================================================ */

/* ============================================================
   TABLET & SMALL LAPTOP (992px and below)
   ============================================================ */
@media (max-width: 992px) {

    /* ---------- CONTAINER ---------- */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
    }

    /* ---------- HEADER / NAV ---------- */
    .top-bar .contact-info ul {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .top-bar .contact-info li {
        font-size: 12px;
    }

    .top-right {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-wrapper {
        flex-wrap: wrap;
    }

    .brand-logo {
        max-width: 130px !important;
    }

    /* ---------- HERO SLIDER ---------- */
    .slider {
        height: calc(100vh - var(--header-height)) !important;
        min-height: 400px !important;
        max-height: 700px !important;
    }

    .layer {
        max-width: 80% !important;
        left: 5% !important;
        top: 15% !important;
    }

    .layer h2 {
        font-size: clamp(22px, 4.5vw, 36px) !important;
        line-height: 1.2 !important;
    }

    .layer p {
        font-size: 15px !important;
    }

    .nav-arrow {
        width: 44px !important;
        height: 44px !important;
    }

    .thumbs {
        display: none !important;
    }

    /* ---------- PRESIDENT / TREASURER MESSAGES ---------- */
    .services-style2 .row.section-title {
        text-align: center;
    }

    .services-style2 .row.section-title .col-md-8,
    .services-style2 .row.section-title .col-md-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px;
    }

    /* ---------- EVENT SECTIONS ---------- */
    .event-header h3 {
        font-size: 22px !important;
    }

    .event-details {
        font-size: 15px !important;
        padding: 0 10px;
    }

    /* ---------- SERVICES GRID ---------- */
    .services-style2-grids .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 24px;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 14px !important;
    }

    /* ---------- FUN FACTS / COUNTERS ---------- */
    .fun-fact .col-sm-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px;
    }

    .fun-fact .box h3 {
        font-size: 40px !important;
    }

    .fun-fact .box h3 .suffix {
        font-size: 24px !important;
    }

    .fun-fact .box-icon {
        font-size: 30px !important;
    }

    /* ---------- TIMELINE ---------- */
    .timeline-wrapper::before {
        left: 25px !important;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100% !important;
        left: 0 !important;
        padding: 15px 15px 15px 65px !important;
        text-align: left !important;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 14px !important;
        right: auto !important;
    }

    .timeline-card {
        display: block !important;
        padding: 20px !important;
    }

    .timeline-card h6 {
        font-size: 16px !important;
    }

    /* ---------- PROMO SECTION ---------- */
    .promo-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .promo-video-wrapper {
        order: -1;
        max-width: 100% !important;
    }

    .promo-text h2 {
        font-size: 26px !important;
    }

    /* ---------- NEWS SECTION ---------- */
    .news-featured {
        grid-template-columns: 1fr !important;
    }

    .news-featured-image {
        min-height: 220px !important;
    }

    .news-featured-content {
        padding: 30px 24px !important;
    }

    .news-featured-title {
        font-size: 20px !important;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 20px !important;
    }

    /* ---------- EVENTS CARDS ---------- */
    .events-section .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* ---------- SPONSORS ---------- */
    .sponsor-item {
        margin: 0 20px !important;
    }

    .sponsor-item img {
        max-height: 55px !important;
    }

    .event-sponsor-title {
        font-size: 20px !important;
    }

    /* ---------- FOOTER ---------- */
    .footer-top .col-lg-4,
    .footer-top .col-lg-2,
    .footer-top .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 30px;
    }

    .footer-bottom .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .footer-bottom-links {
        justify-content: center !important;
        margin-top: 12px;
    }

    .footer-bottom-links li {
        margin: 0 8px;
    }
}


/* ============================================================
   MOBILE LANDSCAPE (768px and below)
   ============================================================ */
@media (max-width: 768px) {

    /* ---------- CONTAINER ---------- */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* ---------- TOP BAR ---------- */
    .top-bar {
        padding: 8px 0 !important;
    }

    .top-bar .contact-info ul {
        gap: 8px;
        justify-content: center;
    }

    .top-bar .contact-info li {
        font-size: 11px;
    }

    .top-bar .contact-info li:last-child {
        display: none;
    }

    .top-bar .social-links a {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    /* ---------- NAVIGATION ---------- */
    .main-nav {
        padding: 10px 0 !important;
    }

    .brand-logo {
        max-width: 110px !important;
    }

    .nav-menu {
        width: 280px !important;
        max-width: 80vw !important;
    }

    .nav-link {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }

    /* ---------- HERO ---------- */
    .slider {
        height: calc(100vh - 60px) !important;
        min-height: 350px !important;
    }

    .layer {
        max-width: 90% !important;
        left: 5% !important;
        top: 15% !important;
    }

    .layer h2 {
        font-size: clamp(20px, 5.5vw, 28px) !important;
    }

    .layer p {
        font-size: 14px !important;
        margin-bottom: 16px !important;
    }

    .nav-arrow {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }

    .nav-arrow.left {
        left: 10px !important;
    }

    .nav-arrow.right {
        right: 10px !important;
    }

    .slide-counter {
        font-size: 12px !important;
        bottom: 20px !important;
        left: 15px !important;
    }

    .bottom-controls {
        bottom: 20px !important;
    }

    /* ---------- SECTIONS ---------- */
    .section-padding {
        padding: 40px 0 !important;
    }

    .event-section {
        padding: 40px 0 !important;
    }

    .event-header h3 {
        font-size: 20px !important;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    .gallery-item img {
        height: 140px !important;
    }

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

    /* ---------- FUN FACTS ---------- */
    .fun-fact {
        padding: 50px 0 !important;
    }

    .fun-fact .col-sm-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .fun-fact .box {
        padding: 25px 12px !important;
    }

    .fun-fact .box h3 {
        font-size: 34px !important;
    }

    .fun-fact .box h3 .suffix {
        font-size: 20px !important;
    }

    .fun-fact .box-icon {
        font-size: 26px !important;
    }

    .fun-fact .box p {
        font-size: 12px !important;
    }

    /* ---------- TIMELINE ---------- */
    .company-timeline {
        padding: 50px 0 !important;
    }

    .timeline-header h2 {
        font-size: 26px !important;
    }

    .timeline-header p {
        font-size: 14px !important;
    }

    .timeline-wrapper::before {
        left: 20px !important;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        padding: 12px 12px 12px 55px !important;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 9px !important;
        top: 28px !important;
        width: 18px !important;
        height: 18px !important;
        border-width: 3px !important;
    }

    .timeline-card {
        padding: 18px !important;
    }

    .timeline-year {
        font-size: 12px !important;
        padding: 4px 14px !important;
    }

    .timeline-card h6 {
        font-size: 15px !important;
    }

    .timeline-card p {
        font-size: 13px !important;
    }

    /* ---------- PROMO ---------- */
    .promo-section {
        padding: 50px 0 !important;
    }

    .promo-text h2 {
        font-size: 22px !important;
    }

    .promo-text p {
        font-size: 14px !important;
    }

    .promo-feature {
        font-size: 13px !important;
    }

    .btn-promo-primary,
    .btn-promo-secondary {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .promo-play-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }

    /* ---------- NEWS ---------- */
    .news-section {
        padding: 50px 0 !important;
    }

    .news-header h2 {
        font-size: 26px !important;
    }

    .news-header p {
        font-size: 14px !important;
    }

    .news-featured-content {
        padding: 22px 20px !important;
    }

    .news-featured-title {
        font-size: 18px !important;
    }

    .news-featured-excerpt {
        font-size: 13px !important;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .news-card-image {
        height: 180px !important;
    }

    .news-card-content {
        padding: 20px 18px !important;
    }

    .news-card-title {
        font-size: 16px !important;
    }

    /* ---------- EVENT CARDS ---------- */
    .events-section .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .event-poster img {
        height: 220px !important;
    }

    /* ---------- INSTAGRAM ---------- */
    .three-columns {
        flex-direction: column !important;
        padding: 0 15px !important;
        gap: 20px !important;
    }

    .three-columns .column {
        flex: none !important;
        width: 100% !important;
    }

    .three-columns .column:first-child,
    .three-columns .column:last-child {
        display: none !important;
    }

    /* ---------- SPONSORS ---------- */
    .sponsor-item {
        margin: 0 15px !important;
    }

    .sponsor-item img {
        max-height: 45px !important;
    }

    .event-sponsor-title {
        font-size: 18px !important;
    }

    .event-sponsor-badge {
        font-size: 11px !important;
        padding: 5px 14px !important;
    }

    .event-sponsor-separator {
        margin: 25px 0 !important;
    }

    /* ---------- FOOTER ---------- */
    .footer-top {
        padding: 50px 0 30px !important;
    }

    .footer-top .col-lg-4,
    .footer-top .col-lg-2,
    .footer-top .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    .footer-widget h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-links a::before {
        display: none !important;
    }

    .footer-links a:hover {
        padding-left: 0 !important;
    }

    .newsletter-form .input-group {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .contact-item {
        justify-content: center;
    }

    /* ---------- BACK TO TOP ---------- */
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 14px !important;
    }
}


/* ============================================================
   SMALL MOBILE (480px and below)
   ============================================================ */
@media (max-width: 480px) {

    /* ---------- CONTAINER ---------- */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* ---------- TOP BAR ---------- */
    .top-bar {
        display: none !important;
    }

    /* ---------- HEADER ---------- */
    .main-nav {
        padding: 8px 0 !important;
    }

    .brand-logo {
        max-width: 100px !important;
    }

    .mobile-toggle span {
        width: 22px !important;
        height: 2px !important;
    }

    .nav-menu {
        width: 260px !important;
    }

    /* ---------- HERO ---------- */
    .slider {
        height: calc(100vh - 55px) !important;
        min-height: 320px !important;
    }

    .layer {
        max-width: 92% !important;
        top: 12% !important;
    }

    .layer h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .layer p {
        font-size: 13px !important;
    }

    .slide-tag {
        font-size: 10px !important;
        padding: 4px 12px !important;
    }

    .btn {
        padding: 9px 20px !important;
        font-size: 13px !important;
    }

    .nav-arrow {
        display: none !important;
    }

    .slide-counter {
        display: none !important;
    }

    .bottom-controls {
        bottom: 15px !important;
    }

    .dot {
        width: 30px !important;
        height: 3px !important;
    }

    .dot.active {
        width: 45px !important;
    }

    /* ---------- SECTIONS ---------- */
    .section-padding {
        padding: 30px 0 !important;
    }

    h1 { font-size: 24px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }
    h4 { font-size: 16px !important; }

    /* ---------- SERVICES ---------- */
    .services-style2 .grid {
        text-align: center !important;
        padding: 20px 15px !important;
    }

    /* ---------- EVENT SECTION ---------- */
    .event-header h3 {
        font-size: 18px !important;
    }

    .event-details {
        font-size: 14px !important;
    }

    .gallery-btn {
        font-size: 12px !important;
        padding: 6px 16px !important;
    }

    /* ---------- GALLERY ---------- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .gallery-item img {
        height: 120px !important;
    }

    .gallery-item:hover {
        transform: none !important;
    }

    /* ---------- FUN FACTS ---------- */
    .fun-fact {
        padding: 40px 0 !important;
    }

    .fun-fact .box {
        padding: 20px 10px !important;
        border-radius: 14px !important;
    }

    .fun-fact .box h3 {
        font-size: 28px !important;
    }

    .fun-fact .box h3 .suffix {
        font-size: 18px !important;
    }

    .fun-fact .box-icon {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .fun-fact .box p {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
    }

    /* ---------- TIMELINE ---------- */
    .company-timeline {
        padding: 40px 0 !important;
    }

    .timeline-header {
        margin-bottom: 40px !important;
    }

    .timeline-header h2 {
        font-size: 22px !important;
    }

    .timeline-header p {
        font-size: 13px !important;
    }

    .timeline-wrapper::before {
        left: 15px !important;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        padding: 10px 10px 10px 45px !important;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 6px !important;
        width: 14px !important;
        height: 14px !important;
        border-width: 3px !important;
        top: 24px !important;
    }

    .timeline-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .timeline-year {
        font-size: 11px !important;
        padding: 3px 12px !important;
        margin-bottom: 8px !important;
    }

    .timeline-card h6 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .timeline-card p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* ---------- PROMO ---------- */
    .promo-section {
        padding: 40px 0 !important;
    }

    .promo-text h2 {
        font-size: 20px !important;
    }

    .promo-text p {
        font-size: 13px !important;
    }

    .promo-features {
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .promo-feature {
        font-size: 12px !important;
        gap: 8px !important;
    }

    .promo-feature i {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
    }

    .promo-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn-promo-primary,
    .btn-promo-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
    }

    .promo-play-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 18px !important;
    }

    /* ---------- NEWS ---------- */
    .news-section {
        padding: 40px 0 !important;
    }

    .news-header {
        margin-bottom: 30px !important;
    }

    .news-header h2 {
        font-size: 22px !important;
    }

    .news-header p {
        font-size: 13px !important;
    }

    .news-featured-image {
        min-height: 180px !important;
    }

    .news-featured-content {
        padding: 20px 18px !important;
    }

    .news-featured-date {
        font-size: 11px !important;
    }

    .news-featured-title {
        font-size: 16px !important;
    }

    .news-featured-excerpt {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .news-featured-link {
        font-size: 13px !important;
    }

    .news-card-image {
        height: 160px !important;
    }

    .news-card-content {
        padding: 18px 16px !important;
    }

    .news-card-date {
        font-size: 11px !important;
    }

    .news-card-title {
        font-size: 15px !important;
    }

    .news-card-excerpt {
        font-size: 12px !important;
    }

    /* ---------- EVENT CARDS ---------- */
    .event-card {
        padding: 16px !important;
    }

    .event-poster img {
        height: 180px !important;
    }

    .event-title {
        font-size: 16px !important;
    }

    .event-meta {
        font-size: 12px !important;
    }

    /* ---------- SPONSORS ---------- */
    .sponsor-item {
        margin: 0 10px !important;
    }

    .sponsor-item img {
        max-height: 35px !important;
    }

    .event-sponsor-title {
        font-size: 16px !important;
    }

    .event-sponsor-badge {
        font-size: 10px !important;
        padding: 4px 12px !important;
    }

    .event-sponsor-header {
        margin-bottom: 20px !important;
    }

    .category-row {
        margin-bottom: 25px !important;
    }

    /* ---------- FOOTER ---------- */
    .footer-top {
        padding: 40px 0 20px !important;
    }

    .footer-logo img {
        max-width: 140px !important;
    }

    .footer-widget h3 {
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }

    .footer-links a {
        font-size: 13px !important;
    }

    .newsletter-form .form-control {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .newsletter-form .btn {
        padding: 0 16px !important;
    }

    .footer-bottom {
        padding: 16px 0 !important;
        font-size: 12px !important;
    }

    .footer-bottom-links {
        gap: 14px !important;
        flex-wrap: wrap;
    }

    .footer-bottom-links a {
        font-size: 12px !important;
    }

    .back-to-top {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}


/* ============================================================
   EXTRA SMALL (360px and below)
   ============================================================ */
@media (max-width: 360px) {
    .brand-logo {
        max-width: 90px !important;
    }

    .layer h2 {
        font-size: 18px !important;
    }

    .fun-fact .box h3 {
        font-size: 24px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .news-featured-title {
        font-size: 15px !important;
    }

    .timeline-card {
        padding: 14px !important;
    }
}


/* ============================================================
   LANDSCAPE ORIENTATION
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .slider {
        height: 100vh !important;
        min-height: 400px !important;
    }

    .layer {
        top: 10% !important;
    }

    .layer h2 {
        font-size: 22px !important;
    }
}


/* ============================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover transforms on touch devices */
    .event-card:hover,
    .gallery-item:hover,
    .news-card:hover,
    .news-featured:hover,
    .timeline-card:hover,
    .fun-fact .box:hover {
        transform: none !important;
    }

    .gallery-item:hover {
        transform: none !important;
    }

    .sponsor-scroll:hover {
        animation-play-state: running !important;
    }

    /* Increase tap targets */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn,
    .btn-primary,
    .btn-promo-primary,
    .btn-promo-secondary {
        min-height: 44px;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .nav-arrow,
    .bottom-controls,
    .thumbs,
    .slide-counter,
    .mobile-toggle,
    .top-bar {
        display: none !important;
    }

    .slider-section {
        margin-top: 0 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ============================
   PAGE TITLE SECTION
   ============================ */
.page-title-section {
    position: relative;
    padding: 80px 0 70px;
    margin-top: calc(var(--top-bar-height) + var(--header-height));
    background: linear-gradient(135deg, #1a237e 0%, #0f1724 100%);
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-title-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 61, 225, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-title-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-title-content h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Playfair Display', Georgia, serif;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.page-breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb li a {
    color: #00D4AA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb li a:hover {
    color: #fff;
}

.page-breadcrumb li.active {
    color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    opacity: 0.5;
}

.page-breadcrumb li i {
    margin-right: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .page-title-section {
        padding: 50px 0 40px;
    }
    
    .page-title-content h1 {
        font-size: 24px;
    }
    
    .page-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
}
