html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.btn {
  background-color: #51B62D !important;
  border-color: #51B62D !important;
  color: #fff;
}

/* Project Section Consistent Styling */
.project-grid-style3 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-grid-style3 .inner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-grid-style3 .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-grid-style3 .project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.project-grid-style3 .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-grid-style3 .project-image:hover img {
    transform: scale(1.05);
}

.project-grid-style3 .project-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 1.5rem;
    min-height: 200px;
}

.project-grid-style3 .project-desc .category {
    color: #51B62D;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.project-grid-style3 .project-desc h3 {
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-grid-style3 .project-desc h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-grid-style3 .project-desc h3 a:hover {
    color: #51B62D;
}

.project-grid-style3 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 182, 45, 0.9) 0%, rgba(81, 182, 45, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-grid-style3 .inner-box:hover .overlay {
    opacity: 1;
}

.project-grid-style3 .overlay-inner {
    text-align: center;
    color: white;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-grid-style3 .inner-box:hover .overlay-inner {
    transform: translateY(0);
}

.project-grid-style3 .overlay .description .text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-grid-style3 .overlay .read-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-grid-style3 .overlay .read-more:hover {
    background-color: white;
    color: #51B62D;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-grid-style3 .project-image {
        height: 200px;
    }
    
    .project-grid-style3 .project-desc {
        min-height: 180px;
        padding: 1rem;
    }
    
    .project-grid-style3 .overlay .description .text {
        font-size: 0.9rem;
    }
}

/* Ensure owl carousel items have equal height */
.project-single-two .owl-carousel .owl-item {
    display: flex;
}

.project-single-two .owl-carousel .owl-item > div {
    width: 100%;
}


/* Mobile App Download Buttons Alignment */
.mobile-apps-section {
    text-align: center;
}

    .mobile-apps-section .row {
        justify-content: center;
        align-items: center;
    }

    .mobile-apps-section .col-md-6 {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    .mobile-apps-section a {
        display: inline-block;
        text-align: center;
    }

    .mobile-apps-section img {
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Specific sizing for each store button */
    .mobile-apps-section a[href*="apps.apple.com"] img {
        width: 200px;
        height: 59px; /* Standard App Store button height */
        object-fit: contain;
    }

    .mobile-apps-section a[href*="play.google.com"] img {
        width: 200px;
        height: 59px; /* Match App Store button height */
        object-fit: contain;
    }

/* Desktop and larger screens */
@media (min-width: 768px) {
    .mobile-apps-section a[href*="apps.apple.com"] img {
        width: 220px;
        height: 65px;
        object-fit: contain;
    }

    .mobile-apps-section a[href*="play.google.com"] img {
        width: 220px;
        height: 95px;
        object-fit: contain;
    }
}

/* Specific adjustments for mobile devices */
@media (max-width: 767px) {
    .mobile-apps-section .col-md-6 {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 15px auto;
        padding: 0 15px;
    }

    .mobile-apps-section a[href*="apps.apple.com"] img {
        width: 180px;
        height: 53px;
        object-fit: contain;
    }

    .mobile-apps-section a[href*="play.google.com"] img {
        width: 180px;
        height: 53px;
        object-fit: contain;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .mobile-apps-section .col-md-6 {
        max-width: 200px;
        padding: 0 10px;
    }

    .mobile-apps-section a[href*="apps.apple.com"] img {
        width: 160px;
        height: 47px;
        object-fit: contain;
    }

    .mobile-apps-section a[href*="play.google.com"] img {
        width: 160px;
        height: 65px;
        object-fit: contain;
    }
}

/* Ensure consistent spacing between buttons on mobile */
@media (max-width: 767px) {
    .mobile-apps-section .col-md-6:first-child {
        margin-bottom: 20px;
    }

    .mobile-apps-section .col-md-6:last-child {
        margin-bottom: 15px;
    }
}

