/* <!--***********************************

Author: Terence Onyeweke
email: onyeweketerence@gmail.com 

************************************--> */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

main{
}

:root {
    --primary: #002357;
    --secondary: #D1634A;
}

p, a, li, a, span, .dropbtn {
    font-size: 1.1rem !important; 
    font-weight: 300 !important;  
    line-height: 1.6 !important;
}

@media (max-width: 640px) {
    p, a, li, a, span, .dropbtn {
        font-size: 1rem !important; 
    }
}

.navba .dropdown .dropbtn, .navba-links ul li a{
    font-size: 1.1rem !important; 
    font-weight: 300 !important;  
    line-height: 1.6 !important;
}

/* GENERAL CSS FOR THE TITLES AND SECTION CAPTIONS */

.head-box {
    display: flex;
    flex-direction: column;
}

.head-box .title {
    display: flex;
    align-items: baseline;
}
.head-box .title img{
    display: inline-block;
    /* height: 3px; */
    padding-bottom: 3px;
    margin-right: 10px;
}

.head-box h2 {
    font-size: 34px;
    font-weight: 600;
}

.head-box .title p {
    color: var(--primary);
}


.read-post {
    display: flex;
    align-items: center; /* Align the text and image on the same line */
    width: fit-content;
    cursor: pointer;
    color: var(--primary);
    white-space: nowrap; /* Prevents the text from wrapping */
}

.read-post span {
    margin-right: 8px; /* Adds some space between text and the icon */
}

.read-post img {
    width: 20px !important;
    height: 20px;
    margin-left: 10px; /* Adds a margin on the left of the icon */
    transition: transform 0.4s ease;
}

/* Hover effect */
.read-post:hover img {
    transform: translateX(10px); /* Adjust the translation on hover */
}


/* other pages hero */

.other-hero {
    min-height: 20vh; /* Dynamic height relative to the viewport */
    background-image: url('../img/background-img.png'); /* Replace with your image path */
    background-size: cover; /* Ensure the image fully covers the hero section */
    background-repeat: no-repeat;
    background-position: center; /* Center the image */
    width: 100%; /* Full width of the parent container */
    display: flex; /* Use flexbox for aligning content */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative; /* For additional overlays if needed */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content {
    text-align: center;
    color: white; /* Contrasting color for readability */
    padding: 1rem; /* Space around the content */
    font-size: 1.5rem; /* Adjust font size as needed */
    line-height: 1.5; /* Improve readability */
    max-width: 90%; /* Limit content width for better layout on smaller screens */
}

.hero-content p {
    font-size: 14px; /* Adjust for smaller text */
    margin: 0.5rem 0; /* Consistent spacing */
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
    .other-hero {
        height: 25vh; /* Increase height on smaller screens */
    }

    .hero-content {
        font-size: 1.2rem; /* Reduce font size slightly */
    }

    .hero-content p {
        font-size: 12px; /* Adjust paragraph font size for readability */
    }
}



/* hero ends */


.profile-pic {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}


.name {
    color: var(--primary);
    font-weight: 500px;
    margin-top: 10px;
    margin-bottom: 0;
}

.designation {
    font-size: 16px;
    margin: 0 auto;
    color: var(--secondary);
}


/* ul li */

ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Align list to the left */
}
li {
    display: flex; /* Use flexbox for proper alignment */
    align-items: flex-start; /* Align icon and text at the top */
    margin-bottom: 10px; /* Add space between list items */
}
.fa-check {
    color: var(--secondary); /* Style for the tick icon */
    margin-right: 10px; /* Space between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
}
li span {
    flex: 1; /* Allow the text to take up remaining space */
}


/* ol li */

ol {
    list-style-type: none; /* Remove default numbering */
}

ol li::before {
    content: counter(list-item) ". "; /* Display custom numbers */
    counter-increment: list-item;
    color: var(--secondary); /* Set the number color to my secondary theme color */
    font-weight: bold;
    margin-right: 10px;
}

ol {
    counter-reset: list-item; /* Start counting from 1 */
}



/* modals */
/* Custom Modal Title */
.modal-header .sm-sub-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Custom Close Button */
.modal-header .close {
    font-size: 1.2rem;
    color: #555;
}

/* Custom Button */
.button_one {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.button_one:hover {
    background-color: var(--secondary); /* Darker shade of primary */
    color: #fff;
}

@media (max-width: 460px)  {
    .top-nav p a{
      font-size: .8rem !important;
    }
  }



/* Scroll To Top Btn */
#scrollBtn {
    display: flex;
    justify-content: center; /* Horizontally center the icon */
    align-items: center; /* Vertically center the icon */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    animation: bubble 2s infinite ease-in-out; /* Apply animation */
    border: 2px solid var(--secondary);
    width: 60px; /* Define width of the circle */
    height: 60px; /* Define height of the circle */
}

/* Keyframes for the bubbling animation */
@keyframes bubble {
    0%, 100% {
        transform: translateY(0); /* Start at normal position */
    }
    50% {
        transform: translateY(-10px); /* Move upwards */
    }
}

#scrollBtn i {
    font-size: 30px;
    /* Ensure the icon is centered by adjusting its size and alignment */
}

/* Hover effect */
#scrollBtn:hover {
    background-color: var(--secondary);
    transition: 1s;
}


 /* for the header line */

 header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
 }