/* Home page specific styles with scoped selectors */

/* Global Styles */
body .full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* Hero Section */
.home-hero {
    background: linear-gradient(120deg, #e6f0fa 0%, #b3d1f7 100%);
    color: #003366;
    font-family: 'Poppins', sans-serif;
}

.home-headline {
    color: #003366;
    letter-spacing: -0.02em;
}

.home-lead {
    color: #4a5568;
}

.home-feature-icon {
    color: #4fc3f7;
    font-size: 1.3rem;
}

.home-btn-primary {
    color: #003366;
    border-radius: 8px;
}

.home-btn-outline {
    border-radius: 8px;
    color: #003366;
    border-color: #003366;
}

.home-btn-outline:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: white !important;
}

/* Package Cards */
.home-card,
.home-card-accent {
    border-radius: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.home-card:hover,
.home-card-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 51, 102, 0.12);
}

.home-card-accent {
    border-width: 2px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.12);
}

.home-card-title {
    color: #003366;
    font-weight: 700;
    font-size: 1.3rem;
}

.home-card-price {
    font-weight: 800;
    color: #003366;
    font-size: 2rem;
}

.home-card-currency {
    position: relative;
    font-size: 1rem;
    top: -0.4em;
}

.home-card-subprice {
    font-size: 0.85rem;
}

/* Promotional Pricing Styles */
.home-card-price .text-muted[style*="text-decoration: line-through"] {
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #dc3545 !important;
    opacity: 0.8 !important;
}

.home-card-price .badge {
    background-color: #4fc3f7 !important;
    color: white !important;
    font-size: 0.7rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3);
    animation: pulse-savings 2s infinite;
    font-weight: 600 !important;
}

.home-card-subprice .text-success {
    color: #28a745 !important;
    font-weight: 700 !important;
}

/* Subtle pulse animation for savings badge */
@keyframes pulse-savings {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Additional promotional text styling */
.text-muted.text-decoration-line-through.small {
    font-size: 0.85rem !important;
    opacity: 0.6 !important;
}

.home-features-box {
    border-radius: 0;
    padding: 12px;
    background: #f8f9fa;
}

.home-card-accent .home-features-box {
    background: #f0f7ff;
}

.home-features-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.home-feature-disabled {
    color: #adb5bd;
    text-decoration: line-through;
}

.popular-badge-wrapper {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.home-badge-popular {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.home-btn-basic {
    border-radius: 8px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.home-btn-basic:hover {
    background-color: #29b6f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.home-btn-complete {
    border-radius: 8px;
    background: linear-gradient(135deg, #003366, #004d99);
    border: none;
}

.home-card .card-body,
.home-card-accent .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 35px !important;
    /* Ensures consistent spacing from the top */
}

.home-card-accent .card-body {
    padding-top: 40px !important;
    /* Extra space for the popular badge */
}

.home-trust-text {
    color: #003366;
    font-size: 0.85rem;
}

/* ========================
   PREMIUM DEED POLL CARDS 
   ======================== */

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

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

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

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

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

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

@keyframes floatSparkle {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

@keyframes pulseGlow {

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

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Section styling */
.premium-accent-bg {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(0, 86, 179, 0.1));
    border-radius: 50%;
    z-index: -1;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #003366, #0056b3);
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-badge:hover::before {
    left: 100%;
}

.premium-section-title {
    color: #003366;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #003366, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-section-subtitle {
    color: #5a6d87;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards container */
.premium-cards-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 60px auto;
    max-width: 1000px;
    perspective: 1000px;
    background: transparent;
    /* Ensure transparent background */
}

/* Individual card styling */
.premium-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow:
        0 20px 40px rgba(0, 51, 102, 0.08),
        0 8px 25px rgba(0, 51, 102, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1;
    max-width: 450px;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 102, 0.06);
    transform-style: preserve-3d;
}

.premium-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow:
        0 30px 60px rgba(0, 51, 102, 0.15),
        0 15px 35px rgba(0, 51, 102, 0.1);
}

/* Special styling for child card */
.child-card {
    position: relative;
    overflow: visible;
    /* Allow animated border to show */
}

/* Remove special border effect for consistency with adult card */
.child-card::before {
    display: none;
}

.child-card:hover::before {
    display: none;
}

/* Disable the CSS tooltip in favor of HTML tooltip */
.child-card::after {
    display: none;
}

/* Animated gradient for child card border */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced child card styling */
.child-card .premium-card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    position: relative;
    overflow: visible;
}

.child-card .premium-icon {
    border: 4px solid rgba(0, 51, 102, 0.15);
    background: linear-gradient(135deg, #f0f7ff, #e6f0fa);
    box-shadow:
        0 0 20px rgba(0, 51, 102, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.child-card .premium-icon-bg {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(0, 86, 179, 0.15));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.child-card .premium-badge-age {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.15), rgba(0, 86, 179, 0.1));
    border: 2px solid rgba(0, 51, 102, 0.2);
    font-weight: 700;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(0, 51, 102, 0.3);
    }

    to {
        box-shadow: 0 0 15px rgba(0, 51, 102, 0.5);
    }
}

/* Special tooltip for child card */
.child-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #003366, #0056b3);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.child-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #003366;
}

.child-tooltip i {
    margin-right: 6px;
    color: #66ccff;
}

.child-card:hover .child-tooltip {
    opacity: 1;
    visibility: visible;
    top: -55px;
}

/* Card glow effects - unified blue theme */
.premium-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.adult-glow,
.child-glow {
    background: radial-gradient(circle at 50% 50%, rgba(0, 51, 102, 0.15), transparent 70%);
}

.premium-card:hover .premium-card-glow {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

/* Card header with icon */
.premium-card-header {
    position: relative;
    padding: 40px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.premium-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.premium-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8faff, #e3eefd);
    border: 3px solid rgba(0, 51, 102, 0.1);
}

.premium-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 51, 102, 0.2));
}

.premium-icon-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(0, 86, 179, 0.1));
    opacity: 0.3;
    z-index: 1;
    transition: all 0.3s ease;
}

.premium-card:hover .premium-icon {
    transform: scale(1.1) rotateY(10deg);
    border-color: rgba(0, 51, 102, 0.2);
}

.premium-card:hover .premium-icon-bg {
    transform: scale(1.2);
    opacity: 0.5;
}

/* Age badges - unified blue theme */
.premium-badge-age {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 51, 102, 0.1);
    color: #003366;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 51, 102, 0.15);
}

/* Card body */
.premium-card-body {
    padding: 20px 30px 30px;
    text-align: center;
}

.premium-card-title {
    color: #003366;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.premium-card-description {
    color: #5a6d87;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 50px;
}

/* Child card description needs better contrast */
.child-card .premium-card-description {
    color: #2d3748;
    font-weight: 500;
}

/* Features list */
.premium-features {
    margin-bottom: 25px;
}

.premium-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(0, 51, 102, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.premium-feature:hover {
    background: rgba(0, 51, 102, 0.06);
    transform: translateX(5px);
}

.premium-feature i {
    color: #4fc3f7;
    margin-right: 12px;
    font-size: 14px;
}

.premium-feature span {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

/* Card footer with button */
.premium-card-footer {
    padding: 0 30px 30px;
}

.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: none;
    gap: 12px;
    background: linear-gradient(135deg, #003366, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.premium-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
    background: linear-gradient(135deg, #004080, #0066cc);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.premium-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Sparkle effects - enhanced for child card */
.premium-card-sparkle {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0.6;
}

.adult-sparkle::before {
    content: '✦';
    color: #003366;
    font-size: 16px;
    animation: floatSparkle 3s infinite;
}

.child-sparkle::before {
    content: '✨';
    color: #0056b3;
    font-size: 18px;
    animation: floatSparkle 3s infinite 1.5s, sparkleGlow 2s ease-in-out infinite;
}

@keyframes sparkleGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(0, 51, 102, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(0, 86, 179, 0.6);
        transform: scale(1.2);
    }
}

/* Remove duplicate child card border effect */

/* Trust section */
.premium-trust-section {
    display: flex;
    justify-content: center;
    gap: 80px;
    /* Increased gap for better spacing with 2 items */
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8faff 0%, rgba(248, 250, 255, 0.5) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 51, 102, 0.05);
}

.premium-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #5a6d87;
    font-size: 14px;
    font-weight: 500;
}

.premium-trust-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.premium-trust-icon i {
    color: white;
    font-size: 18px;
}

.premium-trust-item:hover .premium-trust-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.3);
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

/* Tablet-specific styles for better trust section layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .premium-trust-section {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 25px 20px;
    }
    
    .premium-trust-item {
        flex-basis: calc(33.333% - 27px);
        min-width: 140px;
    }
    
    .premium-trust-icon {
        width: 45px;
        height: 45px;
    }
    
    .premium-trust-icon i {
        font-size: 16px;
    }
}

/* Responsive design */
@media (max-width: 767px) {
    .premium-cards-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .premium-card {
        max-width: 100%;
    }

    .premium-trust-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 20px;
    }

    .premium-trust-item {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .premium-trust-icon {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .premium-section-title {
        font-size: 2.2rem;
    }

    .premium-section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .premium-card-header {
        padding: 30px 20px 15px;
    }

    .premium-card-body {
        padding: 15px 20px 20px;
    }

    .premium-card-footer {
        padding: 0 20px 25px;
    }

    .premium-section-title {
        font-size: 1.8rem;
    }

    .premium-card-title {
        font-size: 24px;
    }

    .premium-badge {
        font-size: 0.8rem;
        padding: 6px 18px;
    }

    .premium-trust-section {
        margin-top: 30px;
        padding: 15px;
    }

    .premium-trust-item {
        font-size: 13px;
    }
}

/* Performance optimizations */
.premium-card {
    contain: layout style paint;
    will-change: transform;
}

.premium-card-glow {
    will-change: opacity, transform;
}

.premium-btn {
    will-change: transform;
}

/* Enhanced loading states */
.premium-cards-loaded .premium-card {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility improvements */
.premium-btn:focus {
    outline: 3px solid rgba(0, 51, 102, 0.3);
    outline-offset: 2px;
}

.premium-card:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 51, 102, 0.2),
        0 20px 40px rgba(0, 51, 102, 0.08),
        0 8px 25px rgba(0, 51, 102, 0.06);
}

/* Identity Cards */
.home-section-title {
    color: #003366;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.home-section-subtitle {
    color: #5a6d87;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Identity Cards - Fixed Alignment */
.home-identity-card {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 1.25rem !important;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-image-wrapper {
    height: 100px;
    position: relative;
    width: 100%;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-graphic-arc {
    position: absolute;
    width: 130px;
    height: 130px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
}

.home-icon-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.home-icon-img {
    max-width: 90px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 51, 102, 0.1));
}

.home-identity-title {
    color: #003366;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.75rem;
    min-height: 2rem;
    /* Ensures consistent height for titles */
}

.home-identity-desc {
    color: #5a6d87;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 4rem;
    /* Ensures consistent height for descriptions */
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-selection-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #003366;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: auto;
    /* Pushes button to bottom of card */
}

.home-selection-btn:hover {
    background-color: #004080;
    transform: translateY(-2px);
}

/* Age badge positioning fix */
.home-age-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 51, 102, 0.08);
    color: #003366;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

/* Blue Bar */
.home-blue-bar {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.home-blue-bar h3 {
    margin: 0;
    font-weight: 700;
    color: white;
}

.home-blue-bar a {
    color: white;
    text-decoration: underline;
}

/* Why Choose Us Section */
.home-features-list {
    border-left: 4px solid #003366;
    background-color: #f8faff;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
}

.home-check-icon {
    color: #003366;
}

.home-cta-btn-primary {
    background: linear-gradient(135deg, #003366, #004080);
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
}

.home-cta-btn-outline {
    font-weight: 600;
    border-color: #003366;
    color: #003366;
}

.home-cta-btn-outline:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: white !important;
}

/* Override Bootstrap button defaults */
.btn-outline-primary:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #002244 !important;
    border-color: #002244 !important;
}

/* How It Works Section */
.home-howto-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.home-step-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 1rem;
    background: #003366;
    margin-right: 8px;
    margin-left: -4px;
}

/* Testimonials Section */
.home-testimonials {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 51, 102, 0.08);
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
    color: #333;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Aggressive reset for testimonial alignment */
.home-testimonials *,
.home-testimonials *::before,
.home-testimonials *::after {
    box-sizing: border-box;
}

.home-testimonials .col-lg-4:nth-child(1),
.home-testimonials .col-lg-4:nth-child(2),
.home-testimonials .col-lg-4:nth-child(3) {
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    vertical-align: top !important;
    align-self: flex-start !important;
    transform: translateY(0) !important;
}

/* Force testimonial columns to align at top */
.home-testimonials .row {
    align-items: flex-start !important;
}

.home-testimonials .col-lg-4,
.home-testimonials .col-md-6 {
    align-self: flex-start !important;
    vertical-align: top !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
}

.home-testimonials .d-flex {
    align-items: flex-start !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force exact positioning for testimonial cards */
.home-testimonials .testimonial-card {
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}

.home-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="rgba(0,51,102,0.02)"><circle cx="10" cy="10" r="1"/><circle cx="30" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="70" cy="10" r="1"/><circle cx="90" cy="10" r="1"/></svg>');
    pointer-events: none;
}

/* Rating Section */
.rating-section {
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.star-rating {
    font-size: 1.2rem;
    gap: 2px;
}

.rating-score {
    font-weight: 700;
    font-size: 1.3rem;
    color: #003366;
    margin-left: 0.5rem !important;
}

.rating-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(0, 51, 102, 0.2);
}

.rating-text {
    font-weight: 500;
    color: #6b7280 !important;
}

/* Enhanced Testimonials Cards */
.testimonial-card {
    border: 2px solid transparent;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    box-shadow:
        0 8px 32px rgba(0, 51, 102, 0.12),
        0 2px 8px rgba(0, 51, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 320px !important;
    height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: flex-start !important;
    vertical-align: top !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    transform: translateY(0) !important;
}

.testimonial-card .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
    height: 100% !important;
    padding: 1.5rem !important;
    overflow: hidden !important;
}

.testimonial-card .testimonial-text {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 80px !important;
}

/* Fix star rating alignment */
.testimonial-rating {
    height: 24px !important;
    line-height: 24px !important;
    display: flex !important;
    align-items: center !important;
}

.testimonial-rating i {
    line-height: 1 !important;
    vertical-align: baseline !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #003366, #003366, #003366, #20c997);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 51, 102, 0.1), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 51, 102, 0.25),
        0 8px 16px rgba(0, 51, 102, 0.15),
        0 0 0 1px rgba(0, 51, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(0, 51, 102, 0.2);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* Testimonial Header */
.testimonial-header {
    margin-bottom: 1rem;
}

.testimonial-header .testimonial-initials {
    margin-right: 1.25rem !important;
    /* Balanced spacing between icon and name/location */
}

.testimonial-initials {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003366, #0056b3, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow:
        0 6px 20px rgba(0, 51, 102, 0.4),
        0 2px 8px rgba(0, 51, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-initials::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.3), rgba(0, 91, 179, 0.3), transparent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.testimonial-initials::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #003366, #0056b3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.testimonial-card:hover .testimonial-initials {
    transform: scale(1.1);
    box-shadow:
        0 8px 25px rgba(0, 51, 102, 0.5),
        0 4px 12px rgba(0, 51, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.testimonial-card:hover .testimonial-initials::before {
    opacity: 1;
    inset: -8px;
}

.testimonial-card:hover .testimonial-initials::after {
    opacity: 0.4;
}

@keyframes pulse {

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

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

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    color: #003366;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem !important;
}

.testimonial-location {
    color: #6b7280 !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.testimonial-location i {
    color: #9ca3af;
}

/* Testimonial Content */
.testimonial-rating {
    font-size: 1rem;
    margin-bottom: 1rem !important;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2.5rem;
    font-style: italic;
    margin-bottom: 0 !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Enhanced Card Footer */
.card-footer {
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.8), rgba(255, 255, 255, 0.9)) !important;
    border-top: 1px solid rgba(0, 51, 102, 0.12) !important;
    padding: 1.2rem 1.5rem !important;
    backdrop-filter: blur(10px);
    position: relative;
}

.card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 91, 179, 0.3), transparent);
}

.verification-badge {
    display: flex;
    align-items: center;
    color: #4b5563 !important;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    transition: all 0.3s ease;
}

.verification-badge::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    animation: trustPulse 2s infinite;
}

.verification-badge i {
    color: #059669 !important;
    margin-right: 0.5rem !important;
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(5, 150, 105, 0.3));
}

.testimonial-card:hover .verification-badge {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.2);
}

@keyframes trustPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Title Styling */
.home-testimonials-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #003366 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
}

.home-testimonials-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #003366, #0056b3);
    border-radius: 2px;
}

/* Testimonials Responsive */

/* Tablet-specific spacing for testimonials */
@media (min-width: 768px) and (max-width: 1024px) {
    .home-testimonials .col-md-6 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 767px) {
    .home-testimonials {
        padding: 40px 0;
    }

    .home-testimonials-title {
        font-size: 1.8rem;
    }

    .rating-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .rating-divider {
        display: none;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .testimonial-initials {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .testimonial-header .testimonial-initials {
        margin-right: 1rem !important;
        /* Proportional spacing for mobile */
    }

    .testimonial-text {
        font-size: 0.95rem;
        padding-left: 2rem;
    }
}

@media (max-width: 576px) {
    .rating-section {
        margin-bottom: 1.5rem;
    }

    .star-rating {
        font-size: 1.1rem;
    }

    .rating-score {
        font-size: 1.2rem;
    }
}

/* Advanced JavaScript Effects for Testimonials */
.testimonial-card {
    --gradient-angle: 135deg;
    --gradient-speed: 3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Force consistent height */
    min-height: 320px !important;
    height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure all testimonial cards have equal height */
.home-testimonials .testimonial-card {
    min-height: 320px !important;
    height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}

.home-testimonials .testimonial-card .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
}

.home-testimonials .testimonial-card .testimonial-text {
    flex: 1 !important;
    display: block !important;
    text-align: left !important;
    padding: 0.5rem 0 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.testimonial-card:hover {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.floating-dot {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.sparkle {
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
}

.ripple-effect {
    animation: rippleExpand 1.5s ease-out;
    will-change: transform, opacity;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

.word {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, color;
}

.testimonial-initials {
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
}

.testimonial-rating i {
    will-change: transform, filter;
    transition: all 0.3s ease;
}

/* Performance optimizations */
.testimonial-card * {
    backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .testimonial-card,
    .testimonial-card *,
    .floating-dot,
    .sparkle,
    .ripple-effect,
    .word {
        animation: none !important;
        transition: none !important;
    }

    .testimonial-card:hover {
        transform: none !important;
    }
}

/* CTA Section */
.home-final-cta {
    padding-bottom: 50px;
    font-family: 'Poppins', sans-serif;
}

.home-final-cta h2 {
    color: #003366;
    font-weight: 700;
}

.home-final-cta-btn {
    background-color: #003366;
    border-color: #003366;
}

/* KEEP ALL INLINE STYLES FROM THE HTML */
.home-card-accent .position-absolute {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.home-card-accent .card-body {
    padding-top: 40px;
}

.home-card-accent .home-card-title {
    font-size: 1.3rem;
}

.home-card-accent .home-card-price {
    font-size: 2rem;
}

.home-card-accent .home-card-currency {
    font-size: 1rem;
    top: -0.4em;
}

.home-card-accent .home-card-subprice {
    font-size: 0.85rem;
}

.home-card-accent .home-features-box {
    background: #f0f7ff;
}

.home-card-accent .home-features-box ul {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Font family for container sections */
.my-5 {
    font-family: 'Poppins', sans-serif;
}

/* Trust badge specific styling */
.badge.bg-success {
    font-size: 0.9rem;
}

/* About us image section */
.col-md-10 img {
    width: 100%;
    height: auto;
}

/* Logo list styling */
.col-md-2 .d-flex.flex-column.align-items-end {
    gap: 18px;
}

.col-md-2 a {
    display: block;
    transition: transform 0.15s;
    margin-bottom: 12px;
}

.col-md-2 img {
    height: 32px;
    width: auto;
}

/* How it works steps text */
.home-howto-box div>div:last-child {
    font-size: 1rem;
}

/* Override Bootstrap primary color */
.text-primary {
    color: #003366 !important;
}

/* Enhanced Identity Cards Section */
.identity-accent-line {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #003366, #0056b3);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.identity-card-container {
    perspective: 1000px;
}

.home-identity-card {
    background: linear-gradient(145deg, #f8faff 0%, #ffffff 100%);
    border-radius: 1rem;
    padding: 1.5rem !important;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 51, 102, 0.05);
    position: relative;
    overflow: hidden;
}

.shadow-hover:hover .home-identity-card {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15);
    border-color: rgba(0, 51, 102, 0.1);
}

.home-image-wrapper {
    height: 120px;
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-graphic-arc {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    transition: all 0.4s ease;
}

.shadow-hover:hover .home-graphic-arc {
    background: rgba(0, 51, 102, 0.08);
    transform: translateX(-50%) scale(1.05);
}

.home-icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.shadow-hover:hover .home-icon-container {
    transform: translateY(-5px) scale(1.05);
}

.home-icon-img {
    max-width: 90px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 51, 102, 0.15));
    transition: all 0.3s ease;
}

.home-identity-title {
    color: #003366;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    min-height: 2rem;
    transition: color 0.3s ease;
}

.shadow-hover:hover .home-identity-title {
    color: #0056b3;
}

.home-identity-desc {
    color: #5a6d87;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.home-selection-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #003366, #0056b3);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    position: relative;
    overflow: hidden;
}

.home-selection-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
}

.home-selection-btn:hover {
    background: linear-gradient(135deg, #004080, #0066cc);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

.home-selection-btn:hover::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.delivery-badge {
    display: inline-block;
    background: rgba(0, 51, 102, 0.06);
    color: #003366;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 51, 102, 0.1);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.delivery-badge:hover {
    background: rgba(0, 51, 102, 0.08);
    transform: translateY(-2px);
}

/* Modern Identity Cards Section */
.identity-accent-shape {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #003366, #0070db);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.identity-accent-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.identity-badge {
    display: inline-block;
    background: rgba(0, 51, 102, 0.08);
    color: #003366;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    transform: translateY(-5px);
}

.home-section-title {
    color: #003366;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.home-section-subtitle {
    color: #5a6d87;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Cards Layout */
.identity-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin: 3rem 0;
    perspective: 1000px;
}

.identity-card-modern {
    width: 100%;
    max-width: 400px;
    height: auto;
    /* Changed from fixed height */
    min-height: 380px;
    /* Use min-height instead of fixed height */
    padding-bottom: 20px;
    /* Add bottom padding for button space */
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 51, 102, 0.08);
    transform: translateZ(0);
}

.identity-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.2);
}

.identity-card-content {
    padding: 2.5rem 2rem;
    /* Consistent padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.identity-card-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.identity-card-icon {
    width: 130px !important;
    /* Increased from 110px */
    height: 130px !important;
    /* Increased from 110px */
    background: rgba(0, 51, 102, 0.08);
    border-radius: 28px;
    /* Increased from 24px for better proportion */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.12);
    transform: rotate(-5deg);
    border: 1px solid rgba(0, 51, 102, 0.08);
    margin: 0 auto 2rem;
    /* Increased bottom margin for spacing */
}

.identity-icon-img {
    width: 90px !important;
    /* Increased from 75px */
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0, 51, 102, 0.25));
    transition: all 0.3s ease;
}

/* Adjust hover effects for larger icons */
.identity-card-modern:hover .identity-card-icon {
    transform: rotate(0deg) scale(1.06);
    background: rgba(0, 51, 102, 0.12);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.18);
}

.identity-card-modern:hover .identity-icon-img {
    transform: scale(1.08);
    filter: drop-shadow(0 10px 20px rgba(0, 51, 102, 0.3));
}

/* Adjust container height to accommodate larger icons */
.identity-card-content {
    padding-top: 3rem;
    /* Increased from default to give more room for larger icons */
}

/* Fix card content height issues */
.identity-card-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Fix the description height to make buttons align */
.identity-card-desc {
    color: #5a6d87;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 80px !important;
    /* Fixed height for description */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

/* Make buttons consistent size */
.identity-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem !important;
    /* Consistent padding */
    background: linear-gradient(135deg, #003366, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push to bottom of flex container */
    overflow: hidden;
    position: relative;
    height: 56px !important;
    /* Fixed height for buttons */
    width: 100%;
}

/* Fix for Deed Poll Card Alignment Issues */

/* Improve card sizing and padding */
.identity-card-modern {
    width: 100%;
    max-width: 400px;
    height: auto;
    /* Changed from fixed height */
    min-height: 380px;
    /* Use min-height instead of fixed height */
    padding-bottom: 20px;
    /* Add bottom padding for button space */
}

/* Fix content container to properly handle space */
.identity-card-content {
    padding: 2.5rem 2rem;
    /* Consistent padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Center align the title to match description */
.identity-card-title {
    color: #003366;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    /* Ensure title is centered */
    margin-bottom: 1rem;
    width: 100%;
    /* Make title take full width */
}

/* Ensure consistent description styling */
.identity-card-desc {
    color: #5a6d87;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    min-height: 3rem;
}

/* Fix button to prevent overflow */
.identity-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin: 0 auto;
    /* Center the button */
    width: calc(100% - 2rem);
    /* Adjust width to prevent overflow */
    max-width: 280px;
    /* Maximum width for button */
    border-radius: 12px;
    margin-top: auto;
    /* Push button to bottom */
    margin-bottom: 1rem;
    /* Add bottom margin */
    position: relative;
    /* Ensure proper positioning */
    bottom: 0;
    /* Anchor to bottom */
}

/* Make sure icon is properly aligned */
.identity-card-btn .btn-text {
    flex-grow: 1;
    text-align: center;
    margin-right: 0.5rem;
}

.identity-card-btn .btn-icon {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .identity-cards-wrapper {
        gap: 1.5rem;
    }

    .identity-card-modern {
        height: auto;
        min-height: 340px;
    }

    .identity-card-content {
        padding: 1.75rem;
    }

    .identity-card-icon {
        width: 75px;
        height: 75px;
    }

    .identity-icon-img {
        width: 50px;
    }

    .identity-card-title {
        font-size: 1.4rem;
    }

    .identity-info {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
}

/* Journey Steps Styles */
.journey-flow {
    padding: 1rem 0;
}

.journey-step {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 51, 102, 0.08);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.05);
}

.journey-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.12);
    border-color: rgba(0, 51, 102, 0.15);
}

.journey-step .step-icon {
    padding: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    margin: 0 auto 1rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #003366;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.journey-step .step-icon i {
    color: #003366;
    font-size: 2.5rem;
}

.journey-step h6 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.journey-step p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive journey steps */
@media (max-width: 576px) {
    .journey-step {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }

    .journey-step .step-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .journey-step .step-icon i {
        font-size: 2rem;
    }

    .journey-step h6 {
        font-size: 1rem;
    }

    .journey-step p {
        font-size: 0.85rem;
    }
}

/* Logo Carousel Styles */
.logo-carousel-container {
    overflow: hidden;
    padding: 20px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.8) 80%, transparent 100%);
    border-radius: 12px;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    align-items: center;
    animation: scroll-logos 30s linear infinite;
    width: calc(200% + 40px); /* Double width for seamless loop */
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 20px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logo-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

/* Prominent Logo Carousel Styles */
.prominent-logo-section {
    background: linear-gradient(120deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.prominent-logo-carousel-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.prominent-logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.prominent-logo-track {
    display: flex;
    align-items: center;
    animation: scroll-prominent-logos 40s linear infinite;
    width: calc(300% + 120px); /* Triple width for ultra-smooth loop */
}

.prominent-logo-item {
    flex: 0 0 auto;
    margin: 0 50px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 20px;
}

.prominent-logo-item:hover {
    transform: scale(1.15);
}

.prominent-logo-item img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 51, 102, 0.1));
}

.prominent-logo-item:hover img {
    opacity: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 51, 102, 0.15));
}

@keyframes scroll-prominent-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Pause animation on hover */
.prominent-logo-carousel:hover .prominent-logo-track {
    animation-play-state: paused;
}

/* Responsive adjustments for logo carousel */
@media (max-width: 767px) {
    .logo-item {
        margin: 0 15px;
    }
    
    .logo-item img {
        height: 32px;
        max-width: 100px;
    }
    
    .logo-track {
        animation-duration: 25s;
    }

    .prominent-logo-item {
        margin: 0 30px;
        padding: 15px;
    }
    
    .prominent-logo-item img {
        height: 65px;
        max-width: 180px;
    }
    
    .prominent-logo-track {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .logo-item {
        margin: 0 10px;
    }
    
    .logo-item img {
        height: 28px;
        max-width: 80px;
    }
    
    .logo-track {
        animation-duration: 20s;
    }

    .prominent-logo-item {
        margin: 0 20px;
        padding: 12px;
    }
    
    .prominent-logo-item img {
        height: 50px;
        max-width: 140px;
    }
    
    .prominent-logo-track {
        animation-duration: 25s;
    }
}

/* Mobile-specific fix for white gap between navbar and hero section */
@media (max-width: 767px) {
    /* Fix for home page hero section on mobile */
    body.no-top-padding .home-hero {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
    
    /* Ensure container alignment on mobile */
    body.no-top-padding .container-fluid.p-0 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any inherited margins on mobile for full-bleed sections */
    .full-bleed.home-hero {
        margin-top: 0 !important;
    }
}

/* Popular Badge Positioning Fix */
.popular-badge-wrapper {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    text-align: center;
}

.home-badge-popular {
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.3);
}

/* Ensure card has proper spacing for the badge */
.home-card-accent {
    overflow: visible !important;
}

/* Add top padding to card body instead of margin to maintain alignment */
.home-card-accent .card-body {
    padding-top: 2rem !important;
}

/* Adjust the container to account for badge overflow */
#choose-package .row {
    padding-top: 15px;
}
/* Tablet-specific layout: Stack "Why Choose Us" and "How It Works" sections */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Force full-width stacking for Why Choose Us section on tablets */
    .container .row.g-5 .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Add spacing between stacked sections */
    .container .row.g-5 .col-md-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Center hero section content on tablets */
    .home-hero .col-lg-6:first-child {
        text-align: center !important;
    }
    
    /* Center headline, lead text, and feature icons */
    .home-headline,
    .home-lead {
        text-align: center !important;
    }
    
    /* Center the feature icons row */
    .home-hero .d-flex.flex-wrap.justify-content-center {
        justify-content: center !important;
    }
    
    /* Center the buttons */
    .home-hero .d-flex.flex-column.flex-md-row {
        justify-content: center !important;
    }
}

