/* ==============================
   Base Reset
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-weight: 700;
  color: #1a1a1a;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ==============================
   Header
   ============================== */
#header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(180deg, #0b1d3a, #142f58);
  color: #fff;
}

#header .my-logo {
  width: 120px;
  margin-bottom: 1rem;
}

#header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#header p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ==============================
   Main Content
   ============================== */
#main {
  padding: 2rem 1rem;
}

/* Section Titles */
header.major.container.medium h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* ==============================
   Feature Section Styling
   ============================== */
.box.alt.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 50px;
}

/* Image block */
.feature .image {
  flex-shrink: 0;
  display: block;
  text-align: center;
}

.feature .image img {
  width: 320px;       /* default desktop width */
  max-width: 100%;    /* never exceed parent width */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature .image img:hover {
  transform: scale(1.05);
}

/* Content block */
.feature .content {
  flex: 1;
}

.feature .content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #003366;
}

.feature .content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* Alternate image order on desktop */
.feature.left .image { order: 0; }
.feature.right .image { order: 1; }

/* ==============================
   Buttons
   ============================== */
.actions.special {
  list-style: none;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0;
}

.actions.special li {
  display: inline-block;
  margin: 0.5rem;
}

.button {
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  transition: 0.3s;
}

.button:hover {
  background: #e55a00;
}

/* ==============================
   Footer Major Section
   ============================== */
footer.major.container.medium {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f5f5f5;
}

footer.major.container.medium h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 1rem;
}

/* Footer Contact Section */
#footer {
  background: #0b1d3a;
  color: #fff;
  padding: 3rem 1rem;
}

#footer h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#footer p {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Contact Form */
#footer input[type="text"],
#footer input[type="email"],
#footer textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

#footer input[type="submit"] {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

#footer input[type="submit"]:hover {
  background: #e55a00;
}

/* Social Icons */
#footer .icons {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
  gap: 1.2rem;
}

#footer .icons li a {
  color: #fff;
  font-size: 1.4rem;
  transition: 0.3s;
}

#footer .icons li a:hover {
  color: #ff6600;
}

/* Copyright */
#footer .copyright {
  list-style: none;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

#footer .copyright li {
  display: inline;
  margin: 0 0.5rem;
}

/* ==============================
   Responsive Design
   ============================== */
@media (max-width: 992px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature .content { order: 2; }
  .feature .image { order: 1; }

  header.major.container.medium h2 { font-size: 1.2rem; }
  #header h1 { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  #header { padding: 3rem 1rem; }
  .feature { margin-bottom: 2rem; flex-direction: column; text-align: center; }
  
  /* Mobile image adjustments */
  .feature .image {
    width: 90%;
    margin: 0 auto;
  }

  .feature .image img {
    width: 100%;
    max-width: none;
  }

  .feature .content {
    order: 1;
    padding-top: 20px;
  }

  .feature .content h3 { font-size: 1.5rem; }
  .feature .content p { font-size: 1rem; color: #555; }

  .button { padding: 0.7rem 1.5rem; }
  footer.major.container.medium { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  #header .my-logo { width: 90px; }
  #header h1 { font-size: 1.5rem; }
  #header p { font-size: 0.95rem; }
  .feature .content p { font-size: 0.95rem; }
  footer.major.container.medium h3 { font-size: 1.3rem; }
  #footer input[type="submit"] { width: 100%; }
}

/* ==============================
   Optional Animation
   ============================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.feature {
  animation: fadeInUp 0.6s ease both;
}
