.text-center {
text-align:center;
}

.regimg {
width:100%;
}

.mtop0{margin-top: 0px;}
.mtop5{margin-top: 5px;}
.mtop10{margin-top: 10px;}
.mtop15{margin-top: 15px;}
.mtop20{margin-top: 20px;}
.mtop30{margin-top: 30px;}
.mtop40{margin-top: 40px;}
.mtop50{margin-top: 50px;}
.mtop60{margin-top: 60px;}
.mtop70{margin-top: 70px;}
.mtop80{margin-top: 80px;}
.mtop90{margin-top: 90px;}
.mtop100{margin-top: 100px;}

.mbot0{margin-bottom: 0px;}
.mbot5{margin-bottom: 5px;}
.mbot10{margin-bottom: 10px;}
.mbot20{margin-bottom: 20px;}
.mbot30{margin-bottom: 30px;}
.mbot40{margin-bottom: 40px;}
.mbot50{margin-bottom: 50px;}
.mbot60{margin-bottom: 60px;}
.mbot70{margin-bottom: 70px;}
.mbot80{margin-bottom: 80px;}
.mbot90{margin-bottom: 90px;}
.mbot100{margin-bottom: 100px;}

/* Responsive Embed  */

/* Base responsive embed container */
.membed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio by default */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.membed iframe,
.membed object,
.membed embed,
.membed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Aspect ratio variants */
.membed--16by9 {
  padding-bottom: 56.25%; /* 16:9 = 9/16 = 0.5625 */
}

.membed--4by3 {
  padding-bottom: 75%; /* 4:3 = 3/4 = 0.75 */
}

.membed--21by9 {
  padding-bottom: 42.857%; /* 21:9 = 9/21 = 0.42857 */
}

.membed--1by1 {
  padding-bottom: 100%; /* 1:1 = 1/1 = 1 */
}

.membed--9by16 {
  padding-bottom: 177.78%; /* 9:16 (vertical video) */
}

/* Widescreen variant */
.membed--widescreen {
  padding-bottom: 56.25%;
}

/* Panoramic variant */
.membed--panoramic {
  padding-bottom: 33.333%; /* Ultra wide */
}

/* Custom padding option - use with inline style */
/* Example: <div class="membed membed--custom" style="padding-bottom: 60%;"> */
.membed--custom {
  padding-bottom: 0;
}

    /* Blog-specific styles with blog prefix */
    .blog-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        font-family: Arial, sans-serif;
    }
    
    .blog-header {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 2px solid #002FA1;
    }
    
    .blog-header h1 {
        color: #002FA1;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }
    
    @media (min-width: 768px) {
        .blog-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    .blog-card {
        background: #fff;
        border: 2px solid #002FA1;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .blog-card:hover,
    .blog-card:focus-within {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 47, 161, 0.2);
    }
    
    .blog-card-link-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }
    
    .blog-card-link-wrapper:focus {
        outline: 3px solid #002FA1;
        outline-offset: 2px;
    }
    
    .blog-card-image-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        background-color: #f0f0f0;
        overflow: hidden;
    }
    
    .blog-card-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blog-card-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .blog-card-title {
        color: #002FA1;
        font-size: 1.5rem;
        margin: 0 0 10px 0;
        line-height: 1.3;
    }
    
    .blog-card-date {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .blog-card-teaser {
        color: #333;
        line-height: 1.6;
        margin-bottom: 15px;
        flex-grow: 1;
    }
    
    /* Pagination */
    .blog-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 40px;
        flex-wrap: wrap;
    }
    
    .blog-pagination a,
    .blog-pagination span {
        padding: 10px 15px;
        border: 2px solid #002FA1;
        border-radius: 4px;
        text-decoration: none;
        color: #002FA1;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .blog-pagination a:hover,
    .blog-pagination a:focus {
        background-color: #002FA1;
        color: #fff;
        outline: 2px solid #002FA1;
        outline-offset: 2px;
    }
    
    .blog-pagination .blog-current-page {
        background-color: #002FA1;
        color: #fff;
    }
    
    .blog-pagination .blog-disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }
    
    /* Single post view */
    .blog-single {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .blog-single-back {
        display: inline-block;
        margin-bottom: 20px;
        padding: 10px 20px;
        background-color: #002FA1;
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .blog-single-back:hover,
    .blog-single-back:focus {
        background-color: #001f6b;
        outline: 2px solid #002FA1;
        outline-offset: 2px;
    }
    
    .blog-single-title {
        color: #002FA1;
        font-size: 2.5rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .blog-single-meta {
        color: #666;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }
    
    .blog-single-image-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        margin-bottom: 30px;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .blog-single-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blog-single-content {
        line-height: 1.8;
        color: #333;
        font-size: 1.1rem;
    }
    
    .blog-single-content p {
        margin-bottom: 20px;
    }
    
    .blog-single-content h2 {
        color: #002FA1;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .blog-single-content h3 {
        color: #002FA1;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .blog-single-content ul,
    .blog-single-content ol {
        margin-bottom: 20px;
        padding-left: 40px;
    }
    
    .blog-single-content ul {
        list-style-type: disc;
    }
    
    .blog-single-content ol {
        list-style-type: decimal;
    }
    
    .blog-single-content li {
        margin-bottom: 10px;
    }
    
    .blog-single-content ul ul,
    .blog-single-content ol ul {
        list-style-type: circle;
    }
    
    .blog-single-content ul ul ul,
    .blog-single-content ol ul ul {
        list-style-type: square;
    }
    
    .blog-single-content a {
        color: #002FA1;
        text-decoration: underline;
    }
    
    .blog-single-content a:hover,
    .blog-single-content a:focus {
        color: #001f6b;
    }
    
    .blog-single-content blockquote {
        margin: 20px 0;
        padding-left: 20px;
        border-left: 4px solid #002FA1;
        font-style: italic;
        color: #555;
    }
    
    .blog-single-content strong {
        font-weight: bold;
    }
    
    .blog-single-content em {
        font-style: italic;
    }
    
    .blog-single-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px 0;
    }
    
    .blog-single-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }
    
    .blog-single-content table th,
    .blog-single-content table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
    
    .blog-single-content table th {
        background-color: #f5f5f5;
        font-weight: bold;
    }
    
    .blog-single-content code {
        background-color: #f5f5f5;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: monospace;
        font-size: 0.95em;
    }
    
    .blog-single-content pre {
        background-color: #f5f5f5;
        padding: 15px;
        border-radius: 4px;
        overflow-x: auto;
        margin: 20px 0;
    }
    
    .blog-single-content pre code {
        background-color: transparent;
        padding: 0;
    }
    
    .blog-empty {
        text-align: center;
        padding: 60px 20px;
        color: #666;
    }
    
    .blog-empty h2 {
        color: #002FA1;
        margin-bottom: 15px;
    }
    
    /* Skip link for accessibility */
    .blog-skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #002FA1;
        color: white;
        padding: 8px;
        text-decoration: none;
        z-index: 100;
    }
    
    .blog-skip-link:focus {
        top: 0;
    }
    
    /* Screen reader only text */
    .blog-sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

       /* Contact Form Styles */
        .cform-container {
            max-width: 600px;
        }

        #gencontactform {
            background: #ffffff;
            padding: 0;
        }

        .cform-group {
            margin-bottom: 20px;
        }

        .cform-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .cform-required {
            color: #d32f2f;
            font-weight: bold;
        }

        .cform-input,
        .cform-textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            box-sizing: border-box;
        }

        .cform-input:focus,
        .cform-textarea:focus {
            outline: none;
            border-color: #1a2d4d;
            box-shadow: 0 0 0 3px rgba(26, 45, 77, 0.1);
        }

        .cform-textarea {
            min-height: 120px;
            resize: vertical;
        }

        .cform-optional {
            color: #666;
            font-size: 13px;
            font-weight: normal;
            margin-left: 4px;
        }

        .cform-spam-note {
            font-size: 12px;
            color: #666;
            margin-top: 6px;
            font-style: italic;
        }

        .pbutton {
            display: inline-block;
            background-color: #1a2d4d;
            color: #ffffff;
            padding: 14px 32px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.1s ease;
            text-align: center;
        }

        .pbutton:hover {
            background-color: #2a3d5d;
            transform: translateY(-1px);
        }

        .pbutton:active {
            transform: translateY(0);
        }

        #showData {
            margin-top: 20px;
        }

        /* Responsive adjustments */
        @media (max-width: 600px) {
            .cform-input,
            .cform-textarea {
                font-size: 16px; /* Prevents zoom on iOS */
            }
        }

/* Active state for navigation - add this to your mstyles.css file */

/* Desktop active state - matches the hover effect */
@media (min-width: 901px) {
    .nav-menu > li > a.active {
        color: var(--accent-color);
        border-top: 4px solid var(--accent-color);
        border-bottom: 4px solid var(--accent-color);
    }
    
    /* Make sure active state stays even on hover */
    .nav-menu > li > a.active:hover,
    .nav-menu > li > a.active:focus {
        color: var(--accent-color);
        border-top: 4px solid var(--accent-color);
        border-bottom: 4px solid var(--accent-color);
    }
}

/* Mobile active state - matches the hover effect */
@media (max-width: 900px) {
    .nav-menu > li > a.active {
        background: var(--accent-color) !important;
        color: var(--text-light) !important;
        outline: none !important;
        outline-offset: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Keep active state on hover/focus in mobile */
    .nav-menu > li > a.active:hover,
    .nav-menu > li > a.active:focus {
        background: var(--accent-color) !important;
        color: var(--text-light) !important;
    }
}