/* =========================
   CORPORATE INFO PAGE STYLES
========================= */

/* Hero Section */

/* =========================
   HERO SECTION REDESIGN (V2)
   Fixes vertical stacking issues by using unique scoped classes
========================= */

.corporate-hero-v2 {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 22, 35, 0.95) 0%, rgba(11, 22, 35, 0.8) 100%), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=1920');
  background-size: cover;
  background-position: center;
  padding: 8rem 0 5rem !important;
  color: #ffffff;
}

.corporate-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.relative-z2 {
  position: relative;
  z-index: 2;
}

.hero-text-wrapper {
  display: block;
  width: 100%;
}

.corp-title-text {
  display: block !important;
  width: 100%;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 1.5rem 0 !important;
  /* Bottom margin forces separation */
  line-height: 1.2;
}

.corp-subtitle-wrapper {
  display: block !important;
  width: 100%;
  margin-top: 10px;
}

.corp-subtitle-text {
  display: inline-block;
  /* Allows max-width to work */
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 700px;
  line-height: 1.6;
  margin: 0 auto;
}

/* Main Section */

.objects-main-section {
  padding: 4rem 0;
}

/* Corporate Sidebar */

.corporate-sidebar {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 120px;
}

.sidebar-header {
  padding: 1.5rem;
  background: var(--blue-dark);
  color: var(--white);
}

.sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--white) !important;
}

.sidebar-header i {
  color: var(--gold-primary);
  /* Keep gold icon */
}

.sidebar-nav {
  padding: 1.5rem 0;
}

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

.sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  background: var(--off-white);
  color: var(--blue-dark);
}

.sidebar-nav .nav-link.active {
  background: rgba(184, 146, 59, 0.1);
  color: var(--blue-dark);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Corporate Cards */

.corporate-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: none;
}

.corporate-card.active {
  display: block;
}

.card-header {
  padding: 2rem 2rem 1rem;
  background: var(--blue-dark);
  /* Dark Blue Background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white) !important;
  /* White Text */
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.section-title i {
  color: var(--gold-primary);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  /* Muted White Text */
  font-size: 1rem;
  margin: 0;
  display: block;
  /* Ensure stacking */
}

.card-body {
  padding: 2rem;
}

/* Objects List */

.objects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.object-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.object-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.object-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--gold-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.object-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.object-content p {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Registration Info */

.registration-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-gray);
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(11, 45, 77, 0.05), rgba(184, 146, 59, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border-gray);
}

.info-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.info-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.info-content p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.info-details span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-details strong {
  color: var(--blue-dark);
  margin-right: 0.5rem;
}

/* Structure Diagram */

.structure-diagram {
  padding: 2rem 0;
}

.structure-level {
  text-align: center;
  margin-bottom: 2rem;
}

.level-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-gray);
  display: inline-block;
}

.level-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.structure-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.structure-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.structure-item.primary {
  border-top: 4px solid var(--gold-primary);
}

.structure-item.secondary {
  border-top: 4px solid var(--blue-dark);
}

.structure-item.tertiary {
  border-top: 4px solid #2a5d9a;
}

.item-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-dark);
}

.structure-item.primary .item-icon {
  background: rgba(184, 146, 59, 0.1);
  color: var(--gold-primary);
}

.structure-item.secondary .item-icon {
  background: rgba(11, 45, 77, 0.1);
  color: var(--blue-dark);
}

.structure-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.structure-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.structure-connector {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.connector-line {
  width: 2px;
  height: 40px;
  background: var(--border-gray);
}

.connector-branch {
  position: absolute;
  width: 80%;
  height: 2px;
  background: var(--border-gray);
  top: 50%;
  left: 10%;
}

/* Compliance Grid */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.compliance-item {
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.compliance-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.compliance-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.compliance-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.compliance-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compliance-item li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 1.5rem;
}

.compliance-item li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: bold;
}

/* Governance Principles */

.governance-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.principle-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.principle-item:hover {
  transform: translateX(5px);
}

.principle-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--gold-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.principle-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.principle-content p {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Certifications List */

.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.certification-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.certification-item:hover {
  border-color: var(--gold-primary);
  transform: translateX(5px);
}

.certification-badge {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.certification-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.certification-info p {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Download Section */

.objects-download-section {
  padding: 4rem 0;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-document {
  padding: 1rem 2rem;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-document:hover {
  background: var(--gold-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 146, 59, 0.3);
}

/* =========================
   MEDIUM SCREEN OPTIMIZATIONS
   (Tablets: 768px - 992px)
========================= */

/* Hero Section */

@media (max-width: 992px) and (min-width: 768px) {
  .objects-hero-section {
    padding: 6rem 0 3rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .objects-hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .objects-hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

/* Main Layout */

@media (max-width: 992px) and (min-width: 768px) {
  .objects-main-section .row {
    flex-direction: column;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .corporate-sidebar {
    width: 100%;
    margin-bottom: 2rem;
    position: static;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .sidebar-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .sidebar-nav .nav-item {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .sidebar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    flex-direction: column;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .sidebar-nav .nav-link.active {
    border-left: none;
    border-bottom: 3px solid var(--gold-primary);
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .sidebar-nav .nav-link i {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    width: auto;
  }
}

/* Corporate Cards */

@media (max-width: 992px) and (min-width: 768px) {
  .corporate-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .card-header {
    padding: 1.5rem 1.5rem 0.75rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .card-body {
    padding: 1.5rem;
  }
}

/* Objects List Specific Adjustments */

@media (max-width: 992px) and (min-width: 768px) {
  .object-item {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .object-number {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .object-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .object-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Registration Info */

@media (max-width: 992px) and (min-width: 768px) {
  .info-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .info-content h4 {
    font-size: 1.1rem;
  }
}

/* Structure Diagram */

@media (max-width: 992px) and (min-width: 768px) {
  .structure-level {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .level-items {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .structure-item {
    min-width: 180px;
    padding: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .item-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Compliance Grid */

@media (max-width: 992px) and (min-width: 768px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .compliance-item {
    padding: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .compliance-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Governance Principles */

@media (max-width: 992px) and (min-width: 768px) {
  .governance-principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .principle-item {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .principle-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.25rem;
  }
}

/* Certifications List */

@media (max-width: 992px) and (min-width: 768px) {
  .certification-item {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .certification-badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.25rem;
  }
}

/* Download Section */

@media (max-width: 992px) and (min-width: 768px) {
  .objects-download-section {
    padding: 3rem 0;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .documents-actions {
    gap: 0.75rem;
  }
}

@media (max-width: 992px) and (min-width: 768px) {
  .btn-document {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* =========================
   SMALL SCREEN RESPONSIVE
   (Mobile: < 768px)
========================= */

@media (max-width: 767px) {
  .objects-hero-section {
    padding: 5rem 0 2.5rem;
  }
}

@media (max-width: 767px) {
  .objects-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .objects-hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 767px) {
  .corporate-sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .sidebar-nav .nav-list {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
  }
}

@media (max-width: 767px) {
  .sidebar-nav .nav-item {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .sidebar-nav .nav-link {
    padding: 0.75rem 1rem;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    border-left: 3px solid transparent;
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .sidebar-nav .nav-link.active {
    border-left: 3px solid var(--gold-primary);
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .sidebar-nav .nav-link i {
    display: inline-block;
    margin-bottom: 0;
    font-size: 1rem;
    width: 20px;
  }
}

@media (max-width: 767px) {
  .card-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .object-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 767px) {
  .object-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .info-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .level-items {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .structure-item {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .governance-principles {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .principle-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .certification-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .documents-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .btn-document {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

/* =========================
   EXTRA SMALL SCREEN
   (Mobile: < 576px)
========================= */

@media (max-width: 575px) {
  .objects-hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575px) {
  .section-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 575px) {
  .object-content h4 {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .object-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .info-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 1.25rem;
  }
}

/* =========================
   FORCE VERTICAL STACKING - OVERRIDE ALL OTHER STYLES
========================= */

.objects-hero-section h1.objects-hero-title,
.objects-hero-section .objects-hero-title {
  display: block !important;
  width: 100% !important;
  float: none !important;
  position: static !important;
  margin-bottom: 2rem !important;
}

.objects-hero-section p.objects-hero-subtitle,
.objects-hero-section .objects-hero-subtitle {
  display: block !important;
  width: 100% !important;
  float: none !important;
  position: static !important;
  clear: both !important;
}