/* Brand Aligned Design System for Trade Maxima */
:root {
    --primary-blue: #002D62;
    /* Maxima Blue */
    --accent-red: #D2122E;
    /* Maxima Red */
    --light-bg: #f8f9fa;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Brand Gradients - Blue Dominant with Red Accents */
    --grad-hero: linear-gradient(135deg, #002D62 0%, #001a38 100%);
    --grad-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --grad-button: linear-gradient(90deg, #D2122E 0%, #b00e25 100%);
}

/* Global Layout Fixes */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
}

form#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Fix - Override style.css absolute positioning */
.site-navbar-wrap {
    position: relative !important;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.hero-section {
    margin-top: 0 !important;
    padding: 50px 20px;
    background: var(--grad-hero);
    color: white;
    text-align: center;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    /* Reduced font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    /* Reduced font size */
    opacity: 0.9;
    margin-bottom: 0;
}

/* Footer Fix */
#footer {
    position: relative !important;
    background: #111 !important;
    color: #fff;
    padding: 40px 0;
    margin-top: auto;
    width: 100%;
}

/* Creative Cards (Brand Style) */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.creative-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.creative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.card-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    background: var(--primary-blue);
    transition: var(--transition);
}

.creative-card:hover .card-icon-bg {
    transform: scale(1.5);
    opacity: 0.1;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--primary-blue);
    /* Brand Blue */
}

.creative-card h5 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    /* Reduced font size */
    margin-bottom: 5px;
}

.creative-card span {
    color: #666;
    font-size: 0.85rem;
    /* Reduced font size */
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

/* Button in Card */
.btn-visit {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-red);
    color: white !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-visit:hover {
    background: #b00e25;
    box-shadow: 0 4px 10px rgba(210, 18, 46, 0.3);
}

/* Quick Link Access */
.login-card-creative {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.login-card-creative::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 20px;
    background: var(--grad-hero);
    z-index: -1;
    margin: -2px;
}

.login-icon-large {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.btn-creative {
    background: var(--accent-red);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    box-shadow: 0 5px 15px rgba(210, 18, 46, 0.3);
    transition: var(--transition);
    display: inline-block;
}

.btn-creative:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 18, 46, 0.5);
    background: #b00e25;
}

/* Headings */
.section-title {
    font-size: 1.8rem;
    /* Reduced font size */
    font-weight: 800;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}