/* Global Styles */
:root {
  --primary-color: #8B4513;
  --secondary-color: #CD853F;
  --accent-color: #D2691E;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #2c3e50;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --logo-brown: #8B4513;
  --logo-gold: #CD853F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.background-container{
  position: relative;
}

.background-1{
  position: absolute;
  opacity: 0.5;
  z-index: 1;
}

.background-2{
  position: absolute;
  opacity: 1;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Navigation */
.navbar {
  background: #243F90;
  background: linear-gradient(90deg, rgba(36, 63, 144, 1) 20%, rgba(36, 63, 144, 1) 50%, rgba(237, 83, 96, 1) 100%) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 56px !important;
  max-width: 160px;
  width: auto;
  object-fit: contain;
 
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: #243F90;
background: linear-gradient(90deg, rgba(36, 63, 144, 1) 20%, rgba(36, 63, 144, 1) 50%, rgba(237, 83, 96, 1) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--logo-brown), var(--logo-gold));
  border-radius: 2px;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.card-text {
  color: #666;
  line-height: 1.6;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--logo-brown), var(--logo-gold));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--logo-brown);
  color: var(--logo-brown);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--logo-brown);
  color: var(--white);
  transform: translateY(-2px);
}

/* Member Cards */
.member-card {
  text-align: center;
  margin-bottom: 2rem;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--logo-brown);
  box-shadow: var(--shadow);
}

.member-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.member-role {
  color: var(--logo-brown);
  font-weight: 500;
}

/* Blog Cards */
.blog-card {
  margin-bottom: 2rem;
}
.blog-content img {
  width: 400px;     
  height: 250px;   
  object-fit: cover; 
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.blog-content p > img {
  width: 400px;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

.blog-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--logo-brown);
  box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: var(--white);
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--logo-gold);
  transform: translateY(-2px);
}

footer, footer .text-muted, footer .text-light, footer a, footer a.text-muted, footer a.text-light {
  color: #fff !important;
  opacity: 0.95;
}
footer a:hover {
  color: var(--logo-gold) !important;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 5px 0;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 6px 0;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .navbar-brand img {
    height: 30px;
  }
  
  .footer-logo img {
    height: 40px;
  }
}
@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem 0.5rem;
    overflow: visible;
    max-width: 100vw;
  }
  .container {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .navbar-collapse {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .navbar-nav {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .navbar-toggler {
    z-index: 1051;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    display: block;
    max-width: 48px;
  }
  .navbar-toggler:focus {
    outline: 2px solid var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
  }
  .navbar-nav .nav-link {
    padding: 0.7rem 1.2rem;
    font-size: 1.05rem;
    margin: 0.2rem 0;
    text-align: left;
  }
  .navbar-nav {
    background: linear-gradient(90deg, rgba(36, 63, 144, 0.98) 60%, rgba(237, 83, 96, 0.98) 100%);
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  body, main {
    padding-top: 5px !important;
  }
  .hero-section {
    min-height: 180px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 60px;
  }
  .hero-bg-img {
    height: 140px;
    min-height: 120px;
    max-height: 180px;
  }
  .hero-overlay {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    font-size: 1rem;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .hero-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-overlay .btn {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 220px;
  }
  .d-flex.gap-3 {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }
  .footer-logo img {
    height: 32px;
  }
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  footer .col-lg-4, footer .col-lg-4.mb-4 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-content {
    padding: 0 0.5rem;
  }
}
@media (max-width: 768px) {
  .hero-section {
    min-height: 100px;
    padding: 1.2rem 0 0.7rem 0;
    margin-top: 52px;
  }
  .hero-bg-img {
    height: 90px;
    min-height: 60px;
    max-height: 120px;
  }
  .hero-overlay {
    padding: 0.5rem 0.2rem 0.7rem 0.2rem;
    font-size: 0.98rem;
  }
  .hero-overlay h1 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .hero-overlay p {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
  }
  .hero-overlay .btn {
    font-size: 0.98rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.4rem;
    width: 100%;
    max-width: 220px;
  }
  .d-flex.gap-3 {
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: center !important;
  }
}
@media (max-width: 575px) {
  .navbar {
    padding: 0.3rem 0.2rem;
    overflow: visible;
    max-width: 100vw;
  }
  .container {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .navbar-collapse {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .navbar-nav {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .navbar-toggler {
    z-index: 1051;
    position: relative;
    margin-left: auto;
    margin-right: 0;
    display: block;
    max-width: 44px;
  }
  .navbar-brand img {
    height: 26px !important;
    max-width: 70px;
  }
  .hero-section {
    min-height: 70px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    margin-top: 44px;
  }
  .hero-bg-img {
    height: 50px;
    min-height: 40px;
    max-height: 70px;
  }
  .hero-overlay h1 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .hero-overlay p {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    line-height: 1.18;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--logo-brown);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--logo-gold);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}