/*
Theme Name: MS Theme
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: A custom WordPress theme with modern design and animations
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mstheme
*/

/* Base Styles */
:root {
    --primary-color: #0a2540;
    --secondary-color: #00a3e1;
    --text-color: #333;
    --light-text: #ffffff;
    --transition: all 0.3s ease;
     --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}
h1, h2, h3, h4, .section-title, .block-title,
.banner-content h1, .service-item h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}
.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}


h1 {
    margin-bottom: 1rem;
}

.about-section p {
    margin: 0.5rem 0;
}
.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: end;
}

.main-navigation li {
    margin-left: 2rem;
    position: relative;
}

.main-navigation a {
    color: #2a2a2a;
    font-weight: 500;
    position: relative;
    font-size: 19px;
}

/* Header submenu dropdown */
.primary-menu li {
    position: relative;
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    display: none;
    z-index: 9999;
}

.primary-menu .sub-menu li {
    margin: 0;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 16px;
    white-space: nowrap;
}

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

.main-navigation a:hover {
    color: #083a85;
}
#site-navigation {
    display: flex;
    align-items: end;
}


/* Banner Section */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 1rem;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.banner {
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}

/* About Section */
.about-section {
    padding: 2rem 0;
}
.about-img {
    float: right;
    margin-left: 1rem;
    width: 300px;
}

/* Blocks Section */
.blocks-section {
    padding: 2rem 5%;
    background-color: #f9f9f9;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.block-item {
    background: var(--light-text);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.block-item h3 {
    transition: var(--transition);
    color: #ffffff;
}

.block-item .block-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: #083a85;
    color: var(--light-text);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    text-align: left;
}

.block-item:hover .block-content {
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-item {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background-size: cover;
}

.service-item:hover {
    background: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: #083a85;
    color: var(--light-text);
    padding: 2rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.about-content-wrap ul.wp-block-list {
    margin-left: 30px;
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
}
.abt-title {
    font-size: 24px;
}
h1,h2{
    color:#083a85;
}
.site-branding {
    line-height: 0;
}
/* service section responsive */

.service-hover{position:relative}
.service-hover .hover-heading {position:absolute;align-content:center;width:100%;height: 100%;top: 0;left: 0;text-align: center;}
.service-hover .hover-para{position:absolute;align-content:center;width:100%;height: 100%;top: 0;left: 0;text-align: center;opacity:0;padding:0 20px}
.service-hover:hover .hover-para{opacity:1;color: #fff;font-size: 20px;}
.service-hover:hover .hover-heading{opacity:0}
.service-hover img{width:100%;}

.service-hover .hover-lists {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    padding: 80px 30px;
    opacity:0;
    color:#fff;
}
.service-hover:hover .hover-lists{opacity:1};
/* Responsive Styles */

section.service-static-banner img, section.about-static-banner img  {
    width: 100%;
}


.wp-block-list {
    padding-left: 20px;
}

section.about-static-banner,.service-static-banner,section.page-static-banner,.single-post-container {
    position: relative;
    margin-top: var(--header-height);
}

.page-static-banner img{
    height:300px;
    object-fit:cover;
}
.banner-title-wrap {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
}

.banner-title-wrap h1 {
    color: #fff;
    font-size: 40px;
}
section.service-static-banner {
    margin-bottom: 30px;
}
section.page-static-banner {
    position: relative;
}

.page-banner-title-wrap {
    position: absolute;
    top: 0;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.page-banner-title-wrap h1{color: #74b5dc;font-size:40px}
.single-service-page {
    margin-top: 40px;
}
.has-medium-font-size *,.has-medium-font-size {
    /* font-size: 16px !important; */
}

.seven-steps {
    min-height: 561px;
}
  .service-hover {
    flex-basis: 27% !important;
}
.block-column-wrapper {
    gap: 50px;
}
.mobile-block-title {display:none;}
.desktop-block-title {display:block;}
.block-para {margin-bottom: 20px;}
section.work-static-banner {
    position: relative;
}

.work-banner-title-wrap {
    position: absolute;
    top: 35px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
}
.read-more-btn {
    text-align: right;
    margin-top: 10px;
}

.read-more-btn a {
    background-color: #083a85;
    padding: 7px 10px;
    color: #fff;
    display: inline-block;
    margin-top: 1;
}
h1.work-banner-title {
    color: #74b5dc;
    font-size: 40px;
}
.single-service-page .entry-content p,.single-service-page .entry-content ul {
    font-size: 16px !important;
}
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .about-content, .about-image {
        flex: 0 0 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    .site-branding .custom-logo {
    width: 200px;
    }
    .about-img {width:100%}
    .footer-widgets {
        flex-direction:column;
    }
    .footer-widget {
       margin-top: 20px;
    }
    .site-footer {
        padding-top: 2rem;
    }
    .menu-toggle{
        position: relative;
        top: -30px;
        right: 20px;
    }
    .main-navigation ul{
        background-color: #fff;
    }
    .banner{
        height:25vh;
        min-height:25vh;
    }
    
#masthead .container {
    width: 100%;
}

#masthead {
    padding-bottom: 0px;
}
.about-content {
    display: inline-block;
    width: 100%;
    margin-top: 30px;
}
}
/* Mobile navigation + submenu behaviour */
@media (max-width: 768px) {
    /* Show the nav wrapper on mobile */
    .main-navigation {
        display: block;
        width: 100%;
    }

    /* Hide the list by default; show when nav has .toggled */
    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #ffffff;
    }

    .main-navigation.toggled .primary-menu {
        display: block;
    }

    .primary-menu > li {
        margin: 0;
        border-bottom: 1px solid #eee;
        position: relative; /* keep for potential arrows */
    }

    .primary-menu > li > a {
        display: block;
        padding: 0.75rem 1rem;
    }

    /* Submenu: stacked, not absolute dropdown */
    .primary-menu .sub-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        box-shadow: none;
        background-color: #f7f7f7;
        padding: 0;
        margin: 0;
        display: none; /* hidden by default */
    }

    /* Indent submenu items */
    .primary-menu .sub-menu a {
        padding: 0.6rem 1.75rem;
        font-size: 16px;
        white-space: normal;
    }

    /* When parent li has .submenu-open, show its submenu */
    .primary-menu li.submenu-open > .sub-menu {
        display: block;
    }

    /* Optional: arrow indicator for items with children */
    .primary-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 2rem;
    }

    .primary-menu .menu-item-has-children > a::after {
        content: "▾";
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
    }

    .primary-menu li.submenu-open > a::after {
        content: "▴";
    }

    /* Keep your existing .menu-toggle placement */
    .menu-toggle {
        display: inline-block;
        position: relative;
        top: -30px;
        right: 10px;
    }
    ul.wp-block-list {
    margin-left: 20px;
}
.seven-steps {
    min-height: auto;
    width:100% !important;
    min-height: 200px;
    }
  /*.about-section p, #work p, #work ul, #work ul li, .about-section ul li, .work-section li, .framework-description  {
    font-size: 20px !important;
	}*/
  
}

/* Desktop offset for fixed header */
@media (min-width: 769px) {
    .service-hover .hover-heading{padding:0 10px}
}
/* Mobile offset (often taller header with logo + menu icon) */
@media (max-width: 768px) {
    .banner-title-wrap h1,.page-banner-title-wrap h1 {
    font-size: 36px;   
}
.seven-steps img { object-fit: contain !important;}
/*.mobile-block-css p {font-size:20px !important;}
.single-service-page .entry-content p, .single-service-page .entry-content ul{font-size:20px !important}*/
.mobile-block-title, .block-para {/*font-size: 20px;*/margin-bottom: 20px;display:block;}
.block-para{margin-bottom:20px}
.desktop-block-title {display:none;}
.block-column-wrapper{gap:0px}
.block-item{height:300px;}
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}



/* Blog Archive Card Layout */
.blog-archive-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-archive-container {
    width: 100%;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
}

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

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #b32424;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-link {
    margin-top: auto;
}

.blog-card-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.blog-card-link a:hover {
    color: #b32424;
}

.blog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.blog-pagination .nav-previous a,
.blog-pagination .nav-next a {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.blog-pagination .nav-previous a:hover,
.blog-pagination .nav-next a:hover {
    background: #b32424;
    color: #fff;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .blog-archive-wrapper {
        padding: 30px 15px;
    }
    
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-header .page-title {
        font-size: 2rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.2rem;
    }
}


/* Single Post Template Styles */
.single-post-wrapper {
    padding: 0;
    max-width: 1140px;
    margin: 0 auto;
}

.single-post-container {
    width: 100%;
}

.single-post-article {
    background: #fff;
}

/* Featured Image */
.single-post-featured-image {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.single-post-content {
    margin: 0 auto;
    padding: 40px 0px;
}

/* Post Header */
.single-post-header {
    margin-bottom: 40px;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #333;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.single-post-meta .post-author,
.single-post-meta .post-date {
    display: flex;
    align-items: center;
}

/* Social Share Buttons */
.single-post-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.share-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-email:hover {
    background: #333;
    color: #fff;
}

.share-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.share-twitter:hover {
    background: #000;
    color: #fff;
}

.share-copy:hover {
    background: #666;
    color: #fff;
}

/* Post Body */
.single-post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post-body p {
    margin-bottom: 20px;
}

.single-post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.single-post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.single-post-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: #333;
}

.single-post-body ul,
.single-post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post-body li {
    margin-bottom: 10px;
}

.single-post-body a {
    color: #b32424;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post-body a:hover {
    color: #8f1717;
    text-decoration: underline;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.single-post-body blockquote {
    border-left: 4px solid #b32424;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    font-size: 1.15rem;
}

.single-post-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.single-post-body pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Post Footer */
.single-post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.post-tags {
    font-size: 0.9rem;
}

.post-tags .tags-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.post-tags a {
    color: #666;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.post-tags a:hover {
    color: #b32424;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    padding: 30px 0px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.post-navigation a:hover {
    color: #b32424;
    background: #f5f5f5;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Page Links */
.page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-links a:hover {
    background: #b32424;
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .single-post-content {
        padding: 30px 15px;
    }
    
    .single-post-title {
        font-size: 2rem;
        padding:20px;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .single-post-social-share {
        flex-wrap: wrap;
    }
    
    .single-post-body {
        font-size: 1rem;
    }
    
    .single-post-body h2 {
        font-size: 1.75rem;
    }
    
    .single-post-body h3 {
        font-size: 1.35rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}