/* 
  =========================================
  GOVERNMENT TRAINING ACADEMY - STYLESHEET
  =========================================
  Design System: Trustworthy, Authoritative, Clean
  Primary: Deep Navy Blue (#0F2942)
  Accent: Government Gold (#C5A059)
  Background: White (#FFFFFF) & Soft Slates
  =========================================
*/

/* 1. INITIAL SETUP & DESIGN VARIABLES */
:root {
    --primary-blue: #0F2942;
    --primary-blue-hover: #173B5E;
    --secondary-blue: #1E3A5F;
    --accent-gold: #C5A059;
    --accent-gold-hover: #D4AF37;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-border: #E2E8F0;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-white: #FFFFFF;
    --color-success: #2E7D32;
    --color-error: #D32F2F;
    --color-info: #0288D1;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.25s;
    --container-width: 1200px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.academy-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.academy-logo2 img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.academy-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.academy-logo {
    width: 80px;
    height: auto;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility Font Controls */
body.font-small {
    font-size: 14px;
}

body.font-large {
    font-size: 18px;
}

body.font-large h1 {
    font-size: 2.2rem;
}

body.font-large h2 {
    font-size: 1.8rem;
}

body.font-large h3 {
    font-size: 1.5rem;
}

/* Global Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-error {
    color: var(--color-error);
}

.text-success {
    color: var(--color-success);
}

.text-blue {
    color: var(--primary-blue);
}

.font-bold {
    font-weight: 700;
}

.hide {
    display: none !important;
}

.justify-between {
    justify-content: space-between;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* Common Components */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.badge-error {
    background-color: var(--color-error);
    color: var(--text-white);
}

.badge-gold {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bg-border);
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

.card-header.border-gold {
    border-left: 4px solid var(--accent-gold);
}

.card-header.border-blue {
    border-left: 4px solid var(--primary-blue);
}

.card-header.bg-blue {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.card-header.bg-light {
    background-color: var(--bg-light);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--bg-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-blue:hover {
    background-color: var(--primary-blue-hover);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

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

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

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

.text-link {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.text-link:hover {
    color: var(--accent-gold);
}

/* Page Section Management */
.page-section {
    display: none;
    padding: 2.5rem 0;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   2. HEADER & NAVIGATION STYLES
   =========================================
*/

/* Top Government Bar */
.gov-top-bar {
    background-color: #0c1a2b;
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 500;
}

.gov-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    color: var(--accent-gold);
}

.gov-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gov-meta-info a:hover {
    color: var(--accent-gold);
}

.gov-accessibility {
    display: flex;
    gap: 0.2rem;
    border-left: 1px solid #334155;
    padding-left: 1rem;
}

.access-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 2px;
}

.access-btn.active,
.access-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
}

/* Main Academy Header */
.academy-header {
    background-color: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.academy-logo {
    width: 80px;
    height: 80px;
}

.crest-svg {
    width: 100%;
    height: 100%;
}

.academy-titles {
    display: flex;
    flex-direction: column;
}

.academy-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.academy-sub-name {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

.academy-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.emblem-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-pillar-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

/* Navigation Bar */
.academy-nav {
    background-color: var(--primary-blue);
    border-bottom: 4px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    padding: 0.75rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    width: 100%;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-link {
    display: block;
    color: var(--text-white);
    padding: 1.1rem 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-speed);
}

.nav-link i {
    margin-right: 0.3rem;
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-blue);
    border-bottom-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =========================================
   3. HOME PAGE SPECIFIC STYLES
   =========================================
*/

/* Hero Banner */
.hero-banner {
    position: relative;
    background-color: var(--primary-blue);
    background-image: radial-gradient(circle at 70% 30%, #1e3a8a 0%, var(--primary-blue) 70%);
    border-radius: 4px;
    padding: 4rem 3rem;
    margin-bottom: 2rem;
    color: var(--text-white);
    border-bottom: 4px solid var(--accent-gold);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 41, 66, 0.95) 0%, rgba(15, 41, 66, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.hero-intro-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

/* Pillar Highlights */
.home-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pillar-card {
    background-color: var(--bg-light);
    border-top: 4px solid var(--accent-gold);
    border-left: 1px solid var(--bg-border);
    border-right: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
    padding: 1.75rem;
    text-align: center;
    border-radius: 4px;
}

.pillar-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Home Grids (Double columns) */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Scrollable Container for announcements */
.scrollable-container {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scrollable-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Announcements elements */
.announcement-item {
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--bg-border);
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date-stamp {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.2rem;
}

.announcement-title {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    line-height: 1.3;
    display: inline-block;
}

.announcement-title:hover {
    color: var(--accent-gold);
}

.announcement-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Center headings */
.section-heading-centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.section-heading-centered h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.gold-divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 0.5rem auto 1rem auto;
}

.gold-divider-small {
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0.4rem 0 1rem 0;
}

/* Training Highlights Cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.highlight-card {
    border-top: 4px solid var(--primary-blue);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.highlight-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.highlight-icon {
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.highlight-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Upcoming Events List */
.event-list-item {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--bg-border);
}

.event-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-date {
    background-color: var(--primary-blue);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 55px;
    border-radius: 4px;
    border-bottom: 3px solid var(--accent-gold);
}

.event-date .month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.event-details h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-blue);
    line-height: 1.3;
}

.event-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.event-details i {
    color: var(--accent-gold);
}

/* Quick Contact section */
.contact-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-bullet {
    display: flex;
    gap: 0.75rem;
}

.contact-bullet i {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-top: 0.2rem;
}

.contact-bullet strong {
    font-size: 0.85rem;
    color: var(--primary-blue);
}

.contact-bullet p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   4. ACADEMY PAGE SPECIFIC STYLES
   =========================================
*/
.section-header-banner {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-blue);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.section-header-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.section-header-banner p {
    color: var(--text-muted);
    font-size: 1rem;
}

.academy-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background-color: var(--bg-light);
    border-left: 3px solid transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    border-radius: 0 4px 4px 0;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #f1f5f9;
    border-left-color: var(--accent-gold);
    color: var(--accent-gold);
}

.sub-section {
    margin-bottom: 3rem;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Vision Mission layouts */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.vision-box,
.mission-box {
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--bg-border);
}

.vision-box h4,
.mission-box h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-box p,
.mission-box p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Infrastructure grid */
.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.infra-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--bg-border);
    transition: background-color var(--transition-speed);
}

.infra-card:hover {
    background-color: var(--bg-white);
}

.infra-card i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.infra-card h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.infra-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Standard government table styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    margin-top: 1.25rem;
}

.gov-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.gov-table th {
    background-color: var(--primary-blue);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 3px solid var(--accent-gold);
}

.gov-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bg-border);
}

.gov-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.gov-table tbody tr:hover {
    background-color: #f1f5f9;
}

.table-action-link {
    color: var(--color-error);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.table-action-link:hover {
    text-decoration: underline;
}

/* Compact tables */
.gov-table-compact {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.gov-table-compact th {
    background-color: var(--secondary-blue);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.6rem 0.85rem;
    border-bottom: 2px solid var(--accent-gold);
}

.gov-table-compact td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--bg-border);
}

.gov-table-compact tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* =========================================
   5. TRAINING PAGE SPECIFIC STYLES
   =========================================
*/
.training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.course-detail-card {
    border-top: 3px solid var(--accent-gold);
}

.course-header h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-blue);
}

.course-badge {
    background-color: #eff6ff;
    color: var(--secondary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border: 1px solid #bfdbfe;
    border-radius: 2px;
}

.course-detail-card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.course-specs {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--bg-border);
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-specs li strong {
    color: var(--primary-blue);
}

.methodology-card ul {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.methodology-card li {
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.25rem;
}

.methodology-card li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.75rem;
}

/* =========================================
   6. ACADEMIC PAGE SPECIFIC STYLES
   =========================================
*/
.academic-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.academic-activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.activity-box {
    background-color: var(--bg-light);
    border: 1px solid var(--bg-border);
    padding: 1.25rem;
    border-radius: 4px;
}

.activity-box h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.4rem;
}

.activity-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.academic-notices-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.academic-notices-list li {
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--bg-border);
}

.academic-notices-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.academic-notices-list li h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin: 0.1rem 0;
}

.academic-notices-list li p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.academic-notices-list li a {
    font-size: 0.75rem;
    color: var(--color-error);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.academic-notices-list li a:hover {
    text-decoration: underline;
}

/* Credits display bar metrics */
.credit-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.credit-metric span:first-child {
    font-weight: 600;
    color: var(--primary-blue);
}

.credit-metric span:last-child {
    color: var(--text-muted);
    text-align: right;
}

.progress-bar-bg {
    background-color: var(--bg-border);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--accent-gold);
    height: 100%;
    border-radius: 3px;
}

/* =========================================
   7. RESULTS PORTAL SPECIFIC STYLES
   =========================================
*/
.results-portal-container {
    max-width: 780px;
    margin: 0 auto;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login box */
.login-card {
    max-width: 440px;
    margin: 0 auto;
}

.login-header {
    padding: 2rem 1.5rem;
}

.login-portal-icon {
    font-size: 2.25rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.login-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.login-header p {
    font-size: 0.8rem;
    color: #e2e8f0;
}

/* Forms layout */
.gov-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.required {
    color: var(--color-error);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gov-form input,
.gov-form select,
.gov-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.input-icon-wrapper input {
    padding-left: 2.5rem;
}

.gov-form input:focus,
.gov-form select:focus,
.gov-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.08);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-6 {
    flex: 1;
}

/* Credential details helper block */
.mock-alert-box {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.info-box {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.info-box ul {
    margin-top: 0.25rem;
    list-style-type: disc;
    padding-left: 1.25rem;
}

.demo-code {
    background-color: #dcfce7;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-family: monospace;
    font-weight: 700;
    user-select: all;
    border: 1px dashed #86efac;
}

.error-alert-banner {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid var(--color-error);
    color: #991b1b;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Certificate statement visualization */
.transcript-card {
    position: relative;
    border-top: 4px solid var(--accent-gold);
}

.transcript-header-bar {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
}

.gov-identity-tiny {
    color: #e2e8f0;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.transcript-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-white);
    background-color: var(--color-success);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.transcript-inner {
    padding: 3rem 2.5rem;
    position: relative;
}

.transcript-seal-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    font-size: 15rem;
    color: var(--primary-blue);
    pointer-events: none;
    z-index: 1;
}

.transcript-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.transcript-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Student profiling list */
.student-profile-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.profile-field {
    display: flex;
    font-size: 0.9rem;
}

.field-label {
    width: 140px;
    font-weight: 600;
    color: var(--text-muted);
}

.field-value {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Transcript table details */
.transcript-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.transcript-table th {
    background-color: #f1f5f9;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--bg-border);
}

.transcript-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-border);
}

.transcript-table .summary-row {
    background-color: var(--bg-light);
    font-weight: 700;
    border-top: 2px solid var(--primary-blue);
    border-bottom: 2px double var(--primary-blue);
    font-size: 0.9rem;
}

.transcript-table .summary-row td {
    color: var(--primary-blue);
    padding: 0.85rem 1rem;
}

.transcript-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.verification-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.qr-icon {
    font-size: 4rem;
    color: var(--text-dark);
}

.verification-qr p {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.signature-block {
    text-align: center;
}

.sig-placeholder {
    width: 140px;
    height: 45px;
    border-bottom: 1px dashed var(--text-muted);
    margin: 0 auto 0.5rem auto;
}

.signer-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.signer-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.2;
}

.signer-academy {
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* =========================================
   8. DOWNLOADS PAGE SPECIFIC STYLES
   =========================================
*/
.downloads-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: transparent;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.document-download-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.document-download-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.doc-icon-container {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
}

.pdf-color {
    color: #e11d48;
}

.doc-meta-info {
    flex-grow: 1;
}

.badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    display: block;
}

.doc-meta-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

.doc-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.doc-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =========================================
   9. CONTACT PAGE SPECIFIC STYLES
   =========================================
*/
.success-toast-banner {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-left: 4px solid var(--color-success);
    color: #166534;
    padding: 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.address-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.addr-item {
    display: flex;
    gap: 1rem;
}

.addr-icon {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-top: 0.2rem;
}

.addr-item h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.addr-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.5;
}

/* Map vectors */
.map-placeholder {
    position: relative;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
    background-color: #EAECEE;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 41, 66, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    color: var(--text-white);
    text-align: center;
    z-index: 2;
}

.map-badge {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}

.map-overlay p {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.map-vector {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* =========================================
   10. FOOTER STYLES
   =========================================
*/
.academy-footer {
    background-color: #0B192A;
    color: #94a3b8;
    margin-top: 4rem;
    border-top: 5px solid var(--accent-gold);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 1.5rem 3rem 1.5rem;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crest-svg-small {
    width: 32px;
    height: 32px;
}

.footer-title h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.footer-about p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 0.2rem;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.gov-shield {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: var(--accent-gold);
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-copyright-bar {
    background-color: #06111f;
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    font-size: 0.75rem;
}

.copyright-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

/* =========================================
   11. RESPONSIVE DESIGN (MEDIA QUERIES)
   =========================================
*/

/* Tablet size */
@media (max-width: 992px) {
    .home-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .academy-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: static;
        margin-bottom: 1.5rem;
    }

    .sidebar-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 4px 4px 0 0;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        border-bottom-color: var(--accent-gold);
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-disclaimer {
        grid-column: span 2;
    }
}

/* Mobile size */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Accessibility and top bar */
    .gov-top-inner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

    .gov-meta-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .gov-accessibility {
        border-left: none;
        padding-left: 0;
    }

    /* Header modifications */
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo-title-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .academy-logo {
        width: 70px;
        height: 70px;
    }

    .academy-name {
        font-size: 1.45rem;
    }

    .academy-tagline {
        font-size: 0.75rem;
    }

    .header-emblem {
        display: none;
    }

    /* Mobile Menu Drawer */
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue);
        border-top: 1px solid #1e3a8a;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-item {
        text-align: left;
        border-bottom: 1px solid #1e293b;
    }

    .nav-link {
        padding: 0.9rem 1.5rem;
        border-bottom: none;
        border-left: 4px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--accent-gold);
        border-bottom-color: transparent;
        background-color: var(--secondary-blue);
    }

    /* Hero Banner styles */
    .hero-banner {
        padding: 2.5rem 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Grid wraps */
    .home-grid,
    .training-grid,
    .vision-mission-grid,
    .infra-grid,
    .academic-activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .document-download-card {
        flex-direction: column;
        text-align: center;
    }

    .doc-footer {
        justify-content: center;
    }

    /* Contact pages */
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    /* Results certificate sheets */
    .transcript-inner {
        padding: 2rem 1.25rem;
    }

    .student-profile-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .transcript-footer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .signature-block {
        width: 100%;
    }

    /* Footer wraps */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-disclaimer {
        grid-column: span 1;
    }
}

/* Horizontal Result Summary Bar styles */
.result-summary-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-border);
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-val {
    font-weight: 700;
}

.summary-separator {
    color: var(--bg-border);
    font-size: 1.2rem;
    font-weight: 300;
}

.badge-success-custom {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #bbf7d0;
}

.badge-error-custom {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #fecaca;
}