*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    overflow: none;
}
body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: rgb(0, 0, 44);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}
nav img {
    height: 50px;
    
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
    
}

nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(1, 1, 77);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    min-width: 200px;
}
nav ul li a::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 5px;
    left: 0;
    bottom: -6px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
  }
  nav ul li a:hover::after{
    transform: scaleX(1);
    transform-origin: left;
  }
  
  nav ul lo000ui a:hover {
      background-color: #555;
  } 
nav ul li:hover>ul {
    display: flex;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.hero {
    background-image:linear-gradient(to right, rgba(0, 0, 0, 0.685), rgba(0, 0, 0, 0.548), rgba(0, 0, 0, 0.342)), url(web.img/istockphoto-1140010001-612x612.jpg);
     background-position: center;
     background-repeat: no-repeat;
     background-size: cover;
    padding: 100px 0;
    justify-content: right;

}
.contain{
    width: 50%;
    padding-left: 20px;
}
.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 30px;
}

.blog-section {
    padding: 80px 0;
    text-align: center;
}

.blog-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2d3748;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 20px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.616);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.301);
}

.blog-card img,
.blog-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: block; 
}

.blog-card video {
margin-bottom: 10px;
}

.blog-card-content {
    padding: 30px;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
}

.blog-card p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
}

.blog-card a {
    display: inline-block;
    color: #f76402;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-card a:hover {
    color: #ac4d00;
}
.call-to-action {
    background: linear-gradient(to right, rgb(0, 98, 131), rgb(0, 0, 61) );
    padding: 80px 0;
    text-align: center;
}

.call-to-action h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color:white;
}

.call-to-action p {
    font-size: 1.1em;
    color: white;
    max-width: 700px;
    margin: 0 auto 30px;
}
.button{
    width: 180px;
    height: 55px;
    background-color: #007bff;
    border-radius: 30px;
}
.button a{
    color: white;
    font-size: 1.5em;
}
.button:hover{
    background-color: #0056b3;
    
}


footer {
    background-color: rgb(0, 0, 61);
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}


.about-us img {
    height: 50px; 
    margin-bottom: 1rem;
}

.about-us p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1rem;
}

.contact-details .detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.contact-details i {
    margin-right: 0.5rem;
    width: 1.2rem; 
    text-align: center;
}

.social-links {
    display: flex;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff; 
}


.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #fff;
}


.newsletter p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

.newsletter-success {
    color: #4caf50;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


.contact-form p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.ajax-contact-form input,
.ajax-contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.ajax-contact-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ajax-contact-form button:hover {
    background-color: #0056b3;
}

.contact-success,
.contact-error {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-success {
    color: #4caf50;
}

.contact-error {
    color: #f44336;
}


.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #444;
    margin-top: 2rem;
   
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #888;
}

.back-to-top {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #007bff;
}

.back-to-top i {
    margin-left: 0.5rem;
}


@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .about-us,
    .quick-links,
    .newsletter,
    .contact-form {
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column; 
    }

    .newsletter-form input,
    .newsletter-form button {
        margin-bottom: 0.5rem;
        border-radius: 5px;
    }
}
@media screen and(max-width:400px) {
    body{
        display:grid;
     grid-template-areas: 'header'
     'nav' 
     'section'
     'footer'
     ;
     
    }
    header{
        grid-area: header;
        width: 50%;
    }
    nav{
        grid-area: nav;
        width: 50%;
    }
    section{
        grid-area: section;
        width: 50%;
        display: flex;
        flex-direction: row;
    }
    
    
    
} 



@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 15px;
    }
    .contain{
        width: 100%;
    }
    .hero h2 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: white;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.1rem;
        color: white;
        margin-bottom: 30px;
        max-width: 550px;
        text-align: center;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .blog-section h2 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 0;
        box-shadow: 5px 3px 6px rgba(0, 0, 0, 0.884);
    }

    .blog-card img,
    .blog-card video {
        height: 200px;
    }

    .blog-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-section h2 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .blog-section {
        padding: 60px 0;
    }

    .blog-section h2 {
        font-size: 1.75rem;
    }

    .blog-card {
        padding: 0;
        flex-direction: column;
    }

    .blog-card img,
    .blog-card video{
        height: 150px;
    }

    .blog-card-content {
        padding: 15px;
    }
}