/*=========== TABLE OF CONTENTS ===========
1. General CSS (Reset code)
2. Header-top
3. Top-area (Navigation)
4. Welcome-hero (Background + Animation)
5. main body
6. List-topics (Cards)
7. Footer
8. Responsive Design
==========================================*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}
/*-------------------------------------
        1. Header Top
--------------------------------------*/
.header-top {
    background-color: #fff; /* White background for the header */
    border-bottom: 1px solid #f6f8fa; /* Subtle bottom border */
    padding: 10px 0; /* Padding for the header */
    text-align: right; /* Aligns items to the right side */
    margin-bottom: 10px; /* Space below to separate from the header area */
}

.header-top ul {
    list-style: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    display: flex; /* Use flexbox for alignment */
    justify-content: flex-end; /* Align items to the right */
}

.header-top ul li {
    margin: 0 15px; /* Space between items */
}

.header-top ul li a {
    text-decoration: none; /* Remove underlines from links */
    color: #555; /* Link color */
    font-size: 14px; /* Font size for links */
    transition: color 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.header-top ul li a:hover {
    color: #ff545a; /* Change color on hover */
}

/*-------------------------------------
        Header Area
--------------------------------------*/
.header-area {
    background-color: #fff; /* White background for the header area */
    padding: 10px 25px; /* Added padding for a more spacious layout */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Align items to the right */
    align-items: center; /* Center items vertically */
}

.logo img{
    height: 55px;              /* ✅ BEST SIZE */
    width: 55;               /* image distort नहीं होगी */
    object-fit: cover;       /* image properly fit */
    border-radius: 50%;
    margin-bottom: 10px;
}
@media (max-width: 768px){
    .logo img{
        height: 55px;
        width: 55px;
    }
}

/* Navbar styles */
.navbar {
    display: flex; /* Flex display for navbar */
    align-items: center; /* Center items vertically */
}

/* Navigation items */
.navbar-nav {
    display: flex; /* Flex for horizontal navigation */
}

.navbar-nav .nav-item {
    margin: 0 15px; /* Spacing between items */
}

.navbar-nav .nav-link {
    color: #333; /* Default link color */
    font-size: 16px; /* Font size */
    padding: 10px 15px; /* Padding for button-like appearance */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions for hover effects */
}

.navbar-nav .nav-link:hover {
    background-color: #ff545a; /* Red background on hover */
    color: white; /* White text on hover */
}

/* Button Styles */
.navbar-nav .nav-button {
    background-color: #ff545a; /* Button background color */
    color: white; /* Button text color */
    padding: 10px 20px; /* Padding for a button-like appearance */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor to indicate action */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.navbar-nav .nav-button:hover {
    background-color: #e13337; /* Darker red on hover */
}

.navbar-toggler {
    border: none; /* Remove button border */
}

/* Hide the navbar toggler on larger screens */
@media (min-width: 768px) {
    .navbar-toggler {
        display: none; /* Hide toggle button */
    }
}

/*-------------------------------------
        4. Welcome-hero (Background)
--------------------------------------*/
/* Welcome Hero Styles */
.welcome-hero {
    position: relative;
    background: url('../images/background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f9f9f3; /* White color */
}

.welcome-hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 1, 1, 0.5);
    z-index: -1;
}

.welcome-hero h1 {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif; /* Font family update */
    text-transform: uppercase;
    font-style: italic; /* Font style update */
    margin-bottom: 20px;
}

.welcome-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Button Animation */
.btn-custom {
    background: #ff545a;
    color: rgb(121, 116, 116);
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-custom:hover {
    background: #e13337;
    transform: scale(1.05);
}

/* Update Font Family for Welcome Hero Text */
.welcome-hero-txt {
    font-family: 'Montserrat', sans-serif; /* Font family update */
}




/*-------------------------------------
        5. main body
--------------------------------------*/

/* ===== BODY COMMON ===== */
section{
  padding: 60px 20px;
}

.container{
  max-width: 1100px;
  margin: auto;
}

h2{
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
}

/* ===== ABOUT ===== */
.about-section p{
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

/* ===== MISSION & VISION ===== */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card{
  padding: 25px;
  background: #f9f9f9;
  border-radius: 10px;
}

/* ===== FEATURES ===== */
.features-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-box{
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

/* ===== WHY SECTION ===== */
.why-section ul{
  max-width: 600px;
  margin: auto;
  font-size: 17px;
  line-height: 2;
}

/* ===== CTA ===== */
.cta-section{
  background: #dcd7ca;
  color: #000000;
  text-align: center;
}

.cta-btn{
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #ff9800;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}


/*-------------------------------------
        6. List-topics (Cards)
--------------------------------------*/
.list-topics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px auto; /* Adjusted for spacing */
}

.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 15px;
    text-align: center;
    flex: 1 1 250px; /* Responsive width */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 10px;
}

/*-------------------------------------
        Footer
--------------------------------------*/
/* ================= FOOTER ================= */

.footer {
    background: #151a23; /* dark blue-black */
    color: #e5e7eb;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
}

/* Top Section */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

/* Logo Section */
.footer-logo img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-logo h3 {
    font-size: 24px;
    margin: 5px 0;
    color: #facc15; /* yellow 💛 */
}

.footer-logo h3 span {
    color: #38bdf8;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

/* Navigation */
.footer-nav h4,
.footer-social h4 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #facc15;
}

.footer-nav a {
    display: block;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 15px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #facc15;
}

/* Social Icons */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px 8px 0 0;
    border-radius: 50%;
    background: #1e293b;
    color: #facc15;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #facc15;
    color: #0f172a;
    transform: translateY(-3px);
}

/* Bottom Legal Section */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-bottom h4 {
    color: #facc15;
    margin-bottom: 15px;
}

.footer-bottom p {
    font-size: 13px;
    line-height: 1.7;
    color: #cbd5f5;
    max-width: 900px;
    margin: auto;
}

.footer-bottom .copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #94a3b8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-social a {
        margin: 6px;
    }
}

/*-------------------------------------
        7. Responsive Design
--------------------------------------*/
@media (max-width: 1024px) {
    .welcome-hero h1 {
        font-size: 2.5rem; /* Responsive headline size */
    }

    .welcome-hero p {
        font-size: 1rem; /* Smaller paragraph for medium devices */
    }
}

@media (max-width: 768px) {
    .welcome-hero h1 {
        font-size: 2rem; /* Further reduced for small devices */
    }

    .card {
        flex: 1 1 100%; /* Full-width cards on smaller screens */
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
