    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      padding: 1rem;
      background: #eaf4fc;
      color: #333;
    }
    h1, h2, h3 {
      color: #005f73;
      text-align: center;
    }
    
    /* Responsive header image */
    .header-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
    
    .container {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }
    .card {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      padding: 1rem;
      flex: 1 1 280px;
      max-width: 350px;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }
    .card h3 {
      background-color: #d0f0f7;
      padding: 0.5rem;
      border-radius: 6px;
      margin: -1rem -1rem 1rem -1rem;
      color: #005f73;
      font-weight: 600;
      text-align: center;
    }
    .card.current {
      min-height: 160px;
      position: relative;
    }
    .card img {
      width: 60px;
      height: auto;
      margin-bottom: 0.5rem;
    }
    .row {
      display: flex;
      gap: 1rem;
      flex: 1;
    }
    .left {
      flex: 1;
      text-align: center;
    }
    .right {
      flex: 1;
      font-size: 0.95rem;
      color: #444;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .temp-max {
      background-color: #f8d7da;
      padding: 0.2rem 0.5rem;
      border-radius: 5px;
      display: inline-block;
      font-weight: bold;
      color: #333;
    }
    .temp-min {
      background-color: #d0e8ff;
      padding: 0.2rem 0.5rem;
      border-radius: 5px;
      display: inline-block;
      font-weight: bold;
      color: #333;
    }
    .status {
      margin-top: 0.5rem;
      font-style: italic;
      color: #555;
      background-color: #d9fdd3;
      padding: 0.3rem;
      border-radius: 5px;
      display: inline-block;
    }
    .status.no-style {
      background-color: transparent;
      padding: 0;
    }
    .refresh-indicator {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #4caf50;
      color: white;
      padding: 3px 6px;
      border-radius: 50%;
      font-size: 10px;
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 10;
    }
    .refresh-indicator.show {
      opacity: 1;
    }
    .refresh-indicator.error {
      background-color: #f44336;
    }
    .current-data {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .current-data div {
      font-size: 0.95rem;
      color: #444;
    }
    .marquee-container {
      overflow: hidden;
      white-space: nowrap;
      box-sizing: border-box;
      border-top: 1px solid #eee;
      padding-top: 1rem;
      margin-top: 1rem;
    }
    .weather-marquee {
      display: inline-block;
      animation: marquee 15s linear infinite;
      font-style: italic;
      font-size: 0.9rem;
    }
    @keyframes marquee {
      0% { transform: translate(100%, 0); }
      100% { transform: translate(-100%, 0); }
    }
    /* New styles for a "second plan" look */
    .card.current {
      background: #f0f7ff;
      border: 1px solid #d0e8ff;
      box-shadow: none;
      min-height: auto;
    }
    .card.current h3 {
      background-color: #e3f2fd;
      color: #007bb6;
      padding: 0.3rem 0.5rem;
      border-radius: 5px;
      font-size: 0.9rem;
      margin-top: -0.5rem;
    }
    #current-weather-data {
      font-size: 0.85rem;
      color: #555;
    }
    .current-data strong {
      font-weight: 500;
      color: #333;
    }
    .current-temp {
      font-size: 0.81rem;
      font-weight: bold;
      color: #005f73;
      text-align: center;
      margin: 0.5rem 0;
    }
    /* New classes for dynamic content */
    .current-date {
        text-align: center;
        margin-bottom: 0.5rem;
        font-style: italic;
    }
    .current-metrics {
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    .current-metric-pair {
        display: flex;
        justify-content: space-between;
    }
    .loading-text {
        text-align: center;
        color: #666;
        font-style: italic;
    }
    
    /* Styles for the summary box */
    .weather-summary {
      background: #f0f0f5;
      border: 2px solid #e6ecff;
      border-radius: 12px;
      padding: .5rem .7rem;
      margin: 1.5rem auto;
      max-width: 600px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    
    .weather-summary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      animation: shimmer 3s infinite;
    }
    
    @keyframes shimmer {
      0% { left: -100%; }
      100% { left: 100%; }
    }
    
    .weather-summary .summary-icon {
      font-size: 1.2em;
      margin-right: 0.5rem;
      color: #f57c00;
    }
    
    .weather-summary .summary-text {
      font-size: 1.05rem;
      font-weight: 600;
      color: #565db8;
      line-height: 1.4;
      position: relative;
      z-index: 1;
    }
    
    .weather-summary .summary-subtitle {
      font-size: 0.85rem;
      color: #8d7053;
      margin-top: 0.3rem;
      font-style: italic;
      position: relative;
      z-index: 1;
    }

    .update-info {
      font-family: system-ui, sans-serif;
      font-size: .72rem;
      color: #333;
      padding: .15rem .25rem;
      margin: 1rem auto;
      border-radius: 4px;
      width: fit-content;
      text-align: center;
    }

    .note {
      margin: 0;
    }

    .update-date {
      font-weight: 500;
      color: #a18aff;
      display: block;
    }

    /* FIXED: Synoptic discussion box - now full width and responsive */
    .synoptic-discussion-container {
      background: #fdfdfd;
      border: 1px solid #e1e8f0;
      border-radius: 10px;
      padding: 1.5rem;
      margin: 2rem 0; /* Changed from 'auto' to '0' for full width */
      /* width: 100%; Full width */
      max-width: none; /* Removed max-width constraint */
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      line-height: 1.6;
      color: #4a4a4a;
      /* Override card styles when used together */
      display: block; /* Override flex from .card */
      flex: none; /* Override flex from .card */
      box-sizing: border-box;
    }
    
    /* When synoptic-discussion-container is used with .card class, override card constraints */
    .synoptic-discussion-container.card {
      max-width: none; /* Remove card max-width */
      flex: none; /* Remove card flex behavior */
      /* width: 50%;  Ensure half  width */
      width: clamp(300px, 50%, 600px);

      margin: 9px auto; /* 20px top & bottom, auto left & right for centering */
}

    .synoptic-discussion-container h2 {
      text-align: center;
      color: #004d66;
      font-size: 1.08rem;
      margin-top: 0;
      margin-bottom: 1rem;
      border-bottom: 2px solid #005f73;
      padding-bottom: 0.5rem;
    }
    .synoptic-discussion-container p {
      text-align: justify;
      margin-bottom: 1rem;
      font-size: .81rem;
    }
    .synoptic-discussion-container p:last-of-type {
      margin-bottom: 0;
    }
    .synoptic-discussion-container ul {
      list-style-type: none;
      padding-left: 0;
      text-align: center;
      font-style: italic;
      color: #666;
      margin-top: 1.5rem;
    }
    .synoptic-discussion-container ul li {
      display: inline-block;
      margin: 0 0.5rem;
    }

    /* RESPONSIVE STYLES */
    
    /* Mobile phones (up to 480px) */
    @media (max-width: 480px) {
      body {
        padding: 0.5rem;
        font-size: 14px;
      }
      
      h1 {
        font-size: 1.5rem;
        margin: 0.5rem 0;
      }
      
      h2 {
        font-size: 1.3rem;
        margin: 1rem 0 0.5rem 0;
      }
      
      .container {
        gap: 0.75rem;
      }
      
      .card {
        flex: 1 1 100%;
        max-width: none;
        padding: 0.75rem;
        margin: 0;
      }
      
      .card h3 {
        font-size: 0.9rem;
        padding: 0.4rem;
        margin: -0.75rem -0.75rem 0.75rem -0.75rem;
      }
      
      .card.current h3 {
        font-size: 0.8rem;
        padding: 0.25rem 0.4rem;
        margin-top: -0.4rem;
      }
      
      .row {
        flex-direction: column;
        gap: 0.5rem;
      }
      
      .left, .right {
        flex: none;
      }
      
      .right {
        font-size: 0.85rem;
        text-align: left;
      }
      
      .card img {
        width: 50px;
      }
      
      .temp-max, .temp-min {
        font-size: 0.85rem;
        padding: 0.15rem 0.4rem;
      }
      
      .status {
        font-size: 0.8rem;
        padding: 0.25rem;
        margin-top: 0.3rem;
      }
      
      .current-metric-pair {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.8rem;
      }
      
      .current-temp {
        font-size: 1.1rem;
        margin: 0.3rem 0;
      }
      
      .current-date {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
      }
      
      .weather-summary {
        margin: 1rem auto;
        padding: 0.4rem 0.5rem;
        max-width: 95%;
      }
      
      .weather-summary .summary-text {
        font-size: 0.9rem;
      }
      
      .weather-summary .summary-subtitle {
        font-size: 0.75rem;
      }
      
      .marquee-container {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
      }
      
      .weather-marquee {
        font-size: 0.75rem;
      }
      
      .update-info {
        font-size: 0.65rem;
        max-width: 95%;
        padding: 0.1rem 0.2rem;
      }

      /* Mobile responsive for synoptic discussion */
      .synoptic-discussion-container {
        padding: 1rem;
        font-size: 0.9rem;
        margin: 1rem 0;
      }
      .synoptic-discussion-container h2 {
        font-size: 1.2rem;
      }
      .synoptic-discussion-container p {
        font-size: 0.75rem;
      }
    }


    /* Small tablets (481px - 768px) */
    @media (min-width: 481px) and (max-width: 768px) {
      body {
        padding: 0.75rem;
      }
      
      h1 {
        font-size: 1.8rem;
      }
      
      h2 {
        font-size: 1.5rem;
      }
      
      .container {
        gap: 0.875rem;
      }
      
      .card {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: none;
        min-width: 280px;
      }
      
      .weather-summary {
        max-width: 90%;
      }
      
      .current-metric-pair {
        flex-direction: row;
        justify-content: space-between;
      }
      
      .current-metric-pair span {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
      }
      
      /* Tablet responsive for synoptic discussion */
      .synoptic-discussion-container {
        margin: 1.5rem 0;
        padding: 1.25rem;
      }
    }
    
    /* Large tablets (769px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
      body {
        padding: 1rem;
      }
      
      .container {
        gap: 1rem;
      }
      
      .card {
        flex: 1 1 calc(33.33% - 0.75rem);
        max-width: none;
        min-width: 280px;
      }
      
      .weather-summary {
        max-width: 80%;
      }
    }
    
    /* Desktop and large screens (1025px+) */
    @media (min-width: 1025px) {
      body {
        padding: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
      }
      
      .container {
        gap: 1.25rem;
      }
      
      .card {
        flex: 1 1 300px;
        max-width: 350px;
      }
      
      .weather-summary {
        max-width: 70%;
      }
    }
    
    /* Extra large screens (1400px+) */
    @media (min-width: 1400px) {
      body {
        max-width: 1400px;
        padding: 2rem;
      }
      
      h1 {
        font-size: 2.5rem;
      }
      
      h2 {
        font-size: 2rem;
      }
      
      .container {
        gap: 1.5rem;
      }
      
      .card {
        flex: 1 1 320px;
        max-width: 380px;
      }
    }
    
    /* Responsive text sizing */
    @media (max-width: 480px) {
      .current-data div {
        font-size: 0.8rem;
      }
      
      #current-weather-data {
        font-size: 0.75rem;
      }
      
      .right {
        font-size: 0.8rem;
      }
    }
    
    /* Ensure marquee works on all screen sizes */
    @media (max-width: 768px) {
      .marquee-container {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
      }
      
      .weather-marquee {
        animation-duration: 20s; /* Slower on mobile for better readability */
      }
    }
    
    /* Improve touch targets for mobile */
    @media (max-width: 768px) {
      .card {
        min-height: 120px;
        touch-action: manipulation;
      }
      
      .refresh-indicator {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 12px;
      }
    }
    
    /* Landscape orientation adjustments for mobile */
    @media (max-width: 768px) and (orientation: landscape) {
      .container {
        justify-content: space-around;
      }
      
      .card {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
      }
      
      .row {
        flex-direction: row;
      }
    }

       /* Scoped styles for weather widget - all selectors prefixed with .weather-widget */
        .weather-widget {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
            background: linear-gradient(135deg, #cceeff 0%, #99ccff 100%);

	    min-height: auto;
            padding: 10px;
            margin: 0;
            box-sizing: border-box;
	}

        .weather-widget *,
        .weather-widget *::before,
        .weather-widget *::after {
            box-sizing: border-box;
        }

        .weather-widget .weather-container {
            max-width: 100%;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            padding: 5px;
            backdrop-filter: blur(10px);
        }

        .weather-widget .weather-header {
            text-align: center;
            margin-bottom: 20px;
            padding: 10px;
        }

        .weather-widget .weather-header h1 {
            color: #2c3e50;
            font-size: clamp(10px, 5vw, 15px);
            margin: 0 0 8px 0;
            padding: 0;
            background: linear-gradient(45deg, #3498db, #2980b9);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
        }

        .weather-widget .weather-header p {
            color: #7f8c8d;
            font-size: clamp(9px, 3vw, 12px);
            margin: 0;
            padding: 0;
        }

        .weather-widget .weather-stats-container {
            display: flex;
            flex-direction: column;
            gap: 9px;
            width: 100%;
        }

        .weather-widget .weather-stats-section {
            background: #fff;
            border-radius: 12px;
            padding: 15px; /* 15 */
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border: 1px solid #e3e8ee;
            transition: all 0.3s ease;
            width: 100%;
        }

        .weather-widget .weather-stats-section:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

        .weather-widget .weather-section-title {
            font-size: clamp(9px, 4vw, 12px);
            font-weight: 600;
            color: #2c3e50;
            margin: 0 0 12px 0;
            padding: 0 0 8px 0;
            text-align: center;
            border-bottom: 2px solid #ecf0f1;
        }

        .weather-widget .weather-stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            margin: 0;
            border-bottom: 1px solid #f8f9fa;
            flex-wrap: wrap;
            gap: 5px;
        }

        .weather-widget .weather-stat-item:last-child {
            border-bottom: none;
        }

        .weather-widget .weather-stat-label {
            font-weight: 500;
            color: #34495e;
            font-size: clamp(9px, 3vw, 12px);
            flex: 1;
            min-width: 120px;
            margin: 0;
            padding: 0;
        }

        .weather-widget .weather-stat-value {
            font-weight: 700;
            font-size: clamp(9px, 3.5vw, 12px);
            text-align: right;
            flex-shrink: 0;
            margin: 0;
            padding: 0;
        }

        .weather-widget .weather-temp-min { color: #3498db; }
        .weather-widget .weather-temp-max { color: #e74c3c; }
        .weather-widget .weather-temp-avg { color: #95a5a6; }
        .weather-widget .weather-rainfall { color: #27ae60; }

        .weather-widget .weather-extreme-value {
            font-size: clamp(9px, 2.5vw, 12px);
            color: #7f8c8d;
            display: block;
            margin-top: 2px;
        }

        .weather-widget .weather-notes {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 6px;
            margin: 15px 0;
            border-left: 4px solid #3498db;
        }

        .weather-widget .weather-notes p {
            font-size: clamp(9px, 2.5vw, 12px);
            color: #6c757d;
            margin: 3px 0;
            padding: 0;
            line-height: 1.4;
        }

        .weather-widget .weather-footer {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 2px solid #ecf0f1;
            text-align: center;
        }

        .weather-widget .weather-contact {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .weather-widget .weather-contact img {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            max-width: 80px;
            height: auto;
        }

        .weather-widget .weather-contact-info p {
            color: #2c3e50;
            font-size: clamp(9px, 3vw, 12px);
            margin: 3px 0;
            padding: 0;
        }

        .weather-widget .weather-contact-info a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
            word-break: break-all;
        }

        .weather-widget .weather-contact-info a:hover {
            text-decoration: underline;
        }


  .weather-notes {
    text-align: center;
  }

  .weather-footer {
    text-align: center;
  }

        /* Tablet styles */
        @media (min-width: 768px) {
            .weather-widget {
                padding: 20px;
            }
            
            .weather-widget .weather-container {
                max-width: 900px;
                padding: 25px;
            }
            
            .weather-widget .weather-stats-container {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 20px;
            }
            
            .weather-widget .weather-stats-section {
                flex: 1;
                min-width: 280px;
                padding: 20px;
            }
            
            .weather-widget .weather-contact {
                flex-direction: row;
                justify-content: center;
                gap: 20px;
            }
            
            .weather-widget .weather-contact img {
                max-width: 99px;
            }
            
            .weather-widget .weather-contact-info {
                text-align: left;
            }
        }

        /* Desktop styles */
        @media (min-width: 1024px) {
            .weather-widget .weather-container {
                max-width: 1100px;
                padding: 35px;
            }
            
            .weather-widget .weather-stats-container {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
            
            .weather-widget .weather-stats-section {
                min-width: auto;
            }
        }

        /* Large desktop */
        @media (min-width: 1200px) {
            .weather-widget .weather-container {
                max-width: 1200px;
            }
        }

        /* Extra small devices */
        @media (max-width: 480px) {
            .weather-widget {
                padding: 5px;
            }
            
            .weather-widget .weather-container {
                border-radius: 10px;
                padding: 10px;
            }
            
            .weather-widget .weather-stat-item {
                flex-direction: column;
                align-items: flex-start;
                text-align: left;
            }
            
            .weather-widget .weather-stat-value {
                text-align: left;
                width: 100%;
            }
            
            .weather-widget .weather-stat-label {
                min-width: auto;
                margin-bottom: 3px;
            }
        }

        .weather-widget .weather-pulse {
            animation: weatherPulse 3s infinite;
        }

        @keyframes weatherPulse {
            0% { opacity: 1; }
            50% { opacity: 0.8; }
            100% { opacity: 1; }
        }

        .weather-widget .weather-fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: weatherFadeIn 0.8s ease forwards;
        }

        @keyframes weatherFadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
