/* Service Page Specific Styles */

/* Hero Section */
.services-tabs-section {
    padding: 40px 0;
    background: #f8f9fa;
}

/* State sub-tabs (top navigation inside the State tab) */
.state-subtabs { margin-top: 6px; }
.state-subtabs-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 14px;
  position: relative;
  --indicator-left: 6px;
  --indicator-width: 100px;
}

/* Animated sliding indicator - covers only individual button */
.state-subtabs-nav::after {
  content: '';
  position: absolute;
  top: var(--indicator-top, 6px);
  left: var(--indicator-left, 6px);
  width: var(--indicator-width, 100px);
  height: var(--indicator-height, 36px);
  background: #e8f5e9;
  border: 1px solid #cfe9d7;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.state-subtab-btn{
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state-subtab-btn:hover{ color:#089c44; background:rgba(245, 251, 247, 0.3); }
.state-subtab-btn.active{ color:#089c44; background:transparent; border-color:transparent; }

/* Content with fade transition */
.state-subtabs-content {
  position: relative;
}

.state-pane{ 
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.state-pane.active{ 
  display: block;
  opacity: 1;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    min-height: 600px;
}

.tabs-nav {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-bottom: none;
    text-align: left;
    width: 100%;
    display: block;
    margin: 2px 0;
}

.tab-btn:hover {
    color: #089c44;
}

.tab-btn.active {
    color: #089c44;
    border-left: 4px solid #089c44;
    background-color: #e8f5e9;
}

/* Child sub-tab visual cue (Central/State) when treated as sub-tabs of Industrial */
.tab-btn.sub-highlight {
    color: #089c44;
}

/* Ensure State tab is properly aligned with other tabs */
.tabs-nav .tab-btn[data-tab="state"] {
  margin-left: 0;
}

/* Ensure State tab active state matches other tabs */
.tabs-nav .tab-btn[data-tab="state"].active {
  color: #089c44;
  border-left: 4px solid #089c44;
  background-color: #e8f5e9;
}

/* Mobile/tablet view for active state */
@media (max-width: 992px) {
  .tabs-nav .tab-btn[data-tab="state"].active {
    border-left: none;
    border-bottom: 3px solid #089c44;
  }
}

.tabs-content {
    background: #fff;
    padding: 30px;
    position: relative;
    flex-grow: 1;
    overflow-y: auto;
}

/* Central/State Cards Grid */
.scheme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.scheme-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.scheme-card:nth-child(1) { animation-delay: 0.1s; }
.scheme-card:nth-child(2) { animation-delay: 0.15s; }
.scheme-card:nth-child(3) { animation-delay: 0.2s; }
.scheme-card:nth-child(4) { animation-delay: 0.25s; }
.scheme-card:nth-child(5) { animation-delay: 0.3s; }
.scheme-card:nth-child(6) { animation-delay: 0.35s; }
.scheme-card:nth-child(7) { animation-delay: 0.4s; }
.scheme-card:nth-child(8) { animation-delay: 0.45s; }
.scheme-card:nth-child(9) { animation-delay: 0.5s; }
.scheme-card:nth-child(10) { animation-delay: 0.55s; }
.scheme-card:nth-child(11) { animation-delay: 0.6s; }
.scheme-card:nth-child(12) { animation-delay: 0.65s; }

.scheme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
    border-color: #d9e2ec;
}

.scheme-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f6f8fb;
    overflow: hidden;
}

.scheme-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scheme-body {
    padding: 12px 14px 42px; /* extra bottom space for pinned link */
    display: block;
}

.scheme-body p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    grid-column: 1 / -1; /* full width */
}

.scheme-link {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: #089c44;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.scheme-link:hover {
    text-decoration: underline;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .scheme-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .scheme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .scheme-grid { grid-template-columns: 1fr; }
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.tab-pane p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tab-pane ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
}

.tab-pane ul li:before {
    content: '✓';
    color: #089c44;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(62, 238, 87, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(62, 238, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 238, 87, 0); }
}

/* Land Deals Section */
.land-deals-container {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    margin: 0 auto 30px;
    max-width: 600px;
    width: 100%;
    padding: 0 15px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-container input:focus {
    outline: none;
    border-color: #089c44;
    box-shadow: 0 0 0 2px rgba(8, 156, 68, 0.2);
}

.search-container input::placeholder {
    color: #999;
}

.land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 15px;
}

.land-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #3fee57;
}

.land-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.land-card h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.land-details p {
    margin: 12px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.land-details i {
    color: #089c44;
    margin-right: 10px;
    margin-top: 3px;
    min-width: 16px;
    text-align: center;
}

.land-details strong {
    color: #333;
    margin-right: 5px;
}

/* Enquire Now Button */
.enquire-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #089c44, #06b84f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(8, 156, 68, 0.2);
}

.enquire-btn:hover {
    background: linear-gradient(135deg, #06b84f, #089c44);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 156, 68, 0.3);
}

.enquire-btn:active {
    transform: translateY(0);
}

.enquire-btn i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .land-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .search-container {
        margin: 0 15px 30px;
    }
    
    .land-card {
        padding: 15px;
    }
}

/* Responsive tabs */
@media (min-width: 993px) {
    .tab-btn::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .tabs-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .tabs-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-btn {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        margin: 0 5px 5px 0;
        white-space: nowrap;
    }
    
    .tab-btn.active {
        border-left: none;
        border-bottom: 3px solid #089c44;
    }
    
    .tab-pane {
        margin-top: 20px;
    }
    
    .tabs-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .tab-item {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-btn {
        text-align: left;
        padding: 15px 40px 15px 20px;
        border: none;
        background: #fff;
        position: relative;
        margin: 0;
        width: 100%;
        font-size: 15px;
        font-weight: 600;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tab-btn:hover {
        background: #f8f9fa;
    }
    
    .tab-btn::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
        transition: transform 0.3s ease;
        font-size: 10px;
        color: #6c757d;
    }
    
    .tab-btn.active {
        color: #089c44;
    }
    
    .tab-btn.active::after {
        transform: translateY(-50%) rotate(0);
    }
    
    .tabs-content {
        order: 1;
        padding: 0;
    }
    
    .tab-pane {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease;
        background: #f8f9fa;
    }
    
    .tab-pane > div {
        padding: 20px 0;
    }
    
    .tab-pane.active {
        max-height: none; /* Remove fixed height to allow content to expand */
        height: auto;
        padding: 0 20px;
        border-bottom: 1px solid #e9ecef;
        overflow: visible; /* Ensure content is not clipped */
    }
}

@media (max-width: 768px) {
    .tabs-content {
        padding: 0;
    }
    
    .tab-pane h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}
.service-hero {
    height: 24vh;
    background-image: url('../../images/heroimg3.jpeg');
    background-repeat: no-repeat;
    background-size: cover;           /* OPTIONS: cover | contain | 100% | 150% etc. */
    background-position: center 38%; /* TUNE: "left top" | "center 30%" | "right bottom" | "50% 70%" */
    background-attachment: scroll;   /* keeps image fixed to the element, not the viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero p {
    font-size: 1.25rem;
    margin-bottom: 0px;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #089c44;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 156, 68, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
}

.service-card p {
    color: #6c757d;
    line-height: 1.7;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        height: 35vh;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
