* {
  box-sizing: border-box;
}

body {
  background-color: #E0FFFF;
}

.container-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    background-color: #162033;
    color: aquamarine;
    padding: 16px 0;
    border-radius: 10px;
}
.logo {
    grid-column: 2 / 3;
}
img {
    width: 250px;
    height: 50px;
}
ul {
    grid-column: 8 / 12;
    justify-self: end;
}
ul li {
    list-style: none;
    display: inline-block;
    margin-left: 24px;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, [col-start] 1fr);
  gap: 20px;
}

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

/* Mobile first */
.container > * {
  background-color: #1E90FF;
  padding: 10px;
  grid-column: col-start / span 12;
  border-radius: 10px;
}

@media (min-width: 576px) {
  .sidebar {
    grid-column: col-start / span 3;
    grid-row: 3;
    background-color: #0D2C54;
  }
  .ads {
    grid-column: col-start / span 3;
    background-image: url('https://selectafex.com/wp-content/uploads/2026/01/fx_box_flame.png');
    background-size: cover; /* Adjust as necessary */
    background-position: center; /* Position the image */
    height: 250px; /* Set a height to see the background */
    border: solid 4px #162033;
    display: block; /* Make it a block element to occupy the grid space */
}
  .content, .footer {
    grid-column: col-start 4 / span 9;
  }
  nav ul {
    display: flex;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .nav {
    grid-column: col-start / span 2;
    grid-row: 2 / 4;
  }
  .content {
    grid-column: col-start 3 / span 8;
    grid-row: 2 / 4;
    border: 1px solid;
    border-radius: 10px;
    background-color: #192A3D;
  }
  .sidebar {
    grid-column: col-start 11 / span 2;
    border-radius: 10px;
  }
  .ads {
    grid-column: col-start 11 / span 2;
    border-radius: 10px;
  }
  .footer {
    grid-column: col-start / span 12;
    border-radius: 10px;
    background-color: #162033;
  }
  nav ul {
    flex-direction: column;
  }
}
.container-2 {
  display: grid;
  height: 950px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  background-color: dodgerblue;
  border: 0px;
  border-radius: 10px;
  padding: 10px;
  gap: 10px;
}

/* Modified to target both div and a elements which are direct children of container-2 */
.container-2 > div, .container-2 > a {
  background-color: #f1f1f1;
  border: 0px solid black;
  border-radius: 10px;
  padding: 0px;
  padding-bottom: 0px;
  font-size: 30px;
  text-align: center;
  /* Ensure the anchor tag acts like a block-level grid item */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* Remove default link styling for the new grid item */
  text-decoration: none; 
  color: inherit;
}

ul a {
    color: aquamarine;
}
.nav {
    background-color: #0D2C54;
    border-radius: 10px;
}
.container-2 div img {
    border: 0px;
    border-radius: 10px;
}
.bg {
   background-repeat: no-repeat;
   background-size: cover;
   /* Now that .bg is the grid item, it gets the 200px height naturally */
}
h4 {
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 500;
    margin: 0;
    
}
span {
    background: rgb(0, 0, 0); /* Fallback for older browsers without RGBA-support */
    background: rgba(0, 0, 0, 0.3);
}

a:link {
  text-decoration: none;
  font-size: 20px;
  font-family: Verdana;
}

 /* unvisited link */
a:link {
  color: blue;
}

/* visited link */
a:visited {
  color: slategray;
}

/* mouse over link */
a:hover {
  color: hotpink;
}

/* selected link */
a:active {
  color: white;
} 
.sidebar-widget {
    background-color: rgba(249, 249, 249, 0.0); /* 80% opacity background */
    padding:10px 15px 15px; /* Padding inside the widget */
    border: 0px solid #ccc; /* Border for the widget */
    border-radius: 8px; /* Rounded corners */
    margin: 10px 0; /* Margin between widgets */
}

.sidebar-heading {
    font-size: 24px; /* Font size for the heading */
    margin: 10px 0 3px; /* Margin below the heading */
}

.sidebar-heading a {
    font-family: montserrat;
    text-decoration: none; /* Remove underline from link */
    color: #2EC8F8; /* Link color */
}

.sidebar-heading a:hover {
    text-decoration: underline; /* Underline effect on hover */
}

.sidebar-description {
    font-family: montserrat;
    font-size: 16px; /* Font size for the description */
    text-align: justify; /* Justify the text */
    line-height: 1.3; /* Adjust line height for readability */
    color: #ffffff;
    border-bottom: solid 2px #1E90FF;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin: 0; /* Remove default margin */
}