:root {
  --primary: #1a365d;
  --gold: #d4a44a; /* Professional gold - justice & excellence */
  --dark-bg: #0d1b2a;
  --light-bg: #f1f5f9;
  --black: #0a1628;
  --law-blue: #1a365d; /* Deep navy - trust & authority */
  --light-blue: #234876; /* Royal blue - technology & professionalism */
  --white: #ffffff;
  --dark-navy: #0d1b2a; /* Darkest background */
  --slate: #64748b; /* Neutral text */
  --light-slate: #94a3b8; /* Secondary text */
}


body {
  background-color: var(--law-blue);
  color: var(--white);
  font-family: "Georgia", serif;
  overflow-x: hidden;
}

/* Custom Toggler for Mobile */
.custom-toggler {
  border: none;
  background-color: transparent !important;
  padding: 0;
  outline: none;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggle-icon {
  font-size: 24px;
  color: var(--gold); /* Gold color for the icon */
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Toggle icon animation when menu is open */
.toggle-icon.fa-xmark {
  transform: rotate(90deg);
}

.toggle-icon.fa-bars {
  transform: rotate(0deg);
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: black;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(rgba(32, 44, 56, 0.7), rgba(32, 44, 56, 0.7)),
    url("asset/aboutheroimage.png") center center / cover no-repeat fixed;
  padding: 120px 0 80px;
  color: white;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100% !important;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 58px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}

.hero-text {
  font-size: 20px;
  max-width: 700px;
  margin: 20px auto;
  text-align: center;
}

.resources-container,
.container.resources-container {
  margin-top: 60px;
  display: flex;
  gap: 30px;
  max-width: 1100px !important;
  width: calc(100% - 60px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.content-area {
  margin-left: 0;
  margin-right: 0;
  flex: 1;
  max-width: 100%;
}
/* -------------------------------------- */
/* LEFT SIDEBAR TABS - PROFESSIONAL LOOK */
/* -------------------------------------- */
.left-tabs {
  width: 220px; /* Fixed width for large screens */
  margin-left: 0px;
  /* Removed flex properties here, will apply in media queries for mobile */
}

/* Desktop Styles for Tabs */
@media (min-width: 992px) {
  /* Applies to large devices and up */
  .left-tabs {
    width: 220px;
  }
}

.left-tabs .tab-item {
  padding: 15px 20px; /* Increased padding */
  margin-bottom: 10px;
  background: var(--light-bg); /* Light background for inactive */
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-bg);
  transition: all 0.3s ease;
}

.left-tabs .tab-item:hover {
  background: #e0e0e0;
}

.left-tabs .active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 991.98px) {
  /*
      Overwriting desktop logo layout for mobile view.
      Stack the image and text vertically for space saving on small screens.
    */
  .article-buttons {
    .article-buttons {
      /* This ensures the buttons stack vertically */
      flex-direction: column;
    }

    .read-btn,
    .download-btn {
      width: 100%; /* Full width when stacked */
      margin-bottom: 10px; /* Add vertical space between stacked buttons */
    }
  }

  .logo {
    /* Set right margin of the logo container */
    margin-right: 0px;

    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* Remove gap */
  }

  .alpha-symbol img {
    /* Nudge the image slightly to the left to reduce left margin */
    margin-left: 0px;
    width: 80px; /* Adjusted size for better mobile fit */
  }

  .logo-text {
    text-align: left;
    font-size: 14px; /* Slightly smaller text on mobile */
    margin-top: 5px; /* Add slight separation */

    /* Nudge the text slightly to the left to reduce left margin */
    margin-left: 0px;
  }

  /* Mobile Menu Background */
  .navbar-collapse {
    background-color: var(
      --light-blue
    ); 
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    margin-left: 0;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none; /* Remove underline on mobile view */
  }

  .btn-gold {
    width: 100%;
    margin-top: 15px !important;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .resources-container,
  .container.resources-container {
    width: calc(100% - 30px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
}

/* Mobile/Tablet Styles for Tabs */
@media (max-width: 991px) {
  /* Applies to medium devices and below */
  .resources-container,
  .container.resources-container {
    flex-direction: column; /* Stacks categories and content */
    gap: 20px;
    width: calc(100% - 30px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .left-tabs {
    width: 100%; /* Full width on mobile */
    margin-left: 0;
    display: flex; /* Makes the tabs inline */
    flex-wrap: wrap; /* Allows tabs to wrap */
    justify-content: center;
  }
  .left-tabs .tab-item {
    flex: 1 1 auto; /* Allows tabs to grow */
    text-align: center;
    margin: 5px; /* Spacing between inline tabs */
    min-width: 150px;
  }
}

/* -------------------------------------- */
/* ARTICLE GRID - PROFESSIONAL LOOK */
/* -------------------------------------- */
.content-area {
  width: 100%;
}

.search-input {
  margin-bottom: 25px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: 100%;
}

.article-grid {
  display: grid;
  /* Adjusting minmax for larger cards (2 columns on desktop) */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px; /* Increased gap */
}

/* Mobile adjustment for grid */
@media (max-width: 767px) {
  .article-grid {
    /* Single column on small screens */
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: white;
  border-radius: 10px; /* Slightly more rounded corners */
  overflow: hidden;
  /* More pronounced, professional shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: 280px;
  object-fit: cover; /* Fills the box */
  object-position: top; /* Show top, crop bottom */
  display: block;
}

.article-content {
  padding: 20px; /* Increased padding */
}

.article-content h5 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.article-content strong {
  color: #333;
}

.article-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
}

.read-btn,
.download-btn {
  display: inline-block;
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  color: white;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  flex-grow: 1;
  text-align: center;
  background-color: var(--gold);
  text-decoration: none !important;
  margin-top: 5px;
}

.download-btn {
  margin-right: 15px;
}
.download-btn:hover {
  color: #000;
  background: red;
}
.read-btn:hover {
  color: var(--white);
  background: green;
}
/* Footer styles are now in home.css - removed duplicates */

[data-aos] {
  transition: all 0.8s ease;
}
/* --- FIX HORIZONTAL SCROLLING (DO NOT CHANGE ANYTHING ELSE) --- */

/* Prevent any container from becoming wider than the screen */
* {
  box-sizing: border-box;
}

/* Fix for grids or flex items pushing outside screen */
body, html {
  overflow-x: hidden !important;
  width: 100% !important;
}

/* Ensure flex & grid children do not overflow */
.left-tabs,
.article-grid,
.navbar,
.navbar-collapse {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Resources container - centered with equal margins */
.resources-container,
.container.resources-container {
  max-width: 1100px !important;
  width: calc(100% - 60px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden !important;
}

/* Prevent images from stretching wider than card */
.article-card img {
  max-width: 100%;
}
/* =========================================== */
/* PAGINATION STYLES - Match Screenshot Design */
/* =========================================== */

.pagination-controls {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 15px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 5px;
}

.page-btn:hover:not(.active):not(:disabled) {
  background: rgba(232, 196, 106, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  font-weight: bold;
  padding: 0 5px;
}

.pagination-btn {
  min-width: 80px;
  height: 40px;
  padding: 0 15px;
  background: rgba(232, 196, 106, 0.1);
  border: 1px solid rgba(232, 196, 106, 0.3);
  color: var(--gold);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Mobile responsive pagination */
@media (max-width: 768px) {
  .pagination-wrapper {
      gap: 5px;
  }
  
  .page-numbers {
      gap: 5px;
      margin: 0 10px;
  }
  
  .page-btn {
      min-width: 35px;
      height: 35px;
      font-size: 14px;
  }
  
  .pagination-btn {
      min-width: 60px;
      height: 35px;
      padding: 0 10px;
      font-size: 13px;
  }
  
  .page-ellipsis {
      font-size: 16px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .pagination-wrapper {
      flex-wrap: wrap;
      gap: 10px;
  }
  
  .page-numbers {
      order: 1;
      width: 100%;
      justify-content: center;
      margin: 10px 0;
  }
  
  .pagination-btn {
      min-width: 70px;
  }
}

/* Article buttons responsive fix */
@media (max-width: 767px) {
  .article-buttons {
      flex-direction: column;
  }
  
  .download-btn,
  .read-btn {
      width: 100%;
      margin-bottom: 10px;
      margin-right: 0;
  }
  
  .download-btn:last-child {
      margin-bottom: 0;
  }
}


/* Additional Mobile Responsive Fixes */
@media (max-width: 576px) {
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-text {
    font-size: 14px;
  }
  
  .left-tabs .tab-item {
    padding: 12px 15px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .article-card img {
    height: 200px;
  }
  
  .article-content {
    padding: 15px;
  }
  
  .article-content h5 {
    font-size: 1.1rem;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
  
  .footer-title {
    font-size: 18px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .search-input {
    font-size: 14px;
  }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
  .hero {
    height: auto;
    min-height: 50vh;
  }
  
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}