/*
Theme Name: NexaWebSEO
Author: Denis Mwario
Description: Modern SEO & Digital Marketing WordPress Theme
Version: 1.0
*/

/* =========================
   GLOBAL RESET
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #EFF6FF;
    margin: 0;
}

a {
    color: #003C7D;
    text-decoration: none;
}

a:hover {
    color: #5cba3c;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
    color: #003c7d !important;
    margin-top: 0;
}

.custom-h1-section h1 {
    color: #ffffff !important;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   HEADER + NAVIGATION
========================= */
.site-header {
    background: #EFF6FF;
    width: 100%;
}

.site-branding a {
    font-size: 22px;
    font-weight: bold;
    color: #0B1F3B;
}

/* MENU BASE */
.menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    font-weight: 600;
    color: #0B1F3B;
}

/* DROPDOWN */
.menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    list-style: none;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.menu li:hover > .sub-menu {
    display: block;
}

.menu .sub-menu li {
    border-bottom: 1px solid #eee;
}

.menu .sub-menu li:last-child {
    border-bottom: none;
}

.menu .sub-menu a {
    display: block;
    padding: 12px 15px;
}

.menu .sub-menu a:hover {
    background: #0B1F3B;
    color: #fff;
}

/* DROPDOWN ARROW */
.menu li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 10px;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    background: linear-gradient(135deg, #003C7D, #5cba3c);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.hero-section h1 {
    font-size: 48px;
}

.hero-section p {
    font-size: 18px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #003C7D;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* =========================
   SECTIONS
========================= */
.services-section,
.portfolio-section,
.cta-section {
    padding: 80px 20px;
    text-align: center;
}

.cta-section {
    background: #5cba3c;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =========================
   POSTS GRID
========================= */
.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.posts-grid article {
    flex: 1 1 calc(33% - 20px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #003C7D;
    color: #fff;
    padding: 40px 20px;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0B1F3B;
}

@media(max-width:768px){

    .menu {
        display: none;
        flex-direction: column;
        background: #0B1F3B;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px;
    }

    .menu a {
        color: #fff;
    }

    .menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
		    padding-left: 130px;
    }

    .posts-grid article {
        flex: 1 1 100%;
    }
}
/*cta-section mobile fliendly*/
@media (max-width: 768px) {

    .cta-section {
        padding: 50px 15px !important;
        text-align: center !important;
    }

    .cta-section h1 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .cta-section .btn-primary {
        display: block !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }

}

/* =========================
   FOOTER GRID FIX
========================= */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* equal columns */
    gap: 30px;
	    align-items: start !important;
}

.footer-col {
    min-width: 0; /* prevents overflow */
}

/* Prevent text overflow */
.footer-col p,
.footer-col a,
.footer-col li {
    word-break: break-word;
    overflow-wrap: break-word;
}

/*footer*/
.site-footer a {
    color: #ffffff;
}

.site-footer  {
    color: #ffffff;
}

.site-footer a:hover {
    color: #5cba3c;
}

.site-footer h3{
    color: #5cba3c !important;
	text-transform: uppercase;
}


.site-footer a:hover {
    margin-left: 10px;
    
}

.site-footer p {
 margin-bottom: -0.5em;
    border-bottom: 1px dotted #5cba3c;
	    padding: 8px 0;
}



/* contact form */
	.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.col-md-6 {
    width: 50%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

textarea.form-control {
 width: 100%;
 height: 100px;
 /* Adjust the height as desired */
 resize: vertical;
 /* Allow vertical resizing if needed */
}


input[type=submit] {
    color: #ffffff;
    background-color: #5cba3c;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-appearance: button;
    padding: 10px 20px;
}

/*Whatsapp button*/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-float i {
    font-size: 18px;
}

.whatsapp-float:hover {
    background: #1ebe5d;
	color: #003C7D;
}

/*blog page*/
/* =========================
   SINGLE BLOG POST HEADER
========================= */

.single-post-header {
    height: 600px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.single-post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 20px;
}

.single-post-overlay h1 {
    color: #ffffff !important;
    font-size: 42px;
    line-height: 1.3;
    margin: 0;
    max-width: 900px;
}

/* =========================
  BLOG PAGE LAYOUT
========================= */
/* =========================
   BLOG HEADER
========================= */

.blog-header {
    height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.blog-header-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 20px;
}

.blog-header-overlay h1 {
    color: #fff !important;
    font-size: 42px;
    margin: 0;
}

/* =========================
   BLOG LISTING
========================= */

.blog-listing-page {
    padding: 70px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 22px;
}

.blog-date {
    color: #777;
    font-size: 13px;
    margin-bottom: 10px;
}

.blog-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.blog-card h3 a {
    color: #003C7D;
    text-decoration: none;
}

.blog-card p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #003C7D;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
}

.read-more-btn:hover {
    background: #5cba3c;
    color: #fff;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .blog-header {
        height: 220px;
    }

    .blog-header-overlay h1 {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   SINGLE POST LAYOUT
========================= */

.single-post-page {
    padding: 60px 20px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    align-items: start;
}

/* Force both columns to align at top */

.single-post-content,
.single-post-sidebar {
    align-self: start;
    margin: 0;
}

/* =========================
   CONTENT BOX
========================= */

.single-post-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    margin: 0;
}

.post-meta {
    margin: 0 0 20px;
    color: #777;
    font-size: 14px;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content {
    line-height: 1.8;
}

/* =========================
   SIDEBAR
========================= */

.single-post-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.single-post-sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5cba3c;
}

.single-post-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   RECENT POSTS
========================= */

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ececec;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-post-content {
    flex: 1;
}

.recent-post-content h5 {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.recent-post-content h5 a {
    color: #003C7D;
    text-decoration: none;
}

.recent-post-content h5 a:hover {
    color: #5cba3c;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .single-post-header {
        height: 220px;
    }

    .single-post-overlay h1 {
        font-size: 28px;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-box,
    .single-post-sidebar {
        padding: 20px;
    }

    .recent-post-thumb img {
        width: 80px;
        height: 60px;
    }

}
 

@media (max-width: 768px) {

    .single-post-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .single-post-content {
        order: 1;
    }

    .single-post-sidebar {
        order: 2;
        width: 100%;
    }

}



/* =========================
   MOBILE FOOTER FIX
========================= */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr; /* stack vertically */
        gap: 20px;
    }

    .footer-col {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    /* Fix icon list overflow */
    .elementor-icon-list-item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }


	@media (max-width: 768px) {

    .footer-grid {
        display: flex !important;
        flex-direction: column !important; /* force vertical stacking */
        gap: 20px;
    }

    .footer-col {
        width: 100% !important;
        max-width: 100% !important;
    }

}
	
	@media (max-width: 768px) {

    .footer-col {
        text-align: left !important;
    }

}


	