/* Financial Sector TPRM Specific Styles */

/* Color variables */
:root {
    --finance-primary: #0d2e4d;
    --finance-secondary: #1e5c97;
    --finance-accent: #007acc;
    --finance-gold: #d4af37;
    --finance-light: #f0f5fa;
    --finance-dark: #0a1e33;
    --finance-text: #333333;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
}

/* Hero section specific styling */
.finance-hero {
    background: linear-gradient(135deg, var(--finance-dark) 0%, var(--finance-primary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.finance-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/finance-pattern.png');
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.finance-hero .container {
    position: relative;
    z-index: 2;
}

.finance-hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.finance-hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.finance-hero .btn-primary {
    background: var(--finance-gold);
    color: var(--finance-dark);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.finance-hero .btn-primary:hover {
    background: #e9c755;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Overview section styling */
#financial-overview {
    padding: 4rem 0;
    background-color: white;
}

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

.overview-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e7edf5;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.overview-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--finance-accent);
    transition: all 0.3s ease;
    z-index: -1;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.overview-card:hover::before {
    height: 8px;
}

.overview-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--finance-light);
    color: var(--finance-primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.overview-card:hover .icon {
    background: var(--finance-primary);
    color: white;
    transform: scale(1.1);
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--finance-primary);
    font-weight: 600;
}

.overview-card p {
    color: var(--finance-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Subsector rankings styling */
#subsector-rankings {
    padding: 4rem 0;
    background-color: var(--finance-light);
}

.subsector-tabs {
    margin-top: 2.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e7edf5;
    background: var(--finance-primary);
}

.tab-button {
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    position: relative;
}

.tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--finance-gold);
    opacity: 0;
    transition: all 0.3s ease;
}

.tab-button.active, 
.tab-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active::after {
    opacity: 1;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Ranking table styling */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: var(--finance-dark);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table th:first-child {
    border-top-left-radius: 8px;
    text-align: center;
    width: 70px;
}

.ranking-table th:last-child {
    border-top-right-radius: 8px;
    border-right: none;
}

.ranking-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e7edf5;
    vertical-align: middle;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table td:first-child {
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--finance-primary);
    position: relative;
    overflow: hidden;
    background-color: rgba(240, 245, 250, 0.5);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ranking-table td:nth-child(2) {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--finance-primary);
}

.score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.score.high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.score.medium {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    box-shadow: 0 6px 16px rgba(253, 126, 20, 0.35);
}

.score.low {
    background: linear-gradient(135deg, #dc3545 0%, #f86384 100%);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
}

.rating {
    color: var(--finance-gold);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.subsector-details {
    padding: 2rem;
    background: #f9fbfd;
    border-top: 1px solid #e7edf5;
}

.subsector-details h3 {
    color: var(--finance-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--finance-gold);
    display: inline-block;
}

.subsector-details p {
    color: var(--finance-text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.subsector-details ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.subsector-details li {
    margin-bottom: 0.8rem;
    color: var(--finance-text);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.8rem;
}

.subsector-details li::before {
    content: "•";
    color: var(--finance-accent);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Key risks styling */
#key-risks {
    padding: 4rem 0;
    background-color: white;
}

.risks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.risk-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7edf5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.risk-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--finance-accent);
}

.risk-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.risk-item h3 {
    color: var(--finance-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.risk-item h3 i {
    margin-right: 1.5rem;
    color: var(--finance-accent);
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    position: relative;