/**
 * Homepage — tablet & mobile responsive styles
 */

/* Tablet (max 991px) */
@media (max-width: 991px) {
  .admission-sidebar {
    right: 15px;
  }

  .sidebar-btn {
    width: 50px;
    height: 50px;
  }

  .sidebar-btn i {
    font-size: 18px;
  }

  .sidebar-btn span {
    font-size: 9px;
  }

  #popupOverlay .popup-container {
    max-width: 96vw;
    width: fit-content;
    max-height: min(calc(100vh - 24px), calc(100dvh - 24px));
  }

  #popupOverlay .popup-slide img {
    max-width: 96vw;
    max-height: min(calc(100vh - 60px), calc(100dvh - 60px));
    width: auto;
    height: auto;
    object-fit: contain;
  }

  #popupOverlay .popup-nav {
    top: auto;
    bottom: 46px;
    transform: none;
    padding: 0 12px;
    padding-right: 56px;
    pointer-events: none;
  }

  #popupOverlay .popup-nav-btn {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.95);
  }

  .home-news-section {
    padding: 60px 0;
  }

  .news-card {
    margin-bottom: 25px;
  }

  .upcoming-events-wrapper {
    margin-top: 30px;
  }

  .home-panel-card {
    padding: 24px;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  .admission-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
  }

  .sidebar-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  }

  .sidebar-btn i {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .sidebar-btn span {
    font-size: 8px;
  }

  .sidebar-btn::before {
    display: none;
  }

  .social-popup-content {
    padding: 20px;
    max-width: 320px;
    width: 85%;
    margin: 0 15px;
  }

  .social-popup-header h3 {
    font-size: 18px;
  }

  .social-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .social-icon {
    padding: 15px 10px;
    border-radius: 10px;
  }

  .social-icon i {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .social-icon span {
    font-size: 11px;
  }

  .close-popup {
    font-size: 24px;
  }

  #popupOverlay .popup-container {
    width: fit-content;
    max-width: 98vw;
    max-height: min(calc(100vh - 20px), calc(100dvh - 20px));
  }

  #popupOverlay .popup-slide img {
    max-width: 98vw;
    max-height: min(calc(100vh - 48px), calc(100dvh - 48px));
    width: auto;
    height: auto;
    object-fit: contain;
  }

  #popupOverlay .popup-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  #popupOverlay.popup-overlay {
    z-index: 100000;
  }

  #popupOverlay .popup-nav {
    top: auto;
    bottom: 46px;
    transform: none;
    padding: 0 12px;
    padding-right: 56px;
    pointer-events: none;
  }

  #popupOverlay .popup-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.95);
  }

  #popupOverlay .popup-indicators {
    bottom: 10px;
  }

  .video-popup-container {
    width: 95%;
    height: 55vh;
  }

  .video-popup-close {
    top: -35px;
    font-size: 32px;
  }

  .home-news-section {
    padding: 40px 0;
  }

  .home-hub {
    padding: 36px 0 48px;
  }

  .about-home {
    padding-top: 60px;
    padding-bottom: 10px;
  }

  .home-facts {
    padding: 48px 0 56px;
  }

  .home-hub__header {
    padding: 18px 16px;
    gap: 12px;
  }

  .home-hub__header-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .home-hub__title {
    font-size: 14px;
  }

  .home-hub__list {
    max-height: 340px;
    padding: 12px 14px;
  }

  .home-hub__item {
    padding: 12px;
    gap: 10px;
  }

  .home-hub__date {
    width: 48px;
    padding: 8px 6px;
  }

  .home-hub__date strong {
    font-size: 18px;
  }

  .home-hub__item-title {
    font-size: 13px;
  }

  .home-hub__footer {
    padding: 14px 16px 18px;
  }

  .home-facts {
    padding: 48px 0 56px;
  }

  .home-life {
    padding: 48px 0 56px;
  }

  .home-life__header {
    margin-bottom: 28px;
  }

  .home-life__title {
    font-size: 20px;
    white-space: normal;
  }

  .home-life__lead {
    font-size: 14px;
  }

  .home-life__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
  }

  .home-life__card--featured {
    grid-column: span 2;
    grid-row: span 1;
    grid-auto-rows: 200px;
  }

  .home-life__card-title {
    font-size: 14px;
  }

  .home-facts__title {
    font-size: 21px;
    white-space: normal;
  }

  .home-testimonials__title,
  .home-affiliations__title,
  .home-facilities__title {
    font-size: 20px;
    white-space: normal;
  }

  .home-testimonials__text {
    margin: 0 0 1px;
    flex: 1;
    font-size: 11px;
    line-height: 19px;
    color: #444;
    font-style: normal;
  }

  .home-facts__lead {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .home-facts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-facts__stat {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 18px;
    padding: 20px 18px;
  }

  .home-facts__stat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .home-facts__counter {
    flex: 1;
  }

  .home-facts__count-row {
    justify-content: flex-start;
  }

  .home-facts__number {
    font-size: 24px;
  }

  .home-facts__suffix {
    font-size: 22px;
  }

  .home-panel-card {
    padding: 20px;
    border-radius: 16px;
  }

  .home-panel-title {
    font-size: 18px;
  }

  .home-scroll-list {
    max-height: 320px;
  }

  .home-date-box--news,
  .home-date-box--upcoming,
  .home-date-box--achievement {
    min-width: 56px;
    padding: 12px;
    margin-right: 12px;
  }

  .home-date-day {
    font-size: 22px;
  }

  .home-news-item {
    padding: 15px;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .social-popup-content {
    width: 92%;
    max-width: none;
    padding: 16px;
  }

  .social-icons-grid {
    gap: 8px;
  }

  .social-icon {
    padding: 12px 8px;
  }

  .video-popup-container {
    height: 45vh;
  }
}

/* ========== Extracted responsive from blade templates ========== */

/* Source: resources/views/frontend/jain-school/layouts/partials/news-events-styles.blade.php */
/* News & Events Section Styles */

.news-events-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    padding: 80px 0;
}

/* Section Titles */
.news-section-title,
.events-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0d2b5c;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.news-section-title::after,
.events-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.events-section-title::after {
    background: linear-gradient(90deg, #00c9a7 0%, #00dcaf 100%);
}

/* News Cards */
.news-card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 420px; /* Fixed minimum height to match events card */
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-container img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.news-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.news-date i {
    color: #ff6b35;
    margin-right: 8px;
}

.news-date .separator {
    margin: 0 8px;
    color: #adb5bd;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #0d2b5c;
    margin-bottom: 15px;
    transition: color 0.3s;
    flex: 1;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-card:hover .news-title a {
    color: #ff6b35 !important;
}

.news-description {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-author {
    font-size: 13px;
    color: #869ab8;
}

.news-author i {
    margin-right: 5px;
}

.read-more-link {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more-link i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.news-card:hover .read-more-link {
    color: #0d2b5c !important;
}

.news-card:hover .read-more-link i {
    transform: translateX(3px);
}

/* View All Button */
.view-all-btn {
    background: linear-gradient(135deg, #0d2b5c 0%, #1a4b9c 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(13,43,92,0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13,43,92,0.4);
}

.view-all-btn i {
    margin-left: 8px;
}

/* No News Placeholder */
.no-news-placeholder {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.no-news-placeholder i {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-news-placeholder p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 0;
}

/* News Events Wrapper (matches events wrapper) */
.news-events-wrapper {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.news-events-header {
    margin-bottom: 25px;
}

.news-section-heading {
    margin-bottom: 25px;
}

.news-section-heading .events-month {
    font-size: 22px;
    font-weight: 700;
    color: #0d2b5c;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 25px;
}

.news-section-heading .events-month i {
    color: #ff6b35;
    margin-right: 10px;
}

/* Events Header */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.events-nav {
    display: flex;
    gap: 10px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: #00c9a7 !important;
    border-color: #00c9a7 !important;
    transform: scale(1.1);
}

.nav-button:hover i {
    color: white !important;
}

.nav-button i {
    color: #718096;
}

/* Events Month */
.events-month {
    font-size: 22px;
    font-weight: 700;
    color: #0d2b5c;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 20px;
}

.events-month i {
    color: #00c9a7;
    margin-right: 10px;
}

/* Events List */
.events-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.event-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 16px;
    padding: 15px;
    border-radius: 12px;
}

.event-item:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

.event-date-box {
    background: linear-gradient(135deg, #00c9a7 0%, #00dcaf 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 6px 15px rgba(0,201,167,0.3);
    flex-shrink: 0;
    margin-right: 20px;
}

.event-day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.event-month-short {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-info {
    flex-grow: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d2b5c;
    margin-bottom: 8px;
}

.event-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.event-meta {
    font-size: 12px;
    color: #94a3b8;
}

.event-meta i {
    margin-right: 5px;
}

/* Calendar Link */
.calendar-link {
    color: #0d2b5c;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(0,201,167,0.1);
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid rgba(0,201,167,0.2);
}

.calendar-link:hover {
    background: rgba(0,201,167,0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,201,167,0.2);
}

.calendar-link i:last-child {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.calendar-link:hover i:last-child {
    transform: translateX(3px);
}

/* No Events Placeholder */
.no-events-placeholder {
    text-align: center;
    padding: 30px;
}

.no-events-placeholder-inner {
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 30px;
}

.no-events-placeholder i {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-events-placeholder h4 {
    color: #718096;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-events-placeholder p {
    color: #a0aec0;
    font-size: 15px;
    margin-bottom: 0;
}

/* Scrollbar Styling */
.events-list-container::-webkit-scrollbar {
    width: 6px;
}

.events-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.events-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00c9a7, #00dcaf);
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .news-card {
        margin-bottom: 25px;
    }
    
    .events-wrapper {
        margin-top: 30px;
    }
    
    .news-events-section {
        padding: 60px 0;
    }
    
    .news-section-title,
    .events-section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-content {
        padding: 18px;
    }
    
    .news-img-container {
        height: 180px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .event-date-box {
        min-width: 60px;
        padding: 12px;
    }
    
    .event-day {
        font-size: 22px;
    }
}
/* News Events List */
.news-events-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* News Event Items */
.news-event-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
}

.news-event-item:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

/* News Date Box */
.news-date-box {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 6px 15px rgba(255,107,53,0.3);
    flex-shrink: 0;
    margin-right: 20px;
}

.news-date-box .event-day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.news-date-box .event-month-short {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* News Event Info */
.news-event-info {
    flex-grow: 1;
}

.news-event-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d2b5c;
    margin-bottom: 10px;
}

.news-event-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-event-meta {
    font-size: 12px;
    color: #94a3b8;
}

.news-event-meta i {
    margin-right: 5px;
}

/* View All Link */
.news-view-all-link {
    color: #0d2b5c;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255,107,53,0.1);
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid rgba(255,107,53,0.2);
}

.news-view-all-link:hover {
    background: rgba(255,107,53,0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.2);
}

.news-view-all-link i:last-child {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.news-view-all-link:hover i:last-child {
    transform: translateX(3px);
}

/* No Events Placeholder */
.no-events-placeholder-inner {
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.no-events-placeholder-inner i {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-events-placeholder-inner h4 {
    color: #718096;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-events-placeholder-inner p {
    color: #a0aec0;
    font-size: 15px;
    margin-bottom: 0;
}

/* Source: resources/views/frontend/jain-school/pages/about/principal-desk.blade.php */
.breadcumb-wrapper {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.breadcumb-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.breadcumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcumb-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcumb-menu {
    color: white;
}

.breadcumb-menu a {
    color: #ffc107;
    text-decoration: none;
}

.message-card {
    transition: all 0.4s ease;
}

.message-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .message-image-container {
        min-height: 350px !important;
    }
    
    .message-content {
        padding: 30px !important;
    }
    
    .breadcumb-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sec-title {
        font-size: 2rem !important;
    }
    
    .message-content p {
        font-size: 1rem !important;
    }
}

/* Source: resources/views/frontend/jain-school/pages/about.blade.php */
/* Custom styles for About page */
.breadcumb-wrapper {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.breadcumb-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.breadcumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcumb-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcumb-menu {
    color: white;
}

.breadcumb-menu a {
    color: #ffc107;
    text-decoration: none;
}

.team-style1 {
    text-align: center;
    margin-bottom: 30px;
}

.team-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.team-img img {
    width: 100%;
    transition: transform 0.3s ease;
}

.team-style1:hover .team-img img {
    transform: scale(1.05);
}

.team-content .team-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-content .team-desi {
    color: #666;
    font-style: italic;
}

.counter-style1 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.media-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.counter-icon img {
    width: 50px;
    height: 50px;
}

.media-count {
    display: flex;
    align-items: baseline;
}

.media-title {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.count-icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-left: 5px;
}

.media-text {
    margin: 0;
    color: #666;
}

.choose-layout1 {
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed for better mobile support */
    position: relative;
    background-blend-mode: overlay;
}

.choose-layout1:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
    z-index: 1;
}

.choose-layout1 .container {
    position: relative;
    z-index: 2;
}

.choose-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.choose-img img {
    width: 100%;
    transition: transform 0.3s ease;
}

.choose-img:hover img {
    transform: scale(1.05);
}

.choose-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.choose-icon {
    flex-shrink: 0;
}

.choose-icon img {
    width: 50px;
    height: 50px;
}

.choose-content .choose-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.choose-content .choose-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.list-style1 li {
    margin-bottom: 12px;
    padding-left: 10px;
    color: white;
}

.list-style1 li i {
    color: #ffc107; /* Yellow color for better visibility */
    margin-right: 10px;
}

.text-box__number {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
}

.text-box__title {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.about-video {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-video img {
    width: 100%;
    border-radius: 10px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.play-btn:hover {
    background: #764ba2;
    transform: translate(-50%, -50%) scale(1.1);
}

.img-box1 {
    position: relative;
}

.img1, .img2 {
    border-radius: 10px;
    overflow: hidden;
}

.img2 {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.img2 .img {
    flex: 1;
}

.img2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .breadcumb-title {
        font-size: 2rem;
    }
    
    .counter-style1 {
        flex-direction: column;
    }
    
    .media-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .img2 {
        flex-direction: column;
    }
}

/* Source: resources/views/frontend/jain-school/pages/about.blade.php */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    margin-bottom: 50px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-content {
    min-height: 400px;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.page-body a {
    color: #667eea;
    text-decoration: underline;
}

.page-body a:hover {
    color: #764ba2;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 60px 0;
    }
}

/* Source: resources/views/frontend/jain-school/pages/admin-list.blade.php */
.admin-staff-table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.admin-staff-table thead th {
  background: #052059 !important;
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  padding: 15px;
}

.admin-staff-table tbody tr {
  transition: all 0.3s ease;
}

.admin-staff-table tbody tr:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-photo {
  object-fit: cover;
  border: 3px solid #e9ecef;
}

.staff-photo-placeholder {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  border: 3px solid #e9ecef;
}

.staff-info h5 {
  color: #052059;
  font-weight: 600;
  font-size: 15px
}

.badge {
  font-size: 0.85rem;
  padding: 8px 15px;
  border-radius: 20px;
}

.table td {
  vertical-align: middle;
  padding: 15px;
}

.table th {
  vertical-align: middle;
  padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-staff-table {
    font-size: 0.9rem;
  }
  
  .staff-info {
    flex-direction: column;
    text-align: center;
  }
  
  .staff-photo, .staff-photo-placeholder {
    margin-bottom: 10px;
  }
  
  .table td, .table th {
    padding: 10px 5px;
  }
}

.title-area {
  margin-bottom: 40px;
}

.sec-title {
  color: #052059;
  font-weight: 700;
  margin-bottom: 15px;
}

.sec-text {
  color: #666;
  font-size: 1.1rem;
}

/* Source: resources/views/frontend/jain-school/pages/chairmans-desk.blade.php */
.breadcumb-wrapper {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.breadcumb-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.breadcumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcumb-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcumb-menu {
    color: white;
}

.breadcumb-menu a {
    color: #ffc107;
    text-decoration: none;
}

.message-card {
    transition: all 0.4s ease;
}

.message-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .message-image-container {
        min-height: 350px !important;
    }
    
    .message-content {
        padding: 30px !important;
    }
    
    .breadcumb-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sec-title {
        font-size: 2rem !important;
    }
    
    .message-content p {
        font-size: 1rem !important;
    }
}

/* Source: resources/views/frontend/jain-school/pages/facility-detail.blade.php */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: none;
  width: auto;
  height: auto;
  font-size: 1.5rem;
  color: #052059;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid white;
}

.carousel-indicators .active {
  background: #f99f3a;
  border-color: #f99f3a;
}

.vs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 32, 89, 0.3);
}

.related-facility h6 a:hover {
  color: #f99f3a !important;
}

@media (max-width: 768px) {
  .facility-title {
    font-size: 2rem !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Source: resources/views/frontend/jain-school/pages/faculty.blade.php */
.faculty-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.faculty-card-simple:hover .faculty-photo img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Department Header Styling */
.department-header {
  position: relative;
}

.department-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f99f3a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .department-header h3 {
    font-size: 1.2rem !important;
  }
  .faculty-photo {
    height: 180px !important;
  }
}

/* Source: resources/views/frontend/jain-school/pages/news-events/show.blade.php */
/* News Detail Page Styles with School Colors */
.blog-text p {
  margin-bottom: 20px;
}
.image-box:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .post-details-wrapper {
    padding: 20px;
  }
}

/* Source: resources/views/frontend/jain-school/pages/principal-desk.blade.php */
.breadcumb-wrapper {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.breadcumb-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.breadcumb-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcumb-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcumb-menu {
    color: white;
}

.breadcumb-menu a {
    color: #ffc107;
    text-decoration: none;
}

.message-card {
    transition: all 0.4s ease;
}

.message-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

@media (max-width: 992px) {
    .message-image-container {
        min-height: 350px !important;
    }
    
    .message-content {
        padding: 30px !important;
    }
    
    .breadcumb-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sec-title {
        font-size: 2rem !important;
    }
    
    .message-content p {
        font-size: 1rem !important;
    }
}

/* Source: resources/views/frontend/jain-school/pages/video-gallery.blade.php */
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-card:hover .play-button {
  background: rgba(249, 159, 58, 1) !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

.video-modal.active {
  display: flex !important;
}

@media (max-width: 768px) {
  .video-thumbnail {
    padding-bottom: 60% !important;
  }
}

/* Source: resources/views/frontend/jain-school/pages/vision-mission.blade.php */
.page-content {
  min-height: 400px;
}

.sec-title {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

.vision-card, .mission-card {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-card:hover, .mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(5, 32, 89, 0.15);
}

.value-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-box {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.why-choose-section {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .sec-title {
    font-size: 2.2rem !important;
  }
  
  .vision-card, .mission-card {
    padding: 30px 25px !important;
  }
  
  .value-card, .feature-box {
    padding: 30px 20px !important;
  }
}

@media (max-width: 768px) {
  .sec-title {
    font-size: 1.8rem !important;
  }
  
  .subtitle {
    font-size: 0.8rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
  }
  
  .vision-card, .mission-card {
    padding: 25px 20px !important;
  }
  
  .value-card, .feature-box {
    padding: 25px 15px !important;
  }
  
  .why-choose-section {
    padding: 50px 25px !important;
  }
}

/* Achievement image popup — see index-desktop.css (shared unique classes) */

/* Source: resources/views/frontend/jain-school/partials/achievement-popup.blade.php */
.achievement-popup-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.achievement-popup-content {
  position: relative;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  margin: 3% auto;
  padding: 0;
  border-radius: 25px;
  width: 95%;
  max-width: 1000px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: popupScaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScaleIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.achievement-popup-close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.15);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.achievement-popup-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  border-color: white;
}

.achievement-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 40px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  position: relative;
  overflow: hidden;
}

.header-decoration {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confetti-streamer {
  width: 40px;
  height: 6px;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ff8c00);
  border-radius: 3px;
  transform-origin: left center;
  animation: streamerFloat 3s infinite ease-in-out;
}

.confetti-streamer:nth-child(1) { animation-delay: 0s; transform: rotate(15deg); }
.confetti-streamer:nth-child(2) { animation-delay: 0.5s; transform: rotate(-10deg); }
.confetti-streamer:nth-child(3) { animation-delay: 1s; transform: rotate(5deg); }

@keyframes streamerFloat {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(-15deg) translateY(-5px); }
}

.header-content {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.popup-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 1.5px;
}

.popup-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.achievement-slider-container {
  position: relative;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
}

.slider-slide {
  display: none;
  animation: slideFadeIn 0.5s ease-out;
}

.slider-slide.active {
  display: block;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.students-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.student-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(33.333% - 17px);
  margin-bottom: 20px;
}

.student-profile.second-row {
  margin-top: 20px;
}

.student-photo-wrapper {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f59e0b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

.student-photo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.6);
}

.student-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-photo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.placeholder-photo i {
  font-size: 2.8rem;
}

.student-details {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  backdrop-filter: blur(10px);
}

.student-percentage {
  font-size: 2rem;
  font-weight: 800;
  color: #1a365d;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.student-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 26px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-pagination {
  text-align: center;
  margin-top: 25px;
}

.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active,
.dot:hover {
  background-color: white;
  transform: scale(1.3);
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  .achievement-popup-content {
    width: 98%;
    margin: 5% auto;
  }
  
  .popup-title {
    font-size: 2.5rem;
  }
  
  .popup-subtitle {
    font-size: 1.2rem;
  }
  
  .student-photo-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .student-percentage {
    font-size: 1.7rem;
  }
  
  .student-name {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .achievement-popup-header {
    padding: 25px 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .header-decoration {
    display: none;
  }
  
  .popup-title {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .popup-subtitle {
    font-size: 1rem;
  }
  
  .students-row {
    gap: 15px;
  }
  
  .student-profile {
    width: calc(50% - 8px);
  }
  
  .student-photo-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .student-percentage {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .student-profile {
    width: 100%;
    margin-bottom: 25px;
  }
  
  .student-photo-wrapper {
    width: 90px;
    height: 90px;
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }
}

/* DPS header styles moved to common-responsive.css */

/* Messages section responsive */
/* Responsive styles for messages section */
@media (max-width: 576px) {
  /* For extra small devices */
  .facts-layout1 .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .facts-layout1 .row {
    flex-direction: column;
  }

  .facts-layout1 .col,
  .facts-layout1 .col-xl-auto {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .facts-info {
    margin-top: 20px;
    text-align: center;
  }

  #messageCarousel {
    max-width: 100% !important;
    margin: 0 auto;
  }

  .carousel-item {
    padding: 10px;
  }

  .message-image img {
    width: 100px !important;
    height: 100px !important;
  }

  .carousel-inner div {
    padding: 15px !important;
  }

  .sec-title {
    font-size: 1.5rem !important;
  }

  .info-text {
    font-size: 0.9rem;
  }

  .tjis-i-1f6502a8 {
    font-size: 14px !important;
    min-height: auto !important;
  }

  .btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  .tjis-i-d51685bd {
    font-size: 16px !important;
  }

  .tjis-i-1a8e12a1 {
    font-size: 13px !important;
  }

  .title-area {
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  /* For small devices */
  .facts-layout1 .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .message-image img {
    width: 110px !important;
    height: 110px !important;
  }

  .carousel-inner div {
    padding: 20px !important;
  }

  .tjis-i-1f6502a8 {
    font-size: 15px !important;
  }

  .btn {
    padding: 9px 20px !important;
  }

  .tjis-i-d51685bd {
    font-size: 18px !important;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  /* For tablets */
  .facts-layout1 .container {
    max-width: 90%;
  }

  .message-image img {
    width: 115px !important;
    height: 115px !important;
  }

  .carousel-inner div {
    padding: 22px !important;
  }

  .tjis-i-1f6502a8 {
    font-size: 16px !important;
  }

  .btn {
    padding: 10px 22px !important;
  }
}

@media (min-width: 992px) {
  /* Desktop styles remain mostly as is, with minor adjustments */
  .carousel-inner div:not(.tjis-sl-multi__row) {
    max-width: 600px !important;
  }

  .tjis-sl-multi .carousel-inner .tjis-sl-multi__row {
    max-width: none !important;
    width: 100% !important;
  }
}

/* Additional responsive adjustments for the carousel */
.carousel.slide {
  width: 100%;
}

.carousel-item {
  min-height: auto;
}

/* Adjust decorative elements */
.facts-layout1 .tjis-i-6fb35ba7, .facts-layout1 .tjis-i-81b52724 {
  display: none;
}

/* Adjust title alignment on smaller screens */
@media (max-width: 768px) {
  .title-area {
    text-align: center;
  }
  
  .title-area .sec-subtitle {
    justify-content: center !important;
  }
}

/* Logo size adjustment for mobile */
@media (max-width: 576px) {
  .logo,
  .site-logo,
  img[src*="logo"] {
    max-width: 257px !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* Adjust text readability on small screens */
@media (max-width: 576px) {
  .message-content {
    padding: 10px;
  }
  
  .message-content p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Homepage About — mobile */
@media (max-width: 991px) {
  .about-home__content {
    padding-left: 0;
    margin-top: 20px;
  }

  .about-home__stat-chip {
    right: 16px;
    bottom: -14px;
    padding: 10px 16px;
  }

  .about-home__stat-chip strong {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .about-home {
    padding-top: 60px;
    padding-bottom: 10px;
  }

  .about-home__badge {
    top: 14px;
    left: 14px;
    padding: 8px 14px;
  }

  .about-home__badge-text {
    font-size: 12px;
  }

  .about-home__video-wrap {
    border-radius: 18px;
  }

  .about-home__play {
    width: 62px;
    height: 62px;
    font-size: 18px;
  }

  .about-home__title {
    font-size: 27px;
    white-space: normal;
    letter-spacing: -0.01em;
  }

  .about-home__feature-title {
    white-space: nowrap;
    font-size: 13px;
  }

  .about-home__lead {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .about-home__feature {
    padding: 14px;
    gap: 12px;
  }

  .about-home__feature-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .about-home__highlights {
    padding: 14px 16px;
    margin-bottom: 24px;
  }

  .about-home__highlight-num {
    font-size: 20px;
  }

  .about-home__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .about-home__actions .vs-btn {
    width: 100%;
    justify-content: center;
  }

  .about-home__link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-home__highlights {
    flex-direction: column;
    gap: 8px;
  }

  .about-home__title {
    font-size: 16px;
  }

  .title-area .sec-title {
    font-size: 27px;
    white-space: normal;
  }

  .home-panel-title {
    font-size: clamp(16px, 4vw, 20px);
    white-space: nowrap;
  }

  .home-life__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .home-life__card--featured {
    grid-column: span 1;
  }

  .about-home__highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 6px 0;
    border-bottom: 1px solid rgba(5, 32, 89, 0.08);
  }

  .about-home__highlight:last-child {
    border-bottom: none;
  }

  .about-home__highlight-num,
  .about-home__highlight-label {
    display: inline;
    font-size: 16px;
  }
}

/* Homepage hero — mobile banner fill + compact height (loads last) */
@media (max-width: 767px) {
  .hero-section {
    position: relative;
    height: clamp(180px, 52vw, 240px) !important;
    min-height: 0 !important;
    max-height: 240px !important;
    overflow: hidden !important;
    background: #052059;
  }

  .hero-slider {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-slide-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero-content-wrapper {
    display: none !important;
  }

  .hero-nav {
    bottom: 8px;
    gap: 10px;
  }

  .hero-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
    background: rgba(5, 32, 89, 0.78);
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: clamp(160px, 48vw, 200px) !important;
    max-height: 200px !important;
  }
}
