/* =========================================
   SECTION CONTAINERS
   ========================================= */
.mcg-section {
    margin-bottom: 50px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.mcg-header h1 {
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.mcg-header h1:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mcg-subheader {
    color: #2d3748;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.mcg-division-subheader {
    color: #4a5568;
    margin: 40px 0 20px;
    font-size: 1.5rem;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.mcg-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
}

.mcg-divider::before,
.mcg-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #e2e8f0;
}

.mcg-mini-header {
    color: #2d3748;
    margin: 40px 0 30px;
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mcg-mini-header:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   LOGO CONTAINERS
   ========================================= */
.mcg-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 15px;
    width: 100%;
}

.mcg-logo {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mcg-logo-grande {
    max-width: 100%;
    height: 250px;
    display: block;
    transition: transform 0.3s ease;
}

.mcg-logo-grande:hover {
    transform: scale(1.05);
}

.mcg-logo:hover {
    transform: scale(1.02);
}

/* =========================================
   EXPLANATION BLOCKS
   ========================================= */
.mcg-explanation {
    background-color: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mcg-explanation h2 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.mcg-explanation p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.mcg-note {
    background-color: #EDF2F7;
    padding: 15px;
    border-radius: 5px;
    margin-top: 30px;
    border-left: 3px solid #4A5568;
}

.mcg-note p {
    color: #4A5568;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   CARD COMPONENTS
   ========================================= */
.mcg-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mcg-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.mcg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mcg-card:hover::before {
    opacity: 0.05;
}

.mcg-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.mcg-card-private {
    background: linear-gradient(135deg, #e2e2e2 0%, #d0d0d0 100%);
    opacity: 0.85;
    border: 2px solid #bdbdbd;
    position: relative;
}

.mcg-card-private::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

.mcg-card-private {
    color: #666;
}

.mcg-card-private:hover {
    transform: translateY(-3px);
    border-color: #999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.mcg-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mcg-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    flex-grow: 1;
}

/* Card Icons */
.mcg-icon {
    width: 50px;
    height: auto;
    transition: all 0.3s ease;
}

.mcg-principal-icon {
    font-size: 24px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.mcg-principal-icon-grande {
    font-size: 50px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.mcg-card:hover .mcg-icon,
.mcg-card:hover .mcg-principal-icon {
    transform: scale(1.1);
}

.mcg-file-link {
    display: block;
    margin: 5px 0;
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mcg-file-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Secondary card text items (address, phone, business type) */
.mcg-secondary-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Container for secondary text items */
.mcg-info-container {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

/* Update mcg-content to allow vertical content arrangement */
.mcg-content-ubication {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* Ensure title and info container take full width after the logo */
.mcg-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mcg-logotipo {
  width: 33.33%;  /* One-third of the container width */
  height: 100%;   /* Height will adjust based on width, maintaining aspect ratio */
  max-height: 100%;  /* Ensure it doesn't exceed the container height */
  object-fit: contain;  /* Maintain aspect ratio while fitting in the box */
  align-self: center;  /* Center vertically within flex container */
  margin: 0;
}

.mcg-content-ubication {
  display: flex;
  align-items: center;  /* Center items vertically */
  gap: 15px;
}

.mcg-title-section {
  width: calc(66.67% - 15px);  /* Two-thirds minus the gap */
  flex: 0 0 auto;  /* Don't allow this to grow or shrink */
}

/* For smaller screens (existing behavior) */
@media screen and (max-width: 767px) {
    .mcg-content-ubication {
        flex-direction: column;
        align-items: center;
    }
    
    .mcg-logotipo {
        width: auto;
        height: 100px;
        margin-bottom: 10px;
    }
    
    .mcg-title-section {
        width: 100%;
        text-align: center;
    }

    .mcg-secondary-text {
        justify-content: center;
    }
    
    .mcg-info-container {
        align-items: center;
    }
}

/* =========================================
   FULLWIDTH IMAGE CARD
   ========================================= */
.mcg-fullwidth-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    margin: 0 auto;
    max-width: 800px;
}

.mcg-fullwidth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mcg-fullwidth-card:hover::before {
    opacity: 0.05;
}

.mcg-fullwidth-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.mcg-fullwidth-card-image-container {
    position: relative;
    width: 100%;
    min-height: 200px; /* Minimum height instead of fixed aspect ratio */
    border-radius: 10px;
    overflow: hidden;
}

.mcg-fullwidth-card-image {
    position: relative; /* Changed from absolute positioning */
    width: 100%;
    height: auto; /* Let height adjust automatically */
    object-fit: contain; /* Show the entire image */
    transition: transform 0.5s ease;
    display: block; /* Ensures proper rendering */
}

.mcg-fullwidth-card:hover .mcg-fullwidth-card-image {
    transform: scale(1.03);
}

/* =========================================
   FINAL LINK SECTION
   ========================================= */

.mcg-final-link {
    text-align: center;
    margin-top: 30px;
}

.mcg-final-link a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.mcg-final-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(102, 126, 234, 0.25);
}

/* =========================================
   PDF CONTAINER STYLES
   ========================================= */
.mcg-pdf-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.mcg-pdf-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #2d3748;
}

/* =========================================
   TABLE COMPONENTS
   ========================================= */
.mcg-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mcg-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}

.mcg-search-input {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    width: 300px;
    font-size: 15px;
}

.mcg-search-label {
    font-weight: bold;
    margin-right: 10px;
}

.mcg-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.mcg-table th {
    background-color: #2d3748;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.mcg-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.mcg-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.mcg-table tr:hover {
    background-color: #edf2f7;
}

.mcg-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}

.mcg-pagination-info {
    font-size: 14px;
}

.mcg-pagination-controls {
    display: flex;
    gap: 10px;
}

.mcg-pagination-button {
    padding: 5px 10px;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mcg-pagination-button:hover {
    background-color: #2d3748;
}

.mcg-pagination-button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}


/* =========================================
   CARD PRESENTATION COMPONENTS
   ========================================= */
.mcg-card-presentation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card Styling */
.mcg-card-presentation {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #000;
}

.mcg-card-presentation:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.mcg-card-presentation-header {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.mcg-card-presentation-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mcg-card-presentation-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #0c3c60;
}

.mcg-card-presentation-position {
    font-size: 1rem;
    font-weight: 600;
    color: #626262;
    margin: 0.5rem 0;
}

.mcg-card-presentation-party {
    display: inline-block;
    background-color: #0c3c60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Card Content */
.mcg-card-presentation-content {
    padding: 20px;
}

.mcg-card-presentation-row {
    margin-bottom: 0.8rem;
}

.mcg-card-presentation-label {
    font-weight: 600;
    color: #555;
    display: block;
    font-size: 0.9rem;
}

.mcg-card-presentation-value {
    display: block;
    margin-top: 0.2rem;
    color: #333;
    font-size: 0.9rem;
}

.mcg-card-presentation-email {
    display: block;
    color: #0c3c60;
    text-decoration: none;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    word-break: break-all;
}

.mcg-card-presentation-email:hover {
    text-decoration: underline;
}

.mcg-card-presentation-cv-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    color: #4a5568;
    transition: color 0.3s ease;
}

.mcg-card-presentation-cv-link:hover .mcg-card-presentation-cv-icon {
    color: #2d3748;
}

/* Card Footer */
.mcg-card-presentation-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.mcg-card-presentation-cv-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0c3c60;
    font-weight: 600;
}

.mcg-card-presentation-cv-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.mcg-card-presentation-cv-text {
    font-size: 0.9rem;
}

/* =========================================
   SECTION CARDS COMPONENTS
   ========================================= */
.mcg-section-card-container {
    margin-bottom: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mcg-section-card-title {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.mcg-section-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* =========================================
   FORM COMPONENTS - GLOBAL
   ========================================= */
/* General Form Container */
.mcg-form-container {
  max-width: 850px;
  margin: 2rem auto;
  background-color: #f7fafc;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.mcg-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mcg-form-header h1 {
  color: #2c5282;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.mcg-form-subtitle {
  color: #3182ce;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.mcg-form-description {
  color: #2d3748;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* Form Panels */
.mcg-form-panel {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mcg-section-title {
  color: #3182ce;
  font-size: 1.3rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Form Fields */
.mcg-form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.mcg-form-group {
  margin-bottom: 1.5rem;
  flex: 1;
}

.mcg-modern-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.mcg-required {
  color: #e53e3e;
  margin-left: 3px;
}

.mcg-modern-form input[type="text"],
.mcg-modern-form input[type="tel"],
.mcg-modern-form input[type="email"],
.mcg-modern-form input[type="url"],
.mcg-modern-form input[type="number"],
.mcg-modern-form select,
.mcg-modern-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.mcg-modern-form input:focus,
.mcg-modern-form select:focus,
.mcg-modern-form textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
  background-color: #ebf8ff;
}

/* File Upload */
.mcg-file-upload {
  position: relative;
  margin-bottom: 0.5rem;
}

.mcg-file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.mcg-file-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  background-color: #3182ce;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mcg-file-button:hover {
  background-color: #2c5282;
}

.mcg-icon {
  font-size: 1.2rem;
}

.mcg-file-preview {
  margin-top: 1rem;
  min-height: 50px;
  border: 1px dashed #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem;
}

/* Radio Buttons */
.mcg-radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.mcg-radio {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.mcg-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.mcg-radio-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  margin-right: 8px;
}

.mcg-radio input:checked ~ .mcg-radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #3182ce;
  border-radius: 50%;
}

.mcg-radio input:checked ~ .mcg-radio-mark {
  border-color: #3182ce;
}

.mcg-radio-text {
  font-size: 1rem;
  color: #2d3748;
}

/* Custom Select */
.mcg-modern-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233182ce' viewBox='0 0 16 16'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

/* Helper Text */
.mcg-field-info {
  display: block;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* Submit Button */
.mcg-form-submit {
  text-align: center;
  margin-top: 2rem;
}

.mcg-submit-btn {
  background-color: #48bb78;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(72, 187, 120, 0.2);
}

.mcg-submit-btn:hover {
  background-color: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(72, 187, 120, 0.3);
}

.mcg-submit-btn:active {
  transform: translateY(0);
}

.mcg-cancel-btn {
  background-color: #e53e3e;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(72, 187, 120, 0.2);
}

.mcg-cancel-btn:hover {
  background-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(72, 187, 120, 0.3);
}

.mcg-cancel-btn:active {
  transform: translateY(0);
}

/* Form Validation */
.mcg-modern-form input:invalid:focus,
.mcg-modern-form select:invalid:focus,
.mcg-modern-form textarea:invalid:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

/* File Preview */
.mcg-file-preview img {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .mcg-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .mcg-form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .mcg-form-header h1 {
    font-size: 1.8rem;
  }
  
  .mcg-form-panel {
    padding: 1rem;
  }
  
  .mcg-radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =========================================
   INFO CARDS COMPONENTS
   ========================================= */
.mcg-info-cards-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Logo container */
.mcg-info-logo-container {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
}

.mcg-info-logo {
  max-width: 200px;
  height: auto;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mcg-info-logo:hover {
  transform: scale(1.05);
}

/* Header */
.mcg-info-header {
  text-align: center;
  margin-bottom: 40px;
}

.mcg-info-main-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color, #1a3b5d);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.mcg-info-main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color, #1a3b5d), var(--secondary-color, #3498db));
  border-radius: 2px;
}

/* Card styles */
.mcg-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: mcgFadeInUp 0.6s both;
}

.mcg-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mcg-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-color, #3498db), var(--primary-color, #1a3b5d));
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mcg-info-card:hover::before {
  width: 7px;
}

/* Icon styles */
.mcg-info-icon-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mcg-info-icon {
  font-size: 60px;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mcg-info-card:hover .mcg-info-icon-container {
  transform: scale(1.1) rotate(5deg);
}

/* Icon color variations */
.mcg-info-icon-blue {
  background: linear-gradient(135deg, #2c3e50, #1a3b5d);
}

.mcg-info-icon-purple {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.mcg-info-icon-red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.mcg-info-icon-yellow {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.mcg-info-icon-green {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.mcg-info-icon-teal {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.mcg-info-icon-lightblue {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.mcg-info-icon-darkteal {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

.mcg-info-icon-orange {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.mcg-info-icon-gray {
  background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.mcg-info-icon-darkblue {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

/* Title styles */
.mcg-info-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color, #1a3b5d);
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.mcg-info-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color, #1a3b5d), var(--secondary-color, #3498db));
  border-radius: 2px;
}

/* Content styles */
.mcg-info-content {
  color: #444444;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mcg-info-content p {
  margin-bottom: 15px;
}

/* List styles */
.mcg-info-list {
  padding-left: 25px;
  margin-bottom: 0;
}

.mcg-info-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 10px;
}

.mcg-info-list li:last-child {
  margin-bottom: 0;
}

/* Animation for cards */
@keyframes mcgFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mcg-info-card:nth-child(2) {
  animation-delay: 0.2s;
}
.mcg-info-card:nth-child(3) {
  animation-delay: 0.4s;
}
.mcg-info-card:nth-child(4) {
  animation-delay: 0.6s;
}
.mcg-info-card:nth-child(5) {
  animation-delay: 0.8s;
}
.mcg-info-card:nth-child(6) {
  animation-delay: 1.0s;
}

/* Responsive styles */
@media (max-width: 992px) {
  .mcg-info-main-title {
    font-size: 2.4rem;
  }
  
  .mcg-info-card {
    padding: 30px 25px;
  }
  
  .mcg-info-title {
    font-size: 1.8rem;
  }
  
  .mcg-info-icon-container {
    width: 100px;
    height: 100px;
  }
  
  .mcg-info-icon {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  .mcg-info-cards-container {
    padding: 15px 10px;
  }
  
  .mcg-info-main-title {
    font-size: 2rem;
  }
  
  .mcg-info-card {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .mcg-info-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .mcg-info-logo {
    max-width: 150px;
  }
  
  .mcg-info-main-title {
    font-size: 1.8rem;
  }
  
  .mcg-info-icon-container {
    width: 90px;
    height: 90px;
  }
  
  .mcg-info-icon {
    font-size: 45px;
  }
  
  .mcg-info-content {
    font-size: 0.95rem;
  }
}

/* Additional styles for Contact page */
.mcg-map-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mcg-map-container iframe {
  display: block;
  border-radius: 10px;
  width: 100%;
}

.mcg-address {
  padding: 10px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcg-inline-icon {
  color: #3498db;
  margin-right: 5px;
}

.mcg-contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
  gap: 5px;
}

.mcg-link {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.mcg-link:hover {
  color: #1a3b5d;
  text-decoration: underline;
}

.mcg-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mcg-image-link {
  display: inline-block;
  text-decoration: none;
}

.mcg-featured-image {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mcg-image-link:hover .mcg-featured-image {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mcg-note {
  font-style: italic;
  color: #1a3b5d;
  margin-top: 10px;
}

/* Responsive tweaks for contact page */
@media (max-width: 768px) {
  .mcg-map-container iframe {
    height: 350px;
  }
  
  .mcg-featured-image {
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .mcg-map-container iframe {
    height: 300px;
  }
  
  .mcg-featured-image {
    max-width: 200px;
  }
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Header responsive styles */
    .mcg-header h1 {
        font-size: 1.8rem;
    }

    .mcg-subheader {
        font-size: 1.5rem;
    }

    .mcg-division-subheader {
        font-size: 1.3rem;
    }
    
    /* Logos responsive styles */
    .mcg-logos-container {
        margin: 5px auto 10px;
    }
    
    /* Explanation responsive styles */
    .mcg-explanation h2 {
        font-size: 1.4rem;
    }
    
    /* Card content responsive styles */
    .mcg-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mcg-title {
        margin-top: 15px;
    }

    .mcg-search-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mcg-search-input {
        width: 100%;
    }
    
    .mcg-table-container {
        overflow-x: auto;
    }
    
    .mcg-glossary-container {
        padding: 15px;
    }
    
    .mcg-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .mcg-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .mcg-mini-header {
        font-size: 1.7rem;
    }
    
    .mcg-section-card-title {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .mcg-card-presentation {
        margin-bottom: 1.5rem;
    }
    
    .mcg-card-presentation-photo {
        width: 120px;
        height: 120px;
    }
}

/* Card wrapper to hold card and buttons */
.mcg-card-wrapper {
    position: relative;
    margin-bottom: 30px;
}

/* Position buttons over the bottom of the card */
.mcg-card-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10; /* Ensure buttons are above the card */
}

/* Button styling */
.mcg-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
}

.mcg-action-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.mcg-edit-btn {
    background-color: #3498db;
}

.mcg-edit-btn:hover {
    background-color: #2980b9;
}

.mcg-delete-btn {
    background-color: #e74c3c;
}

.mcg-delete-btn:hover {
    background-color: #c0392b;
}

/* Image Selector Component Styles */
.mcg-image-selector {
    margin-bottom: 20px;
}

.mcg-image-selector-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.mcg-media-button {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcg-media-button:hover {
    background-color: #e0e0e0;
}

.mcg-media-button .dashicons {
    margin-right: 5px;
}

.mcg-image-preview-container {
    margin-top: 10px;
    min-height: 40px;
}

.mcg-image-preview-container.has-preview {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.mcg-image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mcg-image-preview img {
    max-width: 100%;
    max-height: 200px;
    margin-bottom: 5px;
}

.mcg-filename {
    font-size: 12px;
    color: #666;
}

.mcg-field-info {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.mcg-field-description {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}

.mcg-required {
    color: red;
}

.mcg-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.mcg-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.mcg-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/**
 * Global Toast Notification System Styles
 */
.mcg-toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcg-toast {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transform: translateX(-110%);
    transition: transform 0.3s ease-out;
}

.mcg-toast-show {
    transform: translateX(0);
}

.mcg-toast-hide {
    transform: translateX(-110%);
}

.mcg-toast-icon {
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.mcg-toast-content {
    flex-grow: 1;
}

.mcg-toast-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.mcg-toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.mcg-toast-close:hover {
    color: #555;
}

/* Toast types */
.mcg-toast-success {
    border-left: 4px solid #4caf50;
}

.mcg-toast-success .mcg-toast-icon {
    color: #4caf50;
}

.mcg-toast-error {
    border-left: 4px solid #f44336;
}

.mcg-toast-error .mcg-toast-icon {
    color: #f44336;
}

.mcg-toast-warning {
    border-left: 4px solid #ff9800;
}

.mcg-toast-warning .mcg-toast-icon {
    color: #ff9800;
}

.mcg-toast-info {
    border-left: 4px solid #2196f3;
}

.mcg-toast-info .mcg-toast-icon {
    color: #2196f3;
}

/* Button Base Styles */
.mcg-add-btn,
.mcg-remove-btn {
  border: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

/* Add Button Styles - Green with plus icon */
.mcg-add-btn {
  background-color: #38a169;
  color: white;
}

.mcg-add-btn:hover {
  background-color: #2f855a;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.mcg-add-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.mcg-add-btn i {
  margin-right: 6px;
  font-size: 0.85rem;
}

/* Remove Button Styles - Red for deletions */
.mcg-remove-btn {
  background-color: #e53e3e;
  color: white;
  font-size: 0.85rem;
}

.mcg-remove-btn:hover {
  background-color: #c53030;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.mcg-remove-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Paragraph controls positioning */
.paragraph-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
}

/* When inside a form group for compact layout */
.mcg-form-group .mcg-add-btn {
  margin-top: 10px;
}

/* Map container - primary fix for 0px height issue */
.mcg-map-osm-container {
    height: 500px !important;
    width: 100% !important;
    border-radius: 10px;
    border: 2px solid #ddd;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mcg-map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
}

body.mcg-map-fullscreen-active {
    overflow: hidden;
}

/* Fullscreen button styling */
.mcg-fullscreen-control a {
    background: white;
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #333;
}

.mcg-fullscreen-control a:hover {
    background: #f4f4f4;
}

/* Popup styling */
.mcg-map-osm-popup {
    padding: 10px;
}

.mcg-map-osm-popup h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.mcg-map-osm-popup p {
    margin: 5px 0;
    color: #666;
}

/* Logo styling in popup */
.mcg-map-osm-logo {
    margin-bottom: 10px;
    text-align: center;
}

.mcg-map-osm-logo img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Button styling */
.mcg-map-osm-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 5px;
    font-size: 0.9em;
}

.mcg-map-osm-btn-route {
    background: #28a745;
}

/* Routing container */
.leaflet-routing-container {
    background-color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    max-width: 320px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Custom marker icon */
.mcg-map-osm-marker-icon {
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}