:root {
  --max-width: 1100px;
  --gap: 16px;

  --primary-color: #1A529B;   /* Dark Blue */
  --accent-color: #1ABC9C;    /* Turquoise */
  --text-color: #222;
  --light-bg: #f4f4f4;
}

* {
  box-sizing: border-box;
  max-width: 100%;            /* prevent overflow */
  overflow-wrap: break-word;  /* wrap long words */
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);

  /* Prevent sideways scroll */
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 12px 0;
  width: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-header .logo img {
  height: 50px;   /* small size, stays top-left */
  display: block;
}

.main-nav a {
  color: #fff;
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #1A529B;
}

/* Hero Section */
.hero {
  background: var(--light-bg);
  padding: 50px 20px;
  margin: 20px 0;
  text-align: center;
  border-left: 6px solid var(--accent-color);
  width: 100%;
  box-sizing: border-box;
}

.hero h1, .hero h2 {
  color: var(--primary-color);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  text-align: left;
  transition: transform 0.2s ease, border 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.card h3 {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Forms */
form label {
  color: var(--primary-color);
  font-weight: bold;
}

form input, form textarea, form select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  margin-top: 4px;
}

form input:focus, form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1A529B, #1ABC9C);
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.site-footer a:hover {
  color: #FFD700;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.footer-section h3, 
.footer-section h4 {
  margin-bottom: 15px;
  font-weight: bold;
}

.social-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 18px;
  background: rgba(255,255,255,0.15);
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.social-links a:hover {
  background: #FFD700;
  color: #1A529B;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 14px;
}

/* Extra: responsive fixes for very small screens */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
