/* =====================================================
   MODERN STYLE OVERRIDES — YourCanadaJourney
   Applied AFTER style.css to modernize the design.
   Keeps similar colors, adds polish & micro-animations.
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #000637;
  --navy-light: #0a1252;
  --indigo: #1a1f71;
  --blue: #1998ff;
  --blue-light: #47b0ff;
  --red: #E63946;
  --lavender: #bbbbf2;
  --bg-light: #f4f6fb;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #4a4a68;
  --text-muted: #7c7c96;
  --shadow-sm: 0 2px 8px rgba(0, 6, 55, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 6, 55, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 6, 55, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  color: var(--text-body);
  line-height: 1.75;
}

a {
  color: var(--blue);
  transition: color var(--transition);
}

a:hover {
  color: var(--indigo);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.15;
}

h2 {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.25;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--bg-white);
  padding: 20px 0 20px 0;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(0, 6, 55, 0.06);
}

.header-small .navbar {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 6, 55, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 12px 0 12px 0;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition);
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-link:hover::after,
.navbar .navbar-menu-wrapper .navbar-nav .nav-link.active::after {
  width: 70%;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-link:hover {
  color: var(--red);
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-link.active {
  color: var(--red);
}

/* Contact Us Button */
.btn-contact-us .btn-info,
.btn-contact-us .btn {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 15px rgba(25, 152, 255, 0.3);
  transition: all var(--transition);
}

.btn-contact-us .btn-info:hover,
.btn-contact-us .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(25, 152, 255, 0.4);
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
}

/* ---------- Hero / Banner ---------- */
.banner {
  background: linear-gradient(135deg, #f7f8fa 0%, #eeeef8 30%, #e4e6f6 60%, #dfe4fb 100%) !important;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(187, 187, 242, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(25, 152, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner h1 {
  color: var(--navy);
  font-weight: 800;
  font-size: 3rem;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

.banner h6,
.banner .text-muted {
  color: var(--text-body) !important;
  font-weight: 400;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.banner img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 6, 55, 0.12));
}

/* ---------- Content Wrapper ---------- */
.content-wrapper {
  padding: 50px 0;
  background-color: var(--bg-light);
}

/* ---------- Section Headers ---------- */
.case-studies .text-center h2 {
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.case-studies .text-center h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lavender));
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 1.05rem;
  margin-top: 16px;
}

/* Section Category Headings */
.heading-title {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.375rem;
  gap: 1rem;
}

.heading-title::after {
  background: linear-gradient(90deg, var(--blue), transparent) !important;
  height: 2px;
  border-radius: 2px;
}

/* ---------- Blog Post Cards ---------- */
.blog-post-card {
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-post-card-featured-image {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 60%;
  /* 5:3 Aspect Ratio (Standardizes height) */
}

.blog-post-card-featured-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-card:hover .blog-post-card-featured-image img {
  transform: scale(1.08);
}

.blog-post-card-body {
  padding: 1.25rem 1.25rem 1rem;
}

.blog-post-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-post-card-title a {
  color: var(--text-dark);
  transition: color var(--transition);
}

.blog-post-card-title a:hover {
  color: var(--blue);
  text-decoration: none;
}

.blog-post-card-body>p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-post-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-post-card-date::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Color Cards (category index pages) ---------- */
.case-studies .color-cards {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.case-studies .color-cards:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-studies .card-desc-box {
  background: linear-gradient(135deg, rgba(0, 6, 55, 0.85), rgba(26, 31, 113, 0.85));
  backdrop-filter: blur(4px);
}

.case-studies .card-desc-box .btn-white {
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.case-studies .card-desc-box .btn-white:hover {
  transform: scale(1.05);
}

/* ---------- Article Pages ---------- */
.main-content {
  max-width: 800px;
}

.main-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light);
}

.main-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.main-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}

.main-content ul,
.main-content ol {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.85;
}

.main-content ul li,
.main-content ol li {
  margin-bottom: 0.5rem;
}

/* Article Banner */
.banner h1 {
  text-align: center;
}

/* Key Points Box */
.main-content div[style*="dcf4ff"] {
  border-radius: var(--radius-md) !important;
  border-top: 4px solid var(--blue) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--blue);
}

/* Tables */
.main-content table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: none;
}

.main-content table th {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: none;
}

.main-content table td {
  padding: 14px 16px;
  border-color: var(--bg-light);
  vertical-align: top;
}

.main-content table tbody tr:hover {
  background-color: rgba(25, 152, 255, 0.04);
}

/* Disclaimer box */
.disclaimer-article {
  border-radius: var(--radius-md) !important;
  background: var(--bg-light) !important;
  border-left: 4px solid var(--text-muted);
}

.disclaimer-article h6 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.disclaimer-article p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Media Wrappers (article images) ---------- */
.media-wrapper img,
.media-wrapper-full img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer / Contact Details ---------- */
.contact-details {
  background: var(--navy);
  padding: 50px 0 30px 0;
  margin: 0 -15px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.contact-details h5 {
  color: #ffffff;
  font-weight: 600;
}

.contact-details p,
.contact-details .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.contact-details .mdi {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 16px;
  padding: 8px 10px;
  transition: all var(--transition);
}

.contact-details .mdi:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}

.contact-details a {
  color: rgba(255, 255, 255, 0.6);
}

.contact-details a:hover {
  color: var(--blue);
}

.contact-details+footer.border-top {
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 0 -15px;
  padding: 20px 30px !important;
}

.contact-details+footer.border-top a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-details+footer.border-top a:hover {
  color: var(--blue);
}

/* ---------- Contact Modal ---------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  border-bottom: none;
  padding: 24px 28px;
}

.modal-header .modal-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.modal-body {
  padding: 28px;
}

.modal-body .form-control {
  border: 2px solid #e8eaf0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all var(--transition);
  background: var(--bg-light);
}

.modal-body .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(25, 152, 255, 0.12);
  background: #fff;
}

.modal-body label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-footer {
  border-top: 1px solid #f0f0f5;
  padding: 16px 28px;
}

.modal-footer .btn-success {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  border: none;
  border-radius: 50px;
  padding: 10px 32px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(25, 152, 255, 0.3);
  transition: all var(--transition);
}

.modal-footer .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(25, 152, 255, 0.4);
}

.modal-footer .btn-light {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 500;
  color: var(--text-muted);
  border: 2px solid #e8eaf0;
  transition: all var(--transition);
}

.modal-footer .btn-light:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

/* ---------- Divider overrides ---------- */
.border-top {
  border-color: rgba(0, 6, 55, 0.06) !important;
}

/* Hide the border-top divider before footer if inside dark footer */
.contact-details~.border-top {
  border-color: transparent !important;
}

/* ---------- Category "view all" links ---------- */
.case-studies .text-left p a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 152, 255, 0.2);
  padding-bottom: 1px;
  transition: all var(--transition);
}

.case-studies .text-left p a:hover {
  border-bottom-color: var(--blue);
  color: var(--indigo);
}

/* ---------- Buttons (general) ---------- */
.btn {
  transition: all var(--transition);
  font-weight: 500;
}

.btn-info {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: var(--radius-sm);
}

.btn-info:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}

/* ---------- Scroll to top smoothness ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(25, 152, 255, 0.2);
  color: var(--navy);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 992px) {
  .banner {
    padding: 60px 0 40px 0;
  }

  .banner h1 {
    font-size: 2.25rem;
  }

  .contact-details {
    border-radius: 0;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .banner h1 {
    font-size: 1.875rem;
  }

  .blog-post-card:hover {
    transform: translateY(-4px);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}