/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black; /* dark orange #8B4000 */
    color: #fff;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
  overflow-x: hidden;
text-align: justify;
margin-top: 8% !important;
}

/* Typography */
h1, h2, h3 {
    color: #fff;
    margin-bottom: 15px;
}

h1.heading, h2.heading, h3.heading {
margin: 4% 2%;
padding:2%;
text-align: center;
background-color: #00008B;
border-radius: 8px;
}

@media (max-width: 768px) {
h1.heading, h2.heading, h3.heading {
padding:2%;
margin: 20% 2%;
}
}


a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header basic styling */
.site-header {
  background: black;
  color: #fff;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 3px solid white;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-flex;  /* CHANGED from 'block' */
  align-items: center;   /* Vertically aligns text with arrow */
}

/* Submenu styling for desktop */
.menu li {
  position: relative;
}

.menu .submenu {
  display: none;
  position: absolute;
  top: 75%;
  left: 0;
  background: #333;
  min-width: 200px;
  z-index: 1000;
  border: 1px solid black;
}

.menu .submenu li {
  white-space: nowrap;
}

.menu .submenu a {
  padding: 10px 15px;
  color: #fff;
  display: block;
}

.menu li:hover > .submenu {
  display: block;
}

.menu .submenu a:hover {
  background-color: black;
}

/* Hamburger menu (mobile only) */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #main-nav {
    display: none;
    width: 100%;
  }

  #main-nav.open {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu li {
    border-bottom: 1px solid black;
  }

.menu li.has-submenu {
  position: relative;
}

.menu-link-wrapper {
  display: flex;
  align-items: center;
}

  .menu .submenu {
    position: static;
    background: black;
  }
}

/* Hide submenu toggle on desktop */
.submenu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 5px;
  color: #fff;
}

/* Show toggle only on mobile */
@media (max-width: 768px) {
  .submenu-toggle {
    display: inline-block;
    background-color: black !important;
  }

  .submenu {
    display: none !important;
    position: static;
    background: black;
    padding-left: 20px;
  }

  .submenu.show-submenu {
    display: block !important;
  }


}

ul {
  list-style-type: disc;     /* bullet style: disc, circle, square, or none */
  padding-left: 20px;        /* space before list */
  margin: 10px 0;            /* vertical spacing */
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;               /* text color */
}

li {
  margin-bottom: 8px;        /* space between items */
}


/* Forms */
form {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="url"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
}

textarea {
    resize: vertical;
}

input[type="submit"], button {
    background-color: #FF8C00;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background-color: #e07a00;
}

/* Ad cards */
.ad-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.ad-card a {
    color: #00ffcc;
    font-weight: bold;
}

.ad-card a:hover {
    color: #fff;
}

/* Location autocomplete */
#location-suggestions {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    position: absolute;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    border-radius: 0 0 5px 5px;
}

#location-suggestions li {
    padding: 10px;
    cursor: pointer;
}

#location-suggestions li:hover {
    background: #f0f0f0;
}

/* Responsive layout */
@media (max-width: 768px) {
    body {
        padding: 10px 20px;
        margin-top: 25% !important;
    }

    form {
        padding: 15px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    input, select, textarea, button {
        font-size: 16px;
    }
}

/* Ad Listing Block Styles */
.ad {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ffbb88;
    padding-bottom: 20px;
    align-items: flex-start;
}

.ad img {
    width: 220px;
    height: 140px; /* rectangle size */
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ad-details {
    flex: 1;
    min-width: 200px;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


@media screen and (max-width: 768px) {
    .ad {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ad img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    .ad-details {
        width: 100%;
    }
}


.meta {
    font-size: 0.9em;
    color: #f2d1b3;
    margin-top: 5px;
}

.no-ads {
    color: #ffccbb;
    padding: 20px 0;
    font-style: italic;
}

.site-footer {
    text-align: center !important;
    padding: 20px;
    background-color: #5c2f09;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    text-decoration: underline;
}

#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: red;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none; /* Hidden by default */
  transition: background-color 0.3s ease;
}
#goTopBtn:hover {
  background-color: red;
}

button.post-ad-button {
background-color: black;
color: white !important;
border: 5px ridge white;
padding: 10px;
font-size: 20px;
margin: 0px 40px;
}

button.post-ad-button a {
color: white !important;
background-color: black;
}

button.post-ad-button a:hover {
color: white !important;
background-color: black;
}


.column {
  float: left;
  padding: 3.5%;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
  padding: 0px;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
.column {
    float: none;
    width: 97%;
    padding:0px;
    margin-left:0%;
  }
.row {
margin-left:0%;
width:100%;
}

}

.contid {
font-size : 50px;
}
section {
padding : 20px;
margin : 10px;
font-size: 18px;
}
.more {
display : none;
font-size : 50px;
}


/* pc figure */
figure {background-color: #8AABFF; border: 0px white solid; padding: 5px;width: 252px;
text-align:center;
border-bottom: 10px solid #8AABFF;
} /* mobile figure */
@media only screen and (max-width: 800px) {
figure {width:99%;}

	
/* pc figcaption */
figcaption {background-color:black; color:white !important;font-style: bold;font-size: 15px;padding: 0px;text-align: center !important;
opacity:0.9;font-weight:bold;
margin-bottom: 5px;
width:100%%;height:80%;
border-width:50px;border-style:style;border-color:black;
border-bottom:25px solid black;
}
} /* mobile figcaption */
@media only screen and (max-width: 768px) {
figcaption {font-size:20px;}}

.wp-caption-text {
	color: white;
	font-size: 20px !important;
	padding: 5px !important;
	text-align: center;
}

/* pc image */
.image {
padding: 1px;width: 240px; height: 300px; align: center;transition:all 0.6s ease-in-out;
margin-top:2%;position: relative;
opacity:0.9;
border-width: 1px;border-style: solid;border-color: white;border-radius: 2%; border-spacing: 30px 30px;
}
.image:hover {
opacity: 0.9;  filter: alpha(opacity=100);transform:scale(0.99);transition:all 0s ease-in-out;
  transform: translateY(0%);
background: linear-gradient(to bottom, rgba(255,0,0,0.8), rgba(355,0,0,0.9)));
}

/* mobile image */
@media screen and (max-width: 800px) {
.image { 
padding: 1px;margin: 0px;width: 100%; height: auto; opacity: 0.9;float: center;transition:all 0.6s ease-in-out;
margin-top:2%;position: relative;
border-width: 2px;border-style: solid;border-color: white;border-radius: 2%;
}
.image:hover {
opacity: 0.9;  filter: alpha(opacity=100);transform:scale(0.8);transition:all 0s ease-in-out;
  transform: translateY(0%);
background: linear-gradient(to bottom, rgba(255,0,0,0.8), rgba(355,0,0,0.9)));
}

}


.rdmore {
margin: auto;
font-family: 'Roboto';
font-weight: 700;
margin-top: 5px;
padding : 10px;
border : 2px solid #ffffff;
background-color : black;
color: white;
font-size : 20px;
display : block;
cursor : pointer;
vertical-align: middle;
text-align: center;
line-height: 1;
	width: 150px !important;
}

.rdmore a:hover {
margin: auto;
margin-top: 5px;
padding : 10px;
border : 2px solid #ffffff;
background-color : black;
color: white;
font-size : 20px;
display : block;
cursor : pointer;
vertical-align: middle;
text-align: center;
line-height: 1;
}
@media screen and (max-width: 800px) {
.rdmore {
margin: auto;
margin-top: 15px;
padding : 10px;
border : 2px solid #ffffff;
background-color : black;
color: white;
font-size : 20px;
display : block;
cursor : pointer;
vertical-align: middle;
text-align: center;
line-height: 1;
}

.rdmore a:hover {
margin: auto;
margin-top: 15px;
padding : 10px;
border : 2px solid #ffffff;
background-color : black;
color: white;
font-size : 20px;
display : block;
cursor : pointer;
vertical-align: middle;
text-align: center;
line-height: 1;
}
}
