/* Reset and Base Styles */
body, h1, p, ul, li {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* FINAL mobile overrides to ensure correct hero sizing on small screens */
@media (max-width: 480px) {
  .hero-content { padding: 0 1rem; }
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.6rem !important;
    word-break: normal !important;
    white-space: normal !important;
  }
  .hero-subtitle {
    font-size: 1.2rem !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 0.9rem !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.8rem !important;
  }
  .learn-more-btn { font-size: 0.95rem !important; padding: 0.7rem 1.2rem !important; }
  /* Ensure the video background fills tall phones without overflow */
  .video-background iframe { min-height: 100vh; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-title .char,
    .hero-subtitle .char,
    .hero-description {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .tilt-enabled {
        transition: none !important;
        transform: none !important;
    }
}

body {
    color: #fff;
    line-height: 1.6;
}

/* Header Styles */
/* Header Container */

header {
    width: 100%;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    background: #3ecf46;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info-left,
.contact-info-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    font-size: 0.9rem;
}

/* Main Navigation Bar */
.main-nav-bar {
    background: linear-gradient(to right, #00703C, #00703C);
    padding: 0;
    height: 70px;
    display: flex;
    align-items: center;
}

.main-nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo (Left) */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Valentines GIF */
.cupid img {
    height: 70px;
    width: auto;
    object-fit: contain;
    box-shadow: none;
}

/* Navigation Menu (Right) */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 5px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: background 0.3s;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.email-link {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info-left,
    .contact-info-right {
        gap: 15px;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .main-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .main-nav-bar { height: auto; padding: 6px 0; }
    .logo { 
        margin-right: 150px; /* Move logo and text to the left */
        padding-right: 150px; /* Add padding to compensate for negative margin */
    }
    .logo img { 
        height: 60px; 
        width: auto; 
    }
}

@media (max-width: 480px) {
    .top-bar .container,
    .main-nav-bar .container {
        padding: 0 10px;
    }
    
    .contact-info-left,
    .contact-info-right {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo .logo-text {
        font-size: 1.2rem !important;
        color: #ffffff !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #ffffff !important;
        margin-left: 8px; /* Slightly less spacing on mobile */
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .main-nav a {
        text-align: center;
        width: 100%;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Video Background Mobile */
    .video-background iframe {
        width: 100%;
        height: 100%;
        min-height: 100vh;
    }
}

/* Navigation Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: visible; /* ensure full menu is visible */
    height: auto; /* allow menu to size to its items */
}

/* Ensure dropdown stacks vertically (override main-nav ul flex) */
.main-nav .dropdown-menu { display: block; }
.dropdown-menu li { display: block; width: 100%; }

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li { border-bottom: 0; }

.dropdown-menu li a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a { background: #ffffff; color: #1b1b1b; }
.dropdown-menu li a:hover { background: #f3f3f3; color: #1b1b1b; }
/* Active state to highlight the current team page */
.dropdown-menu li a.active { background: #1b5e20; color: #ffffff; }

.fas.fa-chevron-down {
    margin-left: 5px;
    font-size: 0.7rem;
}

/* Hero Section Styles */
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* YouTube Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    pointer-events: none;
}

/* Dark Overlay (for contrast) */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Colored Overlay (e.g., green) */
.overlay-color {
    position: absolute;
    top: -10px;
    
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 83, 14, 0.7);
    z-index: 0;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #4CAF50;
    text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #66BB6A;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.hero-descriptions {
    max-width: 900px;
    margin: 0 auto;
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Hero text reveal animation (JS splits into .char spans) */
.hero-title .char,
.hero-subtitle .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: transform, opacity;
}

/* Keep characters of the same word together to avoid orphan letters on a new line */
.hero-title .word,
.hero-subtitle .word {
    white-space: nowrap;
}

.hero-title .char.reveal-in,
.hero-subtitle .char.reveal-in {
    opacity: 1;
    transform: none;
}

/* Paragraph block reveal for hero descriptions */
.hero-description {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-description.para-reveal {
    opacity: 1;
    transform: none;
}

/* Hero CTA Button */
.hero-cta { margin-top: 1.25rem; }
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    background: #2E7D32; /* deep green to contrast the overlay */
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25), 0 3px 6px rgba(0,0,0,0.2);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.learn-more-btn i { font-size: 0.9rem; }
.learn-more-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.28), 0 6px 10px rgba(0,0,0,0.22);
    background: #2b6d2f;
}
.learn-more-btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
.learn-more-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 10px 22px rgba(0,0,0,0.25); }

@media (max-width: 600px) {
    .learn-more-btn { width: auto; padding: 0.8rem 1.4rem; font-size: 0.95rem; }
}

.btn {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #fff;
    transition: background 0.3s;
}

.btn:hover {
    background: transparent;
}

/* =============================
   Timeline (Theme-Aligned)
   ============================= */
.timeline-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, rgba(46,125,50,0.05), rgba(46,125,50,0.0));
}

.timeline-header { text-align: center; margin-bottom: 1.5rem; }
.timeline-title {
    font-weight: 800;
    font-size: 1.9rem;
    color: #2E7D32;
    letter-spacing: 0.5px;
}

.timeline-wrapper { position: relative; max-width: 1100px; margin: 0 auto; }
.timeline-bar {
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #66BB6A);
    border-radius: 999px;
    position: relative;
}

.timeline-markers { position: relative; height: 0; }
.timeline-marker {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    background: #fff;
    border: 3px solid #2E7D32;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    cursor: pointer;
}
.timeline-marker.active { border-color: #66BB6A; box-shadow: 0 0 0 5px rgba(102,187,106,0.2); }

.timeline-cards { margin-top: 1.5rem; min-height: 220px; position: relative; }
.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 6px solid #2E7D32;
    border-radius: 10px;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.timeline-card h4 { margin: 0 0 0.3rem 0; color: #2E7D32; font-size: 1.15rem; }
.timeline-card .year {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}
.timeline-card p { margin: 0; color: #333; line-height: 1.55; }

.timeline-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.timeline-controls .prev-arrow,
.timeline-controls .next-arrow {
    background: #2E7D32;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(46,125,50,0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-title { font-size: 1.6rem; }
    .timeline-card { padding: 1rem; }
}

@media (max-width: 480px) {
    .timeline-title { font-size: 1.4rem; }
    .timeline-card { padding: 0.9rem; }
}

.btn {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #fff;
    transition: background 0.3s;
}

.btn:hover {
    background: transparent;
}


/* Unified Footer Section */
.unified-footer {
    color: #fff;
    padding: 0;
    position: relative;
    background-image: url('../images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.unified-footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                linear-gradient(to bottom, rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.7));
    z-index: 0;
}

.unified-footer * {
    position: relative;
    z-index: 1;
}

/* Footer Hero Section */
.footer-hero {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-hero h2 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-hero p {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    background: rgba(0, 255, 136, 0.9);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s;
}

.contact-button:hover {
    background: rgba(0, 200, 100, 0.9);
}


/* Footer Map Section */
.footer-map {
    padding: 0;
}

.footer-map iframe {
    width: 100%;
    height: 340px;
    border: none;
    border-radius: 5px;
}

/* Footer Content Section */
.footer-content {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.2rem;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-address, .footer-contact {
    flex: none;
}

.footer-address h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.footer-address ul {
    list-style: none;
    padding: 0;
}

.footer-address ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.footer-address ul li i {
    margin-right: 0.5rem;
    color: #00ff88;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.5rem;
    color: #00ff88;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00ff88;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-nav, .footer-social, .footer-address-summary {
    flex: 1;
    min-width: 200px;
}

.footer-nav h3, .footer-social h3, .footer-address-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.footer-nav ul, .footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li, .footer-social ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a, .footer-social ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav ul li a:hover, .footer-social ul li a:hover {
    color: #00ff88;
}

.footer-address-summary p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Footer Bottom Section */
.footer-bottom {
    background: transparent;
    color: #fff;
    padding: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.footer-logo img {
    height: 60px;
}

.footer-logo-text p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-certifications img {
    height: 100px;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8rem;
}
.footer-data {
    position: static;
    text-align: center;
}

.footer-data p {
    display: inline-block;
    margin: 0 10px 8px 0;
}

.footer-data a {
    color: white;
    text-decoration: none;
}

.footer-data a:visited {
    color: white;
}

@media (max-width: 768px) {
    .footer-data {
        text-align: center;
        margin-top: 0.5rem;
    }
    .footer-data p {
        display: block;
        margin: 6px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Fixes */
    header {
        height: auto;
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .main-nav {
        padding-left: 1rem;
        padding-right: 1rem;
        order: 2;
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .logo {
        position: static;
        transform: none;
        order: 1;
        margin: 1rem auto;
    }
    
    .contact-info {
        display: none; /* Hide contact info on mobile to save space */
    }
    
    /* Hero Section Mobile Fixes */
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Tabs Mobile */
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .tab-button i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bottom-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Events Grid Mobile */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Chatbot Mobile Fixes */
    .chatbot-widget {
        right: 20px;
        bottom: 20px;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .chatbot-panel {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: 20px;
        bottom: 80px;
    }
    
    /* Footer Mobile */
    .footer-hero h2 {
        font-size: 2.5rem;
    }

    .footer-content {
        display: block;
    }
    .footer-info {
        margin-bottom: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
    
    /* Popup Mobile */
    .popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .popup-member {
        flex-direction: column;
    }
    
    .popup-image {
        flex: none;
        padding: 1rem;
    }
    
    .popup-details {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 0.95rem;
        padding: 0;
    }
    header {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.2rem;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0;
    }
    .main-nav a {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    .logo {
        position: static;
        margin: 0 auto 0.5rem auto;
        left: unset;
        transform: none;
        height: 48px;
        width: 48px;
    }
        /* Homepage Mobile Layout Fixes */
        .homepage-header-logo {
            width: 80px !important;
            height: 80px !important;
            margin: 0 auto 12px auto !important;
            display: block !important;
        }
        .homepage-header-contact {
            font-size: 0.95rem !important;
            text-align: center !important;
            margin-bottom: 12px !important;
            line-height: 1.3 !important;
        }
        .homepage-header-nav {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            gap: 10px !important;
            margin-bottom: 18px !important;
        }
        .homepage-header-nav button, .homepage-header-nav a {
            width: 92vw !important;
            margin: 0 0 8px 0 !important;
            font-size: 1.08rem !important;
            padding: 12px 0 !important;
            border-radius: 6px !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
        }
        .homepage-main-title {
            font-size: 1.6rem !important;
            text-align: center !important;
            margin: 32px 0 12px 0 !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            min-height: 80px !important;
        }
        .homepage-main-subtitle {
            font-size: 1.15rem !important;
            text-align: center !important;
            margin-bottom: 14px !important;
        }
        .homepage-main-section {
            padding: 22px 10px !important;
            margin-bottom: 18px !important;
            background: rgba(0,0,0,0.01) !important;
            border-radius: 10px !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
        }
        .homepage-color-block {
            margin-bottom: 18px !important;
            border-radius: 10px !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
        }
        .chatbot-icon {
            position: fixed !important;
            bottom: 70px !important;
            right: 18px !important;
            width: 44px !important;
            height: 44px !important;
            z-index: 100 !important;
        }
        /* End Homepage Mobile Layout Fixes */
    .logo img {
        height: 50px;
        width: auto;
    }
    .contact-info {
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.2rem;
    }
    .portfolio-container,
    .team-header,
    .team-grid,
    .services-grid,
    .tabs-container,
    .footer-content,
    .footer-hero,
    .latest-events,
    .events-grid {
        padding: 0.5rem !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }
    .team-grid,
    .services-grid,
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .team-member,
    .event-item,
    .service-card {
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .member-image,
    .event-image {
        height: 180px !important;
    }
    .member-name,
    .event-info {
        padding: 1rem !important;
    }
    .tabs-header {
        flex-direction: column !important;
    }
    .tab-button {
        padding: 0.7rem !important;
        font-size: 0.95rem !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    .footer-logo img {
        height: 36px !important;
    }
    .footer-certifications img {
        height: 28px !important;
    }
    .popup-content {
        flex-direction: column !important;
        max-width: 98vw !important;
        width: 98vw !important;
        min-width: 0 !important;
    }
    .popup-image {
        flex: unset !important;
        padding: 1rem !important;
        max-height: 180px !important;
    }
    .popup-details {
        padding: 1rem !important;
    }
    .close-popup {
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 1.2rem !important;
    }
    .stat-number {
        font-size: 2rem !important;
    }
    .stat-label {
        font-size: 0.95rem !important;
    }
    .other-services h2,
    .latest-events h2,
    .team-header h2 {
        font-size: 1.5rem !important;
    }
}



/* Animated Counter Styles */
.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 15px 0;
    font-family: 'Arial', sans-serif;
}

.counter-text {
    color: #9ca3af;
    font-size: 1.7rem;
    line-height: 1.5;
    margin: 0 5px;
}

.digit-container {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 50px;
    margin: 0 2px;
    perspective: 200px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    overflow: hidden;
}

.digit-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    transform: translateY(0);
}

.digit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.digit-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visitor-counter {
        flex-direction: column;
        align-items: center;
    }
    
    .counter-text {
        font-size: 1.4rem;
        margin: 5px 0;
    }
    
    .digit-container {
        width: 35px;
        height: 45px;
    }
    
    .digit {
        height: 45px;
        font-size: 1.6rem;
    }
}

.counter-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.2rem 1rem;
    display: inline-block;
    margin: 0 auto;
}

.counter-box {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.counter-digit {
    width: 40px;
    height: 60px;
    background: #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.digit-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}

.digit-inner span {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.counter-label {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Animation for the counter */
@keyframes scrollUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
/* Why Choose Us? Section */
.why-choose-us {
    padding: 4rem 2rem;
    background: #fff;
    color: #333;
    margin-bottom: 10rem;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Subtle 3D tilt on mouse move (enhanced in JS) */
.tilt-context { perspective: 800px; }
.tilt-enabled {
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.service-image {
    margin-bottom: 1rem;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Sentinel Security Services Section */
.sentinel-services {
    padding: 4rem 2rem;
    background: #f9f9f9;
    margin-bottom:1rem;
}

.sentinel-services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.services-text h2 span {
    color: #333;
}

.services-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.services-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.services-advantages {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.advantage-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.advantage-item:last-child {
    border-bottom: none;
}

.advantage-item h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #4CAF50;
    cursor: pointer;
}

.advantage-item.active h4 {
    color: #4CAF50;
}

.advantage-item p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #4CAF50;
    cursor: pointer;
}


/* Transition Effects for Accordion */
.advantage-item p {
    display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.advantage-item.active p {
    display: block;
    opacity: 1;
    height: auto;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #4CAF50;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.advantage-item.active .toggle-icon {
    transform: rotate(0deg);
}
/* About Us Heading Section */
.about-us-heading {
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
}

.about-us-heading h2 {
    font-size: 2.5rem;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* SINSSI Quality Policy Section */
.quality-policy {
    background: #4CAF50;
    padding: 4rem 2rem;
    color: #fff;
    margin-bottom: 5rem;
}

.quality-policy .container {
    max-width: 1200px;
    margin: 0 auto;
}

.policy-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.policy-text {
    flex: 1;
    max-width: 500px;
}

.policy-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-text h2 span {
    color: #fff;
    font-weight: normal;
}

.policy-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-btn i {
    margin-right: 0.5rem;
}

.policy-commitments {
    flex: 1;
}

.commitment-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 1rem;
}

.commitment-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.2rem;
}

.commitment-text h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.commitment-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Leadership Team Section */
.leadership-team {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.leadership-team h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.team-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.top-member {
    max-width: 400px;
    margin: 0 auto 3rem;
}

.team-member {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    text-align: left;
}

.member-info h3 {
    font-size: 1.2rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.member-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: bold;
    text-align: right;
}

.bottom-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
    margin-bottom: 0rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #4CAF50;
}

/* Other Services Section */
.other-services {
    padding: 4rem 2rem;
    background: rgb(223, 223, 223);
    margin-bottom: 0rem;
   
}

.other-services h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
}

/* Tabs Container */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs Header */
.tabs-header {
    display: flex;
    background: #4CAF50;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.tab-button i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tab-button.active {
    background: #2E7D32;
}

.tab-button:hover:not(.active) {
    background: #3d8b40;
}

/* Tabs Content */
.tabs-content {
    padding: 2rem;
    background: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.8rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.tab-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

/* Latest Events Section */
.latest-events {
    padding: 4rem 2rem;
    background: #fff;
}

.latest-events h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-item:hover .event-image img {
    transform: scale(1.05);
}

.event-info {
    padding: 1.5rem;
    text-align: left;
}

.event-info h3 {
    font-size: 1.2rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.event-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.event-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1rem;
}

.read-more-container {
    text-align: center;
    margin-top: 3rem;
}

.read-more-button {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.read-more-button:hover {
    background: #3d8b40;
}


/* REMOVE OLD CHATBOT STYLES */
.chatbot-widget, .chatbot-toggle, .chatbot-panel, .chatbot-header, .chatbot-title, .chatbot-close, .chatbot-messages, .chatbot-msg, .chatbot-msg.bot, .chatbot-msg.user, .chatbot-input-row, .chatbot-input, .chatbot-send {
    display: none !important;
}

/* Management Team Section */
.management-team {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-header h2 {
    font-size: 2.5rem;
    color: #333;
}

.team-header h2 span {
    background: #4CAF50;
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-name {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.member-name h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.member-name p {
    font-size: 0.9rem;
    color: #666;
}
/* Member Popup */
.member-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    max-height: 90vh;
}

.popup-member {
    display: flex;
    width: 100%;
}

.popup-image {
    flex: 0 0 300px;
    background: #f9f9f9;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image img {
    width: auto;
    max-width: 100%;
    max-height: 350px;
    border-radius: 5px;
}

.popup-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.close-popup:hover {
    color: #333;
    background: #eee;
}

.popup-details h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.popup-details .member-title {
    font-size: 1.1rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.popup-details .member-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}
