@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500&display=swap');

:root {
    --white: white;
    --black: black;
    --dim-text: #777;
    --btn-dim-text: #333;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.355);

}

html.dark-mode {
    --white: #000000;
    --black: #ffffff;
    --dim-text: #aaaaaa;
    --btn-dim-text: #e0e0e0;
    --box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);

}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.header-cls {
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--white);
    position: fixed;
    z-index: 100;
}

.logo img {
    width: 150px;
    padding: 16px;
}

.menu-items {
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    gap: 30px;
    background-color: var(--white);
}

.btn-close {
    display: none;
}

.hamburger {
    display: none;
}

.btn:hover {
    transform: scale(1.1);
}

.theme-toggle {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 12px;
    border-radius: 30%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-right: 20px;
    /* position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 1000; */
}

body.dark .theme-toggle {
    background: #ddd;
    color: black;
}

.menu-items a {
    text-decoration: none;
    color: var(--black);
    font-size: 18px;
    letter-spacing: 1px;
    padding: 10px;
}

.menu-items a:hover::after {
    width: 100%;
}

.menu-items a:hover {
    color: #ff4081;
}

.menu-icons {
    display: flex;
    text-decoration: none;
    list-style: none;
    justify-content: space-between;
    gap: 30px;
    cursor: pointer;
    margin-right: 20px;
}

.menu-icons a {
    color: var(--black);
}

.footer {
    margin-top: 5%;
}

.footer-head {
    display: grid;
    grid-template-rows: 6fr 1fr;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: black;
    color: white;
}

.footer-grid h3 {
    color: #0385ff;
}


.footer-content-company {
    margin: 7%;
}

.footer-content-company p {
    text-indent: 35px;
    margin: 0;
}

.footer-nav-grid {
    display: grid;
}

.footer-content-nav a {
    text-decoration: none;
    list-style: none;
    line-height: 50px;
    text-indent: 20px;
    color: white;
    transition: transform 0.5s ease;
}

.footer-content-nav a:hover {
    color: #0385ff;
    transform: translatey(-10px);
}

.footer-content-nav li {
    cursor: pointer;
}

.footer-content-contact a {
    list-style: none;
    text-decoration: none;
    color: white;
    text-indent: 20px;
    transition: color 0.5s ease;

}

.footer-content-contact a:hover {
    color: #0385ff;
}

.footer-content-legal-link a {
    text-decoration: none;
    color: white;
    text-align: justify;

}

.footer-content-legal-link li {
    list-style: none;
    text-indent: 20px;
    text-align: justify;
    transition: transform 0.5s ease;

}

.footer-content-legal-link li:hover {
    color: #0385ff;
    transform: translatey(-10px);
}

.footer-content-legal-link a {
    line-height: 70px;
    cursor: pointer;
    transition: transform 0.5s ease;
    /* color: white; */

}

.footer-content-legal-link a:hover {
    color: #0385ff;
    transform: translatey(-10px);
}

.footer-copy {
    text-align: center;
    background-color: #1C1C1C;
    color: white;
}

#backToTop {
    position: fixed;
    bottom: 120px;
    right: 30px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s;
    z-index: 1999;
}

#backToTop:hover {
    background: #434343;
    transform: translateY(-5px);
}


@media (max-width: 768px) {
    .header-cls img {
        width: 40%;
    }

    .menu-items {
        gap: 20px;
        font-size: 16px;
    }

    .menu-icons {
        display: none;
    }

    .sponsor-grid {
        gap: 30px;
    }

    .sponsor-grid img {
        height: 60px;
    }

    .testimonial {
        flex: 0 0 100%;
    }

    .testimonial-container {
        gap: 10px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-grid-l form {
        grid-template-columns: repeat(2, 50%);

    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width:768px) {
    .menu-items {
        flex-direction: column;
        background: #000000;
        position: fixed;
        top: 0;
        right: -350px;
        width: 250px;
        height: auto;
        padding: 60px 20px;
        transition: right 0.5s ease;
        z-index: 999;
        /* color: #0385ff; */
    }

    .menu-items a {
        font-size: 18px !important;
        color: white;
    }

    .btn-close {
        display: block;
        color: rgb(0, 0, 0);
        background-color: #0385ff00;
        cursor: pointer;
        border-color: #00000000;
    }

    .hamburger {
        display: block;
        margin-right: 30px;
        cursor: pointer;
        color: var(--black);

    }

    .menu-items.show {
        right: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
        align-content: flex-start;
    }

    .hamburger:hover {
        color: #b82e5e;
    }

    .overlay {
        top: 75%;
        left: 50%
    }

    .menu-icons {
        display: none;
    }

    .menu-items {
        display: none;
    }

}

.blog-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.248), rgba(0, 0, 0, 0.084)), url('./asstes/blog_hero_img.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.blog-hero h1 {
    margin: 0%;
    font-size: 38px;
}

.blog-hero a {
    margin: 2%;
    padding: 16px;
    background-color: #0385ff;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.5s;
}

.blog-hero a:hover {
    background-color: #004cff;
}

.featured-blog {
    overflow-x: hidden;
}

.featured-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin: 3%;
    overflow-x: hidden;
}

.featured-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.featured-content img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.featured-content {
    display: grid;
    grid-template-columns: .5fr 2fr;
}

.featured-content {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.featured-content:hover {
    transform: translateY(-5px);
}

.f-content {
    padding: 15px;
    color: var(--black);
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-rows: auto;
    }

    .featured-grid2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width:478px) {
    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-content img {
        width: 100%;
    }

    .trending-right {
        padding-top: 21% !important;
    }

    .newsletter-container {
        margin: 2% !important;

    }

}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 3%;
}

.recent-content img {
    width: 100%;
    height: 350px;
    border-radius: 20px;
}

.recent-content {
    border: 1px solid rgba(0, 0, 0, 0.229);
    padding: 10px;

}

.recent-content:hover {
    box-shadow: 0 4px 12px rgba(20, 3, 255, 0.496);

}

.r-date {
    color: var(--btn-dim-text);
}

.r-content {
    margin: 1%;
    color: var(--black);
}


.trending-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 3%;
}

.trending-left {
    grid-row: span 2;
}

.trending-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin: 2%;
}

.trending-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.trending-left img {
    width: 100%;
    height: 70%;
}

.trending-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.t-content {
    padding: 15px;
    color: var(--black);
}

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

.podcast-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.podcast-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px;
    text-align: center;
    transition: transform 0.2s;
}

.podcast-card:hover {
    transform: translateY(-5px);
}

.video-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 50px;
    color: #004cff;
    transition: transform 0.2s;
    margin-bottom: 15px;
}

.video-icon-btn:hover {
    transform: scale(1.2);
}

.podcast-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--btn-dim-text);
}

.podcast-desc {
    font-size: 14px;
    color: var(--dim-text);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    aspect-ratio: 16/9;
    background: var(--black);
    border-radius: 8px;
    overflow: hidden;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.newsletter-container {
    margin: 20%;
    margin-bottom: 5%;
    margin-top: 5%;
    background-color: #363A45;
    padding: 16px 10px;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 30px;
    text-align: center;
    min-height: 30vh;
    color: white;
    /* position: relative; */
}

.newsletter-input {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

.newsletter-input input {
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.4s;
}

.newsletter-input button {
    padding: 16px;
    border-radius: 15px;
    background-color: #0385ff;
    color: white;
    border-color: #0385ff00;
    cursor: pointer;
}

.newsletter-input button:hover {
    background-color: #004cff;
}

.newsletter-content h1 {
    letter-spacing: 2px;
    font-size: 32px;
    color: #578aff;
    margin: 0%;
}

.newsletter-input input:focus {
    border-color: #00ffd0;
}

.head {
    text-align: center;
    font-size: 46px;
    color: var(--black);
    margin: 3%;
}