* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: #e6f7ff;
}

.sub-header {
    height: 50vh;
    width: 100%;
    background: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(/Images/Background.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.sub-header h1 {
    font-size: 40px;
}

nav {
    display: flex;
    padding: 20px 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

nav img {
    width: 120px;
    height: auto;
}

/* NAV LINKS (Desktop) */
.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    display: inline-block;
    padding: 10px 14px;
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    color: whitesmoke;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links ul li a:hover {
    font-weight: bold;
    color: #F5A623;
}

.nav-links ul li::after {
    content: '';
    display: block;
    margin: auto;
    height: 3px;
    width: 0%;
    background-color: #F5A623;
    transition: 0.4s ease;
    border-radius: 3px;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Toggle Button (Hamburger) */
.toggle_btn {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

/* Mobile Dropdown Menu */
.dropdown_menu {
    position: absolute;
    top: 80px;
    right: 2rem;
    background-color: rgba(0, 15, 38, 0.95);
    width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideDown 0.3s ease forwards;
}

.dropdown_menu.open {
    display: flex;
}

.dropdown_menu li {
    padding: 15px;
    text-align: center;
    list-style: none;
}

.dropdown_menu li a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.dropdown_menu li a:hover {
    background-color: #F5A623;
    color: #000F26;
    border-radius: 8px;
    padding: 10px 15px;
}

.toggle_btn i {
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO TEXT */
.text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: whitesmoke;
    width: 90%;
    z-index: 2;
}

.text-box h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
}

.text-box p {
    font-size: 24px;
    margin-bottom: 40px;
}

/* BUTTONS */
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: whitesmoke;
    border: 2px solid whitesmoke;
    padding: 12px 30px;
    border-radius: 8px;
    margin: 10px;
    transition: 0.4s;
    font-weight: 500;
    font-size: 16px;
}

.hero-btn:hover {
    background-color: #F5A623;
    color: #000F26;
    border-color: #F5A623;
    padding: 14px 36px;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .text-box h1 {
        font-size: 36px;
    }

    .text-box p {
        font-size: 18px;
    }

    .hero-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    nav {
        padding: 20px 4%;
    }
}

@media (max-width: 576px) {
    .text-box h1 {
        font-size: 32px;
    }

    .text-box p {
        font-size: 16px;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .dropdown_menu {
        right: 1rem;
        width: 200px;
    }
}

/* Responsive Styles for .third-part and its children */
.third-part {
    background: linear-gradient(#9ed6f0, #7bccca);
    width: 100%;
    padding: 40px 10px;
    box-sizing: border-box;
}

.third-part h2 {
    font-size: 32px;
    text-align: center;
    color: #000;
    padding: 20px 0;
}

.mem1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    margin: 30px auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
}

.mem-child1, .mem-child2 {
    flex: 1 1 300px;
    max-width: 500px;
    margin: 10px;
    box-sizing: border-box;
}

.mem-child1 img.pic {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.mem-child2 h2.fanc {
    font-size: 22px;
    color: white;
    text-align: left;
    margin-bottom: 10px;
}

.mem-child2 .myspan, .mem-child2 p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mem1 {
        flex-direction: column;
        text-align: center;
    }

    .mem-child2 h2.fanc {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .third-part h2 {
        font-size: 26px;
    }

    .mem-child2 h2.fanc {
        font-size: 20px;
    }

    .mem-child2 .myspan, .mem-child2 p {
        font-size: 15px;
    }
}

/* Container & Layout */
.mother-div {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 2px 3px 25px rgba(0, 0, 0, 0.5);
}

/* Flex layout adapts */
.main-blog-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.main-blog2 {
    flex: 1 1 65%;
    min-width: 300px;
}

.main-blog3 {
    flex: 1 1 30%;
    min-width: 280px;
    display: block;
}

.first-blog2 {
    margin-bottom: 30px;
}

.main-first-text {
    font-size: 40px;
    font-weight: bold;
}

/* Cards */
.card, .card2 {
    background-color: #fff;
    border: 2px solid rgb(167, 152, 152);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.card1-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.card2-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-top: 15px;
    border-radius: 15px;
}

/* Author Row */
.the {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #000;
    margin-bottom: 10px;
}

.myspan {
    font-weight: bold;
}

/* Read More toggle */
#check, #checker {
    display: none;
}

.content {
    display: none;
    margin-top: 10px;
    font-size: 15px;
}

#check:checked~.content {
    display: block;
}

#check:checked~label,
#checker:checked~label {
    display: none;
}

label {
    display: inline-block;
    background-color: #7bccca;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
}

/* Sidebar Blog Images */
.div1, .div2, .div3, .div4, .div5 {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: solid 2px grey;
    overflow: hidden;
}

.image-blog {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
p {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
}

/* Buttons */
.main-btn,
.main-btn1 {
    font-size: 18px;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.main-btn1 {
    background-color: #7bccca;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .main-blog-page {
        flex-direction: column;
    }

    .main-blog3 {
        width: 100%;
    }

    .main-first-text {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .main-first-text {
        font-size: 30px;
    }

    .card1-image {
        width: 40px;
        height: 40px;
    }

    p {
        font-size: 15px;
    }

    label {
        font-size: 14px;
    }

    .card2-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .mother-div {
        width: 95%;
        padding: 20px;
    }

    .main-first-text {
        font-size: 24px;
        text-align: left;
    }

    .the {
        flex-direction: column;
        align-items: flex-start;
    }

    .card2-image {
        height: 180px;
    }

    label {
        width: 100%;
        text-align: center;
    }
}

/* Footer */
footer {
    width: 100%;
    position: relative;
    background: linear-gradient(to left, #000F26, #93bfd3);
    color: whitesmoke;
    padding: 100px 0 30px;
    font-size: 13px;
    line-height: 20px;
}

.rowf {
    width: 85%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.colf {
    flex-basis: 30%;
    padding: 10px;
}

.logo {
    width: 80px;
    margin-bottom: 30px;
}

.colf:nth-child(2),
.colf:nth-child(1) {
    flex-basis: 15%;
}

.colf h3 {
    width: fit-content;
    margin-bottom: 40px;
    position: relative;
}

.email-id {
    width: fit-content;
    border-bottom: 1px solid #ccc;
    margin: 20px 0;
}

ul li {
    list-style-type: none;
    margin-bottom: 12px;
}

ul li a {
    text-decoration: none;
    color: whitesmoke;
}

.colf ul li a:hover {
    text-decoration: underline;
}

.footer-form {
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    margin-bottom: 50px;
}

.footer-form .fa-solid {
    font-size: 18px;
    margin-right: 10px;
}

.footer-form input {
    width: 100%;
    background: transparent;
    color: #ccc;
    border: 0;
    outline: none;
}

.footer-form button {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

.footer-form button i {
    font-size: 16px;
    color: #ccc;
}

.Social-icons .fa-brands {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    color: #ccc;
    margin-right: 15px;
    cursor: pointer;
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}

.copyright {
    text-align: center;
}

.underline {
    width: 100%;
    height: 5px;
    background: #767676;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #ccc;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}

@keyframes moving {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 767px) {
    .thumbnail.right {
        float: none;
        margin-left: 0px;
    }

    .thumbnail.left {
        float: none;
        margin-right: 0px;
    }

    .thumbnail {
        width: 100%;
    }

    .colf {
        flex-basis: 100%;
    }

    .colf:nth-child(2),
    .colf:nth-child(1) {
        flex-basis: 100%;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: none;
    }

    .dropdown_menu.open {
        display: flex;
    }
}