/**
 * undersites.css
 * Unified stylesheet for all Pramacom undersite pages
 * Used by: certificates, sustainability, news (under about),
 *          theoretical_training, education, practical_training (under services),
 *          soldiers_system, vehicles, unmanned (under systems),
 *          optical, software, electronics (under development)
 */

/* ═══════════════════════════════════════════════════════════════════════ */
/* FONT FACES */
/* ═══════════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* COLORS & VARIABLES */
/* ═══════════════════════════════════════════════════════════════════════ */
:root {
    --primary-blue: #00579D;
    --primary-blue-dark: #004a87;
    --primary-blue-light: #E9F9FF;
    --text-dark: #0F0F10;
    --text-gray: #555;
    --text-light: #888;
    --white: #ffffff;
    --bg-light: #f9f9f9;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* BASE / RESETS */
/* ═══════════════════════════════════════════════════════════════════════ */
body {
    font-family: 'Raleway', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

.main-content {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PLACEHOLDER / SIMPLE CONTENT PAGES */
/* ═══════════════════════════════════════════════════════════════════════ */
.placeholder-main {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: var(--white);
}

.placeholder-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

.placeholder-inner h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.placeholder-inner .placeholder-sub {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.placeholder-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto 40px;
}

.placeholder-inner p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 12px;
}

.placeholder-back {
    display: inline-block;
    margin-top: 36px;
    padding: 12px 32px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.placeholder-back:hover {
    background: var(--primary-blue-dark);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* SECTION STYLING */
/* ═══════════════════════════════════════════════════════════════════════ */
.undersite-section {
    padding: 80px 40px;
}

.undersite-section--white {
    background: var(--white);
}

.undersite-section--white--notoppad {
    background: var(--white);
    padding-top: 0;
}

.undersite-section--light {
    background: var(--primary-blue-light);
}

.undersite-section--dark {
    background: var(--bg-light);
}

.undersite-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PAGE HEADER */
/* ═══════════════════════════════════════════════════════════════════════ */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 80px 40px 60px;
    padding-top: 110px;
    text-align: center;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: url('../images/header_2.avif');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 81, 157, 0.5);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.page-subtitle {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    margin: 0;
    margin-top: 20px;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* HEADING UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════ */
.heading-lg {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.heading-md {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.heading-sm {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subheading {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 300;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 24px 0;
}

.divider--wide {
    width: 100px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* BUTTON UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: var(--primary-blue-dark);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn--secondary:hover {
    background: var(--primary-blue-light);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* CONTENT GRID */
/* ═══════════════════════════════════════════════════════════════════════ */
.grid {
    display: grid;
    gap: 40px;
}

.grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    padding: 24px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.grid-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* TEXT UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-light);
}

.text-accent {
    color: var(--primary-blue);
}

.text-bold {
    font-weight: 700;
}

.text-light {
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* SERVICE PAGE */
/* ═══════════════════════════════════════════════════════════════════════ */
.service-copy {
    max-width: 1100px;
}

.service-copy p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 0;
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 1100px;
}

.service-bullet {
    padding: 4px 0 4px 26px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
}

.service-bullet::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-blue);
    font-size: 13px;
}

.service-support-panel {
    max-width: 1100px;
}

.service-section-heading {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #00579D;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
}

.service-divider-full {
    width: 100%;
    height: 2px;
    background: #00579D;
    margin: 0 0 24px;
}

.service-support-panel p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.service-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.service-links-grid-systems {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.service-link-box {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    background-position: 50% 25%;
    background-size: cover;
    overflow: hidden;
}

.service-link-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 99, 191, 0.072), rgba(0, 99, 191, 0.8));
    z-index: 1;
}

.service-link-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    filter: brightness(1.04);
}

.service-link-box-title {
    position: relative;
    z-index: 2;
    width: 100%;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.25;
    padding: 0 28px 14px;
}
.service-link-box-desc {
    position: relative;
    z-index: 2;
    width: 100%;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.5;
    padding: 0 40px 24px;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    color: white;
}

.service-timeline {
position: relative;
margin-top: 45px;
padding: 10px 0;
width: 100%;
}

.timeline-items {
display: flex;
justify-content: space-between;
position: relative;
z-index: 2;
gap: 20px;
}

.timeline-track {
position: absolute;
top: 22px;
left: 40px;
right: 40px;
height: 4px;
background: #00569d;
z-index: 1;
border-radius: 2px;
}

.timeline-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
}

.timeline-marker {
width: 44px;
height: 44px;
border-radius: 50%;
background: #00569d;
color: #ffffff;
font-weight: 700;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
border: 4px solid #ffffff;
box-shadow: 0 4px 10px rgba(0, 86, 157, 0.25);
z-index: 2;
margin-bottom: 16px;
transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), background-color 0.2s ease;
}

.timeline-item:hover .timeline-marker {
transform: scale(1.15);
background: #003d75;
}

.timeline-content {
background: #ffffff;
border: 1px solid #e0e6ed;
border-top: 3px solid #00569d;
border-radius: 6px;
padding: 16px;
width: 100%;
box-sizing: border-box;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.timeline-title {
font-family: 'Raleway', Arial, sans-serif;
font-size: 15px;
font-weight: 700;
color: #00569d;
margin: 0 0 6px 0;
}

.timeline-text {
font-family: Arial, sans-serif;
font-size: 13px;
line-height: 1.55;
color: #444444;
margin: 0;
}

.timeline-track {
    top: 20px;
    bottom: 20px;
    left: 21px;
    right: auto;
    width: 4px;
    height: auto;
}

.timeline-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
}

.timeline-marker {
    margin-bottom: 0;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* SPACING UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════ */
.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 16px;
}

.mb-lg {
    margin-bottom: 24px;
}

.mb-xl {
    margin-bottom: 32px;
}

.mb-2xl {
    margin-bottom: 48px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 24px;
}

.mt-xl {
    margin-top: 32px;
}

.mt-2xl {
    margin-top: 48px;
}

.p-sm {
    padding: 8px;
}

.p-md {
    padding: 16px;
}

.p-lg {
    padding: 24px;
}

.p-xl {
    padding: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN */
/* ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .placeholder-main {
        padding: 60px 30px;
    }

    .service-links-grid-systems {
        grid-template-columns: repeat(2, 1fr);
    }

    .undersite-section {
        padding: 80px 40px;
    }

    .page-header {
        padding: 70px 30px 50px;
        padding-top: 100px;
    }

    .grid--3col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .placeholder-main {
        padding: 40px 20px;
        min-height: auto;
    }

    .placeholder-inner h1 {
        font-size: 30px;
    }

    .placeholder-inner .placeholder-sub {
        font-size: 16px;
    }

    .placeholder-back {
        display: block;
        margin-top: 24px;
    }

    .undersite-section {
        padding: 50px 20px;
    }

    .page-header {
        padding: 60px 20px 40px;
        padding-top: 40px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 17px;
    }

    .heading-lg {
        font-size: 28px;
    }

    .heading-md {
        font-size: 22px;
    }

    .grid--2col,
    .grid--3col {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: 24px;
    }

    .service-bullets {
        margin-top: 18px;
    }

    .service-links-grid {
        grid-template-columns: 1fr;
    }
    .service-links-grid-systems {
        grid-template-columns: 1fr;
    }

    .service-link-box {
        min-height: 320px;
    }

    .service-link-box-title {
        font-size: 22px;
        padding: 0 20px 20px;
    }

.   timeline-items {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .placeholder-main {
        padding: 30px 16px;
    }

    .placeholder-inner h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .placeholder-inner .placeholder-sub {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .placeholder-divider {
        margin: 0 auto 24px;
    }

    .placeholder-inner p {
        font-size: 14px;
    }

    .undersite-section {
        padding: 50px 20px;
    }

    .page-header {
        padding: 60px 20px 40px;
        padding-top: 40px;
    }

    .page-title {
        font-size: 30px;
        letter-spacing: 0.5px;
    }

    .page-subtitle {
        font-size: 17px;
    }

    .heading-lg {
        font-size: 22px;
    }

    .heading-md {
        font-size: 18px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PRINT STYLES */
/* ═══════════════════════════════════════════════════════════════════════ */
@media print {

    .placeholder-back,
    .btn {
        display: none;
    }

    .placeholder-main {
        min-height: auto;
        padding: 20px;
    }
}