/* =========================================================
   LEGACY CSS — Fixed Leadership Grid & Proper Framing
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A1650;
    --navy-deep: #07091A;
    --gold: #FFD700;
    --gold-soft: #FFE44A;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--navy-deep);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Offset Clearance for Floating Right Side Buttons */
.legacy-container,
.leadership-container,
.why-ied-container,
.philosophy-container,
.strength-container,
.initiatives-container,
.clients-container,
.countries-container {
    padding-right: 75px !important;
}

/* Global Typography Hierarchy */
h1, h2, h3, h4,
.legacy-title,
.leadership-heading,
.strength-heading,
.initiatives-heading,
.clients-heading,
.countries-title,
.philosophy-title,
.why-left h2 {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

p, span, label, input, textarea, button, a, li, small, .why-item p {
    font-family: var(--font-body) !important;
}

/* ==========================================
            LEGACY SECTION
========================================== */

.legacy-section {
    width: 100%;
    background: var(--navy-deep); 
    padding: 130px 0 40px !important;
}

.legacy-container {
    max-width: 1380px;
    margin: 0 auto;
    padding-left: 20px;
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.legacy-image {
    flex: 0 0 36%;
}

.legacy-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: .35s ease;
    border: 1px solid rgba(255, 215, 0, 0.2); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legacy-image img:hover {
    transform: scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.15);
}

.legacy-content {
    flex: 1;
}

.legacy-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
    color: var(--gold); 
    text-transform: uppercase;
}

.legacy-text-box {
    position: relative;
    padding-left: 18px;
    margin-bottom: 20px;
}

.legacy-text-box:last-child {
    margin-bottom: 0;
}

.legacy-text-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-soft)); 
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.legacy-text-box p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85); 
    text-align: justify;
}

/* ==========================================
            OUR LEADERSHIP
========================================== */

.leadership-section {
    width: 100%;
    padding: 45px 0;
    background: #0b112c; 
}

.leadership-container {
    max-width: 1320px;
    margin: auto;
    padding-left: 18px;
}

.leadership-heading,
.strength-heading,
.initiatives-heading,
.clients-heading,
.countries-title,
.philosophy-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 24px;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
}

.leader-feature-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.leader-image {
    flex: 0 0 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #07091A;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leader-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    transition: .35s ease;
    display: block;
}

.leader-feature-card:hover .leader-image img {
    transform: scale(1.04);
}

.leader-content {
    flex: 1;
}

.leader-content h3 {
    margin: 0;
    font-family: var(--font-heading) !important;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold); 
}

.leader-content h5 {
    margin: 6px 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-soft);
}

.leader-content p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
      LEADERS GRID (Uniform Image Boxes)
========================================== */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.leader-card {
    background: rgba(7, 9, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: .35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.leader-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Fixed Box framing for leadership portraits */
.leader-card img {
    width: 100%;
    height: 320px;              /* Increased height for a true portrait ratio */
    object-fit: contain;         /* Fits the entire image without cropping top/sides */
    object-position: center;     /* Centers the subject in the box */
    background: #000;            /* Dark background fill for transparent/smaller PNGs */
    display: block;
    transition: transform 0.35s ease;
}

.leader-card:hover img {
    transform: scale(1.02);
}

.leader-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.leader-card-content h4 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.leader-card-content span {
    display: block;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
}

.leader-social {
    display: flex;
    gap: 8px;
}

.leader-icon {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gold);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: .3s ease;
}

.leader-icon:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: var(--navy-deep);
    transform: translateY(-2px);
}

/* ==========================================
        WHY IED COMMUNICATIONS
========================================== */

.why-ied-section {
    width: 100%;
    background: var(--navy-deep);
    padding: 45px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.why-ied-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
}

.why-ied-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    align-items: flex-start;
}

.why-left h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: var(--gold);
    text-transform: uppercase;
}

.why-left img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-left p {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.why-right {
    display: flex;
    flex-direction: column;
}

.why-item {
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15); 
}

.why-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.why-item h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading) !important;
    font-size: 16px;
    color: #fff;
}

.why-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================
        OUR PHILOSOPHY
========================================== */

.philosophy-section {
    width: 100%;
    padding: 45px 0;
    background: #0b112c;
}

.philosophy-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.philosophy-card {
    background: rgba(7, 9, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: .35s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.philosophy-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.philosophy-heading i {
    font-size: 22px;
    color: var(--gold);
}

.philosophy-heading h3 {
    margin: 0;
    font-family: var(--font-heading) !important;
    font-size: 18px;
    color: #fff;
}

.philosophy-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.philosophy-card ul {
    margin: 0;
    padding-left: 18px;
}

.philosophy-card li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
}

.philosophy-card li:last-child { 
    margin-bottom: 0; 
}

/* ==========================================
        ORGANIZATIONAL STRENGTHS
========================================== */

.strength-section {
    width: 100%;
    padding: 45px 0;
    background: var(--navy-deep);
}

.strength-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.strength-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: .45s ease;
}

.strength-card::before {
    content: "";
    position: absolute;
    width: 220%;
    height: 220%;
    top: -220%;
    left: -220%;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft)); 
    border-radius: 50%;
    transition: all .7s cubic-bezier(.23, 1, .32, 1);
    z-index: 0;
}

.strength-card:hover::before {
    top: -55%;
    left: -55%;
}

.strength-card > * {
    position: relative;
    z-index: 2;
}

.strength-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: .45s;
}

.strength-icon i {
    font-size: 20px;
    color: var(--gold);
    transition: .45s;
}

.strength-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
    transition: .45s;
}

.strength-card p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    transition: .45s;
}

.strength-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.strength-card:hover h3,
.strength-card:hover p {
    color: var(--navy-deep); 
}

.strength-card:hover .strength-icon {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.strength-card:hover .strength-icon i {
    color: var(--gold);
}

/* ==========================================
            KEY INITIATIVES
========================================== */

.initiatives-section {
    width: 100%;
    padding: 45px 0;
    background: #0b112c;
}

.initiatives-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
}

.initiative-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(7, 9, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: .35s ease;
}

.initiative-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.initiative-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft)); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.initiative-icon i {
    font-size: 22px;
    color: var(--navy-deep); 
}

.initiative-content {
    flex: 1;
}

.initiative-content h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading) !important;
    font-size: 16px;
    color: var(--gold);
}

.initiative-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================
            PRESTIGIOUS CLIENTS
========================================== */

.clients-section {
    width: 100%;
    background: var(--navy-deep);
    padding: 45px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.clients-container {
    max-width: 1400px;
    margin: auto;
    padding-left: 20px;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.client-card {
    width: 150px;
    height: 70px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: .35s ease;
}

.client-card img {
    max-width: 100px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: .35s ease;
}

.client-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: #fff;
}

/* ==========================================
        WORLDWIDE PARTICIPATION
========================================== */

.countries-section {
    width: 100%;
    background: #0b112c;
    padding: 45px 0;
}

.countries-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
}

.country-card {
    text-align: center;
    transition: .35s ease;
}

.country-card img {
    width: 80px;
    height: auto;
    transition: .35s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    border-radius: 50%;
}

.country-card:hover img {
    transform: translateY(-4px) scale(1.05);
}

.country-card h4 {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.country-card:hover h4 {
    color: var(--gold);
}

/* ==========================================
        RESPONSIVE MEDIA QUERIES
========================================== */

@media(max-width: 991px) {
    .legacy-container,
    .leadership-container,
    .why-ied-container,
    .philosophy-container,
    .strength-container,
    .initiatives-container,
    .clients-container,
    .countries-container {
        padding-right: 20px !important;
    }

    .legacy-container, .why-ied-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .legacy-image, .why-left img {
        width: 100%;
        height: 260px;
    }

    .leadership-grid, .philosophy-grid, .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 768px) {
    .leadership-grid, .philosophy-grid, .strength-grid, .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-feature-card, .initiative-card {
        flex-direction: column;
        text-align: center;
    }

    .leader-image {
        width: 100%;
    }
}

@media(max-width: 480px) {
    .leadership-grid, .philosophy-grid, .strength-grid, .countries-grid {
        grid-template-columns: 1fr;
    }
}