
/* style.css — full file with enforced vertical stack for Contact */

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --primary-blue: #4A90E2;
  --primary-red: #C0392B;
  --light-blue: #87CEEB;
  --dark-blue: #2C5282;
  --white: #FFFF;
  --light-gray: #1A1A2E;
  --dark-gray: #16213E;
  --darker-gray: #0F172A;
  --text-dark: #F1F5F9;
  --text-light: #CBD5E1;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--white);
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-red) 50%, var(--dark-blue) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix for Android Chrome background attachment */
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; left: 0; right: 0; background: transparent; backdrop-filter: blur(10px); z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-bottom: 1px solid transparent; box-shadow: 0 2px 10px rgba(0,0,0,0); }
.navbar.scrolled { background: rgba(26,26,46,0.8); border-bottom: 1px solid rgba(74,144,226,0.3); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 70px; }

.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; transition: var(--transition); }
.nav-logo:hover { transform: translateY(-2px); }

.logo-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-blue); transition: var(--transition); }
.logo-img:hover { border-color: var(--primary-blue); }

.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--white); }

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-link { text-decoration: none; color: var(--white); font-weight: 500; position: relative; transition: var(--transition); padding: 10px 16px; border-radius: 8px; font-size: 1rem; letter-spacing: 0.5px; }
.nav-link::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)); transition: var(--transition); border-radius: 8px; opacity: 0; transform: scale(0.8); z-index: -1; }
.nav-link:hover::before, .nav-link.active::before { opacity: 0.2; transform: scale(1); }
.nav-link:hover { color: var(--white); transform: translateY(-1px); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.nav-link.active { color: var(--white); font-weight: 600; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.bar { width: 25px; height: 3px; transition: var(--transition); border-radius: 2px; }
.bar:nth-child(1) { background: var(--light-blue); }
.bar:nth-child(2) { background: var(--white); }
.bar:nth-child(3) { background: var(--primary-red); }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: url('./public/download.png') center/cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:
  linear-gradient(135deg, rgba(44,82,130,0.6) 0%, rgba(192,57,43,0.5) 50%, rgba(44,82,130,0.7) 100%),
  radial-gradient(circle at 30% 70%, rgba(74,144,226,0.4) 0%, transparent 60%),
  radial-gradient(circle at 80% 30%, rgba(192,57,43,0.3) 0%, transparent 50%),
  linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 30%, rgba(255,255,255,0.05) 70%, transparent 100%);
  backdrop-filter: blur(8px) brightness(0.8) contrast(1.2) saturate(1.1); z-index: 1;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background:
  linear-gradient(45deg, transparent 30%, rgba(74,144,226,0.2) 50%, transparent 70%),
  linear-gradient(-45deg, transparent 30%, rgba(192,57,43,0.15) 50%, transparent 70%),
  radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%); animation: shimmer 8s ease-in-out infinite; opacity: 0.8; z-index: 0;
}

/* News Carousel */
.news-carousel-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 95%; max-width: 600px; background: rgba(255,255,255,0.18); backdrop-filter: blur(25px) saturate(180%); border-radius: 20px; padding: 2.5rem 0rem; box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.1); z-index: 3; will-change: transform; -webkit-transform: translate3d(-50%,-50%,0); transform: translate3d(-50%,-50%,0); box-sizing: border-box; }
@supports not (backdrop-filter: blur(25px)) { .news-carousel-container { background: rgba(255,255,255,0.25); } }

.carousel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.carousel-title { color: var(--white); font-size: 1.4rem; font-weight: 500; margin: 0; letter-spacing: -0.02em; padding-left: 0; }
.blog-link { color: inherit; text-decoration: underline; padding-left: 10px; transition: var(--transition); display: block; }
.blog-link:hover { color: var(--light-blue); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.carousel-controls { display: flex; gap: 0.75rem; }

.carousel-btn { width: 44px; height: 44px; border: none; border-radius: 0; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: var(--white); font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-weight: 300; }
.carousel-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

.carousel-wrapper { overflow: hidden; border-radius: 0; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.carousel-item { min-width: 100%; display: block; background: transparent; border-radius: 0; padding: 0; overflow: hidden; position: relative; height: 350px; }
.carousel-item.placeholder-item { opacity: 0.8; }

.item-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(74,144,226,0.8), rgba(135,206,235,0.6)); border-radius: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; overflow: hidden; box-shadow: none; border: none; margin: 0; padding: 0; background-size: cover; background-position: center; background-repeat: no-repeat; image-rendering: auto; image-rendering: smooth; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }

.item-content { position: absolute; bottom: 10px; left: 0; right: 0; background: rgba(0,0,0,0.7); padding: 1rem 1.5rem; border-radius: 0; }
.item-date { color: var(--light-blue); font-size: 0.85rem; font-weight: 400; margin-bottom: 0.5rem; opacity: 0.9; }
.item-title { color: var(--white); font-size: 1.1rem; font-weight: 600; margin-bottom: 0; line-height: 1.35; letter-spacing: -0.01em; }
.title-link { color: inherit; text-decoration: none; transition: var(--transition); display: block; }
.title-link:hover { color: var(--light-blue); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

.carousel-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.carousel-prev, .carousel-next { width: 50px; height: 50px; border: none; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: var(--white); font-size: 1.5rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-weight: 300; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

@keyframes shimmer { 0%,100% { opacity: 0.3; transform: translateX(-10px); } 50% { opacity: 0.6; transform: translateX(10px); } }

.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 800px; padding: 0 20px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1rem; opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards; color: var(--white); }
.title-line { display: block; font-size: 0.6em; font-weight: 400; opacity: 0.9; margin-bottom: 0.5rem; }
.title-main { display: block; color: var(--white); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0; animation: fadeInUp 1s ease-out 0.8s forwards; font-weight: 300; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeInUp 1s ease-out 1.1s forwards; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: var(--transition); border: 2px solid transparent; cursor: pointer; font-size: 1rem; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: var(--transition); }
.btn:hover::before { left: 100%; }
.btn-primary { background: var(--light-blue); color: var(--white); border-color: var(--light-blue); }
.btn-primary:hover { background: transparent; color: var(--light-blue); border-color: var(--light-blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary-blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Sections */
.section { padding: 100px 0; position: relative; background: rgba(26,26,46,0.8); backdrop-filter: blur(10px); }
.section:nth-child(even) { background: rgba(22,33,62,0.8); backdrop-filter: blur(10px); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--white); }
.section-subtitle { font-size: 1.2rem; color: var(--text-light); font-weight: 300; }

/* About */
.about-logo { display: flex; justify-content: center; margin-top: 2rem; }
.about-logo-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.about-content { max-width: 1000px; margin: 0 auto; }

/* Story */
.story-hero { background: rgba(255,255,255,0.08); backdrop-filter: blur(15px); padding: 3rem; border-radius: 24px; text-align: center; margin-bottom: 3rem; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.story-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.story-hero h3 { font-size: 2rem; color: var(--white); margin-bottom: 1.5rem; font-weight: 600; }
.story-hero p { font-size: 1.1rem; line-height: 1.8; color: var(--text-light); max-width: 800px; margin: 0 auto; }

/* Dividers */
.section-divider { display: flex; align-items: center; justify-content: center; margin: 3rem 0; gap: 1rem; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); max-width: 200px; }
.divider-icon { font-size: 1.5rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 0.75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }

/* Content Blocks */
.content-block { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 20px; padding: 2.5rem; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.content-block:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.block-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.block-icon { font-size: 2rem; background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)); padding: 0.75rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; min-width: 60px; height: 60px; }
.block-header h3 { font-size: 1.5rem; color: var(--white); margin: 0; font-weight: 600; }
.block-content p { color: var(--text-light); line-height: 1.7; font-size: 1rem; margin: 0; }

/* Achievements */
.achievement-stats { display: flex; justify-content: space-around; margin: 2rem 0; gap: 1rem; flex-wrap: wrap; }
.stat-item { text-align: center; background: rgba(255,255,255,0.08); padding: 1.5rem 1rem; border-radius: 16px; min-width: 120px; border: 1px solid rgba(255,255,255,0.1); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--light-blue); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

/* Tournaments */
.tournament-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.tournament-item { background: rgba(255,255,255,0.08); padding: 1rem 1.5rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,0.1); }
.tournament-name { font-weight: 600; color: var(--white); font-size: 1.1rem; }
.tournament-desc { color: var(--light-blue); font-size: 0.95rem; opacity: 0.9; }

/* Club Message */
.club-message { background: rgba(255,255,255,0.08); backdrop-filter: blur(15px); padding: 3rem; border-radius: 24px; text-align: center; margin-top: 3rem; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.club-message h3 { font-size: 1.8rem; color: var(--white); margin-bottom: 2rem; font-weight: 600; }
.message-points { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.message-point { font-size: 1.2rem; color: var(--light-blue); font-weight: 500; }
.welcome-message { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; margin: 0; }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.partner-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(15px); padding: 2rem; border-radius: 20px; text-align: center; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.2); text-decoration: none; color: inherit; display: block; }
.partner-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.12); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.partner-logo { margin-bottom: 1.5rem; display: flex; justify-content: center; align-items: center; height: 80px; }
.partner-logo-img { max-width: 100%; max-height: 80px; object-fit: contain; transition: var(--transition); }
.partner-card:hover .partner-logo-img { transform: scale(1.05); }
.partner-card h4 { color: var(--white); font-size: 1.1rem; font-weight: 600; margin: 0; }

/* Gallery (new) */
.gallery.section { background: rgba(15,23,42,0.9); backdrop-filter: blur(15px); }
.gallery-carousel { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.gallery-main-display { position: relative; width: 100%; max-width: 800px; margin: 0 auto; }
.gallery-image-container { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); transition: var(--transition); cursor: pointer; }
.gallery-image-container:hover { transform: translateY(-2px); box-shadow: 0 25px 80px rgba(0,0,0,0.5); }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.gallery-image-container:hover .gallery-main-img { transform: scale(1.02); }
.gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.7) 100%); opacity: 0; transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.gallery-image-container:hover .gallery-overlay { opacity: 1; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 0.5rem; align-self: center; }
.gallery-control-btn { width: 50px; height: 50px; border: none; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); color: var(--white); font-size: 1.2rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.3); }
.gallery-control-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.gallery-control-btn:active { transform: scale(0.95); }
.gallery-info { align-self: flex-end; }
.gallery-counter { background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500; color: var(--white); border: 1px solid rgba(255,255,255,0.2); }

/* Gallery Dots Navigation */
.gallery-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.gallery-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: transparent; cursor: pointer; transition: var(--transition); }
.gallery-dot:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.3); }
.gallery-dot.active { border-color: var(--light-blue); background: var(--light-blue); }

/* Lightbox - Fixed modal */
.lightbox-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 2000; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}
.lightbox-modal.active { 
    display: flex; 
    opacity: 1;
    visibility: visible;
}
.lightbox-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.9); 
    backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 2001;
}
.lightbox-content { 
    position: relative; 
    max-width: calc(100vw - 40px); 
    max-height: calc(100vh - 40px); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
    z-index: 2002;
    pointer-events: all;
    margin: auto;
}
.lightbox-close { 
    position: absolute; 
    top: -15px; 
    right: -15px; 
    width: 50px; 
    height: 50px; 
    border: none; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); 
    color: var(--white); 
    font-size: 1.5rem; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    align-items: center;
    justify-content: center;
    pointer-events: all;
    border: 2px solid rgba(255,255,255,0.3);
    font-weight: bold; 
    z-index: 2003;
}
.lightbox-close:hover { 
    background: rgba(255,255,255,0.3); 
    transform: scale(1.1); 
}
.lightbox-image-container { 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    max-width: 100%; 
    max-height: calc(100vh - 120px);
    pointer-events: auto;
}
.lightbox-img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    border-radius: 8px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    pointer-events: none;
}
.lightbox-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 60px; 
    height: 60px; 
    border: none; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); 
    color: var(--white); 
    font-size: 1.5rem; 
    cursor: pointer; 
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0;
    pointer-events: auto;
}
.lightbox-image-container:hover .lightbox-nav { opacity: 1; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }
.lightbox-info { 
    display: flex; 
    justify-content: center; 
    margin-top: 1rem;
    pointer-events: auto;
}
.lightbox-counter { 
    background: rgba(0,0,0,0.8); 
    backdrop-filter: blur(10px); 
    padding: 0.75rem 1.5rem; 
    border-radius: 25px; 
    font-size: 1rem; 
    font-weight: 500; 
    color: var(--white); 
    border: 1px solid rgba(255,255,255,0.2);
}

/* Contact — enforce vertical stack and site-aligned widths */
.contact-content { display: flex; flex-direction: column; align-items: center; gap: 3rem; max-width: 1000px; margin: 0 auto; }

/* Increase specificity + hard overrides to defeat older grid rules */
.contact-content .contact-info {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  grid-template-columns: unset !important;
  width: 100%;
  max-width: 600px;    /* match News carousel width */
  margin: 0 auto;
  gap: 2rem;
  align-items: stretch;
}

.contact-content .contact-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 100%;    /* fill the 600px column */
}

.contact-content .contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.12); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.contact-content .contact-card p { color: var(--white); font-size: 1.1rem; font-weight: 500; margin: 0 0 1rem 0; }

/* Contact — Map (responsive, no internal scroll) */
.map-container {
  position: relative;
  width: 100%;
  /* 16:9 ratio; tweak if preferred (e.g., 62.5% for 8:5) */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;    /* hides any rounding artifacts */
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.05);
}

/* Fill the container, prevent iframe scrollbars */
.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;    /* avoids inline gaps */
  border: 0;
  /* Overflow on iframes isn't consistently supported, but we keep it here as a harmless helper */
  overflow: hidden;
}

/* Optional: tighter height on very small phones if you don't want 16:9 */
@media (max-width: 420px) {
  .map-container {
    aspect-ratio: 4 / 3;    /* a little taller on narrow screens */
  }
}


/* Social */
.social-buttons { display: flex; gap: 1rem; justify-content: center; }
.social-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--white); font-size: 1.5rem; font-weight: 700; transition: var(--transition); border: 2px solid transparent; }
.facebook-btn { background: linear-gradient(135deg, #3b5998, #4267B2); border-color: #3b5998; }
.facebook-btn:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 10px 25px rgba(59,89,152,0.4); }
.linkedin-btn { background: linear-gradient(135deg, #0077B5, #00A0DC); border-color: #0077B5; }
.linkedin-btn:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 10px 25px rgba(0,119,181,0.4); }
.social-icon { font-family: Arial, sans-serif; font-size: 1.2rem; font-weight: 700; }

/* Footer */
.footer { background: rgba(15,23,42,0.9); backdrop-filter: blur(15px); padding: 3rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { text-align: center; max-width: 800px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 1.5rem; }
.footer-text { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links { margin-bottom: 0; }
.privacy-link, .nsolvix-link { color: var(--light-blue); text-decoration: none; transition: var(--transition); }
.privacy-link:hover, .nsolvix-link:hover { color: var(--white); text-decoration: underline; }

/* Privacy Modal */
.privacy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.privacy-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.privacy-content { background: rgba(26,26,46,0.95); backdrop-filter: blur(20px); border-radius: 20px; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 80px rgba(0,0,0,0.5); }
.privacy-header { display: flex; justify-content: space-between; align-items: center; padding: 2rem 2rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.privacy-header h2 { color: var(--white); font-size: 1.8rem; font-weight: 600; margin: 0; }
.privacy-close { width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); font-size: 1.5rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.privacy-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.privacy-body { padding: 2rem; line-height: 1.7; color: var(--text-light); }
.privacy-body h3 { color: var(--white); font-size: 1.3rem; font-weight: 600; margin: 2rem 0 1rem 0; }
.privacy-body h3:first-child { margin-top: 0; }
.privacy-body p { margin-bottom: 1rem; }
.privacy-body ul { margin: 1rem 0; padding-left: 2rem; }
.privacy-body li { margin-bottom: 0.5rem; }
.privacy-body strong { color: var(--white); font-weight: 600; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 30px; }
  .lightbox-nav { width: 50px; height: 50px; font-size: 1.2rem; }
  .lightbox-prev { left: -60px; } .lightbox-next { right: -60px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: auto; min-height: fit-content; background: rgba(26,26,46,1.0); backdrop-filter: blur(20px); flex-direction: column; justify-content: start; align-items: center; padding: 2rem 0; transition: var(--transition); gap: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
  .nav-menu.active { left: 0; }
  .nav-menu li { width: 100%; text-align: center; margin-bottom: 1rem; }
  .nav-link { display: block; width: 80%; margin: 0 auto; padding: 15px; font-size: 1.1rem; }
  .hamburger.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .news-carousel-container { width: 90%; padding: 2rem 1rem; }
  .carousel-item { height: 280px; }

  .gallery-carousel { gap: 1.5rem; }
  .gallery-controls { gap: 0.25rem; }
  .gallery-control-btn { width: 45px; height: 45px; font-size: 1rem; }
  .gallery-dots { gap: 0.5rem; }
  .gallery-dot { width: 10px; height: 10px; }

  .lightbox-content { max-width: 90vw; max-height: 90vh; }
  .lightbox-nav { position: static; transform: none; margin: 0 10px; opacity: 1; }
  .lightbox-image-container { flex-direction: column; gap: 1rem; }
  .lightbox-close { position: relative; top: 0; right: 0; margin-bottom: 1rem; }

  .contact-content .contact-info { max-width: 100%; gap: 1.5rem; } /* full width on small screens */
  .partners-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
  .achievement-stats { flex-direction: column; align-items: center; gap: 1.5rem; }
  .tournament-item { flex-direction: column; text-align: center; gap: 0.5rem; }
  .story-hero, .content-block, .club-message { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .news-carousel-container { padding: 1.5rem 0.75rem; }
  .carousel-item { height: 250px; }
  .item-content { padding: 0.75rem 1rem; }

  .gallery-control-btn { width: 40px; height: 40px; font-size: 0.9rem; }
  .gallery-dots { gap: 0.4rem; }
  .gallery-dot { width: 8px; height: 8px; }
  .lightbox-content { max-width: 95vw; max-height: 85vh; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; margin: 0 5px; }

  .story-hero, .content-block, .club-message { padding: 1.5rem 1rem; }
  .about-logo-img { width: 120px; height: 120px; }
  .stat-number { font-size: 2rem; }
  .social-btn { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* Print */
@media print {
  .navbar, .hero, .gallery-controls, .lightbox-modal, .privacy-modal { display: none !important; }
  .section { background: white !important; color: black !important; page-break-inside: avoid; }
  .section-title { color: black !important; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-bg { animation: none !important; }
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root { --primary-blue:#0066cc; --light-blue:#4da6ff; --primary-red:#cc0000; --white:#ffff; --text-light:#cccc; }
  .gallery-dot { border-width: 3px; }
  .gallery-control-btn { border: 2px solid var(--white); }
}
