/* styles.css */

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.5;
}

/* Header & Logo */
header {
  background-color: #2a2a2a;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  width: 60px;
  margin-right: 12px;
}
h1 {
  font-size: 1.75rem;
  letter-spacing: 1px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
nav ul li a {
  display: inline-block;
  background-color: #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
  background-color: #ff5733;
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background-color: #f9f9f9;
  text-align: center;
  padding: 40px 20px;
}
.hero h2 {
  color: #2a2a2a;
  font-size: 2rem;
  margin-bottom: 8px;
}
.hero p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Video Embed */
.hero-video {
  max-width: 800px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Call-to-Action Button */
.cta-button {
  background-color: #ff5733;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}
.cta-button:hover {
  background-color: #e04e2c;
  transform: scale(1.05);
}

/* Section Styles */
section {
  background-color: #fff;
  margin: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
section p,
section ul li {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Services List */
section ul {
  list-style: none;
}
section ul li {
  position: relative;
  padding-left: 24px;
}
section ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #ff5733;
}

/* Downloads Page Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* LEVEL 1: Class Buttons */
button.download-btn.class-btn {
  flex: 1 1 auto;
  min-width: 120px;
  background-color: #2a3f54;   /* steel-blue */
  color: #fff;
  border: 2px solid transparent;
  border-radius: 8px;           /* gentle rounding */
  padding: 12px 20px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}
button.download-btn.class-btn:hover {
  background-color: #1f2a38;
  border-color: #ff5733;
  transform: scale(1.05);
}

/* LEVEL 2: Subject Buttons */
button.download-btn.subject-btn {
  flex: 1 1 auto;
  min-width: 120px;
  background-color: #ff8c42;    /* warm orange */
  color: #2a2a2a;
  border: 2px solid transparent;
  border-radius: 30px;          /* pill shape */
  padding: 10px 18px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}
button.download-btn.subject-btn:hover {
  background-color: #e07b30;
  border-color: #2a3f54;
  transform: scale(1.05);
}

/* Active state for both */
.download-btn.active {
  box-shadow: 0 0 0 3px rgba(255,87,51,0.5);
}

/* Hide until needed */
.subjects,
.chapters,
#subject-buttons,
#chapter-links {
  display: none;
  margin-top: 20px;
}

/* Download link list */
.download-links ul {
  list-style: none;
  padding-left: 0;
}
.download-links ul li {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.download-links ul li:hover {
  background-color: #ffe6dc;
}
.download-links ul li a {
  text-decoration: none;
  color: #ff5733;
  font-weight: 600;
}

/* Contact & Icons */
img.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 12px;
  vertical-align: middle;
}
.contact-list li,
.branch p {
  color: #2a2a2a;
}

/* Notice Board Styles */
.notice-section {
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.notice-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
  color: #2a2a2a;
}
#notice-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
#notice-list li {
  background: #f5f5f5;
  margin: 8px 0;
  padding: 12px 16px 12px 24px;
  border-left: 4px solid #ff5733;
  font-size: 1rem;
  color: #2a2a2a;
}
#notice-list li a {
  color: #ff5733;
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #2a2a2a;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo { width: 40px; }
  h1 { font-size: 1.5rem; }
  nav ul li a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  section { margin: 15px; padding: 20px; }
  .hero h2 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
}
@media (max-width: 600px) {
  button.download-btn { min-width: 100%; font-size: 1.05rem; }
  .hero-video { margin: 10px 0 20px; }
}
