/* NLNOG Theme CSS */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* NLNOG Brand Colors */
:root {
  --nlnog-blue: #4db8e8;
  --nlnog-dark-blue: #233773;
  --nlnog-light-blue: #e8f4fd;
  --nlnog-gray: #6c757d;
  --nlnog-dark-gray: #495057;
  --nlnog-light-gray: #f8f9fa;
}

/* Header and Navigation */
.navbar {
  background-color: var(--nlnog-dark-blue);
  color: white;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-height: 60px;
}

.navbar-brand .brand-link {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand .brand-logo {
  height: 40px;
  width: auto;
}

.navbar-brand .brand-text {
  display: inline-block;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Menu styles */
.navbar-menu nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar-menu nav ul li {
  margin: 0;
}

.navbar-menu nav ul a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: block;
}

.navbar-menu nav ul a:hover,
.navbar-menu nav ul a.active {
  background-color: rgba(255, 255, 255, 0.2);
}


/* Contact info and social links */
.contact-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.email-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--nlnog-blue);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  color: white;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--nlnog-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--nlnog-dark-blue) 0%, var(--nlnog-blue) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-image.active {
  opacity: 0.4;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(35, 55, 115, 0.8) 0%, rgba(77, 184, 232, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  border-bottom: none;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
}

.btn-primary {
  background-color: white;
  color: var(--nlnog-dark-blue);
  border-color: white;
}

.btn-primary:hover {
  background-color: var(--nlnog-light-blue);
  color: var(--nlnog-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--nlnog-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  min-height: calc(100vh - 200px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-content {
  padding: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--nlnog-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--nlnog-blue);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--nlnog-blue);
  text-decoration: none;
}

a:hover {
  color: var(--nlnog-dark-blue);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--nlnog-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--nlnog-gray);
}

/* Code */
code {
  background-color: var(--nlnog-light-blue);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--nlnog-light-blue);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

th {
  background-color: var(--nlnog-light-blue);
  font-weight: bold;
  color: var(--nlnog-dark-blue);
}

/* Footer */
footer {
  background-color: var(--nlnog-dark-gray);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer a {
  color: var(--nlnog-blue);
}

footer a:hover {
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--nlnog-dark-blue);
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .navbar-menu.active {
    max-height: 500px;
    padding: 1rem 0;
  }
  
  .navbar-menu nav {
    width: 100%;
  }
  
  .navbar-menu nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .navbar-menu nav ul li {
    width: 100%;
  }
  
  .navbar-menu nav ul a {
    padding: 1rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  
  .contact-info {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-menu nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--nlnog-gray);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Sponsors Page Styles */
.sponsors-grid {
  margin-top: 2rem;
}

.sponsors-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.sponsor-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--nlnog-blue);
}

.spnsr-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.spnsr-link:hover {
  text-decoration: none;
  color: inherit;
}

.sponsor-logo {
  text-align: center;
  margin-bottom: 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-info {
  text-align: center;
}

.sponsor-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--nlnog-dark-blue);
}

.sponsor-description {
  color: var(--nlnog-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Sponsors Carousel Styles */
.sponsors-carousel {
  background-color: var(--nlnog-light-gray);
  padding: 3rem 0;
  overflow: hidden;
}

.sponsors-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sponsors-carousel-title {
  text-align: center;
  font-size: 2rem;
  color: var(--nlnog-dark-blue);
  margin-bottom: 2rem;
  font-weight: 600;
}

.sponsors-carousel-track {
  overflow: hidden;
  margin-bottom: 2rem;
}

.sponsors-carousel-slides {
  display: flex;
  animation: scroll 30s linear infinite;
  width: calc(200% + 2rem);
}

.sponsor-slide {
  flex: 0 0 200px;
  margin-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.sponsor-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.sponsor-carousel-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.sponsor-carousel-logo {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.sponsor-carousel-link:hover .sponsor-carousel-logo {
  filter: grayscale(0%);
}

.sponsors-carousel-cta {
  text-align: center;
}

.sponsors-carousel-cta .btn-secondary {
  background-color: var(--nlnog-dark-blue);
  color: white;
  border-color: var(--nlnog-dark-blue);
}

.sponsors-carousel-cta .btn-secondary:hover {
  background-color: var(--nlnog-blue);
  color: white;
  border-color: var(--nlnog-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments for sponsors */
@media (max-width: 768px) {
  .sponsors-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sponsor-slide {
    flex: 0 0 150px;
    margin-right: 1rem;
  }
  
  .sponsor-carousel-logo {
    max-height: 50px;
    max-width: 130px;
  }
  
  .sponsors-carousel-container {
    padding: 0 1rem;
  }
  
  .sponsors-carousel-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sponsors-carousel {
    padding: 2rem 0;
  }
  
  .sponsor-slide {
    flex: 0 0 120px;
  }
  
  .sponsor-carousel-logo {
    max-height: 40px;
    max-width: 100px;
  }
}
