/* Whitney Font Face Declaration */
@font-face {
    font-family: "Whitney";
    src: url("./Homepage - Innovative Initiative_files/whitney.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Global alignment and spacing fixes */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #7F7FD5;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #91EAE4, #86A8E7, #7F7FD5);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #91EAE4, #86A8E7, #7F7FD5);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    min-height: 100vh;
}

*,
*::before,
*::after {
    font-family:
        "Whitney",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif !important;
}

body,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
div,
input,
textarea,
button,
label,
select,
option,
td,
th,
label,
small,
strong,
em,
b,
i,
u,
blockquote,
cite,
pre,
code,
kbd,
samp,
var,
mark,
time,
abbr,
dfn,
address,
q,
sub,
sup,
del,
ins {
    font-family:
        "Whitney",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Cantarell,
        sans-serif !important;
}

.content-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

section,
.content-section,
.section-content {
    margin-bottom: 0 !important;
}

.homepage-hero {
    margin-bottom: 0 !important;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

p {
    margin-bottom: 0;
}

.footer {
    margin-top: 0 !important;
}

/* Header styles */
.site-header {
    z-index: 999;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.top-nav .header-logo img {
    height: 60px;
}

.top-nav .nav-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}

.top-nav .nav-main li a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    color: #000;
}

.nav-connect-btn {
    background: linear-gradient(135deg,
            rgba(6, 147, 227, 1) 0%,
            rgb(155, 81, 224) 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(6, 147, 227, 0.35);
    position: relative;
    overflow: hidden;
}

.nav-connect-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-connect-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-connect-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(6, 147, 227, 0.5);
    color: #fff;
}

.nav-burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-burger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .top-nav .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .top-nav .nav-main.active {
        display: flex;
    }

    .top-nav .nav-main li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 12px 0;
    }

    .top-nav .nav-main li:last-child {
        border-bottom: none;
    }

    .top-nav .nav-main li a {
        display: block;
        width: 100%;
        padding: 8px 0;
        color: #000;
    }

    .nav-connect-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .nav-burger {
        display: inline-block;
    }
}

/* Page hero */
.page-hero {
    position: relative;
    min-height: 52vh;
    padding: 120px 20px 40px;
    background: linear-gradient(120deg, #eef4ff 0%, #f7f1ff 45%, #eaf5ff 100%);
    display: flex;
    align-items: center;
}

.page-hero .content-section {
    max-width: 900px;
}

.page-hero h1 {
    font-weight: 800;
    letter-spacing: -1.2px;
    background: linear-gradient(135deg, #1e2a78 0%, #204ce5 50%, #9b51e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.page-hero p {
    color: #112337;
    opacity: 0.9;
}

/* Product cards */
.products-wrap {
    padding: 48px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    position: relative;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(32, 76, 229, 0.15);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(13, 38, 76, 0.12);
    padding: 24px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(13, 38, 76, 0.2);
    border-color: rgba(32, 76, 229, 0.25);
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card .badge {
    display: inline-block;
    background: linear-gradient(135deg,
            rgba(6, 147, 227, 1) 0%,
            rgb(155, 81, 224) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: 0 4px 14px rgba(6, 147, 227, 0.25);
}

.card h2 {
    margin: 12px 0 10px 0;
    font-size: 1.4rem;
    color: #0b1220;
}

.card p {
    line-height: 1.7;
    color: #1e293b;
}

.card+.card {
    border-top: 0;
}

.highlight {
    background: linear-gradient(180deg,
            rgba(250, 253, 255, 0.96),
            rgba(248, 244, 255, 0.88));
    border-color: rgba(155, 81, 224, 0.18);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #204ce5;
    text-decoration: none;
    font-weight: 700;
}

.read-more svg {
    transition: transform 0.2s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Key Features Section */
.key-features-section {
    padding: 60px 20px;
    background-color: #f8faff;
}

.key-features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e2a78;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(13, 38, 76, 0.1);
    text-align: center;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 48px rgba(13, 38, 76, 0.18);
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-item i {
    /* Using Font Awesome icons */
    color: #204ce5;
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #0b1220;
    margin-bottom: 10px;
}

.feature-item p {
    color: #1e293b;
    line-height: 1.6;
}

/* Call to Action Section */
.call-to-action-section {
    background: linear-gradient(135deg,
            rgba(6, 147, 227, 1) 0%,
            rgb(155, 81, 224) 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.call-to-action-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.call-to-action-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-section .btn {
    background: #fff;
    color: #1e2a78;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-to-action-section .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg,
            rgba(6, 147, 227, 1) 0%,
            rgb(155, 81, 224) 100%);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    border: none;
    /* Remove default button border */
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Footer styles */
.footer {
    background: #fff;
    color: #333;
    padding: 80px 20px 20px;
    font-size: 0.95rem;
    border-top: 1px solid #e6e6e6;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-address p,
.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.footer-contact a {
    color: #204ce5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #1e2a78;
}

.footer-links h3,
.footer-social h3 {
    color: #0b1220;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #204ce5;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #204ce5, #9b51e0);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(32, 76, 229, 0.2);
}

.social-icons a:hover {
    background: linear-gradient(135deg, #9b51e0, #204ce5);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(32, 76, 229, 0.4);
}

.sub-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
}

.sub-footer-links {
    display: flex;
    gap: 20px;
}

.sub-footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-footer-links a:hover {
    color: #204ce5;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
        padding: 0;
    }

    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .sub-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .sub-footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* News Page Styles */
.page-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    padding-top: 120px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0;
    color: var(--text-dark);
}

.page-hero p {
    margin-top: 6px;
    color: #5a6072;
    max-width: 640px;
}

.news-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.news-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(13, 27, 53, 0.1);
    min-height: 320px;
    box-shadow: 0 18px 40px rgba(6, 32, 80, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 50px rgba(12, 26, 47, 0.18);
    border-color: rgba(32, 76, 229, 0.2);
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card:nth-child(4) {
    animation-delay: 0.4s;
}

.news-card:nth-child(5) {
    animation-delay: 0.5s;
}

.news-card:nth-child(6) {
    animation-delay: 0.6s;
}

.news-card__media {
    border-radius: 12px;
    overflow: hidden;
    background: #eef2ff;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.news-card__source {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.news-card__summary {
    margin: 0;
    color: #5a6072;
    font-size: 0.98rem;
    flex: 1;
}

.news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.news-card__cta::after {
    content: '↗';
    font-size: 0.9rem;
}

/* Terms and Conditions Styles */
.terms-wrapper {
    max-width: 800px;
    /* Narrower for better readability */
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1e2a78;
    margin-bottom: 10px;
}

.page-header .last-updated {
    color: #64748b;
    font-size: 0.95rem;
}

.term-card {
    margin-bottom: 24px;
    padding: 32px;
    /* More breathing room */
}

.term-card h2 {
    color: #204ce5;
    font-size: 1.5rem;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(32, 76, 229, 0.1);
    padding-bottom: 12px;
}

.contact-details {
    background: #f8faff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid rgba(32, 76, 229, 0.1);
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-details strong {
    color: #1e2a78;
}