/* ======= NEW MODERN COLLEGE STYLES ======= */

/* Reset & Variables */
:root {
  --primary-color: #0b1c3e;
  /* Deep dark blue for headers */
  --secondary-color: #8b0000;
  /* Deep maroon/red for footer and highlights */
  --accent-color: #e6b800;
  /* Golden yellow for calls to action */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;

  --course-art-bg: #fff9e6;
  /* light yellow */
  --course-sci-bg: #e6f7ff;
  /* light blue */
  --course-edu-bg: #e6ffed;
  /* light green */

  --font-main: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Merriweather', 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 20px;
}

.mb-2 {
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* ======= HEADER SECTIONS ======= */

/* 1. Top Document Link Bar */
.top-bar {
  background: linear-gradient(90deg, #1a365d 0%, #2b6cb0 100%);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  /* Enable horizontal scrolling */
  white-space: nowrap;
  /* Prevent links from wrapping to the next line */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  max-width: 85%;
  /* Leave room for social icons */
  padding-bottom: 2px;
  /* Prevent cutoff below text */
}

.top-links::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari/Webkit */
}

.top-links a {
  color: rgba(255, 255, 255, 0.9);
}

.top-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.top-social i {
  margin-left: 10px;
  font-size: 1rem;
}

/* 2. Main Logo Header */
.main-header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 2px solid var(--secondary-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.logo-area span {
  font-size: 1rem;
  font-family: var(--font-main);
  color: #666;
}

.contact-info {
  text-align: right;
  font-size: 0.9rem;
}

.contact-info strong {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* 3. Main Navigation */
.main-nav {
  background-color: #111;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-list {
  display: flex;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px 25px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.nav-item:hover .nav-link {
  background-color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--secondary-color);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  border-bottom: 1px solid #333;
}

.dropdown li a:hover {
  background-color: #333;
  color: var(--accent-color);
  padding-left: 25px;
  /* slight indent on hover */
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ======= HERO SECTION ======= */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
}

.hero h2 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s both;
}

/* Admission Alert */
.alert-bar {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.alert-bar marquee {
  font-size: 1.1rem;
}

/* ======= CONTENT SECTIONS ======= */
.section-padding {
  padding: 80px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card.art-course {
  background-color: var(--course-art-bg);
  border-top-color: #ffc107;
}

.card.sci-course {
  background-color: var(--course-sci-bg);
  border-top-color: #2196f3;
}

.card.edu-course {
  background-color: var(--course-edu-bg);
  border-top-color: #4caf50;
}

.card ul {
  margin-top: 15px;
  padding-left: 20px;
}

.card li {
  margin-bottom: 8px;
  position: relative;
}

.card li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: -20px;
  font-weight: bold;
}

/* ======= FOOTER ======= */
.main-footer {
  background-color: #1a0000;
  /* Darker than secondary color */
  color: #ccc;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: #fff;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.footer-contact i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-info {
    text-align: center;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    border-bottom: 1px solid #333;
    text-align: center;
  }

  .dropdown {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    display: none;
    background: #222;
  }

  .nav-item:hover .dropdown {
    display: block;
  }

  /* Mobile toggle simplification */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    justify-content: center;
  }
}