/*-----------------------------------------------------------------------------------

    Theme Name: Monity - CCTV & Security HTML Template
    Description: CCTV & Security HTML Template
    Author: Website Design Templates
    Version: 1.1

-----------------------------------------------------------------------------------*/

/* ----------------------------------------------------------------
			[ All CSS Plugins & Default Classes File ]
-----------------------------------------------------------------*/

/* Banner Text Overlay */
.banner-text-overlay {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 3rem;
    border-radius: 15px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 768px) {
    .banner-text-overlay {
        padding: 1.5rem 2rem;
        border-radius: 10px;
    }
}

/* Logo Sizing - Make logo larger to fit header height */
.navbar-brand img {
    max-height: 85px !important;
    transition-duration: 0.5s;
}

.scrollHeader .navbar-brand img {
    max-height: 75px !important;
    transition-duration: 0.5s;
}

/* Adjust navbar header padding to accommodate larger logo */
.navbar-header-custom {
    padding: 8px 0 6px 0;
}

.scrollHeader .navbar-header-custom {
    padding: 6px 0 4px 0;
}

/* Mobile logo sizing */
@media screen and (max-width: 991px) {
    .navbar-brand img {
        max-height: 65px !important;
    }
    
    .navbar-header-custom {
        padding: 4px 0;
    }
}

/* Service Card Image Height Consistency */
.card-style7 img.d-block {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Fix Services 2 mouseover card visibility */
section:nth-of-type(2) .card-style7 {
    overflow: visible !important;
}

section:nth-of-type(2) .card-style7 .card-body {
    overflow: visible !important;
}

section:nth-of-type(2) .card-style7 .service-data {
    overflow: visible !important;
}

/* Ensure Services 2 cards appear above Services 1 */
section:nth-of-type(2) {
    position: relative;
    z-index: 10;
}

section:nth-of-type(2) .card-style7:hover {
    z-index: 20;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Override Bootstrap .small class to make font size smaller */
.small {
    font-size: 0.7em !important;
}

/* New Certifications & Accreditations Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #5ab2b5;
}

.certification-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.certification-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.certification-item.empty {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Small certifications grid for testimonial section */
.certifications-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    justify-items: stretch;
    align-items: stretch;
}

.certification-item-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 120px;
    width: 100%;
    height: 100%;
}

.certification-item-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #5ab2b5;
}

.certification-logo-small {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.certification-logo-small img {
    max-width: 90%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.certification-title-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.certification-item-small.empty {
    background: transparent;
    box-shadow: none;
    border: none;
    min-height: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .certification-logo {
        width: 80px;
        height: 80px;
    }
    
    .certifications-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .certification-logo-small {
        width: 50px;
        height: 50px;
    }
    
    .certification-title-small {
        font-size: 0.7rem;
    }
}

/* Banner video background */
.banner-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Ensure banner content is above the video */
section.bg-img .container {
    position: relative;
    z-index: 1;
}

/* Optional: dark overlay for readability */
section.bg-img.left-overlay-dark:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 51, 78, 0.76);
    z-index: 1;
    pointer-events: none;
}

section.bg-img {
    position: relative;
    overflow: hidden;
}

/* Banner section height adjustment */
section.bg-img.cover-background.left-overlay-dark {
    min-height: 400px !important;
    height: 400px !important;
    max-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-position: center 30% !important;
}

.banner-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    margin: 0 auto 1.5rem auto;
    max-width: 900px;
    text-align: center;
}

@media (max-width: 991px) {
    .banner-title {
        font-size: 1.5rem;
    }
    .banner-text-overlay {
        min-height: 200px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575px) {
    .banner-title {
        font-size: 1.2rem;
    }
    .banner-text-overlay {
        min-height: 120px;
        padding: 1rem 0.5rem;
    }
}

/* Testimonial text size adjustment */
.testimonial-carousel1 .lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

@media (max-width: 991px) {
    .testimonial-carousel1 .lead {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 575px) {
    .testimonial-carousel1 .lead {
        font-size: 0.85rem !important;
    }
}

/* Page content layout */
.page-content-wrapper {
    text-align: left;
    overflow: hidden;
}

.page-content-image {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .page-content-image {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
    
    .page-content-wrapper {
        text-align: center;
    }
    
    .page-content-wrapper p {
        text-align: left;
    }
}

/* Page template specific styling - white menu text */
.page-template .navbar-nav > li > a,
.page-template .navbar-nav > li > a > div {
    color: #fff !important;
}

.page-template .navbar-nav > li > a:hover,
.page-template .navbar-nav > li > a:hover > div {
    color: #f8f9fa !important;
}

.page-template .navbar-nav .dropdown-menu > li > a {
    color: #333 !important;
}

.page-template .navbar-nav .dropdown-menu > li > a:hover {
    color: #34495e !important;
}

/* Adjust header image position within the section for school_access_control.php */
.page-title-section {
  background-position: center 70% !important;
}

/* Make blockquote font smaller */
blockquote {
  font-size: 16px !important;
  line-height: 26px !important;
}

/* Footer sitemap link styling */
footer .sitemap-links a {
    color: #5ab2b5 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

footer .sitemap-links a:hover {
    color: #ffffff !important;
    text-decoration: none;
    padding-left: 8px;
    background-color: #34495e;
    border-radius: 4px;
    padding: 4px 8px 4px 16px;
    margin-left: -8px;
}

footer .sitemap-links a::before {
    content: "→";
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #5ab2b5;
}

footer .sitemap-links a:hover::before {
    opacity: 1;
    left: -8px;
}

/* Footer contact link styling */
footer .contact-link {
    color: #5ab2b5 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 3px;
}

footer .contact-link:hover {
    color: #ffffff !important;
    text-decoration: none;
    background-color: #34495e;
    padding: 2px 6px;
}

/* Banner contact button styling */
.banner-text-overlay .butn-style02 .text-btn {
    color: #34495e !important;
}

/* Banner contact button hover styling */
.banner-text-overlay .butn-style02:hover {
    background-color: #34495e !important;
    border-color: #34495e !important;
}

.banner-text-overlay .butn-style02:hover .text-btn {
    color: #ffffff !important;
}

/* Header contact button hover styling */
.attr-nav .butn-style02.primary:hover,
.attr-nav .butn-style02.primary:active,
.attr-nav .butn-style02.primary:focus {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}

/* Sticky menu text color fix */
.header-style2.scrollHeader .navbar-nav > li > a {
    color: #000000 !important;
}

.header-style2.scrollHeader .navbar-nav > li.has-sub > a {
    color: #000000 !important;
}

.header-style2.scrollHeader .navbar-nav > li.has-sub > a:hover {
    color: #000000 !important;
}

.header-style2.scrollHeader .navbar-nav li.current > a {
    color: #fcaf17 !important;
}

.header-style2.scrollHeader .navbar-nav li.current > a:hover {
    color: #fcaf17 !important;
}

/* Additional specificity for sticky menu */
header.scrollHeader .header-style2 .navbar-nav > li > a {
    color: #000000 !important;
}

header.scrollHeader .header-style2 .navbar-nav > li.has-sub > a {
    color: #000000 !important;
}

/* Ensure dropdown arrows are visible */
.header-style2.scrollHeader .navbar > ul > li.has-sub > a:after {
    border-color: transparent #000000 #000000 transparent !important;
}

/* Menu text color fix for all pages */
.header-style2 .navbar-nav > li > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav > li.has-sub > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav > li > a:hover {
    color: #5ab2bf !important;
}

.header-style2 .navbar-nav > li.has-sub > a:hover {
    color: #5ab2bf !important;
}

.header-style2 .navbar-nav li.current > a {
    color: #fcaf17 !important;
}

.header-style2 .navbar-nav li.current > a:hover {
    color: #fcaf17 !important;
}

/* Additional specificity for dropdown menu items */
.header-style2 .navbar-nav li.has-sub > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav li.has-sub > a:hover {
    color: #5ab2bf !important;
}

/* Target all navbar links with higher specificity */
.header-style2 .navbar-nav li a {
    color: #000000 !important;
}

.header-style2 .navbar-nav li a:hover {
    color: #5ab2bf !important;
}

/* Maximum specificity to override all conflicting styles */
body .header-style2 .navbar-nav li a {
    color: #000000 !important;
}

body .header-style2 .navbar-nav li a:hover {
    color: #5ab2bf !important;
}

body .header-style2 .navbar-nav > li > a {
    color: #000000 !important;
}

body .header-style2 .navbar-nav > li.has-sub > a {
    color: #000000 !important;
}

/* Override any inline styles or other specific rules */
.header-style2 .navbar-nav li a[style*="color"] {
    color: #000000 !important;
}

/* Ensure dropdown arrows are also visible */
.header-style2 .navbar > ul > li.has-sub > a:after {
    border-color: transparent #000000 #000000 transparent !important;
}

/* Target main menu items with dropdowns specifically */
.header-style2 .navbar-nav > li > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav > li > a div {
    color: #000000 !important;
}

/* Target menu items that have ul siblings (dropdowns) */
.header-style2 .navbar-nav > li:has(> ul) > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav > li:has(> ul) > a div {
    color: #000000 !important;
}

/* Alternative approach - target by position */
.header-style2 .navbar-nav > li:nth-child(2) > a,
.header-style2 .navbar-nav > li:nth-child(3) > a,
.header-style2 .navbar-nav > li:nth-child(4) > a,
.header-style2 .navbar-nav > li:nth-child(5) > a {
    color: #000000 !important;
}

.header-style2 .navbar-nav > li:nth-child(2) > a div,
.header-style2 .navbar-nav > li:nth-child(3) > a div,
.header-style2 .navbar-nav > li:nth-child(4) > a div,
.header-style2 .navbar-nav > li:nth-child(5) > a div {
    color: #000000 !important;
}

/* Reduce banner height to 400px on all pages except index */
.bg-img.cover-background.left-overlay-dark {
    height: 400px !important;
    min-height: 400px !important;
}

/* Target banner without left-overlay-dark class */
.bg-img.cover-background {
    height: 400px !important;
    min-height: 400px !important;
}

/* Ensure the banner content is properly positioned within the reduced height */
.bg-img.cover-background.left-overlay-dark .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.bg-img.cover-background .container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.bg-img.cover-background .row {
    width: 100% !important;
    text-align: center !important;
}

.bg-img.cover-background .col-12 {
    text-align: center !important;
}

.bg-img.cover-background h1 {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Force centering with maximum specificity */
body .bg-img.cover-background.left-overlay-dark .banner-text-overlay {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: 100% !important;
    width: 100% !important;
}

body .bg-img.cover-background.left-overlay-dark .banner-title {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body .bg-img.cover-background.left-overlay-dark .banner-title h1 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

/* Override any conflicting styles */
.banner-text-overlay {
    text-align: center !important;
}

.banner-title {
    text-align: center !important;
}

/* Contact Form Styling */
.contact-form-wrapper {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.contact-info-wrapper {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-info-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.contact-form-wrapper .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
    border-color: #5ab2bf;
    box-shadow: 0 0 0 0.2rem rgba(90, 178, 191, 0.25);
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.contact-form-wrapper .butn-style02 {
    padding: 15px 30px !important;
    font-size: 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-wrapper .contact-item h5 {
    color: #5ab2bf;
    font-weight: 600;
}

.contact-info-wrapper .contact-item a:hover {
    color: #5ab2bf !important;
}

.contact-info-wrapper address {
    line-height: 1.6;
    font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        margin-bottom: 30px;
    }
}

/* Send Message Button Hover Effect - Match Header Contact Button */
.contact-form-wrapper .butn-style02.primary:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

/* Index Page Contact Us Button Hover Effect - Match Header Contact Button */
.index-page .butn-style02:hover,
.wow.fadeInUp .butn-style02:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

/* Banner Contact Us Button Hover Effect - Match Header Contact Button */
.butn-style02.white:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

/* Banner Contact Us Button - Standard Grey Background */
.butn-style02.white {
    background-color: #34495e !important;
    color: #ffffff !important;
    border-color: #34495e !important;
}

/* Ensure text is visible in banner button */
.butn-style02.white .text-btn {
    color: #ffffff !important;
}

/* Force white text on the button itself */
.butn-style02.white,
.butn-style02.white span,
.butn-style02.white .text-btn {
    color: #ffffff !important;
}

/* Fix for service card hover loop vibration */
.card-style7 {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card-style7 .card-footer {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Prevent hover re-triggering during fade-out */
.card-style7 .card-body {
    pointer-events: none;
}

.card-style7:hover .card-body {
    pointer-events: auto;
}

/* Add small delay to prevent hover loop */
.card-style7 .card-body {
    transition-delay: 0.1s;
}





