/* --- Reset and Basic Styles (REQUIRED - keep these at the TOP) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "IBM Plex Sans",sans-serif; /* Use the correct font! */
    background-color: #ffffff;
    color: #1d1d1d;
    line-height: 1.6;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: #1e40af; /* Ahrefs Blue */
    transition: color 0.2s ease;
}

a:hover {
    color: #2563eb; /* Lighter Blue on Hover */
}

/* --- Header Styles --- */
/* Header container */

/* Full-width blue background */
.hero-section {
    background-color: #054ada; /* Ahrefs' blue */
    color: white;
    text-align: center;
    padding: 70px 20px;
    position: relative;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

/* Mobile Menu (Hidden by Default) */
.menu-toggle {
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 5px;
        width: 200px;
        text-align: left;
    }

    .nav-menu.active {
        display: flex;
        z-index: 2;
    }

    .nav-menu li {
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px; /* Adjust based on menu height */
    }
    

    .nav-menu a {
        display: block;
        padding: 10px;
    }
}


.logo {
    font-size: 21px;
    font-weight: bold;
    color: #ff6900;
}

.logo1 {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to right, #6199fc, #a3c0ff); /* Ahrefs gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Text Styling */
.hero-title {
    font-size: 50px;
    font-weight: bold;
    margin: 20px 0;
    padding: 0 250px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 25px;
}


/* Mobile Menu Button */
.menu-toggle {
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {

    .hero-title {
        font-size: 38px;
        line-height: 1.3;
        margin: 20px 0;
        padding: 0;

    }

    .hero-subtitle {
        font-size: 14px;
    }

    .logo {
        font-size: 19px;
        font-weight: bold;
    }

    .logo1 {
        font-size: 18px;
        font-weight: bold;
        background: linear-gradient(to right, #6199fc, #a3c0ff); /* Ahrefs gradient */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/*header {
    background: linear-gradient(90deg, #1e40af, #4f46e5); /* Ahrefs dark blue */
    /*padding: 0.75rem 1.5rem; /* Balanced padding */
    /*display: flex;
    align-items: center;
    justify-content: start;
    height: 60px;
}

/* Logo container */
/*.logo {
    display: flex;
    align-items: center;
}

/* Logo image */
/*.logo img {
    height: 40px; /* Adjust size as needed */
    /*width: auto; /* Maintain aspect ratio */
    /*max-width: 100%;
}

/* Ensure link styles do not interfere */
/*.logo a {
    display: inline-block;
}

/*header {
    padding: 1rem;
    text-align: center; 
    border-bottom: 1px solid #e5e7eb; /* Subtle border like Ahrefs 
    /* Removed list-style: none; here.  It's handled more specifically below. 
}

.logo {
     font-size:1.3rem;  /*Increase the font-size
     font-weight:600;
}

.brand-0{
    color: #054ada;
} --- */

/*@media (max-width: 768px) {
    .logo {
        font-size:1rem;  /*Increase the font-size*/
        /*font-weight:400;
    }
}

/* --- Hero Section Styles (top-section) --- */
/*.top-section {
    background-color: #1e40af; /* Ahrefs blue */
    /*color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative; /* For the bookmark */
    /*margin-top: -20px;
}

.top-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
     font-family: 'Inter', sans-serif;
}

.top-section p {
    font-size: 1.25rem;
    line-height: 1.4;
     font-family: 'Inter', sans-serif;
}*/

.bookmark {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;  /* Reduced width */
    height: 35px; /* Increased height */
    background-color: #ea580c;
    z-index: 1;
    clip-path: polygon(
        0 0,     /* Top-left */
        100% 0,   /* Top-right */
        100% 100%,/* Bottom-right */
        50% 80%,  /* Adjusted for better proportion */
        0 100%    /* Bottom-left */
    );
}

.h2index {
    color: #003eaa !important;
}


/* --- Main Content Styles --- */
main {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.blog-post {
    padding: 1rem 0;
}

.post-category {
    display: inline-block;
    font-size: 14px;
    color: #000000;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.post-category h2 {
    color: #003eaa;
}

.blog-post h2 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 42px;
}

.blog-post h2 a {
    color: #003eaa;
}

.blog-post p {
    font-size: 18px;
    line-height: 29px;
    margin-bottom: 1rem;
    color: #4b5563;
}

.post-meta {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #6b7280;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.375rem;
    flex-shrink: 0;
     object-fit: cover;
}

.post-meta div {
    display: flex;
    flex-direction: column;
}

.post-meta span {
      margin-right: 0;
    line-height: 1.2;
}
.post-meta span:first-child{
	font-weight: 600;
}

/* --- Article Page Styles --- */

.article-header {
    padding: 3rem 0;
}

.article-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: #fff; /* Keep title white */
    font-family: "IBM Plex Sans",sans-serif;
}

.article-header .post-category {
    color: rgba(255, 255, 255, 0.8); /* Lighter category text */
    margin-bottom: 0.5rem;
    font-family: "IBM Plex Sans",sans-serif;
}
 .article-header .post-meta{
    color: rgba(255,255,255,0.8);
    justify-content: center;
    font-family: "IBM Plex Sans",sans-serif;

}



.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: "IBM Plex Sans",sans-serif;
}

.article-content h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: "IBM Plex Sans",sans-serif;
}

.article-content h4,
.article-content h5,
.article-content h6 {
    font-size: 1.125rem; /* Smaller for h4-h6 */
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: "IBM Plex Sans",sans-serif;
}
/* Basic image styling (adjust as needed) */
.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto; /* Center images and add margin */
}

/* --- Key Takeaways Section --- */
.key-takeaways {
    background-color: #f8f8f8;
    border-left: 4px solid #f97316; /* Orange accent */
    padding: 1rem;
    margin-bottom: 2rem;
}

.key-takeaways h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: "IBM Plex Sans",sans-serif;
}

.key-takeaways ul {
    list-style: disc; /* Use standard bullets */
    margin-left: 1.5rem; /* Consistent indent with other content */
    margin-bottom: 0;
    padding-left: 0;    /* Remove default UL padding */
}

.key-takeaways li {
    margin-bottom: 0.5rem; /* Space between items */
     padding: 2px 0 0 0px;
}

/* --- Consistent List Styling --- */
/* Target ALL lists within the article content */
.article-content ul,
.article-content ol {
    margin-left: 1.5rem;  /* Consistent indent */
    margin-bottom: 1rem;
    padding-left: 1rem; /* Add padding-left here */
}

.article-content li {
    margin-bottom: 0.5rem;
    position: relative; /* For the ::before pseudo-element */
    /* padding-left: 1.5rem;  Removed padding-left from here */
}

/*  Style for Default Bullet Points */
.article-content ul li::before {
    /*content: "";          /* Use the bullet character */
    display: inline-block;
    width: 5px;        /* Width of the bullet */
    height: 5px;       /* Height of the bullet */
    border-radius: 50%;
    background-color: #333;    /* Bullet color */
    margin-right: 0.5rem;    /* Space between bullet and text */
    position: absolute;       /* Position it absolutely */
    left: 0;              /* Align to the left edge of the li */
    top: 0.7em;           /* Adjust vertical alignment */
}

/* Remove padding from Key Takeway list */
.key-takeaways ul {
     margin-left: 1.5rem;
    padding-left: 1.2rem;  /*remove default padding from key-takeways*/

}
/* Improved Table Styling */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #fff;
    /* Outer border for the table */
    border: 1px solid #e1e4e8;
  }
  
  .article-content th,
  .article-content td {
    padding: 12px 16px;
    text-align: left;
    /* Vertical divider: right border on each cell */
    border-right: 1px solid #e1e4e8;
    /* Horizontal divider: bottom border on each cell */
    border-bottom: 1px solid #e1e4e8;
  }
  
  /* Remove the right border on the last cell of every row */
  .article-content tr > th:last-child,
  .article-content tr > td:last-child {
    border-right: none;
  }
  
  /* Header row styling: dark blue background with white text and a thicker bottom border */
  .article-content thead th {
    background-color: #0d2c54;
    color: #fff;
    /* Override cell bottom border with a 2px bottom border */
    border-bottom: 2px solid #e1e4e8;
  }
  
  /* Remove the bottom border for the last row in tbody for a neat finish */
  .article-content tbody tr:last-child > td {
    border-bottom: none;
  }
  
  /* Zebra striping for better readability: apply background on even rows */
  .article-content tbody tr:nth-child(even) > td {
    background-color: #f5f5f5;
  }
  

  

/* Style for Blockquote */
.article-content blockquote {
    font-style: italic;
    border-left: 4px solid #ccc;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    color: #555;
}
/* Style for figcaption */
.article-content figcaption {
	font-size: 0.95rem;
	color: #666;
	font-style: italic;
	text-align: center;
	margin-top: 0.5rem;
}

/* Embedded Video Styling */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- Footer Styles --- */
/* --- Existing Footer Styles (Keep these, but we'll add to them) --- */

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    background-color: #054ada; /* Add a background color */
}

.footer-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- New Footer Styles --- */

.footer-columns {
    display: flex;        /* Use flexbox for columns */
    justify-content: space-between; /* Evenly distribute columns */
    flex-wrap: wrap;     /* Allow wrapping on smaller screens */
    margin-bottom: 1rem; /* Space between columns and copyright */
}

.footer-column {
    flex: 1 1 200px; /* Each column takes up at least 200px */
    margin-bottom: 1rem; /* Space between columns on smaller screens */
    text-align: left;    /* Left-align text within columns */
}
.footer-column:last-child{
text-align:center;
}

.footer-column-title {
    font-size: 1.125rem; /* Slightly larger title */
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff; /* White color for titles */
}

.footer-links {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.25rem; /* Smaller space between links */
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-block; /* Allows for padding/margin */
    padding: 0.25rem 0;   /* Vertical padding */
}

.footer-links a:hover {
    text-decoration: underline;
     color: #fff;
}


.copyright {
    color: rgba(255,255,255,0.7); /* Light gray for copyright */
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column; /* Stack columns vertically on small screens */
    }
    .footer-column {
        text-align: center; /* Center text on small screens */
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }

    
    main {
        width: 90%;
    }
    .blog-post p {
    font-size: 18px;
	}
    .blog-post{
        text-align: center;
    }
}


/* Unordered list styling */
/* Custom unordered list */
.uniquee-ul {
    list-style: none; /* Remove default bullets */
    margin: 0;
    padding: 0;
    
}

.uniquee-ul li {
position: relative;
padding-left: 1rem; /* Space for custom bullet */

}

.uniquee-ul li::before {
content: "•";  /* Custom bullet */
position: absolute;
left: 0;
top: 0;

line-height: 1;
}

/* Custom ordered list */
.uniquee-ol {
list-style: decimal;
margin: 0;
padding-left: 1.5em;

}


/*  General Styles (adjust to your site's design) */
aside {
    background-color: #dce8ff; /* Light gray background */
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-top: 2rem; /* Space from the main content */
    border-radius: 8px; /* Rounded corners */
  }
  
  aside h2 {
    font-size: 1.25rem; /* Slightly larger font size for the heading */
    margin-bottom: 1rem; /* Space below the heading */
    color: #333; /* Dark gray text color */
  }
  
  aside ul {
    list-style: none; /* Remove default list bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
  }
  
  aside li {
    margin-bottom: 0.75rem; /* Space between list items */
  }
  
  aside a {
    color: #007bff; /* Link color (adjust to your theme) */
    text-decoration: none; /* Remove underline by default */
    display: block; /* Make the link a block-level element */
    padding: 0.5rem 0; /* Add some vertical padding */
    transition: color 0.2s ease; /* Smooth color transition on hover */
  }
  
  aside a:hover,
  aside a:focus {
    color: #0056b3; /* Darker link color on hover/focus */
    text-decoration: underline; /* Add underline on hover/focus */
  }
  
  /* Visually Hidden Text (IMPORTANT for accessibility) */
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important; /* Prevent line breaks */
    border: 0 !important;
  }
/* --- (Paste Ahrefs CSS BELOW this line) --- */