/* 
 * FormatMyCV CSS Overrides
 * This file MUST be loaded AFTER style.css and responsive.css
 * to fix layout issues and add custom styles
 */

/* ============================================
   CRITICAL: Neutralise leaked `button { ... }` rule from style.css
   ============================================
   The landing-page template defines a global `button { width: 100%;
   margin-top: 20px; background: #6b3fd4; padding: 12px 20px; ... }`
   in /css/style.css. That sheet is loaded globally, including on the
   dashboard and document-editor pages that style their buttons via
   React inline styles. The leaked rule forces every dashboard button
   to 100% width + 20px top margin + purple fill, which breaks flex
   headers (e.g. the editor top bar pushes its Save & Regenerate CTA
   completely off-screen).

   Inline styles do override matching properties, but `width` and
   `margin-top` are NOT set inline on the dashboard buttons, so they
   still inherit from the template. Reset those properties here so
   React inline styles can be authoritative. Template buttons use
   class-based selectors (`.btn`, `.theme-btn`, `.cta-buttons .btn`)
   whose specificity beats plain `button`, so this is safe for
   marketing pages.
*/
button {
  width: auto;
  margin-top: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ============================================
   CRITICAL: Reset template animations that hide content
   ============================================ */

/* The template CSS has opacity:0 and transform animations that hide content */
/* We need to override these to ensure visibility */

.main-slider h1,
.main-slider .title,
.main-slider .text,
.main-slider .btn-box,
.main-slider .link-box {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ============================================
   CRITICAL: Fix overflow issues that break scrolling
   ============================================ */

html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
}

body {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100% !important;
  position: relative !important;
}

.page-wrapper {
  position: relative !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-height: auto !important;
  height: auto !important;
}

/* ============================================
   Preloader
   ============================================ */

.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #ffffff;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(/images/icons/preloader.svg);
  transition: opacity 0.5s ease;
}

/* ============================================
   Main Slider / Hero Section
   ============================================ */

.main-slider {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.main-slider .main-slider-carousel {
  width: 100%;
}

.main-slider .slide {
  position: relative;
  padding: 150px 0 100px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.main-slider .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Badge */
.main-slider .badge {
  display: inline-block !important;
  background: linear-gradient(135deg, #012068 0%, #3241ff 100%) !important;
  color: #ffffff !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 30px !important;
  animation: fadeInDown 0.8s ease;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hero Title */
.hero-title,
.main-slider .hero-title,
.main-slider h1.hero-title {
  font-size: 52px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 24px !important;
  line-height: 1.2 !important;
  animation: fadeInUp 0.8s ease 0.2s both;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #1e293b !important;
}

.hero-title span,
.main-slider .hero-title span {
  background: linear-gradient(90deg, #012068, #3241ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero Subtitle */
.hero-subtitle,
.main-slider .hero-subtitle,
.main-slider p.hero-subtitle {
  font-size: 20px !important;
  color: #475569 !important;
  max-width: 700px !important;
  margin: 0 auto 36px !important;
  line-height: 1.7 !important;
  animation: fadeInUp 0.8s ease 0.4s both;
  visibility: visible !important;
  opacity: 1 !important;
}

.cta-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
  flex-wrap: wrap !important;
  animation: fadeInUp 0.8s ease 0.6s both;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hero CTA Buttons - Force visibility */
.main-slider .cta-buttons .btn,
.cta-buttons .btn {
  padding: 16px 32px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.main-slider .cta-buttons .btn.primary,
.cta-buttons .btn.primary {
  background: linear-gradient(135deg, #012068 0%, #3241ff 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(50, 65, 255, 0.3) !important;
}

.main-slider .cta-buttons .btn.primary:hover,
.cta-buttons .btn.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(50, 65, 255, 0.4) !important;
}

.main-slider .cta-buttons .btn.outline,
.cta-buttons .btn.outline {
  background: #ffffff !important;
  color: #012068 !important;
  border: 2px solid #012068 !important;
}

.main-slider .cta-buttons .btn.outline:hover,
.cta-buttons .btn.outline:hover {
  background: #012068 !important;
  color: #ffffff !important;
}

.benefits {
  display: flex !important;
  justify-content: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
  animation: fadeInUp 0.8s ease 0.8s both;
  visibility: visible !important;
  opacity: 1 !important;
}

.benefit {
  font-size: 14px !important;
  color: #475569 !important;
  font-weight: 500 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================
   Section Titles
   ============================================ */

.sec-title {
  position: relative;
  margin-bottom: 40px;
}

.sec-title.centered {
  text-align: center;
}

.sec-title .title {
  position: relative;
  color: #3241ff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.sec-title h2 {
  position: relative;
  color: #012068;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.sec-title h2 span {
  color: #3241ff;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.sec-title .text {
  color: #666666;
  font-size: 16px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */

.services-section-three {
  position: relative;
  padding: 80px 0;
}

.services-block-three {
  margin-bottom: 30px;
}

.services-block-three .inner-box {
  position: relative;
  padding: 35px 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.services-block-three .inner-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.services-block-three h6 {
  font-size: 18px;
  font-weight: 700;
  color: #012068;
  margin-bottom: 15px;
}

.services-block-three h6 a {
  color: inherit;
  text-decoration: none;
}

.services-block-three .text {
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   Call to Action Section
   ============================================ */

.call-to-action {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.call-to-action:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 32, 104, 0.85);
}

.call-to-action .sec-title {
  position: relative;
  z-index: 1;
}

.call-to-action .sec-title h2 {
  color: #ffffff;
  font-size: 42px;
  margin-bottom: 20px;
}

.call-to-action .sec-title h2 span {
  color: #6df3ff;
}

.call-to-action .sec-title h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
  position: relative;
  padding: 80px 0;
}

.about-section .content-column .inner-column {
  position: relative;
  padding-right: 30px;
}

.about-section .video-column .inner-column {
  position: relative;
}

.about-section .video-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-section .video-box .image {
  position: relative;
  margin: 0;
}

.about-section .video-box .image img {
  width: 100%;
  display: block;
}

/* Black background contact box */
.right-column.blackbg {
  background: #012068;
  border-radius: 10px;
}

.right-column.blackbg.padding {
  padding: 40px;
}

.right-column.blackbg .sec-title .title span,
.right-column.blackbg .text {
  color: #ffffff;
}

.right-column.blackbg a {
  color: #6df3ff;
}

.right-column.blackbg a:hover {
  color: #ffffff;
}

.list-style-five {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-style-five li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.8;
}

.list-style-five li .icon {
  position: absolute;
  left: 0;
  top: 3px;
  color: #6df3ff;
}

/* ============================================
   WhatsApp Float Button
   ============================================ */

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.float:hover {
  background-color: #128c7e;
  color: #ffffff;
  transform: scale(1.1);
}

.my-float {
  margin-top: 0;
}

/* ============================================
   Header Styles - CRITICAL VISIBILITY FIXES
   ============================================ */

.main-header {
  position: relative !important;
  z-index: 999 !important;
  width: 100% !important;
  background: #ffffff !important;
}

.main-header .header-upper {
  position: relative !important;
  padding: 15px 0 !important;
  background: #ffffff !important;
  display: block !important;
}

.main-header .logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation - Force visibility */
.main-header .nav-outer {
  float: right !important;
  display: block !important;
}

.main-header .main-menu {
  display: block !important;
}

.main-header .navbar-collapse {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.main-header .navigation {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header .navigation > li {
  display: inline-block !important;
  position: relative !important;
}

.main-header .navigation > li > a {
  position: relative !important;
  display: block !important;
  padding: 10px 18px !important;
  color: #012068 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.main-header .navigation > li > a:hover,
.main-header .navigation > li.current > a {
  color: #3241ff !important;
}

/* Fixed Header */
.main-header.fixed-header .sticky-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  animation: slideInDown 0.5s ease !important;
  display: block !important;
  z-index: 9999 !important;
}

.sticky-header {
  display: none;
  padding: 15px 0;
}

.sticky-header .logo img {
  max-height: 40px;
}

.sticky-header .navigation > li > a {
  color: #012068 !important;
}

/* Mobile menu toggle */
.navbar-toggler {
  display: none;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block !important;
    padding: 10px;
    background: transparent;
    border: 1px solid #012068;
    cursor: pointer;
  }
  
  .navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #012068;
    margin: 4px 0;
  }
  
  .main-header .navbar-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px;
  }
  
  .main-header .navbar-collapse.show {
    display: block !important;
  }
  
  .main-header .navigation {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .main-header .navigation > li {
    display: block !important;
    width: 100%;
  }
  
  .main-header .navigation > li > a {
    padding: 12px 0 !important;
    border-bottom: 1px solid #eee;
  }
}

/* ============================================
   Footer Styles
   ============================================ */

.main-footer {
  position: relative;
  background: #012068;
  color: #ffffff;
}

.main-footer .widgets-section {
  padding: 60px 0 30px;
}

.main-footer h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
}

.main-footer .text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.main-footer .list-link {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-footer .list-link li {
  margin-bottom: 10px;
}

.main-footer .list-link li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.main-footer .list-link li a:hover {
  color: #6df3ff;
}

.main-footer .whitetext {
  color: rgba(255, 255, 255, 0.8);
}

.main-footer .whitetext a {
  color: #6df3ff;
}

/* Gallery Widget */
.gallery-widget .images-outer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gallery-widget .image-box {
  width: calc(33.333% - 5px);
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.gallery-widget .image-box img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

.gallery-widget .image-box:hover img {
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  position: relative;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-bottom .copyright a {
  color: #6df3ff;
}

.footer-bottom .social-column ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom .social-column ul li {
  margin-left: 15px;
}

.footer-bottom .social-column ul li.follow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-bottom .social-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-bottom .social-column ul li a:hover {
  color: #6df3ff;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .main-slider .slide {
    padding: 100px 0 80px;
  }
  
  .sec-title h2 {
    font-size: 28px;
  }
  
  .call-to-action .sec-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
  }
  
  .benefits {
    gap: 15px;
  }
  
  .benefit {
    font-size: 13px;
  }
  
  .cta-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .footer-bottom .social-column ul {
    justify-content: center;
    margin-top: 15px;
  }
}
