
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=DM+Serif+Text:ital@0;1&family=Manrope:wght@200..800&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Radley:ital@0;1&family=Red+Rose:wght@300..700&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body, html {
      height: 100%;
      font-family: 'Lato', sans-serif;
    }
    
    h1, h2, h3, h4, h5, h6 {
      font-family: 'Montserrat', sans-serif;
      font-weight: 400;
      color: #fff;
      font-size: 3.4em
    }


    /* Hamburger menu */
    .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
    }
    .menu-toggle span {
        height: 3px;
        width: 25px;
        background: #000;
        margin: 4px 0;
        border-radius: 2px;
        transition: 0.3s;
    }


        /* Footer */
    .site-footer {
        background: #111;
        color: #fff;
        padding: 60px 50px;
    }

        .footer-container {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 200px;
            /* spacing between logo and links */
        }

        .footer-logo {
            flex: 0 0 auto;
            /* keep logo fixed width */
        }

        .footer-links {
            display: flex;
            flex: 1;
            justify-content: space-between;
            gap: 40px;
            max-width: 800px;
            /* reduce column width area */
        }

        .footer-column {
            flex: 1;
            min-width: 150px;
            /* smaller column size */
        }

        .footer-column h4 {
            font-size: 1.1rem;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
        }

        .footer-column ul li {
            margin-bottom: 8px;
        }

        .footer-column ul li a {
            color: #bbb;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
        }

        .footer-column ul li a:hover {
            color: #fff;
        }

        /* Responsive */
        /* Tablet adjustments */
        @media (max-width: 992px) {
            .site-footer {
                padding: 50px 30px;
            }

            .footer-container {
                gap: 20px;
            }

            .footer-links {
                gap: 24px;
            }

            .footer-column h4 {
                font-size: 1rem;
            }

            .footer-column ul li a {
                font-size: 0.9rem;
            }
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .site-footer {
                padding: 40px 20px;
            }

            .footer-container {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 0px;
            }

            .footer-logo img {
                max-width: 150px;
                margin-bottom: 20px;
            }

            .footer-links {
                flex-direction: column;
                align-items: center;
                gap: 16px;
                max-width: 100%;
            }

            .footer-column {
                min-width: auto;
            }

            .footer-column h4 {
                font-size: 1rem;
                margin-bottom: 10px;
            }

            .footer-column ul li a {
                font-size: 0.9rem;
            }
        }

  
  .certificates-hero {
  position: relative;
  height: 40vh;
  background: url('https://www.sspharma.com/assets/images/intermediates-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.certificates-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 0 10%;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

.hero-content p {
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}


/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .certificates-hero {
    height: 35vh;
    background-position: center top;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .certificates-hero {
    height: 30vh;
    padding: 0 5%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .certificates-hero {
    height: 25vh;
    background-position: center;
  }

  .hero-overlay {
    padding: 0 6%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 360px) {
  .certificates-hero {
    height: 25vh;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }
}







.content {
    padding: 50px 80px;
  }
  
  .content h2 {
    color: #2f5dab;
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .content p {
    color: #333;
    line-height: 1.6;
    font-size: 16px;
  }
  
  /* ✅ Responsive adjustments */
@media (max-width: 1024px) {
  .content {
    padding: 40px 60px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 30px 40px;
  }

  .content h2 {
    font-size: 18px;
    text-align: center;
  }

  .content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 25px 20px;
  }

  .content h2 {
    font-size: 17px;
  }

  .content p {
    font-size: 14px;
    line-height: 1.7;
  }
}
  
  
  
  
  
  
  .intermediates-section {
    padding: 60px 40px;
    background: #f7f7f7;
  }

  .search-container {
    text-align: center;
    margin-bottom: 30px;
  }

  .search-container input {
    width: 40%;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  .card-header {
    background: #007BFF;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
  }

  .card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
  }

  .card-body {
    padding: 15px 20px;
  }

  .card-body p {
    font-size: 16px;
    line-height: 28px;
  }

  .card-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f1f1f1;
  }

  .card-footer button {
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
  }

  .info-btn {
    background: #007BFF;
    color: #fff;
  }

  .quote-btn {
    background: #000;
    color: #fff;
  }


  @media (max-width: 992px) {
    .card-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .card-grid {
      grid-template-columns: 1fr;
    }

    .search-container input {
      width: 80%;
    }
  }
  
  
  
  
  
  :root{
  --card-bg:#ffffff;
  --card-border:#e6e9ee;
  --accent:#0b6efd;
  --text:#222;
  --muted:#666;
  --radius:12px;
  --gap:28px;
}

.cards-section {
  color:var(--text);
  margin:0;
  padding:24px;
  -webkit-font-smoothing:antialiased;
}

/* Grid wrapper */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: var(--gap);
  align-items:stretch;
  max-width:1200px;
  margin: 0 auto;
}

/* Card */
.card{
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease;
}

/* Hover lift */
.card:hover{
  transform:translateY(-6px);
  box-shadow: 0 12px 34px rgba(15,23,42,0.12);
}

/* Title at top, center aligned */
.card-title{
  padding:16px 16px;
  text-align:center;
  font-size:1.05rem;
  font-weight:700;
  color: #fff;
  line-height:1.1;
  background: royalblue;
}

/* Image directly under title */
.card-image{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
  border-top-left-radius:0;
  border-top-right-radius:0;
}

/* Body content */
.card-body{
  padding:14px 16px;
  flex:1 1 auto; /* allow growing to fill vertical space */
  display:flex;
  flex-direction:column;
  gap:8px;
}

.card-item{
  margin:0;
  font-size:0.95rem;
  color:var(--text);
}

.card-item strong{ font-weight:600; }

/* smaller description */
.card-info{
  margin-top:8px;
  color:var(--muted);
  font-size:0.88rem;
  line-height:1.35;
}

/* Footer contains Get Quote */
.card-footer{
  padding:12px 16px 18px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-top:1px solid var(--card-border);
}

/* Button style */
.btn-quote{
  display:inline-block;
  text-decoration:none;
  background: forestgreen;
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
  font-size:0.95rem;
  box-shadow: 0 6px 18px rgba(11,110,253,0.18);
  transition:transform .14s ease, box-shadow .14s ease;
}

.btn-info{
  display:inline-block;
  text-decoration:none;
  background:var(--accent);
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
  font-size:0.95rem;
  box-shadow: 0 6px 18px rgba(11,110,253,0.18);
  transition:transform .14s ease, box-shadow .14s ease;
}

.btn-quote:hover{
  transform:translateY(-2px);
  box-shadow: 0 10px 26px rgba(11,110,253,0.22);
}

.btn-info:hover{
  transform:translateY(-2px);
  box-shadow: 0 10px 26px rgba(11,110,253,0.22);
}

/* Responsive: 2 columns on medium screens, 1 column on small */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .cards-grid{ grid-template-columns: 1fr; }
  .card-image{ height:180px; }
}






  .btn-quote, .btn-info {
      display: inline-block;
      margin: 5px;
      padding: 10px 15px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: bold;
  }
  .btn-info { background-color: #007bff; color: white; }
  .btn-quote { background-color: #28a745; color: white; }

  /* Popup Modal Styles */
  .modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
      z-index: 9999;
  }
  
  .modal-title{
      font-size: 1.8rem;
      color: #2f2f2f;
      margin-bottom: 8px;
  }
  .modal-content {
      background: #fff;
      border-radius: 10px;
      padding: 25px;
      width: 50%;
      box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  }
  .modal-content h2 {
      margin-bottom: 15px;
  }
  .modal-content input, .modal-content select {
      width: 100%;
      padding: 8px;
      margin-bottom: 12px;
      border-radius: 6px;
      border: 1px solid #ccc;
  }
  .modal-content button {
      background: #007bff;
      color: #fff;
      padding: 10px 15px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
  }
  .close-btn {
      float: right;
      cursor: pointer;
      font-size: 20px;
      color: #999;
  }




/* Tablets and Small Laptops (≤992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-image img {
    max-width: 400px;
    height: auto;
  }

  .infra-columns,
  .rd-cards,
  .commitment-container {
    flex-direction: column;
    align-items: center;
  }

  .infra-card,
  .rd-card,
  .commitment-left,
  .commitment-right {
    width: 100%;
    max-width: 480px;
  }
}

/* Tablets Portrait (≤768px) */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.1rem;
  }

  .infrastructure-innovation,
  .commitment-section,
  .rd-tools {
    padding: 60px 6%;
  }

  .infra-card,
  .rd-card {
    padding: 30px 25px;
  }

  .commitment-left,
  .commitment-right {
    padding: 30px 20px;
  }
}

/* Mobile Devices (≤480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .infra-card h3,
  .rd-card h3 {
    font-size: 1.1rem;
  }

  .infra-card p,
  .rd-card p,
  .commitment-right li,
  .commitment-left li {
    font-size: 0.9rem;
  }

  .infrastructure-innovation h2,
  .rd-container h2 {
    font-size: 1.8rem;
  }

  .infra-subtitle,
  .rd-intro {
    font-size: 0.9rem;
  }
}

/* Extra Small Devices (≤360px) */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
}
