html,
body {
    overflow-x: hidden;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-areas: "header header"
        "aside main"
        "footer footer";
    grid-template-columns: 200px 1fr;
    grid-template-rows: 70px 1fr 50px;
    height: 100vh;
}

aside {
    grid-area: aside;
    background-color: #2c3e50;
}

header {
    grid-area: header;
    background-color: #2c3e50;
    color: white;
    font-size: 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#menu-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 8px;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.login-btn {
    position: absolute;
    left: 15px;
    transform: translateY(-50%);
    padding: 8px 15px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #17a085;
}


.aside-links a {
    font-size: 20px;
    text-decoration: none;
    color: white;
    display: block;
    margin-bottom: 5px;
    padding: 10px 20px;
}

.aside-links a:hover {
    background-color: #34495e;
    border-radius: 6px;
    transition: background-color 0.3s;
}

main {
    grid-area: main;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome, .why {
    background: #f3f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.home-elements {
    background-color: #f3f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}


.home-elements h2 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

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

.card a {
    font-size: 23px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
}

.more {
    margin-top: 30px;
    font-weight: bold;
}

.more a {
    padding: 10px 25px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.more a:hover {
    background-color: #1a242f;
}

footer {
    grid-area: footer;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
}
/* ----------------Phone Show -----------------*/

@media (max-width: 768px) {
    body {
        grid-template-areas:
            "header"
            "main"
            "footer";
        grid-template-columns: 1fr;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
    }

    aside {
        position: fixed;
        top: 70px; 
        right: -250px;
        width: 250px;
        height: calc(100vh - 70px);
        transition: right 0.3s;
        z-index: 1000;
    }

    aside.show {
        right: 0;
    }

    #menu-btn {
        display: flex;
    }

    .welcome, .why {
        margin: 10px;
        width: auto;
    }

    .Attacks-page .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .Attacks-page .card {
        width: 300px;

    }

    .Attacks-page .card img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        border-radius: 10px;
    }

    .video-card {
        background-color: #fff;
        border-radius: 10px;
        padding: 15px;
        width: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .video-card iframe {
        width: 100%;
        height: 180px;
        border-radius: 10px;
    }

    .desktop-title {
        display: none;
    }

    .mobile-title {
        display: inline;
    }

    .login-btn{
        background-color: white;
        width: 20px;
        height: 20px;
        padding: 8px ;
    }
}
/* ----------------Desktop Show -----------------*/
@media (min-width: 769px) {

    header,
    footer {
        padding-right: 200px;
        box-sizing: border-box;
    }

    .Attacks-page .card {
        width: 450px;
    }

    .video-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .video-card {
        background-color: #fff;
        border-radius: 10px;
        padding: 15px;
        width: 450px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .video-card iframe {
        width: 100%;
        height: 220px;
        border-radius: 10px;
    }

    .desktop-title {
        display: inline;
    }

    .mobile-title {
        display: none;
    }
}

/* ------------Article Page---------------- */

.articles-page {
    background-color: #f3f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

.articles-page .card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.articles-page .card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 10px;
}

/* ---------------Attack Types Page------------------ */
.Attacks-page {
    background-color: #f3f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

.Attacks-page .card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.Attacks-page .card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 10px;
}

.Attacks-page .card p {
    text-align: right;
}

/* -------------- Safty Tips Page---------------------- */
#tips {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
}

.intro {
    text-align: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 20px;
}

.tip-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tip-section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.tip-section ul {
    padding-right: 20px;
    list-style-type: disc;
}

/*--------------------- Video Library Page---------------------- */

.video-section {
    max-width: 1100px;
    margin: auto;
    padding: 30px;
    text-align: center;
}


.video-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.video-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


.video-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #2c3e50;
}

.video-card p {
    font-size: 14px;
    color: #555;
}

/* --------------Contact Us page ----------------- */
.about-section,
.contact-section {
    background: #f3f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    text-align: right;
    border:1px solid #f708a3;
}

.about-section h2,
.contact-section h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.team-card {
    background: white;
    border: 1px solid #f708a3;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.team-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}



.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.social-icons a img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.social-icons a:hover img {
    transform: scale(1.25);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #f708a3;
}

/* ----------- FAQ PAGE -------------------- */
