/* Common styles from all files */

/* Custom scroll behavior for smooth navigation */
html {
    scroll-behavior: smooth;
}

/* Expanded .benefit-icon style (from @apply in Tailwind) */
.benefit_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: rgb(255 255 255);
    margin-right: 0.75rem;
}

/* Ease-in render effect for benefit images */
.benefit_icon img {
    transition: opacity 0.5s ease-in;
    opacity: 0;
    transform: translateY(20px);
}

.benefit_icon img.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Style for text overlay on images */
.benefit_icon {
    display: flex;
    width: 80%;
    height: 300px; /* Increased height for better aspect ratio */
}

/* Criss-cross pattern: alternate image and text sides */
.benefit_icon:nth-child(odd) {
    flex-direction: row;
}

.benefit_icon:nth-child(even) {
    flex-direction: row-reverse;
}

.benefit_icon .image-container {
    width: 50%;
    height: 100%;
}

.benefit_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit_icon .text-container {
    width: 50%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent; /* No background color */
}

.benefit_icon .overlay-text {
    color: #212529; /* navy-header */
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit_icon .overlay-description {
    color: #6c757d; /* gray-500 */
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Highlight styling for benefit titles */
.highlight-title {
    background-color: #FFC107; /* accent-yellow */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    color: #212529; /* navy-header */
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .benefit_icon {
        flex-direction: column;
        height: auto;
    }

    .benefit_icon .image-container,
    .benefit_icon .text-container {
        width: 100%;
    }

    .benefit_icon .image-container {
        height: 200px; /* Match the increased height */
    }
}

/* Styles specific to aboutus.html */
body {
    font-family: 'lato', sans-serif;
}

.hero_section {
    background: url('https://placehold.co/1200x500/e2e8f0/e2e8f0?text=') no-repeat center center;
    background-size: cover;
}

.curved_bg {
    background-color: #e6f7ff;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
}

.circle_element {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: #d1e8e2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .circle_element {
        width: 300px;
        height: 300px;
        padding: 20px;
    }
}

/* Responsive timeline dots for mobile view (expanded from @apply) */
@media (max-width: 640px) {
    .timeline_dot_mobile {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Added to ensure vertical centering of the marker */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional variation for timeline-dot-mobile in some files */
@media (max-width: 640px) {
    .timeline_dot_mobile_left4 {
        left: 4px;
    }
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    bottom: auto;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content,
.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #212529;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #1E3C72;
}

/* Right-aligned dropdown for About Us */
.dropdown-right .dropdown-content {
    right: 0;
    left: auto;
}
/* LOGO STYLING — fixed alignment inside navbar */
.logo {
  height: 130px;               /* Increase size nicely */
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-right: 1.5rem;       /* Space between logo and nav links */
}

.logo:hover {
  transform: scale(1.05);
}

/* Feedback Cards Styling */
.feedback-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.feedback-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.feedback-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feedback-card-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1e3c72; /* primary-blue */
}

.feedback-card-rating {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.25rem;
  color: #ffc107; /* accent-yellow */
}

.feedback-card-subject {
  font-weight: 600;
  font-size: 1rem;
  color: #2a5298; /* secondary-blue */
  margin-bottom: 0.5rem;
}

.feedback-card-message {
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.feedback-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666666;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .feedback-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Construction project images - adjust object position to show top */
section.py-16.bg-white .rounded-lg img {
  object-position: top center;
}

/* Hero Logo Styling */
.hero-logo {
  height: 250px; /* Increased size */
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem; /* Space below logo */
  animation: slideUpFadeIn 1s ease forwards;
}

/* Apply Lato font to all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
}
