/* Modules Page Specific CSS */

.modules-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(7, 17, 31, 1) 0%, rgba(15, 30, 46, 1) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modules-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(50, 140, 193, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.modules-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(50, 140, 193, 0.2);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(50, 140, 193, 0.4);
}

.modules-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #b3e5fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modules-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #a0b2c6;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.modules-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.module-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(50, 140, 193, 0.3);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(50, 140, 193, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--glow);
}

.module-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.module-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.module-benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #062235 100%);
    position: relative;
}

.module-benefits::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #eaf4ff;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.benefit-item:hover {
    background: rgba(50, 140, 193, 0.2);
    border-color: rgba(50, 140, 193, 0.5);
    transform: translateX(5px);
}

.cta-section {
    padding: 80px 0 100px;
    background: var(--bg-color);
}

@media (max-width: 575.98px) {
    .modules-hero h1 { font-size: 2.25rem; }
}
