/* ============================================
   ON-GRID / GRID-TIED SOLAR PAGE STYLES
   ============================================ */

    .hero-learn-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 35px;
    border-radius: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero-learn-btn:hover {
    background-color: white;
    color: #00399E;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
/* Global / Utility */
.ongrid-section-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

.ongrid-text-highlight {
    color: #fbbf24;
}

.ongrid-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1320px;
}

/* Hero Section */
.ongrid-hero-section {
    position: relative;
    min-height: 100vh !important;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
    color: white;
    overflow: hidden;
}

.ongrid-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/on-grid-bg-1-1-1.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.ongrid-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.ongrid-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ongrid-hero-title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ongrid-hero-description {
    font-size: 1.75rem;
    font-weight: 300;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ongrid-hero-product-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    z-index: 10;
}

.ongrid-product-image {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.ongrid-hero-arrow {
    position: absolute;
    bottom: -80px;
    right: 50%;
    transform: translateX(50%);
    background: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00399E;
    text-decoration: none;
    z-index: 10;
}

.ongrid-hero-arrow:hover {
    transform: translateX(50%) scale(1.1) translateY(5px);
    background: #00399E;
    color: white;
}

/* Info Section */
.ongrid-info-section {
    padding: 0;
    background-color: white;
}

.ongrid-info-content {
    width: 100%;
}

.ongrid-product-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 600px;
}

.ongrid-blue-section {
    background-color: #00399E;
    display: flex;
    align-items: center;
    padding: 0;
}

.ongrid-blue-content {
    padding: 3rem 3.5rem;
    width: 100%;
}

.ongrid-section-title-left {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: left;
    color: white;
}

.ongrid-info-text-white {
    text-align: left;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ongrid-info-text-white p {
    margin-bottom: 0;
}

.ongrid-workflow-diagram {
    margin-top: 2.5rem;
    text-align: center;
}

.ongrid-workflow-diagram img {
    max-width: 100%;
    height: auto;
}

.ongrid-info-text {
    text-align: left;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ongrid-info-text p {
    margin-bottom: 1rem;
}

.ongrid-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ongrid-features-list li {
    padding: 0.75rem 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 500;
}

.ongrid-features-list li i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.ongrid-workflow-image {
    padding: 2rem;
    text-align: center;
}

/* Savings Section */
.ongrid-savings-section {
    padding-top: 100px;
    background-color: #f8f9fa;
}

.ongrid-savings-wrapper {
    padding: 0 15px;
}

.ongrid-savings-left {
    padding-right: 3rem;
}

.ongrid-savings-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.ongrid-savings-description {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.ongrid-savings-description p {
    margin-bottom: 1.5rem;
}

.ongrid-savings-description p:last-child {
    margin-bottom: 0;
}

.ongrid-savings-right {
    padding-left: 2rem;
}

.ongrid-graph-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: right;
}

.ongrid-graph-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.ongrid-graph-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.ongrid-graph-legend {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.ongrid-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ongrid-legend-line {
    width: 40px;
    height: 3px;
    display: block;
    border-radius: 2px;
}

.ongrid-legend-solar {
    background-color: #10b981;
}

.ongrid-legend-grid {
    background-color: #f97316;
}

.ongrid-legend-text {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.ongrid-chart-descriptor {
    text-align: center;
    padding-top: 1rem;
}

.ongrid-descriptor-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.ongrid-descriptor-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.ongrid-descriptor-source {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
}

.ongrid-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.ongrid-savings-content {
    position: relative;
    z-index: 10;
}

.ongrid-savings-text {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ongrid-savings-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

/* Benefits Section */
.ongrid-benefits-section {
    padding: 100px 0;
    background-color: white;
}

.ongrid-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ongrid-benefit-card {
    background: #f9fafb;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ongrid-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #fbbf24;
}

.ongrid-benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.ongrid-benefit-card:hover .ongrid-benefit-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: scale(1.1);
}

.ongrid-benefit-icon i {
    font-size: 2rem;
    color: white;
}

.ongrid-benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.ongrid-benefit-text {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Packages Section */
.ongrid-packages-section {
    padding-top: 100px;
    background-color: white;
}

.ongrid-packages-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ongrid-package-tabs-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Ensure parent container doesn't cause overflow */
.text-center.mb-5 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.ongrid-package-tabs {
    display: inline-flex;
    gap: 0;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    flex-wrap: nowrap;
}

.ongrid-package-tab {
    padding: 12px 60px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
    color: #1e3a8a;
    margin: 0;
    position: relative;
    border-radius: 50px;
    min-width: 150px;
    text-align: center;
}

.ongrid-package-tab:hover:not(.active) {
    background-color: rgba(30, 58, 138, 0.05);
}

.ongrid-package-tab.active {
    background-color: #1e3a8a;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ongrid-package-content-wrapper {
    position: relative;
}

.ongrid-package-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ongrid-package-content.active {
    display: block;
}

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

.ongrid-package-image {
    padding: 2rem;
    text-align: center;
}

.ongrid-package-image img {
    max-width: 100%;
    height: auto;
}

.ongrid-package-details {
    padding: 2rem;
}

.ongrid-package-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

.ongrid-package-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ongrid-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ongrid-spec-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.ongrid-spec-value {
    font-size: 1.25rem;
    color: #111827;
    font-weight: 700;
}

.ongrid-custom-note {
    font-size: 1.1rem;
    color: white;
    margin-top: 3rem;
}

.ongrid-contact-link {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ongrid-contact-link:hover {
    color: #f59e0b;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ongrid-section-title {
        font-size: 2.5rem;
    }

    .ongrid-section-title-left {
        font-size: 2rem;
        text-align: center;
    }

    .ongrid-hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .ongrid-product-image {
        max-width: 450px;
    }

    .ongrid-product-image-full {
        min-height: 400px;
    }

    .ongrid-blue-content {
        padding: 2.5rem 2rem;
    }

    .ongrid-info-text-white {
        font-size: 0.95rem;
        text-align: center;
    }

    .ongrid-workflow-diagram {
        margin-top: 2rem;
    }

    .ongrid-savings-left {
        padding-right: 1.5rem;
        margin-bottom: 3rem;
    }

    .ongrid-savings-right {
        padding-left: 1.5rem;
    }

    .ongrid-savings-main-title {
        font-size: 2rem;
        text-align: center;
    }

    .ongrid-savings-description {
        text-align: left;
    }

    .ongrid-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .ongrid-packages-title {
        font-size: 2rem;
    }

    .ongrid-package-tab {
        font-size: 0.9rem;
        padding: 10px 40px;
        min-width: 120px;
    }

    .ongrid-package-specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ongrid-package-detail-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .ongrid-package-details {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .ongrid-section-title {
        font-size: 2rem;
    }

    .ongrid-section-title-left {
        font-size: 1.75rem;
        text-align: center;
    }

    .ongrid-hero-content {
        padding: 1.5rem 2rem;
        margin: 0 15px 2rem;
    }

    .ongrid-hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .ongrid-hero-description {
        font-size: 1.1rem;
    }

    .ongrid-product-image {
        max-width: 350px;
    }

    .ongrid-product-image-full {
        min-height: 300px;
    }

    .ongrid-blue-content {
        padding: 2rem 1.5rem;
    }

    .ongrid-info-text-white {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
    }

    .ongrid-workflow-diagram {
        margin-top: 1.5rem;
    }

    .ongrid-savings-left {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .ongrid-savings-right {
        padding-left: 0;
    }

    .ongrid-savings-main-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .ongrid-savings-description {
        font-size: 0.95rem;
        text-align: center;
    }

    .ongrid-graph-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .ongrid-graph-legend {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .ongrid-hero-arrow {
        bottom: -60px;
        width: 45px;
        height: 45px;
    }

    .ongrid-info-text {
        font-size: 1rem;
    }

    .ongrid-features-list li {
        font-size: 1rem;
    }

    .ongrid-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ongrid-graph-container {
        padding: 1.5rem;
    }

    .ongrid-savings-subtitle {
        font-size: 1.75rem;
    }

    .ongrid-savings-text {
        font-size: 1rem;
    }

    .ongrid-packages-title {
        font-size: 1.75rem;
    }

    .ongrid-package-tabs {
        padding: 2px;
        gap: 1px;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .text-center.mb-5 {
        padding: 0 8px;
    }

    .ongrid-package-tab {
        padding: 8px 10px;
        min-width: auto;
        font-size: 0.75rem;
        flex: 1;
        max-width: 25%;
        box-sizing: border-box;
        line-height: 1.2;
    }

    .ongrid-package-detail-title {
        font-size: 1.5rem;
    }

    .ongrid-package-image {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .ongrid-hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .ongrid-hero-content {
        padding: 1.2rem 1.5rem;
        margin: 0 10px 1.5rem;
    }

    .ongrid-section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .ongrid-hero-title {
        font-size: 2rem;
    }

    .ongrid-product-image {
        max-width: 280px;
    }

    .ongrid-hero-arrow {
        bottom: -50px;
    }

    .ongrid-savings-main-title {
        font-size: 1.5rem;
    }

    .ongrid-savings-description {
        font-size: 0.9rem;
        text-align: justify !important;
    }

    .ongrid-savings-description p {
        margin-bottom: 1rem;
    }

    .ongrid-graph-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .ongrid-graph-container {
        padding: 1rem;
    }

    .ongrid-descriptor-title {
        font-size: 1.1rem;
    }

    .ongrid-descriptor-subtitle {
        font-size: 0.9rem;
    }

    .ongrid-descriptor-source {
        font-size: 0.8rem;
    }

    .ongrid-benefit-icon {
        width: 70px;
        height: 70px;
    }

    .ongrid-benefit-icon i {
        font-size: 1.75rem;
    }

    .ongrid-benefit-title {
        font-size: 1.25rem;
    }

    .ongrid-package-header {
        padding: 2rem 1.5rem;
    }

    .ongrid-package-title {
        font-size: 2.5rem;
    }

    .ongrid-package-body {
        padding: 2rem 1.5rem;
    }

    .ongrid-custom-note {
        font-size: 1rem;
    }

    .ongrid-spec-value {
        font-size: 1.1rem;
    }

    .ongrid-spec-label {
        font-size: 0.85rem;
    }

    .ongrid-package-tabs {
        flex-direction: row;
        gap: 1px;
        padding: 2px;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        margin: 0 auto;
        box-sizing: border-box;
        border-width: 1.5px;
        border-radius: 30px;
    }
    
    .text-center.mb-5 {
        padding: 0 5px;
        overflow-x: hidden;
    }

    .ongrid-package-tab {
        padding: 5px 3px;
        min-width: auto;
        width: auto;
        font-size: 0.55rem;
        flex: 1;
        max-width: 24%;
        box-sizing: border-box;
        white-space: nowrap;
        line-height: 1.1;
        border-radius: 28px;
    }
}


