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;
}

#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;
}

#innercon{
padding:3% !important;
}
#mainone{
padding:3% !important;
background-color:#ffffff;
}

#rightone img {
  width: 100%;
  height: auto;      /* no distortion */
  border-radius: 10px;
}


#maintwo{
padding:0% !important;
background:#333;
}

#learnafricanlanguages h2{
color:#FFFFFF !important;
text-align:center;
font-size: 30px;
padding: 3px;
}

.alert.text-center.cookiealert a{
color:#FFFFFF !important;
text-decoration: underline !important;
}

.alert.text-center.cookiealert a:hover{
color:#d4b40f !important;;
}

.tableinfo{
width:80% !important;
table-layout: fixed;
margin:0px auto;
border-collapse: separate;
border-spacing: 22px 22px;
}

.tableinfo th, td{
background-color:#333 !important;
padding:1px !important;
border-radius:1px;
border:0px !important;
}

.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 a{
display:block;
}

.copyright{
font-size:14px;
background-color:#1d1d1d;
padding:13px;
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;
}

/* Center the hero on desktop (keeps mobile untouched) */
@media (min-width: 992px) {
  /* center the whole hero section */
  #mainone {
    display: flex;
    justify-content: center;
  }

  /* cap the hero width and keep it centered */
  #mainone .row {
    width: min(1100px, 92vw);
    margin: 0 auto;
    align-items: center;   /* vertical align with the image */
  }

  /* nudge text inward and keep image from dominating */
  #leftone { padding-right: 24px; max-width: 560px; }
  #rightone { display: flex; justify-content: center; }
  #rightone img { max-width: 520px; }
}
