/* Mobile Responsive Fixes - Add to responsive-ovr.css */

/* Hero Section Mobile Fixes */
@media screen and (max-width: 767px) {
  /* Hero section improvements - Reduced height */
  .hero {
    height: auto !important;
    min-height: 60vh !important; /* Reduced from 100vh to 60vh */
    position: relative !important;
  }

  /* Hero carousel mobile fixes */
  .hero-carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .carousel-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  /* Hero content container - Adjusted height */
  .hero .container {
    position: relative !important;
    z-index: 2 !important;
    height: 60vh !important; /* Reduced from 100vh to 60vh */
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 20px !important; /* Add some padding for smaller screens */
  }

  .hero h1 {
    font-size: 2.5rem !important; /* Adjust font size for mobile */
    margin-bottom: 1rem !important;
  }

  .hero p {
    font-size: 1rem !important; /* Adjust font size for mobile */
    margin-bottom: 1.5rem !important;
  }

  .hero-buttons .btn {
    padding: 10px 20px !important; /* Smaller padding for buttons */
    font-size: 0.9rem !important;
  }

  /* Adjust carousel dots for mobile */
  .carousel-indicators {
    bottom: 5px !important; /* Move dots higher */
    gap: 8px !important; /* Reduce gap between dots */
  }

  .carousel-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important; /* Make them round */
  }

  /* General section padding adjustment */
  section {
    padding: 3rem 0 !important; /* Reduce section padding on mobile */
  }

  .section-title h2 {
    font-size: 2rem !important; /* Adjust section title size */
  }

  .section-title p {
    font-size: 0.9rem !important;
  }

  /* Grid adjustments for mobile */
  .features-grid,
  .services-grid,
  .featured-solutions-grid,
  .clients-grid,
  .partners-grid,
  .benefits-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important; /* Adjust gap */
  }

  .feature-card,
  .service-card,
  .featured-solution-card-modern,
  .client-card,
  .partner-card,
  .benefit-card {
    padding: 20px !important; /* Smaller padding for cards */
  }

  .about-content {
    flex-direction: column; /* Stack content in about section */
  }

  .about-text,
  .about-image {
    width: 100%; /* Full width for text and image */
    text-align: center;
  }

  .about-image img {
    margin-top: 20px;
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr !important; /* Single column for contact */
  }

  .contact-info,
  .contact-form {
    padding: 0 !important; /* Remove specific padding for consistency */
  }

  .contact-item {
    flex-direction: column; /* Stack icon and text */
    text-align: center;
  }

  .contact-item .contact-icon {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr !important; /* Stack footer columns */
  }

  .footer-col {
    text-align: center;
    margin-bottom: 30px;
  }

  .social-links {
    justify-content: center; /* Center social icons */
  }
}

/* Tablet (Portrait) and Small Desktops */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Adjustments for larger mobile/tablet devices */
  .hero h1 {
    font-size: 3rem !important;
  }

  .hero p {
    font-size: 1.1rem !important;
  }

  .features-grid,
  .services-grid,
  .featured-solutions-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Two columns */
  }

  .clients-grid,
  .partners-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* Three columns */
  }

  .about-content {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr !important; /* Still single column if needed or adjust to 2 columns */
  }
}

/* Desktop and Larger Screens (Optional: for fine-tuning specific elements) */
@media screen and (min-width: 1025px) {
  /* Ensure large screen elements maintain desired layout */
}


/* Additional general responsive adjustments */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Ensure container max-width is applied consistently */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
}

/* Adjust padding for sections to ensure content isn't too close to edges */
section {
    padding: 80px 0; /* Default padding for sections */
}

/* General button styling */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none; /* Remove default border */
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--dark-primary); /* Darken primary color on hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--dark-secondary); /* Darken secondary color on hover */
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================================================== */
/* Styles for iot-details.php (moved from inline styles)                      */
/* ========================================================================== */

/* Specific styles for iot-details.php */
.iot-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/solutions/iot-banner.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.iot-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.iot-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.video-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.video-section-img {
    padding: 0rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 3rem auto;
    max-width: 1200px; /* Max width for the video */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container-img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 3rem auto;
    max-width: 1200px; /* Max width for the video */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-section {
    padding: 5rem 0;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Style for section headings within content-section */
.content-section .section-heading { /* Added .content-section for specificity */
    margin-top: 4rem; /* Specific margin for these headings */
}


.content-section p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Style for the video note */
.video-note {
    margin-top: 2rem;
    font-style: italic;
    color: #555;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.benefit-card .icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    text-align: center;
}

.cta-section {
    background-color: var(--primary);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for iot-details specific styles */
@media (max-width: 768px) {
    .iot-hero h1 {
        font-size: 2.5rem;
    }

    .iot-hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .benefit-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .iot-hero h1 {
        font-size: 2rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
}

/* Styles for icon lists (used in iot-details.php) */
.icon-list {
    list-style: none;
    padding: 0;
    text-align: left; /* Align the list items to the left within their container */
    max-width: 600px; /* Optional: constrain width for better readability */
    margin: 2rem auto; /* Center the list itself */
}

.icon-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text);
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: flex-start; /* Align icon and text to the top */
}

.icon-list li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2em; /* Adjust icon size */
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 0.2em; /* Small adjustment for vertical alignment with text */
}


/* ========================================================================== */
/* Styles from home.php for general site elements (e.g., alerts, hero buttons)*/
/* ========================================================================== */

/* Alert messages styling for contact form */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Form styling enhancements */
.form-group {
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Hero Section Text Styling (These apply to the general .hero class, not .iot-hero) */
.hero h1 {
    color: #ffffff !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero p {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9) !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Hero container styling */
.hero .container {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 20px !important;
}


/* Responsive adjustments from home.php for general .hero */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-buttons .btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero p {
        font-size: 0.9rem !important;
    }
}

/* New Modern Design for Featured Solutions Section (multiple cards) from home.php */
.featured-solutions {
    padding: 5rem 0;
    background-color: #f9f9f9; /* Light background */
}

.featured-solutions .section-title {
    margin-bottom: 3rem;
}

.featured-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-solution-card-modern {
    background-color: #ffffff;
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and content */
    border: 1px solid #eee; /* Subtle border */
}

.featured-solution-card-modern:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* Increased shadow on hover */
}

.featured-solution-image-modern {
    height: 220px; /* Consistent height for images */
    overflow: hidden;
    position: relative;
}

.featured-solution-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if necessary */
    transition: transform 0.4s ease;
}

.featured-solution-card-modern:hover .featured-solution-image-modern img {
    transform: scale(1.08); /* Smooth zoom effect on hover */
}

.featured-solution-content-modern {
    padding: 2rem; /* More padding */
    text-align: center; /* Center align text */
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.featured-solution-content-modern h3 {
    font-size: 1.6rem; /* Slightly larger title */
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-solution-content-modern p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem; /* Space before button */
    flex-grow: 1; /* Allows description to take available space */
}

.featured-solution-content-modern .btn {
    align-self: center; /* Center the button */
    width: fit-content; /* Button takes only necessary width */
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
}

/* Ensure sections have consistent padding from home.php */
.features, .about, .clients, .partners, .contact {
    padding: 5rem 0;
}