/* Reset & Base Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Inter', sans-serif;
  background-color: #f7faff;
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Links & Containers */
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5em;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e63946;
}
nav ul {
  display: flex;
  gap: 1.5rem;
}
nav ul li a {
  color: #e63946;
  font-weight: 600;
}

/* Hero / Tool Section */
.hero {
  text-align: center;
  padding: 3em 1em 2em;
  background: linear-gradient(to right, #ffffff, #e8f0ff);
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5em;
}
input[type="file"] {
  margin-bottom: 1em;
  padding: 0.5em;
}

/* Convert Button */
.convert-btn {
  margin-top: 1em;
  padding: 12px 24px;
  font-size: 1rem;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.convert-btn:hover {
  background: #d62828;
}

/* Description Paragraph */
.description {
  max-width: 800px;
  margin: 1.5em auto 1em;
  padding: 0 1em;
  text-align: center;
}
.description p {
  margin-bottom: 1em;
  line-height: 1.6;
  color: #555;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.85rem;
}

/* Tool Grid (Used on Home) */
.tools-grid {
  max-width: 1200px;
  margin: 3em auto;
  padding: 1em 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
}
.tool-card {
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  display: block;
  color: #111;
}
.tool-card span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 0.5em;
  color: #666;
}
.tool-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Sidebar Ad Containers */
.ad-left, .ad-right {
  position: fixed;
  top: 100px;
  width: 160px;
  height: 600px;
  background: transparent;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-left { left: 0; }
.ad-right { right: 0; }

.ad-box {
  width: 160px;
  height: 600px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5em;
}
.ad-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e63946;
  margin-bottom: 0.5em;
  background: #fff5f5;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e5caca;
}

/* Responsive Tweaks */
@media (max-width: 1200px) {
  .ad-left, .ad-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .convert-btn {
    width: 100%;
  }
}
/* Sticky Footer Fix */
html, body {
  height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
}

.main-content {
  flex: 1;
}

/* Footer stays bottom */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Banner Placeholder */
.banner-placeholder {
  margin-top: 2em;
  padding: 0 1em;
}
.banner-placeholder img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Horizontal Ad Style */
.horizontal-ad {
  margin-top: 1em;
  padding: 0.5em;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}
.horizontal-ad .ad-slot {
  height: 90px;
  line-height: 90px;
  background: #fff;
  border: 1px dashed #bbb;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.4em;
}

/* Style for file input */
input[type="file"] {
  padding: 12px;
  border: 2px solid red;
  border-radius: 8px;
  background-color: #fff0f0;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input[type="file"]:hover {
  box-shadow: 0 0 10px red;
  transform: scale(1.02);
}

/* Hide default file input label */
input[type="file"]::-webkit-file-upload-button {
  background: red;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: #b30000;
}

/* Convert Button */
.convert-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background-color: red;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.convert-btn:hover {
  background-color: #cc0000;
  transform: scale(1.05);
  box-shadow: 0 0 15px red;
}

/* Button animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0px red;
  }
  50% {
    box-shadow: 0 0 12px red;
  }
  100% {
    box-shadow: 0 0 0px red;
  }
}

.hero ul {
  text-align: center;            /* Center the text */
  list-style-position: inside;  /* Keep bullets inside and aligned */
  padding-left: 0;
  margin: 1em 0;
}

.hero ul li {
  margin-bottom: 0.5em;
}
