/* ==========================================================================
   MEDIA.CSS - Responsive Styles & Breakpoints
   Sanskar College of Nursing
   ========================================================================== */

/* --------------------------------------------------------------------------
   Extra Large Devices (desktops, less than 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 960px;
  }

  .nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Large Devices / Tablets (less than 992px) - Offcanvas Drawer Activates
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --container-max-width: 720px;
    --fs-4xl: 2.4rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Top Bar adjustments */
  .top-bar-right {
    display: none;
  }

  .top-bar-wrapper {
    justify-content: center;
  }

  .top-bar-left {
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  /* Navbar Wrapper */
  .main-navbar,
  .navbar-wrapper {
    height: 74px;
  }

  .brand-logo-wrap {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  /* Show Hamburger Button */
  .hamburger-btn {
    display: flex;
  }

  /* Offcanvas Navigation Drawer */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100%;
    height: 100dvh;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 35px rgba(7, 27, 61, 0.2);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    visibility: hidden;
  }

  .site-nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer Header */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid rgba(12, 45, 100, 0.15);
    background: #fff;
    padding: 1px;
  }

  .mobile-brand h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
  }

  .mobile-brand p {
    font-size: 0.68rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .mobile-close-btn {
    background: rgba(12, 45, 100, 0.05);
    border: none;
    font-size: 1.15rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
  }

  .mobile-close-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(201, 42, 42, 0.1);
  }

  /* Nav Menu in Drawer */
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .nav-item {
    display: block;
    height: auto;
    width: 100%;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(201, 42, 42, 0.05);
    padding-left: 0.9rem;
  }

  /* Dropdown in Drawer */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--bg-alt);
    border: none;
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 6px 6px 0;
    margin: 0.2rem 0 0.5rem 0.65rem;
    padding: 0.35rem 0;
    display: none;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: block;
    animation: drawerDropdownFade 0.2s ease-out;
  }

  @keyframes drawerDropdownFade {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-item.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--secondary-color);
  }

  .dropdown-link {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
  }

  .dropdown-link::before {
    content: '•';
    margin-right: 8px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1;
  }

  .dropdown-link:hover {
    color: var(--secondary-color);
    background-color: #ffffff;
    padding-left: 1.1rem;
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
  }

  .mobile-drawer-footer .btn-primary {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3);
  }

  .mobile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.825rem;
    background-color: var(--bg-alt);
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .mobile-contact-list a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-main);
    font-weight: 500;
    transition: color var(--transition-fast);
  }

  .mobile-contact-list a:hover {
    color: var(--secondary-color);
  }

  .mobile-contact-list i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
  }

  /* Slider Responsive (Tablet) */
  .hero-slider-container {
    min-height: 580px;
    height: 75vh;
  }

  .slide-content {
    text-align: center;
    margin: 0 auto;
    max-width: 720px;
    padding: 3.5rem 0 3rem;
  }

  .slide-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .slide-actions {
    justify-content: center;
  }

  .slide-pills {
    justify-content: center;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .slider-arrow.prev {
    left: 15px;
  }

  .slider-arrow.next {
    right: 15px;
  }

  /* Highlights Section (Tablet) */
  .quick-highlights-section {
    margin-top: -30px;
    padding-bottom: 2.5rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About Section (Tablet) */
  .about-section {
    padding: 2.5rem 0 3.5rem;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    max-width: 540px;
    margin: 0 auto;
  }

  .about-collage {
    padding-bottom: 2rem;
    padding-right: 2rem;
  }

  .collage-main-img img {
    height: 420px;
  }

  .collage-sub-img {
    width: 200px;
    height: 200px;
  }

  .collage-floating-badge {
    left: -10px;
    bottom: 20px;
  }

  /* Course Section (Tablet) */
  .course-section {
    padding: 4rem 0 3.5rem;
  }

  .course-master-card {
    padding: 1.75rem;
    margin-top: 2rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .course-media-col {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  /* CTA Showcase (Tablet) */
  .cta-showcase-section {
    padding: 4.5rem 0 4.25rem;
  }

  .cta-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .cta-story-col {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .cta-feature-cards {
    width: 100%;
    text-align: left;
  }

  .cta-action-buttons {
    justify-content: center;
  }

  .cta-desk-col {
    max-width: 580px;
    margin: 0 auto;
  }

  /* News & Events (Tablet) */
  .news-events-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feed-card-wrapper {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  /* Contact Us (Tablet) */
  .contact-master-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info-card,
  .contact-form-card {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  /* Footer (Tablet) */
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .pre-footer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
  }

  .pre-footer-actions {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Medium Devices (tablets portrait, less than 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-max-width: 540px;
    --container-padding: 1rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --fs-xl: 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title-wrap {
    margin-bottom: 2.5rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Top Bar adjustments */
  .top-bar-left {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .top-divider {
    display: none;
  }

  .brand-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.66rem;
  }

  /* Slider Responsive (Mobile Portrait) */
  .hero-slider-container {
    min-height: 500px;
    height: auto;
  }

  .slide-content {
    padding: 3.5rem 0 2.5rem;
  }

  .slide-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }

  .slide-desc {
    font-size: 0.885rem;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .slide-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    gap: 0.65rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Hide slide pills icon list on mobile devices */
  .slide-pills {
    display: none !important;
  }

  /* Hide arrows on mobile touchscreens */
  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 15px;
  }

  /* Highlights Section (Mobile) */
  .quick-highlights-section {
    margin-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .highlight-card {
    padding: 1.15rem 1.1rem;
    gap: 0.85rem;
  }

  .highlight-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .highlight-text h3 {
    font-size: 0.98rem;
  }

  .highlight-text p {
    font-size: 0.78rem;
  }

  /* About Section (Mobile Portrait) */
  .about-section {
    padding: 2.25rem 0 3.25rem;
  }

  .about-wrapper {
    gap: 2.25rem;
  }

  .about-visual {
    max-width: 100%;
  }

  .about-collage {
    padding-bottom: 2rem;
    padding-right: 1.5rem;
  }

  .collage-main-img img {
    height: 350px;
  }

  .collage-sub-img {
    width: 165px;
    height: 165px;
    border-width: 4px;
  }

  .collage-floating-badge {
    left: 0;
    bottom: 10px;
    padding: 0.65rem 0.95rem;
  }

  .floating-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .floating-badge-title {
    font-size: 0.88rem;
  }

  .floating-badge-desc {
    font-size: 0.68rem;
  }

  .about-heading {
    font-size: 1.5rem;
    line-height: 1.28;
  }

  .about-key-points {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }

  /* Course Section (Mobile Portrait) */
  .course-section {
    padding: 3.25rem 0;
  }

  .course-master-card {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
    margin-top: 1.6rem;
  }

  .course-image-wrap img {
    height: 310px;
  }

  .course-key-features {
    padding: 0.85rem 1rem;
    gap: 0.55rem;
  }

  .course-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-course-apply,
  .btn-course-call {
    width: 100%;
    justify-content: center;
  }

  /* CTA Showcase (Mobile Portrait) */
  .cta-showcase-section {
    padding: 3.75rem 0;
  }

  .cta-bg-layer {
    background-attachment: scroll;
  }

  .cta-showcase-grid {
    gap: 2.25rem;
  }

  .cta-story-col {
    text-align: left;
    align-items: flex-start;
  }

  .cta-main-title {
    font-size: 1.6rem;
    line-height: 1.28;
  }

  .cta-main-desc {
    font-size: 0.885rem;
    margin-bottom: 1.5rem;
  }

  .cta-feature-cards {
    margin-bottom: 1.65rem;
  }

  .cta-feature-card {
    padding: 0.7rem 0.85rem;
    gap: 0.75rem;
  }

  .feat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .feat-card-title {
    font-size: 0.84rem;
  }

  .feat-card-desc {
    font-size: 0.74rem;
  }

  .cta-action-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-cta-shimmer,
  .btn-cta-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .cta-glass-card {
    padding: 1.45rem 1.15rem;
    border-radius: 16px;
  }

  .desk-contact-item {
    padding: 0.65rem 0.85rem;
  }

  /* News & Events (Mobile Portrait) */
  .news-events-section {
    padding: 3.5rem 0;
  }

  .ticker-viewport {
    height: 420px;
  }

  .feed-card-wrapper {
    padding: 1.25rem 1.15rem 0.85rem;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .feed-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Contact Us (Mobile Portrait) */
  .contact-section {
    padding: 3.5rem 0;
  }

  .contact-info-card {
    padding: 1.85rem 1.45rem;
  }

  .contact-form-card {
    padding: 1.85rem 1.45rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-footer-action {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .btn-submit-contact {
    width: 100%;
    justify-content: center;
  }

  /* Footer (Mobile Portrait) */
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .pre-footer-wrap {
    padding-top: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .pre-footer-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .pre-footer-title {
    font-size: 1.25rem;
  }

  .pre-footer-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .btn-prefooter-apply,
  .btn-prefooter-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .affiliations-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .affil-badges-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .affil-divider {
    display: none;
  }

  .bottom-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .legal-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Small Devices (phones, less than 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --container-max-width: 100%;
    --fs-4xl: 1.6rem;
    --fs-3xl: 1.4rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  /* Hide topbar on mobile to maximize header screen real-estate */
  .top-bar {
    display: none;
  }

  .main-navbar,
  .navbar-wrapper {
    height: 64px;
  }

  .brand-logo-wrap {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.92rem;
    letter-spacing: -0.2px;
  }

  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  /* Compact or hide top navbar apply button on very small screens since it is inside drawer */
  .navbar-actions .btn-apply {
    display: none;
  }

  .hamburger-btn {
    padding: 0.35rem;
    width: 36px;
    height: 36px;
  }

  .hamburger-btn .bar {
    width: 20px;
  }

  .hero-slider-container {
    min-height: 460px;
  }

  .slide-title {
    font-size: 1.45rem;
  }

  .slide-badge {
    font-size: 0.7rem;
    padding: 0.28rem 0.75rem;
  }

  /* About Section (Small Phones) */
  .about-section {
    padding: 2rem 0 2.75rem;
  }

  .collage-main-img img {
    height: 250px;
  }

  .collage-glass-badge {
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 0.32rem 0.7rem;
  }

  .collage-sub-img {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }

  .collage-floating-badge {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .about-heading {
    font-size: 1.35rem;
  }

  .about-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .btn-about-cta {
    width: 100%;
    justify-content: center;
  }

  .about-helpline-box {
    justify-content: center;
  }

  /* Course Section (Small Phones) */
  .course-section {
    padding: 2.75rem 0;
  }

  .course-master-card {
    padding: 1.15rem 0.85rem;
  }

  .course-specs-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .course-image-wrap img {
    height: 260px;
  }

  .course-title {
    font-size: 1.35rem;
  }

  .course-key-features {
    padding: 0.85rem 0.95rem;
  }

  /* CTA Showcase (Small Phones) */
  .cta-showcase-section {
    padding: 3rem 0;
  }

  .cta-live-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.75rem;
  }

  .cta-main-title {
    font-size: 1.4rem;
  }

  .cta-feature-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .desk-contact-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .contact-btn-tag {
    width: 100%;
    justify-content: center;
  }

  .callback-input-group {
    flex-direction: column;
    border-radius: 14px;
    padding: 6px;
    gap: 0.5rem;
  }

  .callback-submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 0.55rem;
  }

  /* News & Events (Small Phones) */
  .news-events-section {
    padding: 2.75rem 0;
  }

  .ticker-viewport {
    height: 380px;
  }

  .news-item-title,
  .event-item-title {
    font-size: 0.88rem;
  }

  .event-body-layout {
    flex-direction: column;
    gap: 0.65rem;
  }

  .event-thumb-wrap {
    width: 100%;
    height: 140px;
  }

  /* Contact Us (Small Phones) */
  .contact-section {
    padding: 2.75rem 0;
  }

  .info-card-title,
  .form-card-title {
    font-size: 1.35rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }

  .contact-social-icons {
    justify-content: flex-start;
  }

  /* Footer (Small Phones) */
  .footer-brand-name {
    font-size: 1rem;
  }

  .pre-footer-title {
    font-size: 1.15rem;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Extra Small Devices (phones, less than 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .brand-name {
    font-size: 0.84rem;
  }

  .brand-subtitle {
    font-size: 0.55rem;
  }

  .brand-logo-wrap {
    width: 38px;
    height: 38px;
  }

  .slide-title {
    font-size: 1.32rem;
  }

  .about-heading {
    font-size: 1.25rem;
  }

  .collage-main-img img {
    height: 220px;
  }

  .collage-sub-img {
    width: 100px;
    height: 100px;
  }

  .course-image-wrap img {
    height: 195px;
  }
}
