/* General Styles for All Devices */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: #0047BA;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF5A1F;
    text-decoration: none;
}

/* Header Layout */
.site-header {
    background-color: #121d24; 
    color: #ffffff;
    padding: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#branding {
    flex: 1;
}

#cta-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header #branding .logo {
    height: 115px;
}

/* CTA Styles */
.cta {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 20px;
    transition: all 0.3s ease-in-out;
}

.cta p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

.cta p span {
    color: #ffffff;
    font-weight: 700;
    display: block;
}

.cta:hover {
    background: linear-gradient(90deg, #005f73, #008ab3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search Bar */
#search-bar {
    display: flex;
    align-items: center;
}

#search-bar input[type="text"] {
    padding: 8px 12px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    margin-right: 10px;
}

#search-bar button {
    padding: 8px 12px;
    background-color: #FF5A1F;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-bar button:hover {
    background-color: #FF7F50;
}

#search-bar button img {
    width: 20px;
    height: 20px;
}


/* Navigation Bar */
nav {
    margin-top: 20px;
    text-align: center;
    background-color: #121d24; /* Dark background for contrast */
    padding: 15px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav ul li {
    display: inline-block;
    position: relative;
}

nav ul li a {
    color: #fff; /* Update link color */
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
}

nav ul li a:hover {
    color: #ffffff; /* Hover color to white */
}

/* Underline effect */
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ec4c2c; /* Underline color */
    transition: width 0.3s;
    margin-top: 5px;
}

nav ul li a:hover::after {
    width: 100%; /* Animate underline on hover */
}


/* Container Styles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.container a {
    text-decoration: none; /* Remove underline */
}

/* Blog Tiles Styles */
.blog-tiles {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-tile {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.blog-tile img.tile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 30px;
    border-radius: 8px;
}

.blog-tile h2 {
    font-size: 1.8em;
    color: #004080;
    margin: 10px 0;
}

.blog-tile h2:hover {
    color: #FF5A1F;
}

.blog-tile p {
    font-size: 1em;
    color: #666;
    margin: 0;
    padding: 5px 0;
}

.blog-tile a.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0047BA;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-tile a.read-more:hover {
    color: #FF5A1F;
}

.blog-tile-content {
    flex: 1;
}

.category-box {
    display: inline-block;
    padding: 3px 14px !important; /* Adequate padding for the text */
    background-color: #46AACF;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    max-width: fit-content;
}

.blog-post-container {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-post-container img.post-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    border-radius: 8px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #004080;
    border: 1px solid #004080;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #004080;
    color: white;
}

.pagination a.active {
    background-color: #004080;
    color: white;
}

/* Footer Styles */
.footercontainer {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;    
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-3, .col-md-6, .col-lg-2, .col-lg-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-lg-3 {
  flex: 0 0 30%;
  max-width: 30%;
}

.col-lg-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

#footer {
  background: #121d24;
  padding: 0 0 30px 0;
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  background: #15222b;
  border-bottom: 1px solid #1d303c;
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 28px;
  margin: 0 0 15px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif;
  color: #fff;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #ff4a17;
  color: #fff;
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #ff5e31;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #fff;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #ff4a17;
}

#footer .footer-top .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type=email] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

#footer .footer-top .footer-newsletter form input[type=submit] {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  background: #ff4a17;
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

#footer .footer-top .footer-newsletter form input[type=submit]:hover {
  background: #ff5e31;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

#footer .credits a {
  transition: 0.3s;
}

.site-footer {
    background-color: #121d24; /* Changed to black */
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 20px 0;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #FF5A1F;
}

.footer-back-to-top {
    margin-top: 20px;
}

.footer-back-to-top a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-back-to-top a:hover {
    color: #FF5A1F;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
    }

    #branding .logo {
        margin-bottom: 20px;
        height: 80px;
        width: auto;
    }

    #cta-search-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .cta {
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
    }

    #search-bar input[type="text"] {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Header Adjustments for Mobile */
    .header-top {
        flex-direction: column;
        align-items: center;
    }

    #branding .logo {
        margin-bottom: 10px;
        height: 80px;
        width: auto;
    }

    /* Adjust CTA for Mobile */
    .cta {
        background: none;
        padding: 0;
        font-size: 14px;
        font-weight: 500;
        border-radius: 0;
        width: auto;
        height: auto;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .cta p {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        color: #ffffff;
    }

    /* Centered Search Bar for Mobile */
    #search-bar {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    #search-bar input[type="text"] {
        width: 70%;
        margin-right: 10px;
    }

    #search-bar button {
        width: 20%;
        display: inline-block;
    }

    /* Navigation Links in Mobile */
    nav ul {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
        margin-top: 10px;
    }

    nav ul li {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
        color: #ffffff;
        text-transform: uppercase;
    }

    nav ul li a:hover {
        background-color: #FF7F50;
        color: #fff;
        transition: background-color 0.3s ease;
    }
    
 #footer {
        padding: 30px 10px;
    }

    #footer .footer-top {
        text-align: center; /* Center all content */
    }

    #footer .footercontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure all columns stack vertically on mobile */
    .row {
        flex-direction: column; /* Stack rows vertically */
        align-items: center; /* Center align content */
    }

    /* Make sure footer info (Phone, Email) is centered */
 #footer {
        padding: 30px 10px;
    }

    #footer .footer-top {
        text-align: center; /* Center all content */
    }

    #footer .footercontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure all columns stack vertically on mobile */
    .row {
        flex-direction: column; /* Stack rows vertically */
        align-items: center; /* Center align content */
    }

    /* Make sure footer info (Phone, Email) is centered */
    #footer .footer-info {
        width: 100%;
        margin-bottom: 20px;
    }

    #footer .footer-info h3,
    #footer .footer-info p {
        text-align: center;
    }

    /* Useful links section */
    #footer .footer-links ul  {
        list-style: none;
        padding: 0;
        text-align: center;
        margin: 0 auto; /* Ensure ul is centered */
    }

    #footer .footer-links ul li {
        margin-bottom: 10px;
        display: block;
    }

    /* Footer Newsletter */
    #footer .footer-newsletter {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    #footer .footer-newsletter form {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center them horizontally */
        margin-top: 20px;
    }

     #footer .footer-newsletter form input[type="email"] {
        width: 100%;
        max-width: 280px; /* Set a max-width for better layout */
        padding: 8px; /* Add padding for better appearance */
        margin-bottom: 10px; /* Space between input and button */
        border: 1px solid #ddd; /* Add a border */
        border-radius: 4px; /* Rounded corners */
        box-sizing: border-box;
    }
    
    #footer .footer-newsletter form input[type="submit"] {
        width: 35%;
        max-width: 280px; /* Set a max-width for consistency */
        padding: 10px;
        background-color: #FF5A1F;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
     #footer .footer-newsletter form input[type="submit"]:hover {
        background-color: #FF7F50; /* Add hover effect */
    }

    /* Center the copyright and credits */
    #footer .copyright,
    #footer .credits {
        text-align: center;
        margin-top: 10px;
        font-size: 12px;
    }

    /* Centering the footer links */
    #footer .footer-links {
        text-align: center;
        width: 100%;
    }

    /* Ensure that each link in the list takes up full width for centering */
    #footer .footer-links ul li a  {
        display: inline-block;
        width: 100%;
    }
    
    #footer .footer-links ul {
        list-style: none;
        padding: 0;
        text-align: center;
        margin: 0 auto; /* Ensure ul is centered */
    }

    #footer .footer-links ul li {
        margin-bottom: 10px;
        display: flex;
        justify-content: center; /* Center the contents horizontally */
        align-items: center; /* Vertically center the contents */
    }

    /* Adjust the icon position inside the list item */
    #footer .footer-links ul li i {
        margin-right: 8px; /* Add some spacing between the icon and text */
        display: inline-block; /* Ensure it lines up properly */
    }

    /* Ensure links are centered */
    #footer .footer-links ul li a {
        display: inline-block;
        text-align: center;
        width: auto;
    }
}



/* Responsive Adjustments for Screens Below 520px */
@media (max-width: 520px) {
    .blog-tile {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .blog-tile img.tile-image {
        width: 100%;
        height: auto;
        margin-bottom: 10px; /* Ensure image stays aligned properly */
    }

    .category-box {
        font-size: 0.8em; /* Adjust font size to fit screen */
        padding: 2px 10px; /* Adjust padding for smaller screens */
    }

    .blog-tiles {
        padding-left: 10px; /* Add padding on smaller screens */
        padding-right: 10px; /* Ensure right padding */
    }
}