/* Global Variables */
:root {
  --primary-color: #0288d1; /* Deep Ice Blue */
  --secondary-color: #b3e5fc; /* Light Ice Blue */
  --accent-color: #01579b; /* Darker Blue */
  --bg-color: #e0f7fa; /* Very light blue background */
  --text-color: #333;
  --white: #ffffff;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--accent-color);
  font-weight: 600;
}

main {
  flex: 1; /* Pushes footer down */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Snowflake Animation */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.snowflake {
  position: absolute;
  top: -10%;
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 5px rgba(0,0,0,0.1);
  user-select: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header h1 {
  margin: 0;
  font-size: 2.8rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar-custom {
  background-color: var(--accent-color) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 1rem 1.2rem !important;
  transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Carousel */
.carousel-item img {
  height: 60vh;
  min-height: 400px;
  object-fit: cover;
  filter: brightness(0.9);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  bottom: 2rem;
}

.carousel-caption h1 {
  color: var(--white);
  font-size: 2.5rem;
}
.carousel-caption h2 {
  color: #eee;
  font-size: 1.5rem;
  font-weight: 400;
}

/* Cards */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.readmore-btn {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.readmore-btn:hover {
  color: var(--accent-color);
}
.readmore-btn i {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}
.readmore-btn:hover i {
  margin-left: 10px;
}

/* Content Sections */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.content-block {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--accent-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}
.site-footer p {
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }
  .carousel-item img {
    height: 300px;
    min-height: auto;
  }
  .carousel-caption h1 {
    font-size: 1.5rem;
  }
  .carousel-caption h2 {
    font-size: 1rem;
  }
}
