/* Global link styling */
a, .btn, .btn-primary {
    color: #263B80 !important; /* Blue links */
    text-decoration: none;
}

a:hover, .btn:hover, .btn-primary:hover {
    color: #F05323 !important; /* Orange on hover */
    text-decoration: none !important;
}

/* Fix TOC background and text */
.toc {
    background-color: #1E1E1E !important; /* Dark background */
    color: #F05323 !important; /* Orange text */
}

/* Ensure all TOC links match theme */
.toc a, .toc ul li a {
    color: #263B80 !important; /* Blue links */
    text-decoration: none;
}

.toc a:hover, .toc ul li a:hover {
    color: #F05323 !important; /* Orange hover */
    text-decoration: underline;
}

/* Active TOC link (currently viewed section) */
.toc .active a, .toc ul .active a {
    color: #F05323 !important; /* Orange for active section */
    font-weight: bold;
}

/* Fix all buttons */
button, .btn, .btn-primary {
    background-color: #263B80 !important; /* Blue button */
    color: #FFFFFF !important;
    border: 2px solid #F05323 !important; /* Orange border */
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

button:hover, .btn:hover, .btn-primary:hover {
    background-color: #F05323 !important; /* Orange on hover */
    color: #FFFFFF !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Navbar Styling */
.navbar {
    background-color: #263B80 !important; /* Blue background */
    border-bottom: 3px solid #F05323; /* Orange bottom border */
}

.navbar img {
    height: 60px; /* Increased from 40px */
    width: auto;
    margin-right: 10px;
}

.navbar-brand {
    color: #F05323 !important; /* Orange text */
    font-size: 24px;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #F05323 !important; /* Orange links */
    font-size: 18px;
}

.navbar-nav .nav-link:hover {
    color: #FFFFFF !important; /* White hover effect */
}

/* Hero Section */
.hero-section {
    background-color: #263B80;
    color: #FFFFFF;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Reduced from 300px */
    gap: 20px; /* Reduced gap between cards */
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Card Styling */
.card {
    position: relative;
    background: white;
    border: 2px solid #263B80;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px; /* Reduced margin */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    height: 60px; /* Reduced height */
    background-color: #F05323;
    width: 100%;
    transition: background-color 0.3s ease;
}

.card-body {
    padding: 15px; /* Reduced padding */
}

.card-title {
    color: #263B80;
    font-size: 18px; /* Reduced font size */
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #F05323;
}

.card-content {
    color: #333;
    padding: 0 10px 10px 10px; /* Reduced padding */
}

.card-content p {
    font-size: 14px; /* Reduced font size */
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-5px);
    border-color: #F05323;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover .card-header {
    background-color: #263B80;
}

/* Card Image Styling */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card:hover .card-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Section headers */
h1, h2, h3 {
    color: #F05323 !important; /* Orange headers */
}

/* Footer */
footer {
    background-color: #263B80;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}

/* Reports Page Specific Styling */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Wider cards */
    gap: 15px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.reports-grid .card {
    display: flex;
    flex-direction: column;
    height: 180px; /* Fixed height for rectangular shape */
}

.reports-grid .card-header {
    height: 40px; /* Thinner header */
}

.reports-grid .card-body {
    padding: 12px;
    flex-grow: 1;
}

.reports-grid .card-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.reports-grid .card-content p {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 10px;
}