/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #fafafa; /* Slight off-white to match typical clean backgrounds */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
.header-main {
    border-color: #ebebeb !important;
}

.main-nav .nav-link {
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.main-nav .nav-link:hover {
    color: #cc142c;
}

.icon-sm {
    font-size: 0.6rem;
    vertical-align: middle;
}

.search-btn {
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #cc142c;
}

.mobile-menu .nav-link {
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: #fafafa;
}

.hero-title {
    font-size: 6rem;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.text-solid {
    color: #b3b3b3;
    font-weight: 400;
}

.text-guidance {
    color: #1a1a1a;
    font-weight: 500;
}

.text-for-daily {
    color: #1a1a1a;
    font-weight: 500;
}

.text-growth {
    color: #1a1a1a;
    font-weight: 400;
}

/* Custom Button */
.btn-primary-custom {
    background-color: #cc142c;
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-custom i {
    font-size: 1.1rem;
}

.btn-primary-custom:hover {
    background-color: #a81023;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 20, 44, 0.2);
}

/* Responsive Typography & Spacing */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 4rem;
    }
    .main-nav {
        pointer-events: none; /* Prevent absolute positioning from blocking clicks on small screens */
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-section {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .btn-primary-custom {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Video Section */
.video-section {
    background-color: #fafafa;
}

.video-container {
    border-radius: 4px;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(204, 20, 44, 0.7);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(204, 20, 44, 0.9);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid white;
    margin-left: 6px; /* Offset to center triangle optically */
}

@media (max-width: 767.98px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    .play-icon {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 16px solid white;
        margin-left: 4px;
    }
}

/* Case Studies Section */
.case-studies {
    background-color: #ffffff;
    border-bottom: 30px solid #cc142c; /* Added red footer bar from image */
}

.text-primary-custom {
    color: #cc142c;
}

.case-card {
    border-radius: 2px;
    overflow: hidden;
}

.case-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    min-height: 50%;
}

.slider-wrapper {
    /* For custom slider navigation positioning */
}

.slider-nav-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.prev-btn {
    left: 20px;
    background-color: #6b141e; /* Dark maroon to match design */
}

.prev-btn:hover {
    background-color: #4a0d14;
    transform: translateY(-50%) scale(1.05);
}

.next-btn {
    /* Base positioning for mobile/smaller screens */
    right: 20px;
    background-color: rgba(212, 111, 123, 0.85); /* Semi-transparent lighter pink/red */
    backdrop-filter: blur(4px);
}

.next-btn:hover {
    background-color: rgba(204, 20, 44, 0.9);
    transform: translateY(-50%) scale(1.05);
}

/* Logic to push the right arrow to the viewport edge while keeping it vertically aligned to the slider */
@media (min-width: 992px) {
    .next-btn-bleed {
        right: calc(-1 * ((100vw - 960px) / 2) + 20px);
    }
}
@media (min-width: 1200px) {
    .next-btn-bleed {
        right: calc(-1 * ((100vw - 1140px) / 2) + 20px);
    }
}
@media (min-width: 1400px) {
    .next-btn-bleed {
        right: calc(-1 * ((100vw - 1320px) / 2) + 20px);
    }
}

@media (max-width: 991.98px) {
    .case-card {
        width: 100% !important;
    }
    .slider-track {
        flex-direction: column;
    }
    .slider-nav-btn {
        display: none !important; /* Hide arrows on mobile for simplicity */
    }
}

/* News & Blog Section */
.bg-primary-custom {
    background-color: #cc142c;
}

.news-blog-section .blog-card {
    cursor: pointer;
}

.news-blog-section .blog-card-img-wrapper {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-blog-section .blog-card img {
    transition: transform 0.4s ease;
}

.news-blog-section .blog-card:hover img {
    transform: scale(1.05);
}

.news-blog-section .btn:hover {
    background-color: #f0f0f0 !important;
}

/* Investment Section */
.grid-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 30 0 L 0 0 0 30' fill='none' stroke='rgba(0,0,0,0.05)' stroke-dasharray='2 4'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* News & Blog V2 Section (Horizontal Cards) */
.news-blog-v2 .blog-card-v2 {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.news-blog-v2 .blog-card-v2:hover {
    transform: translateY(-5px);
}
.news-blog-v2 .thumbnail-box {
    background-color: #fdfaf6; /* Off-white color from image */
}
.news-blog-v2 .grid-area {
    background-image: linear-gradient(rgba(0,0,0,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: left top;
    border-color: rgba(0,0,0,0.12) !important;
}
.news-blog-v2 .red-sq-1 {
    width: 40px;
    height: 40px;
    top: 80px;
    left: 0px;
}
.news-blog-v2 .red-sq-2 {
    width: 20px;
    height: 20px;
    top: 120px;
    left: 40px;
}
.news-blog-v2 .serif-heading {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    letter-spacing: -0.03em;
}
.news-blog-v2 .overlay-badge {
    height: 36px;
}
.news-blog-v2 .text-area {
    background-color: transparent;
}

@media (max-width: 575.98px) {
    .news-blog-v2 .thumbnail-box {
        flex-direction: column;
        height: auto !important;
    }
    .news-blog-v2 .grid-area {
        width: 100% !important;
        height: 80px; /* Show a small strip of grid */
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.12);
    }
    .news-blog-v2 .red-sq-1 {
        top: 0;
        left: 40px;
    }
    .news-blog-v2 .red-sq-2 {
        top: 40px;
        left: 80px;
    }
    .news-blog-v2 .image-area {
        width: 100% !important;
        height: 240px;
    }
    .news-blog-v2 .text-area {
        width: 100% !important;
    }
    .news-blog-v2 .badge-straddle {
        right: 0 !important; /* Keep inside image on mobile */
    }
}

/* CTA Section */
.cta-circle-btn {
    width: 260px;
    height: 260px;
    background-color: #e4e4e4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-circle-btn .icon-ring {
    width: 48px;
    height: 48px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    transition: inherit;
}

.cta-circle-btn .icon-ring i {
    font-size: 1.2rem;
}

.cta-circle-btn .cta-text,
.cta-circle-btn .cta-subtext {
    transition: inherit;
}

.cta-circle-btn:hover {
    background-color: #8b4513; /* Brown hover state */
    transform: scale(1.03);
}

.cta-circle-btn:hover .cta-text,
.cta-circle-btn:hover .cta-subtext {
    color: #ffffff !important;
}

.cta-circle-btn:hover .icon-ring {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .cta-section .display-3 {
        font-size: 3rem;
    }
    .cta-circle-btn {
        width: 200px;
        height: 200px;
    }
}

/* Footer Section */
.footer-section {
    background-color: #171717; /* Very dark charcoal */
}

.footer-col-border {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-link {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icon-btn.active {
    background-color: #cc142c;
    border-color: #cc142c;
}

.social-icon-btn:hover:not(.active) {
    border-color: rgba(255,255,255,0.6);
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .footer-col-border {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem !important;
    }
}
