/**
 * IKS Conference 2026 — Responsive Stylesheet (Single-Line & Adaptive Breakpoints)
 * Poornaprajna Institute of Management (PIM), Udupi
 */

/* ==========================================================================
   DESKTOP / LAPTOP (1200px - 1440px)
   ========================================================================== */
@media (min-width: 1200px) {
  .site-header nav {
    display: flex !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   TABLET & COMPACT LAPTOP BREAKPOINT (< 1200px)
   Switch to clean mobile hamburger rather than squeezing or wrapping text
   ========================================================================== */
@media (max-width: 1199px) {
  .menu-toggle {
    display: flex !important;
  }

  .site-header {
    min-height: 78px;
    padding: 0 4vw;
  }

  /* Slide-Down Glass Navigation Drawer */
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(33, 7, 9, 0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 2px solid var(--gold);
    border-top: 1px solid rgba(201, 148, 56, 0.3);
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    z-index: 999;
  }

  .site-header nav.open {
    display: flex !important;
    animation: menuDrawerSlide 0.32s var(--ease-apple) forwards;
  }

  @keyframes menuDrawerSlide {
    0% {
      opacity: 0;
      transform: translateY(-8px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Full-Width Touch-Friendly Menu Items */
  .site-header nav .nav-link,
  .site-header nav a,
  .site-header nav button {
    width: 100%;
    font-size: 16.5px;
    padding: 13px 18px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(233, 198, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap !important; /* CRITICAL: Never wrap text */
    text-align: left;
    transition: all 0.2s ease;
  }

  .site-header nav .nav-link:last-child {
    border-bottom: 0;
  }

  .site-header nav .nav-link:hover,
  .site-header nav a:hover {
    background: rgba(201, 148, 56, 0.18);
    color: #ffd96f;
    transform: translateX(4px);
  }

  .site-header nav .nav-link.active,
  .site-header nav a.active {
    background: rgba(201, 148, 56, 0.22);
    border-left: 3px solid var(--gold);
    color: #ffd96f;
    padding-left: 15px;
  }

  /* Layout Adjustments */
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 50px 6vw 65px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-symbol {
    margin-top: 25px;
  }

  .paper-layout,
  .publication-page {
    grid-template-columns: 1fr;
  }

  .guidelines {
    position: static;
  }

  .full-track ol {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MEDIUM TABLETS & LARGE PHONES (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .section {
    padding: 75px 6vw;
  }

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

/* ==========================================================================
   MOBILE PHONES & TABLETS (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    min-height: 74px;
    padding: 0 16px;
  }

  .header-logo-container {
    width: 48px;
    height: 48px;
    padding: 2px;
  }

  .identity-text > b {
    font-size: 12.5px;
    letter-spacing: 0.02em;
  }

  .identity-text > small {
    font-size: 6.5px;
    letter-spacing: 0.12em;
  }

  .home-hero {
    padding: 40px 18px 60px;
  }

  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.0;
  }

  .home-highlights {
    grid-template-columns: 1fr;
  }

  .mandala-container {
    width: 220px;
    height: 220px;
  }

  .mandala-rotating:before {
    inset: 26px;
  }

  .logo-static,
  .logo-static .pim-logo {
    width: 115px;
    height: 115px;
  }

  .date-plaque {
    margin-top: -18px;
    padding: 16px 20px;
  }

  .date-plaque > b {
    font-size: 38px;
  }

  .content-section {
    padding: 45px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .brochure-copy {
    padding: 24px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .credential-strip {
    margin: 22px -18px -24px;
    padding: 14px 16px;
    line-height: 1.9;
  }

  .page-title {
    padding: 38px 16px;
    text-align: center;
  }

  .page-title h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    text-align: center;
    margin: 8px 0;
  }

  .page-title > p:last-child {
    font-size: 16px;
    margin: 8px auto 0;
  }

  /* CALL FOR PAPERS & INNER PAGES: BALANCED CONTAINER & EQUAL SPACING */
  .paper-layout {
    padding: 28px 16px 45px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .guidelines {
    position: static;
    width: 100%;
    padding: 24px 18px;
    box-sizing: border-box;
  }

  .publication-page,
  .track-list {
    padding: 28px 16px 45px;
    width: 100%;
    box-sizing: border-box;
  }

  .full-track > button {
    grid-template-columns: 44px 1fr 28px;
    padding: 18px 14px;
  }

  .full-track > button > span {
    font-size: 24px;
  }

  .full-track h2 {
    font-size: 18px;
  }

  .full-track ol {
    padding: 6px 18px 24px 44px;
    font-size: 16.5px !important;
    line-height: 1.65;
  }

  .full-track li {
    font-size: 15px;
  }

  .track-note {
    margin: 0 16px;
    padding: 16px 18px;
  }

  .placeholder-card,
  .contact-card {
    margin: 35px auto;
    padding: 28px 16px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .contact-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .contact-logo-container {
    margin: 0 auto;
    width: 100px;
    height: 100px;
  }

  .contact-card h2 {
    text-align: center;
  }

  .contact-card address {
    font-size: 16.5px;
    text-align: center;
  }

  .fee-table {
    font-size: 11.5px;
  }

  .fee-table span,
  .fee-table b {
    padding: 9px 4px;
    font-size: 12px;
  }

  /* ==========================================================================
     MOBILE FOOTER: SEPARATED LOGO ON OWN LINE + CENTERED BRANDING
     ========================================================================== */
  footer,
  .site-footer {
    padding: 48px 18px 36px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 34px;
    width: 100%;
  }

  /* Logo on its own separate line (Centered) */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 16px;
  }

  .footer-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-brand .footer-pim-logo {
    margin: 0 auto;
    width: 80px;
    height: 80px;
  }

  /* Institute Title below logo (Centered) */
  .footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-brand-text b {
    font-size: 17.5px;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 6px;
  }

  .footer-brand-text p {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: #c5b395;
    margin: 0 auto;
  }

  /* Footer Section Columns (Stacked & Centered) */
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 10px;
  }

  .footer-col a,
  .footer-col span,
  .footer-col button {
    text-align: center;
  }

  .footer-note {
    text-align: center !important;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    line-height: 1.8;
    width: 100%;
    margin-top: 4px;
  }
}

/* ==========================================================================
   SMALL MOBILE SCREENS (< 430px: iPhone SE, Galaxy, Pixel)
   ========================================================================== */
@media (max-width: 430px) {
  .identity-text > small {
    display: none; /* Hide subtitle to preserve clean title line on ultra-compact screens */
  }

  .identity-text > b {
    font-size: 11.5px;
    max-width: 210px;
    white-space: normal;
    line-height: 1.15;
  }

  .header-logo-container {
    width: 42px;
    height: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
  }

  .countdown strong {
    font-size: 17px;
  }

  .countdown span {
    font-size: 7px;
  }

  .brochure-copy,
  .guidelines,
  .paper-layout {
    padding-left: 14px;
    padding-right: 14px;
  }
}
