section {
    padding-top: 60px;
    margin-top: -60px;
}

/* Navbar and dropdown styling for Bootstrap 5 */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ff0000 !important; /* red color on hover */
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link {
    color: #ff0000 !important; /* red color */
    background-color: rgba(255, 0, 0, 0.1) !important; /* light red background */
}

/* Bootstrap 5 dropdown styling */
.dropdown-menu {
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
    animation: dropdown-fade 0.2s ease-in-out;
    transform-origin: top center;
    margin-top: 0.2rem;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #212529;
    transition: all 0.2s ease;
    font-weight: 400;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(255, 0, 0, 0.1) !important; /* light red background on hover */
    color: #ff0000 !important; /* red text on hover */
}

.dropdown-item.active {
    background-color: rgba(255, 0, 0, 0.1) !important; /* light red background */
    color: #ff0000 !important; /* red text */
    font-weight: 500;
}

/* Active dropdown styling */
.nav-item.dropdown .nav-link.active.dropdown-toggle {
    position: relative;
}

.nav-item.dropdown .nav-link.active.dropdown-toggle::after {
    border-bottom: 3px solid #ff0000;
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    display: block;
}

/* Modern enterprise styles for Red Kestrel */

/* Common colors */
:root {
    --primary-blue: #1976d2;
    --dark-blue: #0d47a1;
    --light-blue: #f5f9ff;
    --success-green: #2e7d32;
    --text-dark: #333;
    --text-light: #555;
    --border-light: #eee;
}

/* Common FAQ styles */
.faq-section {
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 4px solid #1976d2;
}

.faq-section pre {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.faq-section code {
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Hero sections */
.hero-section, .detail-header, .hero-home {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    padding: 60px 0;
    border-radius: 0;
    margin-bottom: 30px;
}

.hero-home {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-home h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-home p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-home .btn {
    margin-right: 15px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-home .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}

/* Feature boxes and sections */
.feature-box {
    padding: 25px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.home-feature-box {
    padding: 30px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #1976d2;
    height: 100%;
}

.home-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.home-feature-box h2 {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.home-feature-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.home-feature-box ul {
    margin-top: 15px;
    margin-bottom: 25px;
    padding-left: 20px;
}

.home-feature-box ul li {
    margin-bottom: 8px;
}

.home-feature-box .btn {
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.home-feature-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1976d2;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0;
    color: #333;
}

.feature-text {
    color: #555;
    line-height: 1.6;
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #1976d2;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Info section titles (left-aligned) */
.info-section-title {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.info-section-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #1976d2;
    bottom: -2px;
    left: 0;
}

.info-icon {
    margin-right: 10px;
    color: #1976d2;
}

/* CTA sections */
.cta-section {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    padding: 60px 0;
    border-radius: 5px;
    margin: 60px 0;
}

/* Blue CTA variation */
.cta-blue {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}

.cta-button {
    background-color: white;
    color: #2e7d32;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f5f5f5;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Content cards */
.content-card, .info-card {
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 4px solid #1976d2;
}

.content-card h2 {
    color: #0d47a1;
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.author-info {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Code blocks */
.content-card pre {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.content-card code {
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* Highlight text */
.highlight {
    background-color: #fffde7;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    border-bottom: 2px solid #ffd600;
}

.highlight-blue {
    background-color: rgba(25, 118, 210, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #0d47a1;
}

/* Utility for flexbox card layouts */
.display-flex {
    display: flex;
    flex-wrap: wrap;
}

.display-flex > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Custom lists */
.risk-list, .benefit-list, .prevention-list, .feature-list {
    padding-left: 0;
    list-style: none;
}

.risk-list li, .benefit-list li, .prevention-list li, .feature-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 28px;
}

.prevention-list li, .benefit-list li {
    margin-bottom: 15px;
}

.risk-list li:before {
    content: "\f33a"; /* warning icon */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 8px;
    color: #d32f2f;
}

.benefit-list li:before, .prevention-list li:before, .feature-list li:before {
    content: "\f26e"; /* check icon */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 8px;
    color: #1976d2;
}

/* Custom alerts */
.alert-custom-info {
    margin-top: 20px;
    border-left: 4px solid #2196F3;
    background-color: #E3F2FD;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    border-radius: 3px;
}

.alert-custom-info h4 {
    color: #1565C0;
    margin-top: 0;
}

.alert-custom-info p {
    color: #555;
    margin-bottom: 0;
}

.alert-custom-warning {
    margin-top: 20px;
    border-left: 4px solid #f57c00;
    background-color: #fff3e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    border-radius: 3px;
}

.alert-custom-warning h4 {
    color: #e65100;
    margin-top: 0;
}

.alert-custom-warning p {
    color: #555;
    margin-bottom: 0;
}

.feature-list {
    columns: 2;
}

@media (max-width: 768px) {
    .feature-list {
        columns: 1;
    }
}

/* Images */
.screenshot {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
}

/* CertAlert page styles */
.hero-section-tall {
    padding: 80px 0 60px;
    margin-bottom: 0;
}

.hero-title-large {
    font-size: 48px;
    letter-spacing: -0.5px;
}

.hero-subtitle-large {
    font-size: 20px;
    margin-bottom: 30px;
}

.alert-statistic {
    color: #333; 
    margin: 30px auto; 
    max-width: 90%; 
    border-radius: 5px; 
    font-size: 18px; 
    padding: 15px 20px;
}

.cta-button-large {
    font-size: 22px; 
    padding: 15px 35px; 
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.testimonial-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 40px;
}

.testimonial-box {
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-quote {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.testimonial-company {
    font-size: 14px;
    color: #777;
}

.usage-section {
    padding: 60px 0;
}

.usage-step {
    margin-bottom: 20px;
}

.step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #1976d2;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.step-title {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.security-note {
    margin-top: 25px; 
    border-left: 4px solid #1976d2; 
    background-color: #f8f9fa; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.security-note h4 {
    color: #1976d2; 
    margin-top: 0;
}

.security-note p {
    color: #555; 
    margin-bottom: 0;
}

/* Decoder page styles */
.decoder-container {
    max-width: 1100px;
    margin: 0 auto;
}

.decoder-textarea {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    resize: vertical;
    line-height: 1.5;
    font-size: 14px;
    padding: 12px 15px;
}

.decoder-textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 3px 15px rgba(25, 118, 210, 0.15);
    outline: none;
}

.decoder-button {
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.decoder-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.decoder-file-button {
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.decoder-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f9ff;
    border-left: 4px solid #1976d2;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.decoder-sidebar {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d47a1;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sidebar-links {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    color: #1976d2;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.sidebar-links a:hover {
    color: #0d47a1;
}

.decoder-results-container {
    margin-top: 40px;
    position: relative;
}

.decoder-results-alert {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
    color: #0d47a1;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.decoder-results-title {
    color: #0d47a1;
    font-weight: 600;
    margin-bottom: 20px;
}

.decoder-panel {
    border-radius: 5px;
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.decoder-panel .panel-heading {
    background-color: #1976d2;
    color: white;
    font-weight: 600;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 12px 15px;
}

/* Gradient headers for certificate information sections */
.card-header.bg-primary {
    background: linear-gradient(135deg, #0d47a1, #1976d2) !important;
    color: white;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #495057, #6c757d) !important;
    color: white;
}

/* Updates for the collapsible sections */
.card-header[data-bs-toggle="collapse"] {
    cursor: pointer;
}

.card-header[data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform 0.3s ease;
}

.card-header[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.decoder-pre {
    border-radius: 5px;
    border-color: #eee;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
}

/* Command code blocks */
.command-block {
    background-color: #f5f5f5;
    border-left: 4px solid #1976d2;
    padding: 15px;
    margin: 15px 0;
    border-radius: 3px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: pre;
}

.command-section {
    margin-bottom: 30px;
}

.command-section h2 {
    color: #0d47a1;
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.command-list {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px 40px;
    margin: 25px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.command-list li {
    padding: 8px 0;
}

.command-list a {
    color: #1976d2;
    font-weight: 500;
    text-decoration: none;
}

.command-list a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Media queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}
