/*.tabs-container {
  display: flex;
  margin-top: 40px;
  margin-left: 40px;
}

.tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #f8f8f8;
}

.tab {
  cursor: pointer;
  padding: 15px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
}

.tab:hover {
  background-color: rgba(4, 62, 121, 0.7);
}

.tab.active {
  background-color: rgb(4, 62, 121);
  border-bottom-color: rgb(4, 62, 121);
  color: white;
}

.tab-content {
  display: none;
  overflow: visible;
  border: 1px solid #f8f8f8;
  border-radius: 0 0 5px 5px;
  text-align: center;
  background-color: #f8f8f8;
}

.tab-content.active {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.tab-content img {
  max-width: 500px;
  height: auto;
  margin: 40px 30px;
}

.tab-content h2,
p {
  margin-right: 100px;
  height: auto;
}

.tab-content h2 {
  margin-top: 0;
  text-align: center;
}

.tab-content p {
  margin-top: 30px;
  height: auto;
}

.text-content {
  text-align: left;
  height: auto;
  margin-left: 40px;
}

@media (max-width: 600px) {
  .tabs-container {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .tab {
    width: 100%;
    margin-right: 0;
  }

  .tab-content.active {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
  }

  .tab-content img {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .text-content h2 {
    margin-top: 0;
    text-align: center;
  }

  .text-content p {
    margin-top: 10px;
    height: auto;
    text-align: center;
  }

  .text-content {
    margin-left: 100px;
  }
}*/

.tabs-container {
  display: flex;
  margin-top: 40px;
  margin-left: 40px;
}

.tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #f8f8f8;
}

.tab {
  cursor: pointer;
  padding: 25px 35px;
  background-color: #f8f8f8;
  font-size: 1.3em;
  font-weight: 600;
  min-width: 120px;
}

.tab:hover {
  background-color: rgba(4, 62, 121, 0.7);
}

.tab.active {
  background-color: rgb(4, 62, 121);
  border-bottom-color: rgb(4, 62, 121);
  color: white;
}

/* Content wrapper */
.tab-content {
  display: none;
  border: 1px solid #f8f8f8;
  border-radius: 0 0 5px 5px;
  background-color: #f8f8f8;
  padding: 20px;
}

.tab-content.active {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

/* Left column: image + header + empty paragraph */
.left-col {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  max-width: 500px;
}

.left-col img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.left-col h2 {
  margin: 0 0 10px 0;
  text-align: center;
}

.left-col p {
  margin-bottom: 60px; 
  height: auto; /* so it grows with text */
}

/* Right column: text */
.right-col {
  flex: 1;
  text-align: center;
  margin-left: 200px;     /* space from the image */
  padding-right: 20px;   /* space from right edge of container */
}

.right-col p {
  margin-top: 0;
  line-height: 1.5;
}

/* Responsive stacking */
@media (max-width: 800px) {
  .tab-content.active {
    flex-direction: column;
    gap: 20px;
    align-items: center; /* centers both columns */
  }
  
  .left-col,
  .right-col {
    max-width: 100%;
    margin-left: 0; /* reset margin */
    padding-right: 0; /* reset padding */
    text-align: center;
  }

  .left-col img {
    max-width: 100%;
  }
}

/* Brotherhood Tab Styles */
#tab1 .gallery1 {
  width: 80%;
  margin: 0 auto;
}

#tab1 .slider1 {
  width: 100%;
}

/* Service Tab Styles */
#tab3 .left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 65%;
}

#tab3 .gallery3 {
  width: 100%;
  max-width: 1000px;
}

#tab3 .right-col {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 60px;
  max-width: 35%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#tab3 .right-col h2 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 25px;
}

#tab3 .right-col p {
  line-height: 1.6;
  margin-top: 15px;
  max-width: 90%;
}

#tab3.tab-content.active {
  align-items: center;
}

#tab4 .left-col {
  align-items: flex-start;   /* keep text left-aligned */
  justify-content: center;   /* vertically center content */
  text-align: left;
  margin-left: 60px;
  max-width: 60%;
  height: 100%;
}


#tab4 .left-col h2 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 25px;       /* extra space below heading */
}

#tab4 .left-col p {
  line-height: 1.6;
  margin-top: 15px;
  max-width: 90%;            /* give paragraph wider area */
}


#tab4 .right-col img[src*="nmdp-logo.png"] {
  max-width: 250px;          /* keep logo smaller than gallery */
  margin: 15px auto 0 auto;  /* centered below gallery */
  display: block;
}


/* Center Philanthropy text + heading vertically */
#tab4.tab-content.active {
  align-items: center;   /* vertically center left and right columns */
}

#tab5 .left-col {
  align-items: flex-start;   /* keep text left-aligned */
  justify-content: center;   /* vertically center content */
  text-align: left;
  margin-left: 60px;
  max-width: 50%;
  height: 100%;
}


#tab5 .left-col h2 {
  font-weight: bold;
  font-size: 2.5em;
  margin-bottom: 25px;       /* extra space below heading */
}

#tab5 .left-col p {
  line-height: 1.6;
  margin-top: 15px;
  max-width: 90%;            /* give paragraph wider area */
}

#tab5.tab-content.active {
  align-items: center;   /* vertically center left and right columns */
}

/* Culture Map Styles - Centered */
.map-title {
    color: #043E79;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

#culturalMap {
    position: relative;
    width: 90%;
    max-width: 450px;
    height: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto; /* Center horizontally */
}

/* Fix for the right column to ensure proper centering */
#tab5 .right-col {
    flex: 1;
    max-width: 50%;
    text-align: center;
    margin-left: 20px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content in the column */
    justify-content: flex-start;
}

/* Ensure all children of right-col are centered */
#tab5 .right-col > * {
    width: 100%;
    max-width: 100%;
}

/* Force the datamap SVG to center within its container */
#culturalMap svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

.datamap {
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
}

/* Center the map legend */
.map-legend {
    margin: 15px auto 0 auto;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Center the instruction text */
#tab5 .right-col p {
    text-align: center;
    margin: 10px auto;
    max-width: 90%;
}

/* Tooltip styles */
.datamaps-hoverover {
    font-size: 14px !important;
    padding: 12px !important;
    min-width: 160px !important;
    max-width: 220px !important;
    border-radius: 8px !important;
    background: white !important;
    color: #333 !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.3) !important;
    text-align: center !important;
    line-height: 1.4em !important;
    pointer-events: auto !important;
    border: 2px solid #043E79 !important;
    z-index: 10000 !important;
}

.datamaps-hoverover img {
    display: block !important;
    max-width: 40px !important;
    margin: 0 auto 8px auto !important;
    border-radius: 4px !important;
}

.datamap path {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.datamap path:hover {
    stroke: #043E79 !important;
    stroke-width: 2px !important;
}

/* Responsive design */
@media (max-width: 1200px) {
    #tab5 .right-col {
        max-width: 55%;
        margin-left: 15px;
    }
    
    #culturalMap {
        width: 95%;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    #tab5.tab-content.active {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    #tab5 .left-col, 
    #tab5 .right-col {
        max-width: 100%;
        margin: 0;
        padding: 10px;
        width: 100%;
    }
    
    #culturalMap {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    #culturalMap {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .map-title {
        font-size: 1.2em;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure tab content doesn't cause horizontal scroll */
#tab5.tab-content {
    overflow-x: hidden;
    box-sizing: border-box;
}

















































