/* ===================================
   NEW PATHIVARA CUSTOMS - MAIN STYLES
   =================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   NAVIGATION STYLES
   =================================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 80px;
}

.logo {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo img {
  height: 45px;       /* Adjust as needed */
  width: auto;
  right: 50px;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #0066cc;
}

.nav-links a.active {
  color: #0066cc;
}

.nav-links a.active::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(135deg, #0066cc, #003d82);
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.cta-btn::after {
  display: none;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #003d82;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 61, 130, 0.95), rgba(0, 102, 204, 0.9)),
              url('../assets/banner.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.3), transparent),
              radial-gradient(circle at 80% 80%, rgba(0, 61, 130, 0.3), transparent);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.95;
}

.hero p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-btn-primary {
  background: white;
  color: #003d82;
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(255,255,255,0.4);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator i {
  font-size: 32px;
  color: rgba(255,255,255,0.8);
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
  background: linear-gradient(135deg, #003d82, #0066cc);
  padding: 80px 20px;
  color: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.stat-card i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  font-size: 14px;
  color: #0066cc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 48px;
  color: #003d82;
  margin-bottom: 20px;
  font-weight: 800;
}

.section-description {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
  padding: 100px 20px;
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 50px 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #0066cc, #003d82);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,102,204,0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0066cc, #003d82);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(5deg) scale(1.1);
}

.service-icon i {
  font-size: 32px;
  color: white;
}

.service-card h3 {
  font-size: 24px;
  color: #003d82;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-link {
  color: #0066cc;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 12px;
  color: #003d82;
}

/* ===================================
   NEWS SECTION
   =================================== */
.news-section {
  padding: 100px 20px;
  background: white;
}

.news-grid, .news-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,102,204,0.15);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-content {
  padding: 30px;
}

.news-date {
  color: #0066cc;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card h4 {
  font-size: 22px;
  color: #003d82;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.news-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  color: #0066cc;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 12px;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  background: linear-gradient(135deg, #003d82, #0066cc);
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* ===================================
   MODAL STYLES
   =================================== */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  padding: 50px;
  max-width: 800px;
  width: 100%;
  border-radius: 20px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

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

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
}

.close-btn:hover {
  background: #0066cc;
  color: white;
  transform: rotate(90deg);
}

.modal-content h2 {
  color: #003d82;
  margin-bottom: 20px;
  font-size: 32px;
}

/* ===================================
   FOOTER STYLES
   =================================== */
footer {
  background: #1a1a1a;
  color: white;
  padding: 80px 20px 30px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #fff;
}

.footer-col p, .footer-col a {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 2;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.footer-col a:hover {
  color: #0066cc;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0066cc;
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: #888;
  font-size: 14px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */
.page-header {
  background: linear-gradient(135deg, rgba(0, 61, 130, 0.95), rgba(0, 102, 204, 0.9)),
              url('../assets/banner.jpg') center/cover no-repeat;
  padding: 150px 20px 100px;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.page-header h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.about-section {
  padding: 100px 20px;
  background: #f8f9fa;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-content h2 {
  font-size: 42px;
  color: #003d82;
  margin-bottom: 20px;
  font-weight: 800;
}

.about-content h3 {
  font-size: 14px;
  color: #0066cc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item i {
  font-size: 24px;
  color: #0066cc;
  margin-top: 5px;
}

.feature-item h4 {
  font-size: 18px;
  color: #003d82;
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ===================================
   CONTACT PAGE STYLES
   =================================== */
.contact-section {
  padding: 100px 20px;
  background: #f8f9fa;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-left {
  background: white;
  padding: 40px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* ==============================
   CONTACT IMAGE - OVAL FIX
   Put this at the VERY END of style.css
   ============================== */

.contact-photo-wrap{
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  margin: 0 auto 30px !important;
  border-radius: 8px !important; /* normal rounded corners */
  overflow: hidden !important;
  background: #f3f3f3;
}

.contact-photo{
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important; /* show full image */
  display: block !important;
}




.contact-details h4 {
  font-size: 18px;
  color: #003d82;
  margin-bottom: 10px;
  margin-top: 25px;
  font-weight: 700;
}

.contact-details p {
  color: #666;
  font-size: 15px;
  margin-bottom: 5px;
}

.contact-details ul {
  list-style: none;
  padding-left: 0;
}

.contact-details li {
  color: #666;
  font-size: 15px;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.contact-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0066cc;
}

.contact-right {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.contact-form button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0066cc, #003d82);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.contact-heading {
  text-align: center;
  font-size: 48px;
  color: #003d82;
  margin-bottom: 60px;
  font-weight: 800;
}

/* ===================================
   NEWS PAGE STYLES
   =================================== */
.news-page {
  padding: 100px 20px;
  background: #f8f9fa;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

  .services-grid, .news-grid, .news-list-grid {
    grid-template-columns: 1fr;
  }

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

  .about-container, .contact-container {
    grid-template-columns: 1fr;
  }

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

  .cta-section h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px){
  .contact-photo-wrap{
    max-width: 320px !important;
  }
}

@media (max-width: 480px){
  .contact-photo-wrap{
    max-width: 280px !important;
  }
}


@media (max-width: 568px) {
  .hero h1 {
    font-size: 32px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .contact-right {
    padding: 30px 20px;
  }

  .nav-container {
    padding: 0 20px;
  }

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

  .hero-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}