/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
/* back button  */
.redirect-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background:#3498db;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(21, 170, 191, 0.4);
  position: relative;
  
  overflow: hidden;
}

.redirect-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: #2c3e50;
  transform: skewX(-20deg);
  transition: left 0.8s ease-in-out;
}

.redirect-button:hover::before {
  left: 130%;
}

.redirect-button:hover {
  box-shadow: 0 6px 16px rgba(21, 170, 191, 0.6);
  transform: translateY(-2px);
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* For responsiveness */
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    flex-shrink: 0; /* Prevent shrinking */
}

.language-switcher {
    display: flex;
    gap: 10px;
    margin-top: 5px; /* Adjust for responsiveness */
}

.language-switcher button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #2980b9;
}

/* Blog Post Styling */
.blog-post {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0; /* For scroll animation */
    transform: translateY(20px); /* For scroll animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.blog-post.in-view {
    opacity: 1;
    transform: translateY(0);
}

.blog-post h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.blog-post h3 {
    color: #34495e;
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post h4 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-post p {
    margin-bottom: 15px;
}

.blog-post .intro {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
}

.blog-image {
    text-align: center;
    margin: 30px 0;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.threat-item {
    background-color: #f9f9f9;
    border-left: 5px solid #e74c3c;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.threat-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 5px;
}

.protection-list {
    list-style: none;
    padding: 0;
}

.protection-list li {
    background-color: #ecf0f1;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.protection-list li .icon {
    font-size: 1.5em;
    color: #3498db;
    margin-right: 15px;
    flex-shrink: 0;
}

.protection-list li p {
    margin: 0;
    flex-grow: 1;
}

.protection-list li strong {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.table-container {
    overflow-x: auto; /* For responsive tables */
    margin-top: 20px;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius applies to table */
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
    white-space: nowrap; /* Prevents wrapping in header */
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e9ecef;
}

/* Horizontal Rule between blogs */
hr {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 50px 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .blog-post {
        padding: 20px;
    }

    .blog-post h2 {
        font-size: 1.6em;
    }

    .blog-post h3 {
        font-size: 1.4em;
    }

    .blog-post h4 {
        font-size: 1.1em;
    }

    .protection-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .protection-list li .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    table th, table td {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .language-switcher button {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-post h2 {
        font-size: 1.4em;
    }
}

