/* Home Page Specific Styles */
body{
    background-image: radial-gradient( circle farthest-corner at 10% 20%,  rgb(237, 243, 246) 15.6%, rgb(241, 252, 255) 51.9%, rgb(222, 227, 228) 81% );
}
/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); */
    color: var(--white);
    padding: calc(70px + var(--spacing-3xl)) 0 var(--spacing-3xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 80vh;
}
        .hero.full-photo img.hero-full-img {
            width: 110%;
     
            display: block;
            object-fit: cover;
            max-height: 800px;
        }
        

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .gallery-item img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .gallery-item img:hover {
            transform: scale(1.03);
        }

.hero-content {
    padding: 0 var(--spacing-md);
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.hero-placeholder p {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    margin: 0;
}

/* Intro Section */
.intro {
    padding: var(--spacing-md) 0;
    padding-bottom: var(--spacing-2xl);
    background-color: var(--light-gray);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.stat p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
    font-weight: var(--font-weight-medium);
    line-height: normal;
}

/* Features Section */
.features {
    padding: var(--spacing-md) 0;
}

section{
    padding: var(--spacing-md) 0;
}




.features h2,h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    margin-top: 0.5em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-blue);
}

.feature-icon {
    width: 70px;
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
    margin-inline:auto;
}

.feature-icon img{
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Home Page */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        min-height: auto;
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-logo-img {
        width: 60px;
        height: 60px;
    }

    .features,section{
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .intro-content h2 {
        font-size: 2rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .intro-stats {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: 10px;
    }
    .intro-content p{
        padding-left: 10px;
        padding-right: 10px;
    }

    .stat h3 {
        font-size: 1.5em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }
    .intro-stats {
    display: flex;
    flex-wrap: wrap;
    }

    .intro-stats .stat {
    flex: 1 1 50%; 
    }

    .intro-stats .stat:nth-child(3) {
    flex: 1 1 100%; 
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-logo-img {
        width: 50px;
        height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
      .features,section{
        padding-left: 5px;
        padding-right: 5px;
    }
    .intro-stats {
        padding: 5px;
    }
    .intro-content p{
        padding-left: 5px;
        padding-right: 5px;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .intro-content h2 {
        font-size: 1.75rem;
    }

    .features h2 {
        font-size: 1.75rem;
    }

    .placeholder-icon {
        font-size: 3rem;
    }

    .hero-placeholder {
        padding: var(--spacing-xl);
    }
}


/* Adjust spacing and stacking for smaller devices */
@media (max-width: 1024px) {
  .hero.with-bg .hero-overlay {
    padding: calc(70px + var(--spacing-xl)) var(--spacing-md);
    text-align: center;
  }
}
/* Full-width Hero Image Section */
/* Force full height hero image section */
.hero.full-photo {
    width: 100%;
   min-height:auto;
  
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a img {
  filter: grayscale(100%);
  transition: 0.3s;
}

.social-icons a:hover img {
  filter: none;
  transform: scale(1.1);
}


/* General Utility for Responsive Typography */
h1, h2, h3, .hero-title, .intro-content h2, .features h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 3rem);
  line-height: normal;
}

.hero-subtitle,
.intro-content p,
.feature-card p,
.stat p {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.125rem);
}



.hero.full-photo img.hero-full-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.school-magazines {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.magazine-grid {
  display: flex;
  justify-content: center;  /* Center items horizontally */
  flex-wrap: wrap;
  gap: 30px;
}

.magazine-item {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.magazine-cover {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.magazine-details {
  margin-top: 10px;
}

.magazine-details h3 {
  margin: 0;
  font-size: 1.2em;
  color: #555;
}

.magazine-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background-color: #007BFF;
  color: white;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.magazine-button:hover {
  background-color: #0056b3;
}


/* Responsive Layout Tweaks */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px var(--spacing-lg);
    text-align: center;
  }

  .hero-image {
    padding-top: var(--spacing-lg);
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-logo-img {
    width: 60px;
    height: 60px;
  }


  .feature-card {
    padding: var(--spacing-lg);
  }

  .hero-placeholder {
    padding: var(--spacing-xl);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    width: 50px;
    height: 50px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn, .register-btn {
    width: 100%;
    max-width: 280px;
  }

  .intro-content,
  .features h2 {
    padding: 0 var(--spacing-md);
  }

  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .stat h3 {
    font-size: 1rem;
  }
}


    .pdf-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    canvas {
      width: auto;
      max-width: 95%;
        max-height: 90vh;
      border: 1px solid #ccc;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-radius: 16px;
      object-fit: contain;
    }

    .pdf-wrapper button {
      padding: 10px 16px;
      font-size: 18px;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 50%;
      height: 50px;
      width: 50px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .pdf-wrapper button:hover {
      background-color: #0056b3;
    }

    #navigation-info {
      text-align: center;
      font-size: 16px;
      margin-top: 10px;
    }


.magazine-year h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1ca3ec; /* Bright Sky Blue for freshness */
  text-align: center;
}


/* ===== Magazine Section ===== */
.magazine-section {
    padding: 40px 20px;
    border-radius: 16px;
    max-width: 1399px;
    animation: fadeIn 0.6s ease;
    margin-inline: auto;
}


.magazine-year {
    border-radius: 14px;
    padding: 20px;
    animation: slideUp 0.5s ease;
}

.magazine-year h3 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 15px;
}

/* ===== PDF Viewer Wrapper ===== */
.pdf-viewer {
    text-align: center;
}

.pdf-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* space between canvas & buttons */
    padding: 15px;
    border-radius: 12px;
}

/* PDF Canvas Styling */
#pdf-render {
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}f

/* ===== Prev/Next Buttons ===== */
#prev-page, 
#next-page {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#prev-page:hover, 
#next-page:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ===== Page Navigation Info ===== */
#navigation-info {
    margin-top: 12px;
    font-size: 1rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#navigation-info span {
    background: #eef3ff;
    padding: 6px 12px;
    border-radius: 8px;
}

/* ===== Empty State ===== */
.magazine-section p {
    text-align: center;
    font-style: italic;
    color: #777;
    padding: 20px 0;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pdf-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    #prev-page, #next-page {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}


/* ===== Other Documents Section ===== */
.other-documents-section {
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}


/* ===== Grid Layout for Cards ===== */
.other-documents-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Document Card ===== */
.doc-card {
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 5px;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.doc-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* ===== PDF Thumbnail Canvas ===== */
.pdf-thumbnail {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: white;
    max-width: 100%;
    height: auto;
}

/* ===== Card Text Content ===== */
.doc-content {
    text-align: center;
}

.doc-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    word-break: break-word;
}

.doc-content p {
    font-size: 2rem;
    font-style: normal;
    color: #000000;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
    .other-documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .other-documents-section {
        padding: 15px;
    }
    .doc-content h3 {
        font-size: 0.9rem;
    }
}
