html,body
{
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
}

body {
font-family:'Nunito Sans', sans-serif !important;
color: #1f1c1f !important;
}

a{
text-decoration:none !important;
color: #1f1c1f !important;
}

p {
line-height:34px;
color: #1f1c1f !important;
}

#fact p {
  text-align: center;
}

#logotext h1{
text-align:center;
font-family: 'Nunito Sans', sans-serif;
font-size: 50px !important;
color: #1f1c1f;
margin-bottom: 0px;
font-weight: 700;
letter-spacing: 2px;
padding:30px;
}

hr:not([size]) {
width:30%;
margin:0px auto;
}
.navlink {
text-align:center;
padding:2%;
}

.navlink a{
font-weight:700;
letter-spacing:1.5px;
text-transform:uppercase;
font-size:13px;
padding:20px 30px !important;
}

.navlink a:hover {
color:#d4b40f !important;
}

#con {
background-color: #fbfbfb;
padding: 1% 2% !important;
padding-bottom: 10%;
}

#innercon{
padding:3% !important;
}

/* Keep aspect ratio; avoid distortion */
/* Map container + framed figure (non-clickable) */
.map-container { padding: 0 16px; }

.map-figure{
  max-width: 1100px;           /* caps size on large screens */
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.map-figure img{
  display: block;
  width: 100%;
  height: auto;                /* preserves aspect ratio */
  border-radius: 8px;
}

.map-caption{
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 6px;
}

.map-caption a{
  color: #6b6b6b !important;
  text-decoration: underline !important;
}
.map-caption a:hover{ color: #d4b40f !important; }


#languages{
padding:1% !important;
background-color:#ffffff;
}

.table{
width:60% !important;
table-layout: fixed;
margin:0px auto;
border-collapse: separate;
border-spacing: 25px 25px;
}

.table a:hover {
  color:#d4b40f !important;
}

th, td{
background-color:#f7f7f7 !important;
padding:10px !important;
border-radius:10px;
border:0px !important;
}

#maintwo{
padding:0% !important;
background:#333;
}

#learnafricanlanguages h2{
color:#FFFFFF !important;
text-align:center;
font-size: 30px;
padding: 3px;
}

#maintwo a{
display:block;
}

.copyright{
font-size:14px;
background-color:#1d1d1d;
padding:10px;
color:#f1f1f1;
text-align:center;
}

.copyright a{
  color:#FFFFFF !important;
}

#titletext h2{
text-align:center !important;
font-family: 'Nunito Sans', sans-serif;
font-size: 30px !important;
color: #1f1c1f;
margin-bottom: 0px;
font-weight: 700;
padding-top:25px;
padding-bottom:10px;
padding-right:15px;
padding-left:15px;
}

@media screen and (max-width: 800px) {
  #logotext h1{
  font-size: 40px !important;
  }
  .navlink a{
  display:block;
  }

  .table{
  width:100% !important;
  border-spacing: 15px 15px;
  position:relative;
  }

}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #3a373a;
}

.hero-ctas .btn {
  border-radius: 999px;
  padding: 10px 18px;
}

.hero-ctas .btn-outline-dark:hover {
  background: #1f1c1f;
  color: #fff !important;
}

.hero-points {
  margin-top: 18px;
  padding-left: 18px;
  list-style: disc;
  color: #3a373a;
}

/* Ensure dark buttons keep white text */
.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
  color: #fff !important;
}

/* Outline button: dark text by default, white on hover */
.btn-outline-dark { color: #1f1c1f !important; }
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #1f1c1f;
  color: #fff !important;
}

/* Region card styles */
.region-card {
  background:#f7f7f7;
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  height:100%;
}
.region-card:hover {
  transform: translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.09);
}
.region-head { margin-bottom:10px; }
.region-title {
  font-size:20px;
  font-weight:800;
  margin:0;
  color:#1f1c1f;
}
.lang-list { list-style:none; padding:0; margin:6px 0 0; }
.lang-list li { margin:6px 0; }
.lang-list a {
  display:inline-block;
  padding:4px 8px;
  border-radius:8px;
  text-decoration:none;
  color:#1f1c1f;
  transition: background .15s ease, color .15s ease;
}
.lang-list a:hover {
  background:#1f1c1f;
  color:#fff !important;
}

/* Subheading under H1 */
.page-sub{
  text-align:center;
  margin:8px auto 16px;
  color:#3a373a;
  line-height:1.6;
  max-width:760px;
  padding:0 12px;
}

/* Map frame + caption */
.map-figure{ margin:0; }
.map-figure img{ display:block; width:100%; height:auto; }
.map-figure{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:12px;
  padding:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.map-caption{
  text-align:center;
  font-size:13px;
  color:#6b6b6b;
  margin-top:6px;
}
.map-caption a{ color:#6b6b6b !important; text-decoration:underline !important; }
.map-caption a:hover{ color:#d4b40f !important; }

/* Mark current page in the nav */
.navlink a[aria-current="page"]{
  opacity:.7;
  pointer-events:none;
}

/* Reduce excess bottom space under the map area */
#con { padding-bottom:5% !important; }

/* Region intro above the table (if you add it in HTML) */
.region-intro{
  width:60%;
  max-width:720px;
  margin:12px auto 0;
  text-align:center;
  color:#3a373a;
  line-height:1.6;
}

/* Better keyboard visibility */
a:focus-visible{
  outline:2px dashed #d4b40f;
  outline-offset:2px;
}

@media screen and (max-width: 800px){
  .region-intro{ width:90%; }
  /* Table already goes 100% in your CSS—good. */
}
/* Reduce excess bottom space under the map area */
#con { padding-bottom:5% !important; }

/* Region intro above the table (if you add it in HTML) */
.region-intro{
  width:60%;
  max-width:720px;
  margin:12px auto 0;
  text-align:center;
  color:#3a373a;
  line-height:1.6;
}

/* Better keyboard visibility */
a:focus-visible{
  outline:2px dashed #d4b40f;
  outline-offset:2px;
}

@media screen and (max-width: 800px){
  .region-intro{ width:90%; }
  /* Table already goes 100% in your CSS—good. */
}

/* Center the map on wide screens */
.map-container {
  max-width: 1100px;   /* same cap as before */
  margin: 0 auto;      /* centers the whole block */
  padding: 0 16px;     /* small side padding */
}

/* Let the figure fill the centered container */
.map-figure {
  margin: 0;           /* remove default figure margins */
  float: none;         /* in case something upstream floated it */
}
