* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI';
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
}

a {
    text-decoration: none;
    transition: color 0.5s;
}

.top-bar {
    background-color: #ffffff;
    padding: 5px 5%;
    display: flex;
    justify-content: flex-end;
    font-size: 0.85rem;
    border-bottom: 1px solid #ddd;
}

.top-bar a {
    color: #555;
    margin-left: 15px;
    font-weight: 600;
}

.top-bar a:hover {
    color: #003366;
}

header {
    background-color: #ffffff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0px 0px rgba(0,0,0,0);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80%;
    width: 80%;
}

.logo span {
    color: #d32f2f;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #003366;
    border-bottom: 2px solid #d32f2f;
}

.hero {
    background: linear-gradient(120deg, #002244 50%, #003366 50%);
    color: white;
    padding: 110px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-grid {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-left, .hero-right {
    flex: 1;
    text-align: center;
}

.hero p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.0rem, 2.0vw, 2rem); 
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    background-color: #ffffff;
    color: #002244;
    padding: 15px 25px;
    margin: 10px auto;
    border-radius: 8px;
    display: table;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero p:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero {
        background: #002244;
        padding: 60px 5%;
    }
    .hero-grid {
        flex-direction: column;
    }
    .hero p {
        display: block;
        width: 90%;
    }
}

.btn-primary:hover {
    background-color: #b71c1c;
    color: white;
}

.services-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid #003366;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-top: 5px solid #d32f2f;
    background: linear-gradient(to bottom, #ffffff, #f9fbff);
}

.service-card h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: #d32f2f;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-section {
        margin-top: 20px;
    }
}

.news-section {
    padding: 60px 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.news-image {
    background-color: #ddd;
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.news-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-content a {
    color: #00509e;
    font-weight: 600;
    font-size: 0.9rem;
}

footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

.text-just {
    text-align: justify;
    text-justify: inter-word;
    margin: 10px 0;
}
