/* Global Styles */
:root {
    --primary-color: #D32F2F;
    /* Deep Red from Logo */
    --secondary-color: #C5A065;
    /* Gold/Bronze from Logo details */
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Optional for premium feel headers */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-highlight {
    color: var(--primary-color);
}

.mt-2 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    /* Dark text for outline btn on hero if light bg, need check */
    border: 2px solid var(--text-color);
}

.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info i {
    margin-right: 5px;
}

.top-bar-socials a {
    color: var(--white);
    margin-left: 15px;
}

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header.minimized {
    height: 70px;
    /* Shrink on scroll */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 70px;
    /* Larger logo */
    width: auto;
}

.nav {
    margin-left: auto;
    /* Push nav to the right for standard alignment */
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Adjusted gap */
}

.nav-link {
    font-weight: 600;
    /* Bolder */
    font-size: 13px;
    /* Smaller but uppercase */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
    padding: 25px 0;
    /* Taller touch target matching header height */
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    /* Align with text */
    left: 0;
    width: 0;
    height: 3px;
    /* Thicker underline */
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    /* Wider for better readability */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Softer, deeper shadow */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    /* Rounded bottom */
    padding: 10px 0;
    max-height: 70vh;
    overflow-y: auto;

}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Lighter separator */
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    /* More breathing room */
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #fafafa;
    color: var(--primary-color);
    padding-left: 30px;
    /* Slight shift effect */
}

.fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 4px;
}

.btn-contact:hover {
    background: #b71c1c;
    /* Darker red */
    color: var(--white);
}

.btn-contact::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* High impact */
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Section Header Shared */
.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.connector {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
}

.connector.text-left {
    margin: 0 0 20px 0;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Training (Image Cards) */
.training-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.training-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.training-item:hover img {
    transform: scale(1.1);
}

.training-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.training-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    color: var(--white);
}

.training-content h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.training-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Parallax Banner (Internship/Publications) */
.parallax-banner {
    background: linear-gradient(rgba(211, 47, 47, 0.9), rgba(211, 47, 47, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: var(--white);
    text-align: center;
}

.banner-box {
    padding: 20px;
}

.banner-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.banner-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.banner-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

/* About Us */
.about-grid {
    align-items: center;
}

.about-text {
    margin-bottom: 20px;
    color: var(--light-text);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature i {
    color: var(--primary-color);
    margin-right: 10px;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.shadow {
    box-shadow: var(--shadow);
}

.rounded {
    border-radius: 8px;
}

/* CTA */
.cta-section {
    background-color: var(--secondary-color);
    /* Gold theme for CTA */
    color: var(--black);
    padding: 60px 0;
}

.cta-section h2 {
    margin-bottom: 10px;
}

.cta-section .btn-primary {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--secondary-color);
    margin-top: 20px;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--black);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #aeaeae;
    padding: 60px 0 20px;
}

.footer-logo {
    margin-bottom: 20px;
    height: 50px;
    filter: brightness(0) invert(1);
    /* Make logo white if PNG, might look OK with JPG if bg is white */
}

/* Since logo is JPG (white bg), we might need to adjust or put in a white box if it looks bad on dark. 
   Strategy: white box for logo */
.footer-logo {
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    filter: none;
}

.footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #aeaeae;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: 0.3s;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* JS to toggle */
        border-top: none;
        background: var(--bg-light);
        padding-left: 20px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Team Section */
.team-member {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-info .role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.member-info .socials a {
    color: var(--light-text);
    margin: 0 8px;
    font-size: 1.1rem;
}

.member-info .socials a:hover {
    color: var(--primary-color);
}

/* Achievement Section */
.achievement-item {
    color: var(--white);
    padding: 20px;
}

.achievement-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.achievement-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.achievement-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog & Gallery specific tweaks */
.rounded {
    border-radius: 8px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .achievement-item {
        margin-bottom: 30px;
    }

    /* Fix grid for gallery and blog on mobile */
    .service-grid[style*="repeat(3"],
    .grid-4[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* Journals Section */
.journal-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
}

.journal-item:hover {
    transform: translateX(10px);
}

.journal-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    min-width: 100px;
}

.journal-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.journal-info p {
    margin-bottom: 5px;
    color: var(--light-text);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Careers Job List */
.job-item {
    background: var(--white);
    padding: 20px 30px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.job-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.job-info h3 {
    margin: 0 0 5px;
    color: var(--text-color);
}

.job-loc,
.job-type {
    margin-right: 15px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.job-loc i,
.job-type i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Contact Form & Footer Redesign */
.contact-wrapper {
    align-items: flex-start;
}

.contact-form-box,
.contact-info-box {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    color: var(--white);
}

.contact-form-box h3,
.contact-info-box h3 {
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    background: #333;
    color: var(--white);
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.width-100 {
    width: 100%;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links-big a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links-big a:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .journal-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Fix for Achievements Contrast and Parallax */
.parallax-banner {
    position: relative;
    background-attachment: scroll;
    /* Changed from fixed for better mobile support */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white) !important;
}

.parallax-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    z-index: 1;
}

.parallax-banner .container {
    position: relative;
    z-index: 2;
}

.section-title {
    position: relative;
    z-index: 2;
}

/* Ensure white text specifically for this section */
#achievement .section-title {
    color: var(--white) !important;
}

.achievement-item {
    color: var(--white) !important;
    position: relative;
    z-index: 2;
}

.achievement-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    font-weight: 500;
}

.achievement-item h3 {
    color: var(--white) !important;
}

.achievement-item i {
    color: var(--secondary-color) !important;
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Fix for Mobile Top Bar */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-info {
        flex-direction: column;
        gap: 5px;
    }
}


/* Grid 3 Utility - Added for Testimonials Fix */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

