/* =========================================
   Global CSS & Reset (Used on all pages)
   ========================================= */
:root {
  --primary-color: #0149AC;
  --accent-color: #FF8C00;
  --bg-light: #F8F8F8;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --font-main: 'Poppins', sans-serif;
  --radius-pill: 100px;
  --radius-card: 15px;
  
  --spacing-section: 100px;
  --spacing-container: clamp(1rem, 5vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.bg-light { background-color: var(--bg-light); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-container); }
.section-padding { padding: var(--spacing-section) 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: clamp(2.5rem, 5vw, 3rem); font-weight: 800; color: var(--primary-color); margin-bottom: 15px; }
.section-title p { font-size: 1.125rem; color: #555; max-width: 600px; margin: 0 auto; }

/* =========================================
   Global Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-outline {
  border-color: var(--text-light);
  color: var(--text-light);
  background: transparent;
}
.btn-outline:hover { background: var(--text-light); color: var(--primary-color); }

.btn-primary-solid {
  background-color: var(--primary-color);
  color: var(--text-light);
}
.btn-primary-solid:hover { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
  width: 100%;
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-2px); }

/* =========================================
   Global Navigation Bar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-white);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s;
  padding: 30px 0;
}

.scrolled-always, .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 15px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 var(--spacing-container); }
.logo a { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; }
.logo img { max-height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--primary-color); font-weight: 600; font-size: 1rem; position: relative;}
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

/* Dropdown Styles */
.dropdown-icon {
  margin-left: 5px;
  stroke: currentColor;
  fill: none;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.nav-item-dropdown:hover .dropdown-icon,
.nav-item-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}
.nav-item-dropdown { position: relative; padding: 10px 0; display: flex; align-items: center; }
.dropdown-menu { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: -20px; 
  background: var(--bg-white); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  min-width: 250px; 
  flex-direction: column; 
  opacity: 0; 
  transform: translateY(10px); 
  transition: all 0.3s ease; 
  border-radius: 8px; 
  overflow: hidden; 
  padding: 10px 0; 
  z-index: 1001; 
  border-top: 3px solid var(--accent-color);
}
.nav-item-dropdown:hover .dropdown-menu { display: flex; opacity: 1; transform: translateY(0); }
.dropdown-menu a { padding: 12px 20px; font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid #f0f0f0; transition: all 0.2s; white-space: nowrap; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: var(--bg-light); padding-left: 25px; color: var(--accent-color); }

.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-color); transition: all 0.3s ease; }

/* =========================================
   Global Lightbox Modal
   ========================================= */
.lightbox-modal {
  display: none; position: fixed; z-index: 9999; padding-top: 60px; left: 0; top: 0; 
  width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px);
  justify-content: center; align-items: center;
}
.lightbox-modal.show { display: flex; }
.lightbox-content { max-width: 90%; max-height: 85%; object-fit: contain; animation: zoomIn 0.3s; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 30px; right: 40px; color: #fff; font-size: 50px; font-weight: 300;
  transition: 0.3s; cursor: pointer; line-height: 1;
}
.lightbox-close:hover, .lightbox-close:focus { color: var(--accent-color); text-decoration: none; cursor: pointer; }

@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; }}

/* =========================================
   Global Footer
   ========================================= */
.footer-global { background-color: var(--primary-color); color: var(--text-light); padding: 80px 0 30px; margin-top: auto; }

.footer-split-layout { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; text-align: left; }

.footer-left-col h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 15px; }
.footer-left-col p { font-size: 1.125rem; margin-bottom: 30px; opacity: 0.9; }

.footer-social-icons { display: flex; gap: 20px; align-items: center; }
.social-icon-img img { width: 45px; height: 45px; border-radius: 50%; transition: transform 0.3s ease; display: block; object-fit: cover; }
.social-icon-img:hover img { transform: scale(1.1); }

.footer-right-col { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; font-size: 1.1rem; }
.contact-blocks-row { display: flex; gap: 40px; }
.contact-block { display: flex; flex-direction: column; text-align: left; gap: 8px; }
.contact-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.contact-value { font-size: 1.1rem; font-weight: 600; color: var(--text-light); transition: color 0.3s; text-decoration: none;}
a.contact-value:hover { color: var(--accent-color); text-decoration: underline; }

.footer-right-col a.terms-link { color: var(--text-light); transition: color 0.3s; text-decoration: none; margin-top: 5px; }
.footer-right-col a.terms-link:hover { color: var(--accent-color); opacity: 1; text-decoration: underline; }

.footer-bottom-simple {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px; display: flex; justify-content: center;
  font-size: 0.95rem; opacity: 0.8; text-align: center;
}

/* =========================================
   Global Responsiveness
   ========================================= */
@media (max-width: 768px) {
  /* Mobile Hamburger Nav */
  .nav-links {
    position: absolute; left: -100%; top: 100%; flex-direction: column; background-color: rgba(255, 255, 255, 0.98); 
    width: 100%; height: auto; max-height: 85vh; padding: 30px var(--spacing-container) 40px; justify-content: flex-start; align-items: flex-start; transition: left 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 1px solid #eee; border-radius: 0 0 20px 20px; overflow-y: auto;
  }
  .nav-links.active { left: 0; }
  .nav-links a { font-size: 1.2rem; margin-bottom: 15px; display: block;}
  
  .dropdown-menu { display: none; }
  .nav-item-dropdown:hover .dropdown-menu { display: none; } /* Disable hover on mobile */
  .nav-item-dropdown.active .dropdown-menu { display: flex; position: static; box-shadow: none; border-top: none; padding: 0; opacity: 1; transform: none; margin-top: 10px; margin-left: 15px; border-left: 2px solid var(--accent-color); }
  
  .hamburger { display: block; z-index: 1001; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .footer-split-layout { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
  .footer-social-icons { justify-content: center; }
  .footer-right-col { align-items: center; }
  .contact-blocks-row { flex-direction: column; gap: 30px; align-items: center; }
  .contact-block { text-align: center; }
}

@media (max-width: 480px) {
  .section-padding { padding: 60px 0; }
}
