/* ========================================
   ISOLATED STYLES FOR NEW PAGES ONLY
   Will NOT affect homepage at all
   ======================================== */

/* Strategy: Use body class targeting to isolate styles */

/* PAGE HEADER - Only on pages with .page-header class */
body:not(.home-page) .page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1c3a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

body:not(.home-page) .page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-pattern);
  opacity: 0.1;
}

body:not(.home-page) .page-header * {
  color: white !important;
}

/* ABOUT PAGE SPECIFIC */
.about-page .feature-card {
  padding: 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.about-page .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-page .feature-card h3,
.about-page .feature-card .h4 {
  color: var(--primary) !important;
}

.about-page .feature-card p {
  color: #666 !important;
}

.about-page .value-card {
  padding: 30px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.about-page .value-card:hover {
  box-shadow: var(--shadow-md);
}

.about-page .value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.about-page .value-card h5 {
  color: var(--primary) !important;
}

.about-page .value-card p {
  color: #666 !important;
}

.about-page .stat-box .display-3 {
  color: var(--primary) !important;
}

.about-page .stat-box p {
  color: #666 !important;
}

/* RATE CARD PAGE SPECIFIC */
.rate-card-page .pdf-viewer-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rate-card-page .pdf-viewer-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--primary), #1a1c3a);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.rate-card-page .pdf-viewer-header * {
  color: white !important;
}

.rate-card-page .pdf-viewer-body {
  padding: 0;
  background: #f5f5f5;
  min-height: 800px;
  position: relative;
}

.rate-card-page .pdf-embed-wrapper {
  width: 100%;
  height: 800px;
  position: relative;
}

.rate-card-page .pdf-embed-wrapper iframe,
.rate-card-page .pdf-embed-wrapper object,
.rate-card-page .pdf-embed-wrapper embed {
  width: 100%;
  height: 100%;
  border: none;
}

.rate-card-page .pdf-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
}

.rate-card-page .pdf-fallback.show {
  display: block;
}

.rate-card-page .package-card {
  padding: 40px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-fast);
  height: 100%;
}

.rate-card-page .package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.rate-card-page .package-card.featured {
  border: 2px solid var(--accent);
}

.rate-card-page .package-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.rate-card-page .package-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
}

.rate-card-page .package-card h4 {
  color: var(--primary) !important;
}

.rate-card-page .package-card p {
  color: #666 !important;
}

.rate-card-page .feature-list-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rate-card-page .feature-list-item:last-child {
  border-bottom: none;
}

/* NEWS PAGE SPECIFIC */
.news-page .news-featured {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.news-page .news-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.news-page .news-meta {
  display: flex;
  gap: 15px;
  font-size: var(--text-sm);
  color: #666;
}

.news-page .news-title {
  color: var(--primary) !important;
}

.news-page .news-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-page .news-title a:hover {
  color: var(--primary);
}

.news-page .news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-page .news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.news-page .news-card-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.news-page .news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-page .news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-page .news-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.news-page .news-date-badge .day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.news-page .news-date-badge .month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.news-page .news-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-page .news-category {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-page .news-card-title {
  font-size: var(--text-lg);
  margin-bottom: 12px;
  flex: 1;
  color: var(--primary) !important;
}

.news-page .news-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-page .news-card-title a:hover {
  color: var(--primary);
}

.news-page .news-card-excerpt {
  color: #666 !important;
}

.news-page .sidebar-widget {
  background: white;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.news-page .widget-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary) !important;
}

.news-page .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-page .category-list li {
  border-bottom: 1px solid #f0f0f0;
}

.news-page .category-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: #666;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-page .category-list a:hover {
  color: var(--primary);
}

.news-page .recent-post-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color var(--transition-fast);
}

.news-page .recent-post-title:hover {
  color: var(--primary);
}

/* OAPS PAGE SPECIFIC */
.oaps-page .section-header-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 30px;
}

.oaps-page .time-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.oaps-page .section-header-inline h2,
.oaps-page .section-header-inline .h3 {
  color: var(--primary) !important;
  margin-bottom: 0;
}

.oaps-page .oap-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  height: 100%;
}

.oaps-page .oap-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.oaps-page .oap-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.oaps-page .oap-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.oaps-page .oap-card:hover .oap-image {
  transform: scale(1.1);
}

.oaps-page .oap-social {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.oaps-page .oap-card:hover .oap-social {
  opacity: 1;
}

.oaps-page .oap-social a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.oaps-page .oap-social a:hover {
  background: var(--primary);
  color: white;
}

.oaps-page .oap-content {
  padding: 30px;
}

.oaps-page .oap-show-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.oaps-page .oap-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary) !important;
}

.oaps-page .oap-time {
  color: #666 !important;
  font-size: var(--text-sm);
  margin-bottom: 15px;
}

.oaps-page .oap-bio {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 20px;
  color: #666 !important;
}

.oaps-page .oap-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.oaps-page .oap-stats .stat strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary) !important;
  margin-bottom: 5px;
}

.oaps-page .oap-stats .stat span {
  display: block;
  font-size: var(--text-xs);
  color: #999 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CONTACT PAGE SPECIFIC */
.contact-page .contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-page .contact-form-wrapper h3 {
  color: var(--primary) !important;
}

.contact-page .contact-form .form-label {
  font-weight: 600;
  color: #333 !important;
  margin-bottom: 8px;
}

.contact-page .contact-form .form-control,
.contact-page .contact-form .form-select {
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition-fast);
}

.contact-page .contact-form .form-control:focus,
.contact-page .contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 51, 95, 0.1);
}

.contact-page .contact-info-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: all var(--transition-fast);
}

.contact-page .contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-page .contact-info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.contact-page .contact-info-content h5 {
  color: var(--primary) !important;
}

.contact-page .contact-info-content p {
  color: #666 !important;
}

.contact-page .contact-info-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-page .contact-info-content a:hover {
  color: var(--accent);
}

.contact-page .social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: all var(--transition-fast);
}

.contact-page .social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-page .accordion-item {
  background: white;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
}

.contact-page .accordion-button {
  background: white;
  color: #1a1a1a;
  font-weight: 600;
  padding: 20px 25px;
  border: none;
}

.contact-page .accordion-button:not(.collapsed) {
  background: var(--primary);
  color: white;
}

.contact-page .accordion-body {
  padding: 20px 25px;
  color: #666;
  line-height: 1.6;
}

.contact-page .accordion-body a {
  color: var(--primary);
  text-decoration: none;
}

/* SHARED UTILITY FOR ALL NEW PAGES */
body:not(.home-page) .section-padding {
  padding: 80px 0;
}

body:not(.home-page) .cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1c3a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

body:not(.home-page) .cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-pattern);
  opacity: 0.1;
}

body:not(.home-page) .cta-section * {
  color: white !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  body:not(.home-page) .page-header {
    padding: 100px 0 50px;
  }

  .rate-card-page .pdf-embed-wrapper {
    height: 600px;
  }
}

@media (max-width: 767px) {
  body:not(.home-page) .page-header {
    padding: 80px 0 40px;
  }

  .rate-card-page .pdf-embed-wrapper {
    height: 500px;
  }

  .oaps-page .oap-image-wrapper {
    height: 250px;
  }
}

/* ========================================
   OAP PAGE FIXES ONLY
   Add this to your existing pages.css or pages-isolated.css
   ======================================== */

/* FIX 1: OAP Image Fitting - Remove side gaps */
.oaps-page .oap-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
  width: 100%; /* Ensure full width */
  background: #f0f0f0; /* Placeholder background */
}

.oaps-page .oap-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills container without distortion */
  object-position: center; /* Centers the image */
  display: block; /* Removes inline spacing */
  transition: transform var(--transition-slow);
}

.oaps-page .oap-card:hover .oap-image {
  transform: scale(1.1);
}

/* FIX 2: Social Media Buttons - Ensure visibility */
.oaps-page .oap-social {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 10; /* Ensure buttons are above image */
}

.oaps-page .oap-card:hover .oap-social {
  opacity: 1;
}

.oaps-page .oap-social a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Better visibility */
}

.oaps-page .oap-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.oaps-page .oap-social a i {
  font-size: 16px;
  color: inherit;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .oaps-page .oap-image-wrapper {
    height: 250px;
  }

  /* Show social buttons on mobile without hover */
  .oaps-page .oap-social {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 25px;
  }
}
/* ========================================
   RATE CARD IMAGE VIEWER CSS
   Add to your pages.css or load separately
   ======================================== */

/* Image Viewer Container */
.rate-card-page .image-viewer-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Image Viewer Header */
.rate-card-page .image-viewer-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--primary), #1a1c3a);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rate-card-page .image-viewer-header h5 {
  color: white !important;
  margin-bottom: 0;
}

/* Image Viewer Body - Scrollable Area */
.rate-card-page .image-viewer-body {
  padding: 0;
  background: #f5f5f5;
  max-height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #e0e0e0;
}

/* Webkit browsers (Chrome, Safari, Edge) scrollbar */
.rate-card-page .image-viewer-body::-webkit-scrollbar {
  width: 12px;
}

.rate-card-page .image-viewer-body::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.rate-card-page .image-viewer-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.rate-card-page .image-viewer-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Individual Rate Card Images */
.rate-card-page .rate-card-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0; /* No gap between images for continuous scroll */
  border: none;
}

/* Optional: Add subtle shadow between images */
.rate-card-page .rate-card-image:not(:last-child) {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Image Viewer Footer */
.rate-card-page .image-viewer-footer {
  padding: 15px 30px;
  background: #f8f9fc;
  border-top: 1px solid #e0e0e0;
}

.rate-card-page .image-viewer-footer small {
  color: #666;
}

/* Loading state for images */
.rate-card-page .rate-card-image {
  background: #f0f0f0;
  min-height: 400px; /* Prevents layout shift while loading */
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .rate-card-page .image-viewer-body {
    max-height: 600px;
  }
  
  .rate-card-page .image-viewer-header {
    padding: 15px 20px;
  }
}

@media (max-width: 767px) {
  .rate-card-page .image-viewer-body {
    max-height: 500px;
  }
  
  .rate-card-page .image-viewer-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}