/* ==========================================
   BISE Lahore News Blog - Stylesheet
   Modern, Premium Design
   ========================================== */

/* CSS Variables */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a87;
  --secondary: #e63946;
  --accent: #f4a261;
  --success: #2a9d8f;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #0f2027 0%,
    #203a43 50%,
    #2c5364 100%
  );
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.1);
  --radius: 15px;
  --radius-sm: 8px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo-icon {
  font-size: 1.8rem;
}

.logo .highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  background: var(--gradient-hero);
  padding: 150px 20px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: #e69500;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================
   News Ticker
   ========================================== */
.news-ticker {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background: var(--dark);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 20px;
  border-radius: 4px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  margin-left: 20px;
}

.ticker-content p {
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ==========================================
   Section Styles
   ========================================== */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ==========================================
   Datesheets Section
   ========================================== */
.datesheets-section {
  padding: 80px 0;
  background: var(--white);
}

.datesheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.datesheet-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
}

.datesheet-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.datesheet-card.matric {
  border-top-color: var(--success);
}

.datesheet-card.inter {
  border-top-color: var(--primary);
}

.datesheet-card.supply {
  border-top-color: var(--accent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 2.5rem;
}

.card-badge {
  background: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.datesheet-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.exam-class {
  color: var(--gray);
  margin-bottom: 20px;
}

.exam-dates {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.date-item {
  flex: 1;
  background: var(--light);
  padding: 15px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.date-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 5px;
}

.date-value {
  font-weight: 600;
  color: var(--primary);
}

.card-status {
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-status.announced {
  background: rgba(42, 157, 143, 0.15);
  color: var(--success);
}

.card-status.pending {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent);
}

.btn-download {
  width: 100%;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 14px;
  font-size: 1rem;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.4);
}

.btn-download.disabled {
  background: var(--gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-download.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================================
   News Section
   ========================================== */
.news-section {
  padding: 80px 0;
  background: var(--light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-card.featured {
  grid-column: span 2;
}

.news-image {
  position: relative;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder-img {
  font-size: 4rem;
  opacity: 0.5;
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.news-content h3 {
  font-size: 1.2rem;
  margin: 10px 0 15px;
  color: var(--dark);
  line-height: 1.4;
}

.news-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent);
}

.load-more {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================
   Quick Links Section
   ========================================== */
.quick-links-section {
  padding: 60px 0;
  background: var(--primary);
}

.quick-links-section .section-title {
  color: var(--white);
  margin-bottom: 40px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.link-icon {
  font-size: 1.5rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  font-size: 2rem;
  background: var(--light);
  padding: 15px;
  border-radius: 50%;
}

.info-item h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.info-item p {
  color: var(--gray);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .btn {
  align-self: flex-start;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.8;
}

.footer-links h4 {
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.7;
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 0.85rem;
}

.disclaimer a {
  color: var(--accent);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 40px;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .datesheets-grid {
    grid-template-columns: 1fr;
  }

  .exam-dates {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   Source Notes & Official Sources
   ========================================== */
.source-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 15px;
    text-align: center;
}

.source-note a {
    color: var(--primary);
    font-weight: 500;
}

.source-note a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.official-sources {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--success);
}

.official-sources h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.official-sources p {
    color: var(--gray);
    margin-bottom: 15px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sources-list li a {
    color: var(--primary);
    font-weight: 500;
    padding: 10px 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: block;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.sources-list li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.footer-sources {
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-sources a {
    color: var(--accent);
}

.footer-sources a:hover {
    text-decoration: underline;
}

.contact-info a {
    color: var(--primary);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--accent);
}
