/* --- GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%; /* Prevent elements from exceeding container width */
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  position: relative;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #07182f 0%, #0d2b4e 100%);
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- LOADER STYLES --- */
#qaruno-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-bg {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 181, 200, 0.3);
  border-top: 4px solid #00b5c8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-brand {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.loader-msg {
  color: #00b5c8;
  font-size: 1.1rem;
  font-weight: 500;
}

/* --- COOKIE BANNER STYLES --- */
#cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 380px;
  background: rgba(7, 24, 47, 0.95);
  border: 2px solid #00b5c8;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 181, 200, 0.2);
  z-index: 10000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: none;
}

#cookie-banner.minimized {
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  bottom: 1rem;
  left: 1rem;
}

#cookie-banner.minimized .cookie-content {
  display: none;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-title {
  color: #FFD700;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: #00b5c8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  background: rgba(0, 181, 200, 0.1);
  transform: scale(1.1);
}

.cookie-message {
  color: #cceff5;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #00b5c8;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

.cookie-btn.accept {
  background: #00b5c8;
  color: white;
}

.cookie-btn.accept:hover {
  background: #008aa5;
  border-color: #008aa5;
}

.cookie-btn.settings {
  background: transparent;
  color: #00b5c8;
}

.cookie-btn.settings:hover {
  background: rgba(0, 181, 200, 0.1);
}

.cookie-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #00b5c8;
  font-size: 1.5rem;
}

#cookie-banner.minimized .cookie-icon {
  display: flex;
}

/* Cookie banner mobile styles */
@media (max-width: 768px) {
  #cookie-banner {
    width: calc(100% - 2rem);
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
  }
  
  #cookie-banner.minimized {
    width: 50px;
    height: 50px;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
}

/* --- HEADER STYLES - CONSISTENT --- */
header {
  background: rgba(7, 24, 47, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- NAV LOGO WITH IMAGE + TEXT (CONSISTENT) --- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.nav-logo:hover .nav-logo-text {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

/* --- NAV BUTTON STYLES - CONSISTENT --- */
nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-btn, .nav-btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.45rem;
  font-size: 1.05rem;
  border-radius: 2rem;
  border: 2px solid #00b5c8;
  background: transparent;
  color: #00b5c8;
  margin-left: 1.15rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn:focus {
  background: rgba(0, 181, 200, 0.1);
  color: #00b5c8;
  border-color: #00b5c8;
}

.nav-btn-login {
  background: #00b5c8;
  color: #fff;
  border: 2px solid #00b5c8;
  font-weight: 700;
}

.nav-btn-login:hover, .nav-btn-login:focus {
  background: #008aa5;
  color: #fff;
  border-color: #008aa5;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: rgba(0, 181, 200, 0.1);
  border: 2px solid #00b5c8;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  color: #00b5c8;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 181, 200, 0.2);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* --- MAIN CONTENT STYLES --- */
main {
  flex: 1 0 auto;
}

/* --- HERO SECTION --- */
.about-hero {
  background: rgba(234, 253, 255, 0.1);
  padding: 5rem 0 3rem 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0, 181, 200, 0.2);
  width: 100%;
}

.about-hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #cceff5;
  font-weight: 500;
  line-height: 1.6;
}

/* --- ABOUT CONTENT SECTIONS --- */
.about-section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
}

.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section:nth-child(even) {
  background: rgba(248, 249, 250, 0.05);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 181, 200, 0.2);
  border-bottom: 1px solid rgba(0, 181, 200, 0.2);
}

.section-title {
  text-align: center;
  color: #FFD700;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.text-content {
  padding-right: 1rem;
}

.text-content h3 {
  color: #00b5c8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.text-content p {
  color: #cceff5;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.image-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-content img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Partnership Cards */
.partnership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.partnership-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.partnership-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.partnership-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 181, 200, 0.3);
}

.card-header {
  background: rgba(0, 181, 200, 0.2);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.card-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.card-body {
  padding: 1.5rem;
}

.card-body ul {
  list-style-type: none;
  padding: 0;
}

.card-body li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #cceff5;
}

.card-body li:before {
  content: "•";
  color: #00b5c8;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Partnership List */
.partnership-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partnership-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
  color: #cceff5;
}

.partnership-list li strong {
  color: #FFD700;
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.partnership-list li:before {
  content: "•";
  color: #00b5c8;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.2rem;
}

/* Read More functionality */
.read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,181,200,0.3);
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,181,200,0.4);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 0;
  background: rgba(7, 24, 47, 0.7);
  color: white;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 181, 200, 0.2);
  width: 100%;
}

.cta-section h2 {
  color: #FFD700;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-section p {
  color: #cceff5;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,181,200,0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,181,200,0.4);
}

/* Horizontal scroll for mobile */
.scroll-container {
  display: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1rem;
  padding: 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.partnership-scroll-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 350px;
}

.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.scroll-btn {
  background: rgba(0, 181, 200, 0.3);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: #00b5c8;
}

/* --- FOOTER STYLES - CONSISTENT --- */
footer {
  background: rgba(7, 24, 47, 0.9);
  color: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 181, 200, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFD700;
}

/* DESKTOP: All links in one line */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #00b5c8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.95rem;
  color: #cceff5;
  margin-top: 1rem;
}

/* --- BACK TO TOP BUTTON STYLES --- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,181,200,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,215,0,0.4);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .text-content {
    padding-right: 0;
    order: 2;
  }
  
  .image-content {
    order: 1;
  }
  
  .about-hero h1 {
    font-size: 2.2rem;
  }
  
  .about-hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .partnership-cards {
    display: none;
  }
  
  .scroll-container {
    display: block;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    width: 100%;
    padding: 0 0.8rem;
    max-width: 100%;
  }
  
    /* Mobile menu styles - KEEPING BLOG'S ORIGINAL MOBILE MENU */
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 24, 47, 0.95);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    width: 100%;
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-btn, .nav-btn-login {
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
    margin-left: 0;
    justify-content: center;
  }
  
  /* Header mobile layout */
  .nav-wrapper {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
  }
  
  /* Mobile header logo */
  .nav-logo-img {
    width: 32px;
    height: 32px;
  }
  
  .nav-logo-text {
    font-size: 1.5rem;
  }
  
  .about-hero {
    padding: 3rem 0;
  }
  
  .about-section {
    padding: 2.5rem 0;
  }
  
  .about-hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  
  .text-content h3 {
    font-size: 1.3rem;
  }
  
  .text-content p {
    font-size: 1rem;
  }
  
  #backToTop {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  
  /* Footer mobile - 3x2 grid */
  footer .container {
    padding: 0 1rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem 0.5rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-links a {
    margin: 0;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.3;
    padding: 0 0.2rem;
  }
  
  .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #00b5c8);
    transition: width 0.3s ease;
  }
  
  .footer-links a:hover::after {
    width: 100%;
  }
  
  .footer-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
  }
  
  /* Ensure all containers don't exceed viewport */
  .about-section, .two-column, .text-content, .image-content {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .scroll-wrapper {
    padding: 1rem 0.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .about-hero h1 {
    font-size: 1.6rem;
  }
  
  .about-hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .text-content h3 {
    font-size: 1.2rem;
  }
  
  .text-content p {
    font-size: 0.95rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .partnership-scroll-card {
    min-height: 320px;
  }
}