/* 
    Solstar Homepage Custom Styles
*/

/* About Section Image Wrapper */
.solstar-img-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.solstar-img-wrapper .img-tall {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solstar-img-wrapper .img-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px;
}

.solstar-img-wrapper .img-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 0 0 45%;
}

.solstar-img-wrapper .stats-box {
    background: #256f51;
    /* Dark premium green */
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(2, 57, 48, 0.2);
}

.solstar-img-wrapper .stats-box i {
    font-size: 40px;
    margin-bottom: 20px;
}

.solstar-img-wrapper .stats-box .number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.solstar-img-wrapper .stats-box .text {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.solstar-img-wrapper .img-square {
    border-radius: 20px;
    overflow: hidden;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solstar-img-wrapper .img-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

/* Base style overrides to match solstar */
.title-area .sec-subtitle {
    color: #f8a734;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
}

.title-area .sec-subtitle i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.progress-box.style2 {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.progress-box.style2 .progress-box__title {
    font-size: 16px;
    font-weight: 600;
    color: #0B0D17;
    margin-bottom: 10px;
}

.progress-box.style2 .progress-box__number {
    font-size: 14px;
    color: #256f51;
    font-weight: 600;
    top: -5px;
}

.progress-box.style2 .progress-box__progress {
    height: 6px;
    background: rgba(71, 175, 52, 0.1);
    border-radius: 10px;
}

.progress-box.style2 .progress-box__bar {
    height: 100%;
    background: #f8a734;
    border-radius: 10px;
}

.btn-dark-green {
    background-color: #256f51;
    color: white;
    border: none;
    border-radius: 30px;
}

.btn-dark-green:hover {
    background-color: #f8a734;
    color: white;
}

/* Service Cards */
.solstar-service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.solstar-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #256f51;
}

.solstar-service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(71, 175, 52, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #256f51;
    font-size: 30px;
    transition: all 0.3s ease;
}

.solstar-service-card:hover .icon-wrapper {
    background: #256f51;
    color: white;
}

/* FAQ Accordion */
.solstar-faq .accordion-item {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    margin-bottom: 15px;
}

.solstar-faq .accordion-button {
    background: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0B0D17;
    padding: 20px 0;
    box-shadow: none;
}

.solstar-faq .accordion-button:not(.collapsed) {
    color: #256f51;
}

.solstar-faq .accordion-body {
    padding: 0 0 20px 0;
    color: #555;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .solstar-img-wrapper {
        flex-direction: column;
    }
}

/* Energiso Style Service Cards */
.energiso-service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f1f1;
    margin-bottom: 20px;
}

.energiso-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.energiso-service-card .card-img {
    position: relative;
    padding: 15px;
}

.energiso-service-card .card-img img {
    border-radius: 12px;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.energiso-service-card .card-icon {
    position: absolute;
    bottom: 5px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #256f51;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(71, 175, 52, 0.3);
}

.energiso-service-card .card-content {
    padding: 25px 25px 0 25px;
}

.energiso-service-card .card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.energiso-service-card .card-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.energiso-service-card .card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #256f51;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0 0 0 20px;
    border-radius: 5px;
    overflow: hidden;
    height: 50px;
    transition: all 0.3s ease;
}

.energiso-service-card .card-btn .btn-arrow {
    background: #f8a734;
    /* Orange color from screenshot */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: skewX(-15deg);
    margin-right: -5px;
}

.energiso-service-card .card-btn .btn-arrow i {
    transform: skewX(15deg);
}

.energiso-service-card .card-btn:hover {
    background: #023930;
    color: #fff;
}

/* Carousel Header Controls */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.carousel-header .title-area {
    margin-bottom: 0;
    text-align: left !important;
}

.carousel-nav-btns {
    display: flex;
    gap: 15px;
}

.carousel-nav-btns button {
    background: #256f51;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.carousel-nav-btns button:hover {
    background: #023930;
}

.carousel-nav-btns button i {
    font-size: 12px;
}

@media (max-width: 767px) {
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Staircase Layout (Why Choose Us) */
.why-choose-staircase {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.why-choose-staircase .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.94);
    /* Very light background for technical fee */
}

.staircase-wrapper {
    position: relative;
    z-index: 2;
}

.staircase-content-left {
    margin-bottom: 50px;
}

.staircase-card-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
}

.staircase-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    width: 23%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border-bottom: 4px solid #eee;
    position: relative;
}

/* Staircase effect offsets */
.staircase-card:nth-child(1) {
    margin-top: 0;
}

.staircase-card:nth-child(2) {
    margin-top: 40px;
}

.staircase-card:nth-child(3) {
    margin-top: 80px;
}

.staircase-card:nth-child(4) {
    margin-top: 120px;
}

.staircase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(71, 175, 52, 0.12);
    border-bottom-color: #256f51;
}

.staircase-card .card-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 13px;
    color: #eee;
    font-weight: 800;
}

.staircase-card .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #256f51;
    font-size: 32px;
}

.staircase-card .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0B0D17;
    text-transform: uppercase;
}

.staircase-card .card-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1199px) {
    .staircase-card {
        width: 48%;
        margin-top: 0 !important;
        margin-bottom: 30px;
    }

    .staircase-card-container {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .staircase-card {
        width: 100%;
    }
}

/* Dark Achievements Section */
.dark-achievement-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.dark-achievement-section .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 57, 48, 0.95) 0%, rgba(11, 13, 23, 0.9) 100%);
    z-index: 1;
}

.dark-achievement-section .container {
    position: relative;
    z-index: 2;
}

.dark-stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dark-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 175, 52, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dark-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(71, 175, 52, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dark-stat-card:hover::before {
    opacity: 1;
}

.dark-stat-card .stat-icon {
    font-size: 45px;
    color: #256f51;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(71, 175, 52, 0.3));
}

.dark-stat-card .stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
    color: white;
}

.dark-stat-card .stat-label {
    font-size: 16px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Staggered Entry Delays (for WOW.js) */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

@media (max-width: 991px) {
    .dark-stat-card {
        margin-bottom: 30px;
    }
}

/* CTA Blueprint Section */
.cta-blueprint-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #fcfcfc;
}

.cta-blueprint-section .blueprint-bg {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60%;
    height: 140%;
    background-image: url('../img/others/solar-blueprint-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    transform: translateY(-50%) rotate(-5deg);
    pointer-events: none;
    z-index: 1;
}

.cta-blueprint-section .container {
    position: relative;
    z-index: 2;
}

.cta-blueprint-section .vs-btn {
    padding: 20px 40px;
    font-size: 18px;
}

/* Staircase Image Box */
.staircase-img-box {
    position: relative;
    text-align: right;
    margin-bottom: 20px;
}

.staircase-img-box img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    animation: floatVertical 6s ease-in-out infinite;
}

@keyframes floatVertical {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .staircase-img-box {
        text-align: center;
        margin-top: 40px;
    }
}