:root {
  --primary-color: #ed3237; /* Primary Red */
  --secondary-color: #d8c3a5; /* Change Vibrant Green to #173D24 */
  --accent-color: #2e2e2e;
  --background-color: #fdf6ec; /* Set background color to #D4B06A */
  --text-color: #000000; /* Deep Blue */
  --subtle-text-color: #666666; /* Subtle Gray */
  --base-spacing: 8px;
  --content-width: 1100px;
  --min-touch-target: 44px; /* Minimum touch target size */
  --horizontal-spacing: 2.5rem; /* 40 pt */
  --vertical-spacing: 3rem; /* Reduced vertical spacing for headings and paragraphs */
  --section-margin: 1.5rem; /* Margin for sections */
  --highlight-color: #2e2e2e;
  --highlight-color2: #666562;
  --footer-color: #2e2e2e;
}

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

body {
  font-family: "Quadraat", serif; /* Use a clean sans-serif font */
  line-height: 1.2; /* Decrease line height for all text */
  font-size: 20px; /* Base font size */
  font-style: normal; /* Normal font style */
  background-color: var(--background-color); /* Set background color */
  color: var(--text-color);
}

.logo-container {
  display: flex;
  align-items: center;
  border: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  border: 0;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-link img {
  width: 40px; /* Set logo width */
  height: 40px; /* Set logo height */
  border-radius: 50%;
  margin: 0;
  padding: 0;
}

.logo-link .college-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--secondary-color);
  border: 0;
  margin-bottom: 0;
}

/* Consistent Spacing for Headings and Paragraphs */
h1,
h2,
h3 {
  margin-bottom: var(
    --vertical-spacing
  ); /* Use reduced vertical spacing for headings */
}

p {
  margin-bottom: var(
    --vertical-spacing
  ); /* Use reduced vertical spacing for paragraphs */
}

/* Typography */
h1 {
  font-size: 48px; /* Increase font size for the heading */
  color: var(--accent-color); /* Ensure this is the desired color */
}

h2 {
  font-size: 28px;
  color: var(--accent-color); /* Ensure this is consistent */
}

h3 {
  font-size: 22px;
  color: var(--accent-color); /* Ensure this is consistent */
}

/* Navigation */
header {
  background-color: var(--accent-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  height: 80px;
  z-index: 1000;
  top: 0;
  margin-bottom: 0;
  align-content: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

nav {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--horizontal-spacing); /* Use horizontal spacing for nav items */
}

nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--subtle-text-color); /* Updated to #173D24 */
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--accent-color);
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  z-index: 1001; /* Increase this value to ensure it's above the header */
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--secondary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  transition: transform 0.3s ease;
  margin: 1rem 0;
  margin-top: auto;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: var(--footer-color); /* Change footer background color */
  color: white; /* Keep text color white for contrast */
  align-content: center;
  text-align: center;
  padding: 1rem;
  height: 60px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 2100;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 5px 0;
  }

  nav {
    padding: 0;
    position: relative;
    height: 100%;
  }

  .logo-container {
    margin: 0;
    padding: 0;
    z-index: 2000;
    flex: 1;
  }

  .logo-link {
    gap: 8px;
  }

  .logo-link img {
    width: 35px;
    height: 35px;
  }

  .logo-link .college-name {
    font-size: 18px;
    line-height: 1.2;
  }

  .menu-toggle {
    display: block;
    position: relative;
    margin-right: 25px;
    padding: 5px;
    font-size: 24px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 50px 0 0 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--accent-color);
    z-index: 2000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    overflow-y: auto;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  nav a {
    display: block;
    padding: 12px 24px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .logo-container {
    margin-bottom: 0;
    padding: 10px 0;
    z-index: 2000;
  }

  .logo-link img {
    width: 32px;
    height: 32px;
  }

  .logo-link .college-name {
    font-size: 20px;
  }

  /* Dropdown */
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 12px 20px;
  }

  /* Hero Section */
  .hero {
    height: 40vh;
    margin-bottom: 1rem;
  }

  .hero-content {
    width: 95%;
    max-width: 100%;
    padding: 0 1rem;
  }

  /* Highlights Section */
  .highlight-grid {
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }

  .highlight {
    width: 100%;
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .highlight h3 {
    font-size: 22px;
    text-align: center;
  }

  .highlight p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }

  /* Welcome Section */
  .welcome-section {
    width: 95%;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .welcome-section h2 {
    font-size: 24px;
    text-align: center;
  }

  .welcome-section p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }

  /* News and Events */
  .news-events {
    width: 95%;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .news-events h2 {
    font-size: 24px;
    text-align: center;
  }

  .news-events ul {
    width: 100%;
    padding-left: 20px;
  }

  .news-events li {
    font-size: 16px;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  /* Sections */
  section {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
  }

  /* Buttons */
  .cta-button {
    display: block;
    margin: 1rem auto;
    width: 80%;
    max-width: 300px;
    text-align: center;
  }

  /* Footer */
  footer {
    padding: 1rem;
    height: auto;
  }

  /* Curriculum Section Mobile Styles */
  .curriculum-contents {
    flex-direction: column;
    gap: 1rem;
  }

  .bed {
    max-width: 100%;
    margin: 0 0 0.5rem 0;
  }

  .semester {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .box {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Standardize buttons */
  .cta-button {
    display: block;
    width: 200px;
    margin: 1rem auto;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 16px;
  }

  h1,
  h2,
  h3 {
    text-align: center;
    width: 100%;
  }

  .programs h2 {
    text-align: center;
    width: 100%;
  }

  .programs p {
    text-align: justify;
  }

  .us p {
    text-align: justify;
  }

  .cta-button {
    display: block;
    margin: 1rem auto;
    width: 80%;
    max-width: 300px;
    text-align: center;
  }

  .curriculum h1,
  .curriculum h2,
  .curriculum h3 {
    text-align: center;
    width: 100%;
  }

  .us h1,
  .us h2,
  .us h3 {
    text-align: center;
    width: 100%;
  }

  .academics-section h1,
  .academics-section h2 {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-link .college-name {
    font-size: 20px;
  }

  .logo-link img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    font-size: 26px;
    padding: 6px;
  }

  .cta-button {
    width: 90%;
    max-width: 280px;
    margin: 1rem auto;
    text-align: center;
  }

  .hero {
    height: 35vh;
  }

  .hero-content {
    width: 100%;
    padding: 0 0.75rem;
  }

  .hero h1 {
    font-size: 24px;
  }

  .highlight-grid,
  .welcome-section,
  .news-events {
    width: 100%;
    padding: 1rem;
  }

  .highlight {
    padding: 1rem;
  }

  .highlight h3 {
    font-size: 20px;
  }

  .highlight p {
    font-size: 15px;
  }

  .curriculum h1 {
    font-size: 32px;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .curriculum h2 {
    font-size: 22px;
  }

  .curriculum p {
    font-size: 15px;
  }

  .box {
    padding: 15px;
  }

  .semester h3 {
    font-size: 18px;
  }

  .semester ul {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    text-align: center;
    width: 100%;
  }

  .curriculum h1 {
    font-size: 32px;
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Add or modify these styles */
main {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Programs section */
.programs {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact section */
.contact-content {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Faculty sections */
.teaching-staff {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .teaching-staff {
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }

  .teaching-staff h2 {
    font-size: 24px;
    text-align: center;
    width: 100%;
  }

  .teaching-staff p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    width: 100%;
  }

  .teaching-staff ul {
    width: 100%;
    padding-left: 20px;
  }

  .teaching-staff li {
    margin-bottom: 0.75rem;
    text-align: left;
  }

  /* Staff card styles */
  .staff-card {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    padding: 1.5rem;
  }

  .staff-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1rem;
  }

  .staff-card h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .staff-card p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .teaching-staff {
    width: 100%;
    padding: 0.75rem;
  }

  .teaching-staff h2 {
    font-size: 22px;
  }

  .teaching-staff p {
    font-size: 15px;
  }

  .staff-card {
    padding: 1rem;
  }

  .staff-card h3 {
    font-size: 18px;
  }

  .staff-card p {
    font-size: 15px;
  }
}

/* About Section */
.about-section {
  padding: 2rem; /* Ensure padding around the section */
}

.about-section h2 {
  margin-bottom: 1.5rem; /* Consistent margin for section heading */
}

.about-section p {
  margin-bottom: 1.5rem; /* Consistent margin for paragraph */
}

@media (max-width: 768px) {
  .about-section {
    padding: 1.5rem;
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-section h2 {
    font-size: 24px;
    text-align: center;
  }

  .about-section p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }

  .about-section ul {
    width: 100%;
    padding-left: 20px;
  }

  .about-section li {
    margin-bottom: 0.75rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 1rem;
    width: 100%;
  }

  .about-section h2 {
    font-size: 22px;
  }

  .about-section p {
    font-size: 15px;
  }
}

nav a.active {
  color: var(--accent-color);
  font-weight: bold;
  padding: 0.5rem;
  background-color: var(--secondary-color);
  border-radius: 15px;
  box-sizing: border-box;
}

/* Admissions Section */
.admissions h2 {
  margin-top: 1rem; /* Space above the heading */
  margin-bottom: 0.25rem; /* Reduced space below the heading */
}

.admissions p {
  margin-bottom: 0.25rem; /* Reduced space between paragraphs */
}

/* If you have lists, you can also target them */
.admissions ul {
  margin-top: 0; /* Remove margin above the list */
  margin-bottom: 0.5rem; /* Adjust as needed for spacing below the list */
}

.admissions li {
  margin-bottom: 0.25rem; /* Space between list items */
}

/* Mobile Responsive Contact Section */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
  }

  .contact-content > * {
    width: 100%;
    max-width: 100%;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
  }

  .contact-info {
    padding: 1rem;
  }

  .contact-info p {
    margin-bottom: 0.75rem;
  }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
  .contact-content {
    padding: 0.75rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
  }
}

/* Common Section Styles */
section {
  width: calc(100% - 2 * var(--horizontal-spacing));
  margin: var(--vertical-spacing) auto;
  padding: 0;
  background-color: transparent;
}

/* Common Heading Styles */
h1 {
  font-size: 60px;
  color: var(--accent-color);
  margin-bottom: 2rem;
  text-align: center;
}

/* Common Table Styles */
table {
  border-collapse: separate;
  border-spacing: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

td,
th {
  border: 1px solid black;
  padding: 15px;
  text-align: center;
}

#table-head {
  color: var(--secondary-color);
  background-color: var(--accent-color);
}

tr:first-child th:first-child {
  border-top-left-radius: 15px;
}

tr:first-child th:last-child {
  border-top-right-radius: 15px;
}

tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

.curriculum-contents {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem; /* Reduced from 2rem */
}

.bed {
  background-color: var(--highlight-color);
  padding: 1.5rem; /* Reduced from 2rem */
  border-radius: 20px;
  margin-bottom: 1rem; /* Reduced from 2rem */
  max-width: 50%;
}

.semester {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; /* Reduced from 10px */
  margin: 0 auto;
  width: 100%;
}

.box {
  background-color: #41403f;
  padding: 15px; /* Reduced from 20px */
  border-radius: 15px;
  width: 100%;
  box-sizing: border-box;
}
