/* Added ESG Risk Viewer theme and components */
* {
    box-sizing: border-box;
}

:root {
    --esg-primary: #202A44;
    --btn-gradient: linear-gradient(to right, #7030a0 0%, #202a44 50%, #7030a0 100%);
}



/* Navbar and floating */
.navbar-floating {
    /* box-shadow: 0 6px 18px rgba(48, 65, 87, 0.06); */
    background: rgba(48, 65, 87, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

}

.navbar .btn-gradient {
    background: var(--btn-gradient);
    border: none;
}

/* Hero parallax layer */
.hero-section {
    min-height: 70vh;
    padding-top: 120px;
    position: relative;
    color: white;
    background-color: var(--esg-primary);
}

.hero-section .parallax-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: translateY(0);
    will-change: transform;
    filter: brightness(0.6) saturate(1.05);
}

.hero-section>.container {
    position: relative;
    z-index: 2;
}

/* Gradient buttons */
.btn-gradient {
    background: var(--btn-gradient);
    color: white;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(32, 42, 68, 0.12);
}

.btn-gradient:hover {
    transform: translateY(-2px);
}

#start p {
    font-size: 25px;
    font-weight: 800;
    color: var(--esg-primary);
}

/* Features Section */
#features {
    background-color: #f8f9fa;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h5 {
    color: var(--esg-primary);
    font-weight: 700;
}

.feature-card img {
    width: 50%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(48, 65, 87, 0.15);
}

.feature-card:hover img {
    transform: scale(1.1);
}

/* .feature-card:hover img {
    transform: translateY(-5px);
} */

/* Parallax screenshot animations (re-use existing slide animations) */
.slide-img-1,
.slide-img-2,
.slide-img-3 {
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.6s ease;
}

.slide-img-1:hover,
.slide-img-2:hover,
.slide-img-3:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

/* Tabs and cards */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: var(--esg-primary);
    font-weight: 700;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(to right, #7030a0, #202a44);
    color: #ffffff;
    border-bottom: 3px solid #7030a0;
    border-radius: 10px 10px 0 0;
}

.nav-tabs {
    border-bottom: none;
}

.nav.nav-tabs {
    justify-content: center;
}

.nav-tabs .nav-link {
    color: var(--esg-primary);
    font-weight: 700;
}

.card-title {
    color: var(--esg-primary);
    font-weight: 600;
}

/* Sticky video */
.sticky-video {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, rgba(48, 65, 87, 0.05), rgba(112, 48, 160, 0.05));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Points list */
.points-list h5 {
    color: var(--esg-primary);
}

.points-list .point {
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(0);
    transition: all 0.3s ease;
}

.point-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    column-gap: 20px;
    margin-bottom: 10px;
}

.point-header img {
    width: 10%;
}

.point:hover img {
    transform: scale(1.1);
}

/* Footer small tweaks */
footer a {
    text-decoration: none;
    opacity: 0.95;
}

.news-card {
    /* flex: 0 0 calc(33.333% - 2rem);
    opacity: 0.7; */
    transform: scale(0.95);
    transition: all 0.4s ease;

}

.offer-list {
    list-style: none;
    color: rgb(83, 83, 83);
    font-weight: 500;
    font-size: 15px;
    padding: 0;
    /* optional: removes default padding */
    margin: 0;
    /* optional: removes default margin */
}

.offer-list li::before {
    content: '✓ ';
    color: green;
    font-weight: bold;
}

.pay-header-section {
    background: linear-gradient(135deg, #a13da1 0%, #8e2372 100%);
    padding: 32px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card {
    /* flex: 0 0 calc(33.333% - 2rem);
    opacity: 0.7; */
    transform: scale(0.95);
    transition: all 0.4s ease;

}

#moduleTabsContent .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#moduleTabsContent .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(48, 65, 87, 0.2);
}

#moduleTabsContent .card .btn-primary {
    background: var(--btn-gradient);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(32, 42, 68, 0.12);
}

#moduleTabsContent .card .btn-primary:hover {
    transform: translateY(-2px);
}

.owl-carousel .owl-stage {
    display: flex;
    /* Makes the stage a flex container */
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

.owl-carousel .owl-item .inner-content-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.owl-carousel .owl-item .inner-content-container .flex-grow-element {
    flex-grow: 1;
}

/* Owl Carousel nav styling: ensure arrows are visible and positioned */
.owl-carousel {
    position: relative;
    /* needed for absolutely-positioned nav buttons */
}

.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* allow buttons to selectively receive pointer events */
    z-index: 10;
}

.owl-carousel .owl-nav button {
    pointer-events: auto;
    background: rgba(48, 65, 87, 0.85);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}

.owl-carousel .owl-nav button:hover {
    transform: translateY(-3px);
    background: rgba(48, 65, 87, 1);
}

.owl-carousel .owl-nav .owl-prev {
    margin-left: 8px;
}

.owl-carousel .owl-nav .owl-next {
    margin-right: 8px;
}

.owl-carousel .owl-nav button span {
    font-size: 18px;
    line-height: 1;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    background: rgba(48, 65, 87, 0.85);
    color: #fff
}

.owl-carousel .owl-nav button:hover {
    transform: translateY(-3px);
    background: rgba(48, 65, 87, 1);
}

/* small page-level tweaks */
/* .navbar-floating {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
} */
.custom-btn {
    background: #7030A0;
    color: #FFF;
    border: none;
}

.custom-btn:hover {
    background: #186671;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Pricing Section Background */
.pricing-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e9ecef" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="%23e9ecef" opacity="0.1"/><circle cx="10" cy="90" r="0.5" fill="%237030a0" opacity="0.05"/><circle cx="90" cy="10" r="0.5" fill="%23202a44" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(112, 48, 160, 0.05), rgba(32, 42, 68, 0.05));
    pointer-events: none;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Cards Styles */
.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(112, 48, 160, 0.1);
}

.pricing-card.pricing-popular {
    /* border-color: #7030a0; */
    border-color: #002546;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(112, 48, 160, 0.05));
}

.pricing-card.pricing-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-card.pricing-popular:hover::before {
    left: 100%;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    /* background: linear-gradient(45deg, #7030a0, #202a44); */
    background: linear-gradient(45deg, #81b5fc, #002546);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    margin-top: 5px;
}

.pricing-header {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.1), rgba(32, 42, 68, 0.1));
}

.pricing-title {
    color: var(--esg-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7030a0;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.pricing-body {
    padding: 25px;
}

.pricing-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 8px 0;
    color: #444;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #28a745;
    font-size: 16px;
}

.pricing-footer {
    padding: 20px 25px 30px;
}

.btn-pricing {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-free {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
}

.btn-free:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    color: white !important;
}

.btn-popular {
    background: linear-gradient(45deg, #7030a0, #202a44);
    border: none;
    color: white;
}

.btn-popular:hover {
    background: linear-gradient(45deg, #5a2590, #1a1f2e);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(112, 48, 160, 0.3);
    color: white !important;
}

.btn-premium {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
}

.btn-premium:hover {
    background: linear-gradient(45deg, #e55a2b, #e8850e);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    color: white !important;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to right, #7030a0, #202a44);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 30px;
}

.modal-sub-header {
    font-size: 21px;
    color: var(--esg-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content-cust {
    font-size: 16px;
    line-height: 1.6;
}

.modalHeader {
    color: #fff;
    /* var(--esg-primary); */
    font-size: 22px !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px;
    }

    .sticky-video {
        position: static;
    }

    .logo-icon{
        width: 250px;
        height: 50px;
    }

    #home .container{
        padding-top: 50px;
    }
}