/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f6f6f6;  /* Light pastel gray background */
    color: #333; /* Default black text color */
    line-height: 1.6;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* <-- centers logo + menu vertically */
    padding: 10px 20px;   /* reduced padding */
    height: 90px;         /* <-- same height as search bar */
}

/* Make logo bigger again */
header .logo img {
    width: 200px;   /* adjust as needed */
}

/* Make nav text bigger */
header nav ul li a {
    font-size: 1.4em;   /* larger text */
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;  /* Soft blue on hover */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #FFAAAA, #FF7A7A); /* Soft red gradient background */
    color: #fff;
    font-size: 2em;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #000; /* Black text */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #000; /* Black text */
}

.hero .cta-button {
    background-color: #007bff;  /* Soft blue button */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero .cta-button:hover {
    background-color: #0056b3;
}

/* Login and Register Section */
#auth {
    background-color: #f6f6f6;  /* Light background */
    padding: 40px 20px;
    text-align: center;
}

.auth-container {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
}

.auth-button {
    padding: 20px 40px;
    font-size: 1.2em;
    text-decoration: none;
    color: #fff;
    width: 48%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.login-button {
    background-color: #b71c1c; /* Dark red for login */
}

.register-button {
    background-color: #1d3e6b; /* Dark blue for register */
}

.auth-button:hover {
    opacity: 0.8;
}

/* Articles Section */
#articles {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

#articles h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.article {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-image {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-content {
    flex: 2;
    max-width: 50%;
    text-align: left;
    padding-left: 20px;
}

.article-content h3 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-content .cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-content .cta-button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer .social-links a:hover {
    color: #FFD700;
}

/* Search Bar Wrapper */
.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Search Box Container */
.search-box {
    width: 90%;
    max-width: 900px;
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 40px;
    padding: 10px 15px;
    background: #fff;
}

/* Category Label */
.category-label {
    margin-right: 15px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* Search Input */
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 10px;
    background: transparent;
}

/* Search Button */
.search-btn {
    background: #f15a24; /* Orange color */
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    opacity: 0.9;
}

