/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #e0f2fe, #d1fae5, #bfdbfe, #c7d2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
}

main {
    flex-grow: 1; /* Pushes footer to the bottom */
}

html {
    scroll-behavior: smooth;
}

/* --- */
/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blob-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30vw, -10vh) scale(1.1);
    }
    66% {
        transform: translate(-20vw, 20vh) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-medium {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20vw, 15vh) scale(1.2);
    }
    66% {
        transform: translate(10vw, -25vh) scale(0.8);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-fast {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40vw, 10vh) scale(0.95);
    }
    66% {
        transform: translate(-30vw, -15vh) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes logoSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- */
/* Utility Classes for Animations */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-blob-slow {
    animation: blob-slow 18s infinite alternate;
}

.animate-blob-medium {
    animation: blob-medium 15s infinite alternate;
}

.animate-blob-fast {
    animation: blob-fast 12s infinite alternate;
}

.parallax-element {
    transition: transform 0.1s ease-out;
}

.logo-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.logo-spin:hover {
    animation: logoSpin 1s linear;
}

.notification-badge {
    animation: pulse 2s infinite;
}

/* --- */
/* Header Styles */

/* Banner Container */
header[role="banner"] {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

/* Responsive Height Adjustments */
@media (min-width: 768px) {
  header[role="banner"] {
    height: 85vh;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] {
    height: 80vh;
  }
}

/* Background Image */
header[role="banner"] picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  object-fit: cover;
  filter: brightness(0.9);
  z-index: 0;
}

/* Responsive Background Height */
@media (min-width: 640px) {
  header[role="banner"] picture img {
    height: 90vh;
  }
}

@media (min-width: 768px) {
  header[role="banner"] picture img {
    height: 100vh;
  min-height: 100%;
  max-height: none;
  width: 100%;
  object-position: center;
  object-fit: cover;
  aspect-ratio: 16/9;
  background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* Gradient Overlay */
header[role="banner"] .gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0) 40%, 
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Content Container */
header[role="banner"] .content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  header[role="banner"] .content-container {
    flex-direction: row;
    padding: 0 3rem;
    margin-top: 5rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] .content-container {
    padding: 0 6rem;
  }
}

/* Left Column */
header[role="banner"] .left-column {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 768px) {
  header[role="banner"] .left-column {
    width: 50%;
    text-align: left;
    margin-bottom: 0;
  }
}

/* Logo Container */
header[role="banner"] .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  header[role="banner"] .logo-container {
    justify-content: flex-start;
  }
}

/* Logo Animation */
header[role="banner"] .logo-animation {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

header[role="banner"] .logo-animation:hover {
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.8);
}

header[role="banner"] .logo-animation video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.7);
  filter: brightness(1.6);
}

/* Logo Text */
header[role="banner"] .logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

header[role="banner"] .logo-text span {
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  header[role="banner"] .logo-text span {
    font-size: 1.5rem;
  }
}

/* Separator Line */
header[role="banner"] .separator {
  width: 80%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 1rem auto;
}

@media (min-width: 768px) {
  header[role="banner"] .separator {
    margin: 1rem 0;
  }
}

/* Main Heading */
header[role="banner"] h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

header[role="banner"] h1 span {
  display: block;
}

@media (min-width: 640px) {
  header[role="banner"] h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] h1 {
    font-size: 3.75rem;
  }
}

/* Subheading */
header[role="banner"] .subheading {
  font-size: 1.125rem;
  color: rgb(165, 243, 252);
  font-weight: 500;
  margin-top: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
  header[role="banner"] .subheading {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] .subheading {
    font-size: 1.5rem;
  }
}

/* Typewriter Section */
header[role="banner"] .typewriter-section {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  min-height: 5.5rem;
  text-align: center;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  header[role="banner"] .typewriter-section {
    min-height: 5.5rem;
  }
}

@media (min-width: 768px) {
  header[role="banner"] .typewriter-section {
    text-align: left;
    padding: 0;
    min-height: 6rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] .typewriter-section {
    font-size: 1.25rem;
  }
}

/* Typewriter Text */
header[role="banner"] #typewriter-text {
  color: rgb(103, 232, 249);
  font-weight: 600;
  font-size: 1.25rem;
  vertical-align: middle;
  word-break: break-word;
  display: inline-block;
  line-height: 1.5;
}

@media (min-width: 768px) {
  header[role="banner"] #typewriter-text {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] #typewriter-text {
    font-size: 1.875rem;
  }
}

/* Typewriter Cursor */
header[role="banner"] #typewriter-cursor {
  animation: pulse 1s infinite;
  color: rgb(34, 211, 238);
  font-size: 1.25rem;
  vertical-align: middle;
  opacity: 0.75;
  display: inline-block;
}

@media (min-width: 768px) {
  header[role="banner"] #typewriter-cursor {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  header[role="banner"] #typewriter-cursor {
    font-size: 1.875rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.header-animate {
    animation: slideInDown 0.8s ease-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-circle {
    animation: rotate 3s linear infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links (Desktop) */
.nav-item-animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.nav-item-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-item-animate:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-item-animate:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-item-animate:nth-child(6) {
    animation-delay: 0.6s;
}

.nav-item-animate:nth-child(7) {
    animation-delay: 0.7s;
}

.nav-item-animate:nth-child(8) {
    animation-delay: 0.8s;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    opacity: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Desktop Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none !important;
    color: #374151 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%; /* Ensure full height for clickable area */
}

.dropdown.show-dropdown .dropdown-toggle svg,
.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.chevron-rotate {
    transition: transform 0.3s ease-in-out;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    margin-top: 8px;
 
    overflow-y: auto;
}

.dropdown.show-dropdown .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    transform: translateX(5px);
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Contact Button */
.contact-btn {
    background: transparent;
    color: #374151;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 1px solid #d1d5db;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px 0 rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-color: transparent;
}

/* --- */
/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    box-sizing: border-box;
}

.hamburger .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}



.hamburger-open .hamburger-line:nth-child(1),
.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-open .hamburger-line:nth-child(2),
.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3),
.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px); /* Adjusted for better visual alignment */
}

/* --- */
/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(85vw, 350px);
    background: white;
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-menu-header .logo img {
    height: 36px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Mobile navigation items */
.mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

/* Mobile dropdown toggle and menu */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    background: #f9fafb;
}

.mobile-chevron {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.8em;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: #f9fafb;
    transition: max-height 0.3s ease-out;
}

.mobile-dropdown-menu.active {
    max-height: 500px; /* Sufficiently large to show all content */
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 40px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    transform: translateX(5px);
}

.mobile-menu-enter {
    animation: slideInRight 0.4s ease-out;
}

/* --- */
/* Active States */
.nav-link.active-link,
.dropdown-toggle.active-link {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.contact-btn.active-link {
    border-color: transparent;
}

/* Footer Quick Links */
.footer-quick-links .active-footer-link {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white !important;
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.footer-quick-links .active-footer-link:hover {
    opacity: 0.9;
}

/* --- */
/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Glow Effect */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s;
}

.hover-glow:hover:before {
    left: 100%;
}

/* --- */
/* Carousel Styles */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* --- */
/* Chatbot / Web Analysis Report Styles */
.web-analysis-report h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1a202c; /* gray-900 */
}

.web-analysis-report .url-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.web-analysis-report .url-info a {
    color: #2563eb; /* blue-600 */
    text-decoration: underline;
}

.web-analysis-report h4 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2d3748; /* gray-800 */
}

.web-analysis-report p {
    margin-bottom: 0.5rem;
    color: #4a5568; /* gray-700 */
}

.web-analysis-report strong {
    font-weight: 600;
}

.web-analysis-report .seo-grid,
.web-analysis-report .tech-grid,
.web-analysis-report .content-grid,
.web-analysis-report .social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568; /* gray-700 */
}

.web-analysis-report .recommendations {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0; /* gray-200 */
}

.web-analysis-report .recommendations-list {
    color: #2d3748; /* gray-800 */
}

.web-analysis-report .ask-more {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: #e0f2f7; /* light blue */
    border-left: 4px solid #00bcd4; /* cyan-500 */
    border-radius: 0.25rem;
    font-style: italic;
    color: #2d3748;
}

/* --- */
/* Footer Styles */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.video-logo-container video {
    transform: scale(1.6);
}

.video-logo-container {
    overflow: hidden;
}

.footer-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    box-sizing: border-box;
}

/* --- */
/* Blog Specific Styles */
.blog-page-container {
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-top: 6rem;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .blog-page-container {
        gap: 3rem;
    }
    .main-content-area {
        flex: 3;
    }
    .sidebar-area {
        flex: 1;
        width: 300px;
    }
}

.main-content-area {
    flex-grow: 1;
}

.sidebar-area {
    flex-shrink: 0;
    width: 100%;
}

.featured-post {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .featured-post {
        flex-direction: row;
    }
    .featured-post-image {
        flex-shrink: 0;
        width: 100%;
    }
    .featured-post-content {
        flex-grow: 1;
    }
}

@media (min-width: 1024px) {
    .featured-post-image {
        width: 40%;
    }
    .featured-post-content {
        width: 60%;
    }
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.post-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.widget-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-post-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.single-post-page img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.single-post-page .content-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* --- */
/* Circular Progress Bar (Score) */
.progress-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--score-color) var(--progress, 0deg), #e0e0e0 var(--progress, 0deg) 360deg);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
    transition: background 0.5s ease-in-out;
}

.progress-circle-inner {
    background-color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

#score-value {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.score-circle-container .text-lg {
    font-size: 1.25rem;
}

/* --- */
/* Donut Chart */
.donut-chart-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: auto;
}

/* --- */
/* Custom Scrollbars */
.record-content-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.record-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.record-content-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.record-content-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.record-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- */
/* Loading Spinner */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* --- */
/* Status Indicators */
.status-icon-small {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.valid-yes-icon {
    color: #10b981;
} /* Tailwind green-600 */
.valid-no-icon {
    color: #ef4444;
} /* Tailwind red-500 */
.valid-warn-icon {
    color: #f59e0b;
} /* Tailwind yellow-600 */

.valid-yes {
    color: #10b981;
    font-weight: bold;
}

.valid-no {
    color: #ef4444;
    font-weight: bold;
}

.valid-warn {
    color: #f59e0b;
    font-weight: bold;
}

/* --- */
/* Risk Assessment */
.risk-assessment {
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.risk-assessment-Low {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.risk-assessment-Medium {
    background-color: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.risk-assessment-High {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.risk-assessment-Info {
    background-color: #e0f2fe;
    border-color: #93c5fd;
    color: #1e40af;
}

.risk-level-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.risk-level-HighIconOnly {
    color: #ef4444;
}

/* --- */
/* Policy Tags */
.policy-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.policy_reject {
    background-color: #fee2e2;
    color: #991b1b;
}

.policy_quarantine {
    background-color: #fffbeb;
    color: #92400e;
}

.policy_none,
.policy_invalid,
.policy_not-found,
.policy_na {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* --- */
/* Raw Record Box & Copy Button */
.raw-record-box {
    position: relative;
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

.raw-record-box pre {
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #d1d5db;
    color: #4b5563;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.copy-button:hover {
    background-color: #9ca3af;
}

.copy-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.copy-button-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* --- */
/* Expand Button & Parsed Details */
.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #e5e7eb;
    color: #4b5563;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    margin-top: 0.5rem;
}

.expand-button:hover {
    background-color: #d1d5db;
}

.expand-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.parsed-details {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.parsed-details h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #374151;
}

.tag-list dt {
    font-weight: bold;
    color: #1f2937;
    margin-top: 0.5rem;
}

.tag-list dd {
    margin-left: 1rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.tag-value {
    font-weight: normal;
    color: #3b82f6;
}

.warning-text {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.no-records {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* --- */
/* SPF Specific Styles */
.spf-pass {
    color: #10b981;
}

.spf-fail {
    color: #dc2626;
}

.spf-soft-fail {
    color: #f59e0b;
}

.spf-neutral {
    color: #6b7280;
}

.term-qualifier {
    font-weight: bold;
    margin-right: 0.25rem;
}

.term-value {
    font-family: monospace;
    background-color: #e0e7ff;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #4338ca;
}

.dns-lookup-info {
    background-color: #e0f2fe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
}

.lookup-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.lookup-icon-small {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.lookup-pending {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.lookup-exceeded {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.lookup-ok {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.lookup-warning-text {
    color: #dc2626;
    margin-top: 0.5rem;
    display: block;
}

.lookup-info-text {
    color: #4b5563;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.calculating-lookups {
    font-style: italic;
    margin-left: 0.5rem;
}

.recalculate-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #3b82f6;
    transition: color 0.2s;
}

.recalculate-button:hover {
    color: #2563eb;
}

.recalculate-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.recalculate-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.recalculate-icon-spin {
    animation: spin 1s linear infinite;
}

/* --- */
/* DKIM Specific Styles */
.dkim-found-summary {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.dkim-found-but-invalid {
    background-color: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.dkim-not-found {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.dkim-not-found-detail {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.dkim-invalid-item {
    border-left: 4px solid #f87171;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.dkim-key-secure {
    color: #10b981;
}

.dkim-key-okay {
    color: #f59e0b;
}

.dkim-key-insecure {
    color: #dc2626;
}

.dkim-public-key {
    font-family: monospace;
    word-break: break-all;
}

.invalid-tag {
    background-color: #fecaca;
    color: #b91c1c;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.valid-tag {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.dkim-explanation {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

.dkim-explanation .status-icon-small {
    margin-right: 0.5rem;
    color: #6b7280;
}

/* --- */
/* MX Table Styles */
.mx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.mx-table th,
.mx-table td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.mx-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
}

.mx-table td {
    font-size: 0.875rem;
    color: #1f2937;
    font-family: monospace;
}

.mx-table tr:hover {
    background-color: #f9fafb;
}

.mx-table a {
    color: #3b82f6;
    text-decoration: none;
}

.mx-table a:hover {
    text-decoration: underline;
}

/* --- */
/* Recommendation List */
.recommendation-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.recommendation-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.recommendation-list li .status-icon-small {
    margin-right: 0.5rem;
}

/* --- */
/* General Layout Styles */
.page-container {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .page-container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding: 2rem;
    }
}

/* Specific styles for the header div that contains the h1 and button */
.flex.flex-wrap.items-center.justify-between.mb-6.pb-4.border-b.border-gray-200 {
    flex-direction: row;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#rescan-btn .fas {
    margin-right: 0.5rem;
}




