/**
 * Front-page specific styles.
 * Extracted from index.html inline <style> block.
 */

/* Hero Section - Matching original */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(31, 50, 103, 0.85) 0%, rgba(26, 40, 84, 0.85) 100%), url('../images/compliance_header_1_2.jpeg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding: 6rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    border-left: 3px solid var(--color-secondary);
}

.hero-feature i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 30px;
    max-width: 492px;
}

.about-image::before {
    content: ' ';
    position: absolute;
    width: 90%;
    height: 90%;
    top: -10px;
    left: -10px;
    z-index: -1;
    border-width: 10px;
    border-style: solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #203367 59%, #e41c3c 78%);
}

.about-image .et_pb_image_wrap {
    display: block;
    position: relative;
    border: 3px solid #1f3267;
    border-top: none;
    border-right: none;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.about-years {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #1f3267;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.about-years .years-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.about-years .years-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Industries Section */
.industries-section {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.industry-icon {
    font-size: 96px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 5.82% 0;
}

.feature-item-icon {
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 51px;
    flex-shrink: 0;
    color: #1F3267;
}

/* Module Cards */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.module-card img {
    height: 102px;
    margin-bottom: 1.5rem;
}

.module-card p {
    margin-bottom: 1.5rem;
}

.module-card-legal,
.module-card-act {
    margin: 0 auto;
    height: 420px;
    max-width: 85%;
    background-color: #f8f8f8;
    margin-bottom: 5.82%;
}

.module-card-legal {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="%23e6e7e8" stroke-width="2.5" opacity="0.6"/></svg>');
    background-size: 10px auto;
    background-repeat: round;
}

.module-card-act {
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.5 V7.5 M2.5 5 H7.5" stroke="%23d3d3d3" stroke-width="1.5" fill="none" opacity="0.6"/></svg>');
    background-repeat: repeat;
}

/* 360 Section */
.section-360 {
    background: var(--color-gray-light);
}

.section-360-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    box-shadow: 0 -10px 20px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
}

.section-360 img {
    width: 90%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    padding-top: 112px;
    padding-right: 20px;
    padding-bottom: 112px;
    padding-left: 20px;
}

/* Top Features Section */
.top-features-section {
    padding: 5rem 0 4rem;
    background: #f8f8f8;
}

.top-features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.top-features-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.top-features-title h2 .font-light {
    font-weight: 400;
}

.top-features-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666666 !important;
    margin-bottom: 8px;
    font-family: 'Anek Bangla', Helvetica, Arial, Lucida, sans-serif;
    line-height: 1.2em;
    text-align: left;
}

.top-features-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Demo Button - Solid Blue Rectangle */
.btn-gradient-demo {
    display: inline-block;
    padding: 18px 45px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-gradient-demo:hover {
    background: red;
}

.top-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.top-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-text-container {
    background: #ffffff;
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
}

.card-text-container h3 {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-text-container p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.card-image-container {
    background: #f0f0f0;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .about-years .years-number {
        font-size: 36px;
    }

    .industry-icon {
        font-size: 72px;
    }

    .feature-item-icon {
        font-size: 40px;
    }

    .top-features-title h2 {
        font-size: 28px;
    }

    .about-section,
    .industries-section,
    .features-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-grid,
    .features-grid,
    .modules-grid,
    .section-360-grid {
        grid-template-columns: 1fr;
    }

    .top-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .about-years .years-number {
        font-size: 30px;
    }

    .industry-icon {
        font-size: 56px;
    }

    .feature-item-icon {
        font-size: 34px;
    }

    .top-features-title h2 {
        font-size: 24px;
    }

    .about-section,
    .industries-section,
    .features-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .about-years .years-number {
        font-size: 26px;
    }

    .industry-icon {
        font-size: 48px;
    }

    .feature-item-icon {
        font-size: 28px;
    }

    .top-features-title h2 {
        font-size: 22px;
    }

    .about-section,
    .industries-section,
    .features-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Mobile overflow safeguards (front-page) */
@media (max-width: 992px) {
    .hero,
    .about-section,
    .about-image {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-image img,
    .section-360 img {
        max-width: 100%;
    }
}
