/*  mobile-index.css
    Purpose        Mobile-first overrides for the public landing page.
                   • hero banner & CTA
                   • feature/insight cards (≤ 430 px width)
                   • section dividers, snow overlay, animations
                   • shared button + footer styles

    Load order     After the desktop `index.css`, wrapped in:
                     <link rel="stylesheet" href="css/index.css" media="(min-width: 769px)">
                     <link rel="stylesheet" href="css/mobile-index.css" media="(max-width: 768px)">

    Last updated   31 Jul 2025
*/


/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg-color);
    color: var(--light-text-color);
    overflow-x: hidden;
}

/* Standardized Section Spacing */
section {
    padding-top: 0px !important; /* Unified spacing for all sections */
    padding-bottom: 30px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

h2 {
    margin-bottom: 25px; /* Equal spacing below headings */
    font-size: 1.8rem;
    text-align: center;
    color: var(--primary-text-color);
}

p {
    margin-bottom: 20px; /* Consistent paragraph spacing */
    line-height: 1.5;
    color: var(--light-text-color);
}

p.description {
    margin-bottom: 15px !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 15px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Tagline as the Main Heading */
.hero-section .tagline {
    font-size: 2rem; /* Make it prominent as the main headline */
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: white;
}

/* Description Paragraph */
.hero-section .description {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: center;
    color: #ccc; /* Gray for the regular text */
}

/* Highlighted Sentence */
.hero-section .description .highlight {
    color: white; /* White for standout sentence */
    font-weight: bold;
    margin-right: 5px; /* Add space after the highlighted sentence */
}

.description .white-bold {
    color: white;
    font-weight: bold;
}

.description .subdued-text {
    color: #ccc;
    font-weight: normal;
}


section.features-section.visible {
    margin-top: -20px;
}

div.features {
    margin-top: -40px;
}

section.insights-section.visible {
    margin-top: -20px;
}

div.insights {
    margin-top: -40px;
}

div.card {
    margin-bottom: -50px;
}

div.insight {
    margin-bottom: -50px;
}

/* Section Divider Styles */
.section-divider {
    height: 10px;
    background: linear-gradient(to right, rgba(78, 161, 211, 0.1), rgba(78, 161, 211, 0.7), rgba(78, 161, 211, 0.1));
    border-radius: 5px;
}

/* Specific Margin Adjustments */
.hero-divider {
/*    margin: 30px 0;*/
    margin-top: 50px !important;
    margin-bottom: 0px !important;
}

.features-divider {
/*    margin: 20px 0; */
    margin-top: 60px !important;
    margin-bottom: 0px !important;
}

.insights-divider {
/*    margin: 25px 0;*/
    margin-top: 60px !important;
    margin-bottom: -20px !important;
}

.why-choose-divider {
/*    margin: 35px 0;*/
margin-top: 0px !important;
    margin-bottom: -20px !important;
}



/* Shared Styles for Features and Insights Sections */
.features, .insights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Consistent spacing between cards/insights */
    width: 100%; /* Ensure container spans full mobile width */
    max-width: 430px; /* Restrict container width to mobile screen size */
    margin: 0 auto; /* Center the container */
    padding: 0 10px; /* Add some side padding for spacing */
}

.card, .insight {
    background-color: var(--light-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px; /* Consistent padding inside cards */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%; /* Allow cards to fill container width */
    margin: 0 auto; /* Center cards */
}

.card:hover, .insight:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img, .insight img {
    display: block;
    width: 100%; /* Images take up the full width of the container */
    max-width: 410px; /* Ensure they fit within the 430px container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    margin: 15px auto; /* Center and space out the images */
    /*border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img:hover, .insight img:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.card h3, .insight h3 {
    font-size: 1.4rem;
    margin-bottom: 15px; /* Consistent spacing below titles */
    color: var(--primary-text-color);
}

div.card {
    margin-top: 0; /* Removed negative margin for uniformity */
}

div.insight {
    margin-top: 0; /* Removed negative margin for uniformity */
}


/* Gray Description Paragraph */
div.card p {
    color: #ccc !important; /* Same gray color as the hero section description */
}


/* Why Choose Section */
/*.why-choose-section {
    background-color: var(--secondary-bg-color);
    text-align: center;
    padding: 30px 15px;
}


.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}


.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}


.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.carousel-item i {
    font-size: 2.5rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.carousel-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.carousel-item p {
    font-size: 1rem;
    line-height: 1.5;
}


.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary-text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--highlight-color);
}

.carousel-indicator:hover {
    background-color: var(--highlight-color);
}*/




/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    text-align: center;
    color: white;
    padding: 40px 20px; /* Consistent section padding */
}

.cta-section h2 {
    margin-bottom: 20px; /* Consistent spacing for headings */
}

/* Consolidated CTA Button Style */
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #4EA1D3;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none; /* Remove underline for anchor tags */
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
}

.cta-button:hover {
    background-color: var(--hover-blue-color);
    color: var(--dark-text-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



.snow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    opacity: 0.8;
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Make both CTA buttons equal width */
.cta-buttons {
  display: flex;
  gap: 1rem; /* space between buttons */
}

.cta-buttons .cta-button {
  flex: 1;           /* each button takes equal share */
  display: block;    /* so width: 100% applies */
  text-align: center;/* keep text centred */
}




