/* Academy Specific Styles */

:root {
    --academy-primary: #2a467e;       /* 0f172a Deep Midnight Blue */
    --academy-secondary: #1e293b;     /* Slate Blue */
    --academy-accent: #10b981;        /* 10b981 Emerald Green (Growth/Learning) */
    --text-light: #8FBC8F;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --academy-light: #f8fafc;       /* Light Grey */
}

body {
    font-family: var(--font-body);
    background-color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* Navbar Customization */
.bg-academy-dark {
    background-color: var(--academy-primary) !important;
    /* border-bottom: 3px solid var(--academy-accent); */
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.text-academy-accent {
    color: var(--academy-accent) !important;
}

.navbar-dark .nav-link {
    color: #cbd5e1;
    font-weight: 500;
}

.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active {
    color: var(--academy-accent);
}

/* Button Styles */
.btn-academy-accent {
    background-color: var(--academy-accent);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-academy-accent:hover {
    background-color: #059669; /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
    color: var(--academy-primary);
    border-color: var(--academy-primary);
}

.btn-outline-primary:hover {
    background-color: var(--academy-primary);
    color: white;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}

.text-primary {
    color: var(--academy-primary) !important;
}

.bg-primary {
    background-color: var(--academy-primary) !important;
}

/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--academy-primary);
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.site-footer h5 {
    color: white;
    margin-bottom: 20px;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: var(--academy-accent);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
/* =========================================
   6. MODULE ELEMENTS
   ========================================= */
    .content-section {
        background: #fff;
        border-radius: 8px;
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        border: 1px solid #e5e7eb;
    }
    .content-section h2 {
        color: #0f172a; /* Academy Primary */
        font-weight: 700;
        border-bottom: 2px solid #f3f4f6;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .content-section h3 {
        color: #1e293b;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    .content-section p {
        line-height: 1.8;
        color: #4b5563;
        margin-bottom: 1.5rem;
        text-align: justify;
    }
    .img-placeholder {
        background-color: #f3f4f6;
        border: 2px dashed #d1d5db;
        color: #9ca3af;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 2rem 0;
        border-radius: 8px;
    }
    
    /* Sticky Sidebar Card */
    .sticky-progress {
        position: -webkit-sticky;
        position: sticky;
        top: 90px; /* Adjust based on navbar height */
        z-index: 100;
    }

    /* Glossay Cards */
    .glossary-card {
        background: #f8fafc;
        border-left: 4px solid #0ea5e9;
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
        transition: transform 0.2s;
    }
    .glossary-card:hover {
        transform: translateX(5px);
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .glossary-term {
        font-weight: 700;
        color: #0f172a;
        font-family: 'Montserrat', sans-serif;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    /* Sidebar Styling */
    .sidebar-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }
    .sidebar-header {
        background: #f8fafc;
        padding: 1rem;
        font-weight: 700;
        color: #0f172a;
        border-bottom: 1px solid #e5e7eb;
    }
    .artifact-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: #4b5563;
        text-decoration: none;
        transition: all 0.2s;
        border-bottom: 1px solid #f3f4f6;
    }
    .artifact-link:last-child { border-bottom: none; }
    .artifact-link:hover {
        background-color: #f0f9ff;
        color: #0284c7;
        padding-left: 1.25rem;
    }
    .artifact-icon {
        width: 30px;
        text-align: center;
        margin-right: 10px;
    }
    /* Flip Card CSS */
    .flashcard-container {
        perspective: 1000px;
        width: 100%;
        height: 300px;
        cursor: pointer;
    }
    .flashcard-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }
    .flashcard-container.flipped .flashcard-inner {
        transform: rotateY(180deg);
    }
    .flashcard-front, .flashcard-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .flashcard-front {
        background-color: #0f172a;
        color: white;
    }
    .flashcard-back {
        background-color: #fff;
        color: #0f172a;
        transform: rotateY(180deg);
        border: 2px solid #0f172a;
    }
    
    /* Container Layout */
  .threat-actor-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    color: #333;
  }

  /* Card Base Styling */
  .threat-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 5px solid #ccc; /* Default color */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

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

  /* Card Content */
  .card-body {
    padding: 25px;
    flex-grow: 1;
  }

  .threat-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
  }

  .motivation-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    background-color: #edf2f7;
    color: #4a5568;
  }

  .threat-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
  }

  /* Bottom Details Section */
  .card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px 25px;
  }

  .footer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 5px;
  }

  .footer-content {
    font-size: 0.9rem;
    color: #2d3748;
    margin: 0;
  }

  /* Specific Color Coding */
  .border-amateur { border-color: #38b2ac; } /* Teal */
  .border-hacktivist { border-color: #805ad5; } /* Purple */
  .border-criminal { border-color: #dd6b20; } /* Orange */
  .border-insider { border-color: #3182ce; } /* Blue */
  .border-nation { border-color: #e53e3e; } /* Red */

    /* Color for the Hacker card (Dark Grey) */
    .border-hacker { border-color: #2d3748; }

    /* Specific styling for the Hat list to keep it clean */
    .hat-list {
      list-style: none;
      padding: 0;
      margin: 15px 0 0 0;
      font-size: 0.85rem;
    }

    .hat-list li {
      margin-bottom: 8px;
      padding-left: 12px;
      border-left: 2px solid #cbd5e0;
    }

    .hat-list strong {
      color: #2d3748;
    }
    /* Concept Callout Styling */

  /* Highlight box for the "Core Principle" */
  .core-principle-box {
    background-color: #fff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }

  .principle-label {
    font-weight: 700;
    color: #2b6cb0;
    text-transform: uppercase;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-top: 3px;
  }

  .principle-content {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #4a5568;
  }
  .formula-panel {
    /* 2. Panel Styling */
    background-color: #ebf8ff; /* Very light blue background */
    border-left: 6px solid #2b6cb0; /* Strong blue accent */
    border-right: 6px solid #2b6cb0; /* Strong blue accent */
    border-radius: 12px; /* Soft corners */
    padding: 2rem 4rem; /* Generous breathing room */
    margin: 20px; 

    /* Soft shadow for "pop" */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); 

    /* 3. Text Styling */
    font-size: 1.75rem; /* Large text for readability */
    color: #333;
    text-align: center;
  }
  .concept-panel {
    background-color: #ebf8ff; /* Very light blue background */
    border-left: 6px solid #2b6cb0; /* Strong blue accent */
    border-radius: 8px; /* Soft corners on the right */
    padding: 15px;
    margin: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); 
  }
  .concept-title {
    font-weight: 800;
    color: #2a4365;
  }