* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-ad-container {
    width: 100%;
    max-width: 960px;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 30px;
}

.top-ad-container img {
    display: block;
    max-width: 500px;
    height: 20vh;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.main-forum-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.main-content {
    flex-grow: 1; 
    margin-right: 20px;
}

.forum-section {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.section-header {
    background-color: #5D84B5;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.header-title {
    font-weight: bold;
    font-size: 16px;
}

.arrow {
    width: 20px;
    height: 20px;
    background-color: white;
    color: #5D84B5;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.rotate {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.expanded {
    max-height: 500px;
}

.forum-post {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.post-icon {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-icon img {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 5px;
}

.post-content {
    flex: 1;
    padding-left: 10px;
}

.post-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.post-info {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.sub-forums {
    margin-top: 10px;
    font-size: 14px;
}

.sub-forum-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.sub-forum-links a {
    text-decoration: none;
    color: #5D84B5;
    margin-right: 10px;
}

.sub-forum-links a:hover {
    text-decoration: underline;
}

.thread-info {
    flex: 0 0 200px;
    font-size: 13px;
    color: #777;
    padding-right: 10px;
}

.right-sidebar-moved {
    width: 630px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
}

.connect-with-us {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.connect-with-us h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center; 
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.login-section {
    margin-bottom: 15px;
}

.login-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.login-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.login-section input[type="text"],
.login-section input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.login-section button {
    background-color: #5D84B5;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    margin: 0 auto;
}

.login-section button:hover {
    background-color: #4a6b8e;
}

.login-section label {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 5px;
    margin-top: 5px;
}

.signup {
    margin-top: 5px;
    margin-bottom: 30px;
    border-bottom: 1px solid #33333321;
}

.login-section input[type="checkbox"] {
    margin-right: 5px;
}

.login-section a {
    font-size: 13px;
    color: #5D84B5;
    text-decoration: none;
    text-align: center;
}

.login-section a:hover {
    text-decoration: underline;
}


.right-sidebar-moved .sidebar-ad {
margin-bottom: 15px;
}

.right-sidebar-moved .sidebar-ad img {
display: block;
width: 100%;
height: auto;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


.bottom-ad-container {
    width: 100%;
    max-width: 960px; 
    margin-top: 20px; 
    text-align: center;
}

.bottom-ad-container img {
    display: block;
    max-width: 100%;
    height: 40vh;
    border-radius: 5px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.other h3{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.other p{
    font-size: 12px;
    line-height: 1.5;
    background-color: #7777771f;
    border-radius: 5px;
    margin-bottom: 30px;
}

.wgo {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    background-color: white;
    border-radius: 5px;
    line-height: 1.6;
  }
  
  .wgo-header {
    background-color: #707070;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  
  .wgo-box {
    padding: 12px;
    font-size: 13px;
  }
  
  .wgo-box a {
    color: #0056cc;
    text-decoration: none;
  }
  

@media (max-width: 768px) {
    body {
        align-items: stretch;
    }
    .main-forum-container {
        flex-direction: column;
    }
    .main-content, .right-sidebar-moved, .top-ad-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .main-content {
        margin-right: 0;
    }
}