/* ==========================================================================
   UNHALE CAREER ACADEMY (UCA PATTERN) - GLOBAL RESPONSIVE STYLESHEET
   ========================================================================== */

:root {
  --primary-green: #70B634;
  --primary-teal: #0082A1;
  --dark-slate: #061e29;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --body-text: #334155;
  --border-color: #E2E8F0;
  --gold-accent: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* FIXED: Allows position: sticky to work properly */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--body-text);
  background-color: var(--white);
  line-height: 1.6;
  width: 100%;
  overflow-x: clip; /* Fixes horizontal overflow without breaking sticky navigation */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-slate);
  line-height: 1.25;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* ==========================================================================
   ENHANCED TOP BAR STYLES
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #061e29 0%, #003644 100%);
  color: var(--white);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Left Contacts Styling */
.top-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contacts a {
  color: #CBD5E1;
  font-weight: 500;
  font-size: 13px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-contacts a i {
  color: var(--primary-green);
  font-size: 14px;
}

.top-contacts a:hover {
  color: var(--white);
}

/* Right Social Icons Styling */
.top-socials {
  display: flex;
  align-items: center;
  gap: 12px; /* Fixed spacing between icons */
}

.top-socials a {
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand Specific Hover Colors */
.top-socials a.social-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
  transform: translateY(-2px);
}

.top-socials a.social-mail:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.top-socials a.social-insta:hover {
  background: #E1306C;
  border-color: #E1306C;
  color: #ffffff;
  transform: translateY(-2px);
}

.top-socials a.social-yt:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Mobile Rules */
@media screen and (max-width: 768px) {
  .top-bar-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  .top-contacts a span {
    display: none;
  }
  
  .top-contacts {
    gap: 12px;
  }

  .top-socials a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* Sticky Header Navigation */
.header-sticky {
  position: -webkit-sticky; /* For Safari compatibility */
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links .active > a {
  color: var(--primary-green);
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  padding: 8px 20px;
  display: block;
  font-size: 14px;
}

.dropdown li a:hover {
  background: var(--light-bg);
  color: var(--primary-teal);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-slate);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons & Common UI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-green {
  background: var(--primary-green);
  color: var(--white);
}

.btn-green:hover {
  background: #5d982a;
}

.btn-teal {
  background: var(--primary-teal);
  color: var(--white);
}

.btn-teal:hover {
  background: #006881;
}

.sub-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-title p {
  color: #64748B;
  font-size: 16px;
}

/* Floating Actions & Scroll Top */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.scroll-top-btn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--dark-slate);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
}

.scroll-top-btn.active {
  display: flex;
}

/* Result Cards / Wall of Fame */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.result-box {
  position: relative;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
}

.uca-stamp {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(112, 182, 52, 0.15);
  color: var(--primary-green);
  padding: 2px 8px;
  border-radius: 4px;
}

.result-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--primary-green);
}

.score-badge {
  display: inline-block;
  background: var(--primary-green);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
}

/* Footer Structure */
footer {
  background: #0B132B;
  color: #94A3B8;
  padding: 70px 0 20px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-1 img {
  height: 45px;
  margin-bottom: 15px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-green);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (CLEAN & SAFE TARGETS)
   ========================================================================== */

/* Tablet View (Max Width: 992px) */
@media screen and (max-width: 992px) {
  .top-contacts {
    display: none;
  }

  .news-ticker {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cta-btn {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 15px;
    display: none;
  }

  .has-dropdown.dropdown-open .dropdown {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Mobile Devices View (Max Width: 768px) */
@media screen and (max-width: 768px) {
  
  /* Reset sticky positioning on mobile to avoid overlapping */
  div[style*="position: sticky"] {
    position: static !important;
  }

  /* Typography Scale Down */
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }

  /* Universal Layout Adjustments for Inline Grids */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Universal Section & Container Spacing */
  section {
    padding: 40px 0 !important;
  }

  .container {
    padding: 0 16px !important;
  }

  /* Responsive Containers Padding Reset */
  div[style*="padding: 45px"],
  div[style*="padding: 35px"],
  div[style*="padding: 30px"] {
    padding: 20px !important;
  }

  .results-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form Elements Full Width */
  form input, 
  form select, 
  form textarea, 
  form button {
    width: 100% !important;
    font-size: 16px !important;
  }

  /* Responsive Embedded Maps & Videos */
  iframe, .map-frame {
    height: 280px !important;
    min-height: 280px !important;
  }

  /* Footer Adjustment */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    gap: 10px;
  }

  /* Floating Action Buttons */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .scroll-top-btn {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

/* Extra Small Devices (Max Width: 480px) */
@media screen and (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .ticker-text {
    font-size: 11px;
  }

  .btn {
    width: 100%;
    padding: 12px 16px;
  }
}