@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Montserrat:wght@400;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --primary-color: #0a1c2e; 
  --secondary-color: #06121f;
  --text-color: #333;
  --text-c-highlight: #3399ff; 
  --background-color: #fff6ec;
  --text: #fff4ec;
  --card-bg: var(--primary-color);
  --shadow-color: #fff6ec;
  --border-radius: 10px;
  --box-shadow: 0 4px 15px var(--shadow-color);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text);
  scroll-behavior: smooth;
}

/* Big Page Heading */
.main-header {
  text-align: center;
  background: var(--text-c-highlight);
  color: #000;
  padding: 40px 20px;
  font-family: "Montserrat", serif;
  font-size: 3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  margin-top: 65px;
  padding: 20px;
}

/* Section Titles */
h2 {
  font-family: "Montserrat", serif;
  font-size: 2.2em;
  color: var(--text-c-highlight);
  margin-bottom: 20px;
}

/* Card Layout */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Individual Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  width: calc(50% - 10px);
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card h2 {
  text-align: left;
}

/* Card Content Wrapper */
.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  text-align: justify;
}

/* Emblem Card */
.emblem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.emblem-card h2 {
  width: 100%;
}

.emblem-card img {
  max-width: 150px;
  height: auto;
  border-radius: var(--border-radius);
  margin: 10px 0;
}

.emblem-card p {
  width: 100%;
  text-align: justify;
}

/* Emblem Image Container */
.emblem-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.emblem-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
}

/* Read More Button */
.read-more-btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-end;
  margin-top: 10px;
}

.read-more-btn:hover {
  color: var(--text-c-highlight);
  transition: var(--transition);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  
}
::-webkit-scrollbar {
    display: none;
  }

  .modal {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
  }

.modal-content {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  text-align: justify;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text);
}

/* Fullscreen Image Viewer */
.fullscreen-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-button {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 101;
}

/* Responsive: Adjust heading size */
@media (max-width: 768px) {
  .main-header {
    font-size: 2.2em;
    padding: 20px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    text-align: center;
  }

  .card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
  }

  .emblem-card {
    flex-direction: column;
    text-align: center;
  }

  .emblem-card img {
    max-width: 100%;
  }

  .emblem-image-container {
    width: 100%;
  }

  .read-more-btn {
    align-self: center; /* Center on mobile for better appearance */
  }
}

/* Responsive: Adjust Text Size */
@media (max-width: 480px) {
  .card {
    padding: 15px;
  }

  h2 {
    font-size: 1.8em;
  }

  .read-more-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

/* Large Screens: Slightly Adjust Card Width */
@media (min-width: 1024px) {
  .card {
    width: calc(50% - 15px);
  }
}

/* CSS for section title */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "inter", sans-serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--text-c-highlight));
  border-radius: 2px;
}

/* Scroll Animation for reveal effect */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
