/* ============================================
   TOP NAVIGATION STYLES - Updated with buttons in nav container
   ============================================ */

/* Global reset like in the video */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* make all images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


.top-nav-rectangle {
    background: linear-gradient(135deg, #1a3a5f 0%, #2c5a8a 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 8px rgba(26, 58, 95, 0.4);
}


/* Header container - matches video structure */
.top-nav-rectangle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

/* Logo styles - kept your animations */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: auto;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 32px;
    margin-right: 12px;
    color: #e6b325;
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.club-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #e6b325);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.club-tagline {
    font-size: 11px;
    font-weight: 300;
    color: #b8d1f3;
    margin-top: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation container - holds both links and buttons */
.nav-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Space between nav links and buttons */
    padding-left: 2%;  /* Left padding only */
    padding-right: 0;  /* No right padding */
}

/* Navigation menu */
.nav_links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 40px; /* Space between nav items */
}

.nav_links li {
    display: inline-block;
}

.nav_links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.nav_links li a:hover {
    color: #e6b325;
}

.nav_links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e6b325;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav_links li a:hover::before {
    width: 100%;
}

/* Buttons - inside the nav container */
.nav-buttons {
    display: flex;
    gap: 25px; /* Space between the two buttons */
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    border: 2px solid transparent;
    min-width: 160px;
}

.btn-primary {
    background: linear-gradient(135deg, #e6b325, #d4a21f);
    color: #1a3a5f;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 179, 37, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4a21f, #e6b325);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 179, 37, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 179, 37, 0.6);
    transform: translateY(-3px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: rgba(230, 179, 37, 0.1);
    border: 2px solid rgba(230, 179, 37, 0.3);
    color: #e6b325;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(230, 179, 37, 0.2);
    border-color: #e6b325;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .top-nav-rectangle .container {
        padding: 0 3%;
    }
    
    .nav-container {
        gap: 30px; /* Reduced gap between nav and buttons */
    }
    
    .nav_links {
        gap: 20px; /* Reduced gap between nav items */
    }
    
    .nav-buttons {
        gap: 15px; /* Reduced button gap */
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 140px;
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .top-nav-rectangle .container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        display: none;
    }
    
    /* When mobile menu is active */
    .mobile-active .nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(26, 58, 95, 0.98);
        padding: 30px 20px;
        gap: 25px;
    }
    
    .mobile-active .nav_links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .mobile-active .nav-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .mobile-active .nav_links li a {
        display: block;
        padding: 15px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}

/* ============================================
   HERO BANNER SECTION
   ============================================ */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.9)), 
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a3a5f;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #e6b325;
    margin: 15px auto 0;
}

/* ============================================
   WHO WE ARE SECTION - Enhanced & Prettier
   ============================================ */
.who-we-are {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.who-we-are::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(26,58,95,0.03)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.who-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

.who-text {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(26, 58, 95, 0.1);
    border-left: 5px solid #e6b325;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.who-text:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(26, 58, 95, 0.15);
}

.who-text::before {
    content: '🧭';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
}

.who-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a3a5f;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.who-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e6b325, #d4a21f);
    border-radius: 2px;
}

.who-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.highlight {
    color: #1a3a5f;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(230, 179, 37, 0.15) 0%, rgba(230, 179, 37, 0.05) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    border-left: 3px solid #e6b325;
}

.who-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.4s ease;
}

.who-image:hover {
    transform: scale(1.02);
}

.who-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.who-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   TRAVEL FORMATS SECTION
   ============================================ */
.travel-formats {
    background-color: #f0f4f8;
}

.formats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    padding: 0 40px; /* Add padding on both sides */
}

.format-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.format-image {
    height: 200px;
    overflow: hidden;
}

.format-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.format-card:hover .format-image img {
    transform: scale(1.05);
}

.format-content {
    padding: 25px;
}

.format-content h3 {
    color: #1a3a5f;
    margin-bottom: 10px;
}

/* ============================================
   SIMPLE TOURS GRID (3 карточки без скроллинга)
   ============================================ */

.selected-tours {
    background-color: white;
    padding: 80px 0;
}

.simple-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 40px;
}

.tour-card-simple {
    background-color: #f9f7f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tour-image-simple {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tour-image-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.tour-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tour-card-simple:hover .tour-image-simple img {
    transform: scale(1.08);
}

.tour-content-simple {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-content-simple h3 {
    color: #1a3a5f;
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.tour-content-simple p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.tour-price-simple {
    color: #e6b325;
    font-weight: 700;
    font-size: 22px;
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
}

.tour-content-simple .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.view-all-tours {
    text-align: center;
    margin-top: 40px;
}

.view-all-tours .btn {
    padding: 14px 40px;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN FOR SIMPLE GRID
   ============================================ */

@media (max-width: 992px) {
    .simple-tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .simple-tours-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tour-card-simple {
        max-width: 100%;
    }
}

/* Active link in navigation */
.nav_links li a.active {
    color: #e6b325;
    font-weight: 600;
}

.nav_links li a.active::before {
    width: 100%;
    background: #e6b325;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background-color: #1a3a5f;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #e6b325;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #b8d1f3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #e6b325;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2c5a8a;
    color: #b8d1f3;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .logo {
        margin-right: 40px;
    }
    
    .nav-container {
        gap: 30px;
    }
    
    .nav-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 140px;
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .who-content {
        grid-template-columns: 1fr;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .top-nav-rectangle .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }
    
    .mobile-active .nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(26, 58, 95, 0.98);
        padding: 30px 20px;
        gap: 25px;
    }
    
    .logo {
        flex: 1;
        margin-right: 0;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .club-name {
        font-size: 20px;
    }
    
    .club-tagline {
        font-size: 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* extra small phones */
@media (max-width: 480px) {
    .hero h1, .travels-hero h1, .club-hero h1, .news-hero h1, .about-hero h1 {
        font-size: 28px;
    }
    .hero p, .travels-hero p, .club-hero p, .news-hero p, .about-hero p {
        font-size: 14px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    .nav_links {
        gap: 15px;
    }
}

/* Hint text under selected tours on main page */
.cards-hint {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.8;
}