/*
Theme Name: Bootstrap + WordPress
Theme URI: https://unichlod.pl/
Author: PD
Author URI: https://unichlod.pl/
Description: Custom Bootstrap 5 + WordPress theme with ACF PRO Flexible Content
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bs5b
*/

/* Parallax helper */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Search results */
.search-results-section .search-result-item { border-bottom: 1px solid #dee2e6; padding-bottom: 1.5rem; }
.search-results-section .search-result-item:last-child { border-bottom: none; }

/* 404 */
.error-404-section { min-height: 60vh; display: flex; align-items: center; }

/* Post / archive */
.post-card .card-img-top { object-fit: cover; height: 220px; }
.wp-post-image { max-width: 100%; height: auto; }

/* Pagination */
.pagination-wrapper .page-numbers { display: inline-block; padding: .375rem .75rem; margin: 0 .15rem; border: 1px solid #dee2e6; border-radius: .375rem; }
.pagination-wrapper .page-numbers.current { background: #0d6efd; color: #fff; border-color: #0d6efd; }



    body { font-family: 'Inter', sans-serif; }
    html { scroll-behavior: smooth; }

    /* ---- Dropdown – click-based, remove hover rule ---- */
    .nav-dropdown { display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; }
    .nav-dropdown.open { display: block; }

    /* ---- Hero overlay ---- */
 .hero-overlay {
  background: linear-gradient(to bottom,
    rgba(0, 102, 204, 0.55) 0%,
    rgba(0, 143, 220, 0.45) 40%,
    rgba(0, 120, 215, 0.70) 100%);
}

    /* ---- Parallax sections ---- */
    .parallax-bg {
      background-attachment: fixed;
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
    }
    .parallax-text-shadow {
      text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
    }

    /* ---- Timeline connector ---- */
    .timeline-item:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 19px;
      top: 40px;
      width: 2px;
      height: calc(100% - 10px);
      background: #CBD5E1;
    }

    /* ---- Section label ---- */
    .section-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #0066B2;
    }

    /* ---- Card hovers ---- */
    .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,102,178,0.15); }
    .service-card { transition: transform 0.2s, box-shadow 0.2s; }
    .news-card:hover { transform: translateY(-2px); }
    .news-card { transition: transform 0.2s, box-shadow 0.2s; }
    .member-logo:hover { filter: grayscale(0); opacity: 1; }
    .member-logo { filter: grayscale(30%); opacity: 0.85; transition: all 0.2s; }

    /* ---- Snowflake spin ---- */
    .spin-slow { animation: spinSlow 20s linear infinite; }
    @keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    /* ---- Search expand ---- */
    #search-input { transition: width 0.3s ease; }

    /* ---- Mobile menu ---- */
    #mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
    #mobile-menu.open { max-height: 900px; }
    .mobile-submenu { display: none; }
    .mobile-submenu.open { display: block; }

    /* ---- Responsive: below 1024px container adjustments ---- */
    @media (max-width: 1280px) {
      .nav-tagline { display: none !important; }
    }
    @media (max-width: 1024px) {
      .desktop-nav { display: none !important; }
      .hamburger-btn { display: flex !important; }
      body.design-canvas { width: 1440px; } /* keep canvas width */
    }
    @media (max-width: 768px) {
      .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
      .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
      .parallax-bg { background-attachment: scroll; } /* iOS fix */
    }





  /* custom menu */


  /* Navigation styles */
.nav-group .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
}

.nav-group .nav-dropdown.open {
    display: block;
}

.mobile-submenu {
    display: none;
}

.mobile-submenu.open {
    display: block;
}

#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: block;
}

/* Icon styles */
.nav-group i.fa-icon {
    width: 1em;
    text-align: center;
    margin-right: 0.5rem;
}

/* Mobile menu toggle */
@media (max-width: 1023px) {
    .hamburger-btn {
        display: flex !important;
    }

    .desktop-nav {
        display: none;
    }

    .btn-login-nav-r4t5y6 {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hamburger-btn {
        display: none !important;
    }
}

/* Add pointer cursor to interactive elements */
.nav-group button,
.nav-group a,
.mobile-toggle,
#hamburger-btn,
.btn-login-nav-r4t5y6,
#mobile-menu button {
    cursor: pointer;
}

/* Ensure dropdown items also have pointer cursor */
.nav-dropdown a,
.mobile-submenu a {
    cursor: pointer;
}

/* Add hover effects for better UX */
.nav-group button:hover,
.nav-group a:hover,
.mobile-toggle:hover,
#hamburger-btn:hover,
.btn-login-nav-r4t5y6:hover {
    opacity: 0.9;
}

/* Specific hover effect for dropdown items */
.nav-dropdown a:hover,
.mobile-submenu a:hover {
    background-color: #F0F7FF;
    color: #0066B2;
}