/* Story Pages */
.story-content {
  font-size: 90px;
}
.story-content .author-name{
  font-weight: 400;
  padding-bottom: 20px;
}

.story-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #653728;
  margin: 20px 0;
}
.story-content hr{
  border: none;
  background: #653728;
  height: 1.5px;
}
.pt{
  font-size: 18px;
  font-weight: bold;
}
.story-content .story-name {
  line-height: 46px;
  font-size: 90px;
}
.story {
  display: grid;
  place-items: center;
} 
.story-p{
  width: 50%;
}
.story-contents{
  user-select: none;
}

.arrows {
  display: inline-block;
  text-decoration: none;
  color: #ece5d2;
}
.arrows i{
  font-size: 20px;
}
.go-top{
  display: inline;
  width: 200px;
  height: 40px;
  padding: 5px 10px;
  background-color: #653728;
  border-radius: 10px;
  text-transform: uppercase;
}
.go-top h5{
  display: inline-block;
  padding-right: 15px;
  margin: 13px;
}
.go-top:hover{
  color: #653728;
  background:transparent;
  border: 1px solid #653728;
  transition: ease-in-out 0.5s;
}

/* Promo Sections */
.promo-section {
  display: flex;
  background: #f4f1e6;
  border-radius: 20px;
  margin:0;
  padding: 40px;
  align-items: center;
  justify-content:center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.promo-text {
  color: #5a3e2b;
  text-align: center;
}

.promo-text h2 {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.promo-text h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  position: relative;
  bottom: 14px;
}

.promo-text p {
  font-size: 1.1em;
  margin: 8px 0;
}

/* Author Introduction */
.aut-text {
  color: #5a3e2b;
  text-align: center;
}

.aut-text h2 {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.aut-text h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  position: relative;
  bottom: 14px;
}

.aut-text p {
  font-size: 1.1em;
  margin: 8px 0;
}

/* Story Cards */
.main-stories-cards h1{
  font-size: 90px;
  display: flex;
  margin: 20px;
  padding: 0;
  justify-content: center;
  line-height: 80px;
}
.story-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.story-cards .card {
  background-color: #ece5d2;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.story-cards .card a{
  text-decoration: none;
}

.story-cards .card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #653728;
}

.story-cards .card p {
  color: #653728;
}

.story-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.c-aw {
  padding: 30px;
  text-align: center;
}
.c-aw .container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
}
.c-aw-intro{
  line-height: 5px;
}
.c-aw h1 {
    color: #653728;
}
.c-aw-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.c-aw-box {
    background: #ece5d2;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin-bottom: 30px;
}
.c-aw-box h2 {
    font-size: 20px;
    color: #653728;
}
.c-aw-box p {
    font-size: 16px;
    color: #653728;
}
.c-aw-box a {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
}

/* Aidson Writer */
.aidson-writer {
  padding: 30px;
  text-align: center;
}
.aidson-writer .container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
}
.aidson-writer h1 {
    color: #653728;
}
.aidson-writer .aidson-writer-p {
    margin-bottom: 0;
}
.apply-container{
  margin-top: 20px;
  margin-bottom: 30px;
}
.aidson-writer-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.aidson-writer-box {
    background: #ece5d2;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin-bottom: 30px;
}
.aidson-writer-box h2 {
    font-size: 20px;
    color: #653728;
}
.aidson-writer-box p {
  font-size: 16px;
  color: #653728;
}
.aidson-writer-box a {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
}

/* Application Form */
.application-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.application-main .container {
    background: #ece5d2;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.application-main .container h2 {
    text-align: center;
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color:#653728;
}

.application-main .container .application-form .form-group {
    margin-bottom: 15px;
}

.application-main .container label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #653728;
}

.application-main .container input {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.application-main .container input:focus {
    border-color: #653728;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.application-main button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #653728;
    color: #ece5d2;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.application-main .container button:hover {
  background: #965a46;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Form */
.login-wrapper {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
}

.login-card {
  background-color: #ece5d2;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.login-card h2 {
  margin-bottom: 30px;
  font-size: 24px;
  color: #653728;
}

#login-form input {
  width: 91%;
  padding: 12px;
  margin-bottom: 20px;
  background: #ece5d2;
  border: 1px solid #444;
  border-radius: 8px;
  color: #653728;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

#login-form input:focus {
  border-color: #653728;
}

#login-form button {
  width: 100%;
  padding: 12px;
  background: #653728;
  color: #ece5d2;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#login-form button:hover {
  background: #ece5d2;
  color: #653728;
  border: #653728 1px solid;
  transition: ease-in-out 0.5s;
}

/* Privacy Policy & Terms */
.main-PP-TC .container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: #ece5d2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.main-PP-TC .container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.main-PP-TC .container h1, h2 {
  color: #653728;
  transition: color 0.3s;
}

.main-PP-TC .container p, ul {
  color: #653728;
  line-height: 1.8;
}

.main-PP-TC .container ul {
  padding-left: 20px;
}

.main-PP-TC .container li {
  margin-bottom: 10px;
}

/* Blog Styles */
.blog-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-title {
  font-size: 2.5rem;
  color: #653728;
  margin-bottom: 10px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #777;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.blog-meta i {
  margin-right: 5px;
}

.blog-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-featured-image:hover {
  transform: scale(1.01);
}

.blog-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-content p {
  margin-bottom: 1.5em;
}

.blog-content a {
  text-decoration: underline;
  font-weight: 600;
}

.blog-content a:hover {
  color: #4a2920;
}

.blog-content h2, 
.blog-content h3 {
  color: #653728;
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-content h2 {
  font-size: 1.8rem;
}

.blog-content h3 {
  font-size: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin-left: 20px;
  margin-bottom: 1.5em;
}

.blog-content li {
  margin-bottom: 0.5em;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.blog-tag {
  background: #f0e6e1;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: #e0d6d1;
  transform: translateY(-2px);
}

.author-box {
  background: #f9f5f3;
  padding: 25px;
  border-radius: 8px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 4px solid #653728;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0d6d1;
}

.author-info h3 {
  margin: 0 0 5px 0;
  color: #653728;
}

.author-info p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-content .read-story-btn {
  display: inline-block;
  background: #653728;
  color:#ddd;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.blog-content .read-story-btn:hover {
  background: white;
  border: #653728 1px solid;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.nav-btn {
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 5px;
  text-decoration: none;
  color: #653728;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background: #e0d6d1;
}

.nav-btn i {
  font-size: 0.9rem;
}

/* Blog Index Page */
.blog-index {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-index-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-index-title {
  font-size: 2.8rem;
  color: #653728;
  margin-bottom: 15px;
}

.blog-index-description {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-title {
  font-size: 1.4rem;
  color: #653728;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #777;
  margin-top: 15px;
}

.blog-card-readmore {
  display: inline-block;
  color: #653728;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.blog-card-readmore:hover {
  color: #4a2920;
  text-decoration: underline;
}