/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffeee6;
    color: #333;
}
/* Link Banner */
.link-banner {
    aspect-ratio: 16 / 4; /* Maintains a 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.love-banner{
  background-image: url('../src/love-banner.png');
}
.lovecompatibility-banner{
  background-image: url('../src/lovecompatibility-banner.png');
}
.lovebyname-banner{
  background-image: url('../src/lovebyname-banner.png');
}
.lovebydob-banner{
  background-image: url('../src/lovebydob-banner.png');
}
.lovebyage-banner{
  background-image: url('../src/lovebyage-banner.png');
}
.100pclove-banner{
  background-image: url('../src/100pclove-banner.png');
}
.lovebyastrology-banner{
  background-image: url('../src/lovebyastrology-banner.png');
}
.zodiac-banner{
  background-image: url('../src/zodiac-banner.png');
}
.lovebynamedob-banner{
  background-image: url('../src/lovebynamedob-banner.png');
}
.crush-banner{
  background-image: url('../src/crush-banner.png');
}
.breakup-banner{
  background-image: url('../src/breakup-banner.png');
}
.friendship-banner{
  background-image: url('../src/friendship-banner.png');
}
relationship-banner{
  background-image: url('../src/relationship-banner.png');
}
/* Button-like Link */
.link-banner a.link-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none; /* Removes underline from the link */
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* Hover Effect for Link */
.link-banner a.link-button:hover {
    background-color: #ff1a1a;
    transform: scale(1.05); /* Slightly enlarges the button on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .link-banner a.link-button {
        bottom: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
/* Breadcrumb Styling (part of the main content) */
.breadcrumb {
    max-width: 100%; /* Full width of the content area */
    margin-bottom: 10px; /* Small gap between breadcrumb and content */
    padding: 10px 20px; /* Add padding for a better look */
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-align: left;
}

/* Breadcrumb Links */
.breadcrumb a {
    color: #ad013d;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    cursor: not-allowed;
}
/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr 300px; /* 300px for left and right sidebars, 1fr for main content */
    gap: 5px;
    padding: 0px;
    max-width: 1500px;
    margin: 90px auto;
}

/* Sidebar Left */
.sidebar-left {
    background-color: #ffeee6;
    height: auto;
    border-radius: 0px;

}

/* Sidebar Right */
.sidebar-right {
    background-color: #ffeee6;
    height: auto;
    border-radius: 0px;
 
}

/* Main Content */
.main-content {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Breadcrumb Styling (part of the main content) */
.breadcrumb {
    max-width: 100%; /* Full width of the content area */
    margin-bottom: 10px; /* Small gap between breadcrumb and content */
    padding: 10px 20px; /* Add padding for a better look */
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-align: left;
    margin-left: 10px; 
    padding-left: 0;
}

/* Breadcrumb Links */
.breadcrumb a {
    color: #ad013d;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    cursor: not-allowed;
}

h1 {
    text-align: left;
    color: #ad013d;
    margin: 10px auto;
    margin-left: 10px; 
    padding-left: 0;
}

h2 {
    text-align: left;
    color: #ad013d;
    margin: 10px auto;
    margin-left: 10px; 
    padding-left: 0;
}

h3 {
    text-align: left;
    color: #ad013d;
    margin: 10px auto;
    margin-left: 10px; 
    padding-left: 0;
}

p {
    font-size: 1rem; /* Default font size for larger screens */
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 10px 10px 10px;
}
#blog-header {
    text-align: center;
    font-size: 2.2rem; /* Default font size for larger screens */
    color: #ad013d;
    font-family: comic sans ms;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top:40px;
}

#blog-text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #343131;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
    gap: 20px; /* Consistent spacing between items */
    margin-bottom: 20px; /* Adds spacing below the grid */
}

.blog-item {
    background-color: #ffbfbf;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    display: flex; /* Optional: To align internal content */
    flex-direction: column;
    justify-content: space-between; /* Optional: Adjust spacing of content */
}

.blog-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200/628;
}

.blog-item:hover {
    transform: scale(1.05); /* Slightly enlarge the blog item when hovered */
}

.blog-item h2 {
    font-size: 1.5rem;
    color: #ad013d;
    padding: 0; /* Align with text */
    margin: 10px 0;
    margin-bottom: 10px;
    text-align: left;
}

.blog-item p {
    padding: 0;
    color: #4a4949;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines of text */
    -webkit-box-orient: vertical;
}

.blog-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f3426b;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    max-width: fit-content; /* Prevents the button from stretching to fill the grid container */
    margin: 0 auto; /* Centers the button horizontally */
}

.blog-link:hover {
    background-color: #ce0030 !important;
    color: #fff!important;
}

/* Table of Contents List */
.accordion-item {
    border-bottom: 2px solid #ad013d;
    margin-bottom: 20px;
}

/* Accordion header */
.accordion-header {
    cursor: pointer;
    padding: 12px;
    font-size: 1.1rem;
    color: #ad013d;;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
    outline: none; /* Remove default outline */
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Focus state for accessibility */
.accordion-header:focus {
    outline: 2px dashed #ad013d; /* Add outline for keyboard users */
}

/* Toggle indicator */
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: 'x'; /* Toggle between + and x when active */
}

/* Hover effect */
.accordion-header:hover {
    background-color: #ad013d;
    color: #ffffff;
}

/* Accordion content */
.accordion-content {
    display: block; /* Initially set display to block */
    max-height: 0; /* Start with zero height */
    overflow: hidden; /* Hide overflow when closed */
    background-color: #fff;
    padding: 0 15px; /* Set padding to 0 initially for smooth transition */
    border-left: 2px solid #ad013d;
    font-size: 0.95rem;
    color: #333;
    transition: max-height 0.5s ease, padding 0.5s ease; /* Smooth transitions */
}

/* When the accordion is active, reveal content */
.accordion-header.active + .accordion-content {
    max-height: 500px; /* Set a reasonable max-height (adjust based on content) */
    padding: 10px 15px; /* Add padding when open */
    overflow-y: auto; /* Add vertical scrolling for long content */
}

.accordion-item:first-of-type .accordion-header.active + .accordion-content {
    display: block;
    max-height: 500px;
    padding: 10px 15px;
}
/* Accordion Content List Styling */
.accordion-content ul {
    list-style-type: none;
    padding: 0;
}

.accordion-content li {
    cursor: pointer;
    padding: 8px 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.accordion-content li:hover {
    background-color: #e7e7e7;
}

/* Indentation for Different Heading Levels */
.H1 {
    margin-left: 0px;
}

.H2 {
    margin-left: 15px; /* Slight indentation for h3 */
}

.H3 {
    margin-left: 30px; /* More indentation for h4 */
}

.accordion-content a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
}

/* Optional: Adding hover effect for links inside the accordion */
.accordion-content a:hover {
    text-decoration: underline;
}

.blog-content {
    background-color: transparent; /* Remove background color for the extra content */
    border-radius: 12px;
    text-align: right;
    margin: 0px auto 2px auto;
    padding: 0px 10px 10px 10px;
}

.blog-content h2, .blog-content h3{ 
    text-align: left;
    color: #ad013d;
    font-family: 'Comic Sans MS';
}

.blog-content p {
    color: #000;
    font-size: 1rem;
    line-height: 1.5;
}

/* Buttons */
.blog-link {
    display: inline-block;
    font-size: 0.9rem;
    padding: 8px 12px;
    background-color: #f3426b;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.blog-link:hover {
    background-color: #de1140;
    color: #fff;
}

.blog-content-example {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fffbfb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: right;
}
.blog-content-example p{
    text-align: justify;
    border-left: 2px solid #ffeee6;
    margin-left: 5px;
}

.blog-content-example li{
    text-align: left;
    line-height: 1.8;
    margin-left: 5px;
}


.blog-content-example-title {
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ad013d;
    margin-bottom: 5px;
    margin-left: 10px;
}

.blog-content-subheading {
    text-align: left;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    margin-left: 12px;
}
        

/* Responsive Design */
@media (max-width: 1040px) {
    .sidebar-left {
        display: none; /* Hide left sidebar for medium screens */
    }

    .content-wrapper {
        grid-template-columns: 1fr 300px; /* Main content and right sidebar */
    }
}

@media (max-width: 768px) {
    .sidebar-left, .sidebar-right {
        display: none; /* Hide both sidebars */
    }

    .content-wrapper {
        grid-template-columns: 1fr; /* Only main content */
    }
    .blog-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .blog-list {
        grid-template-columns: 1fr; /* Single-column layout for very small screens */
    }

    .blog-item {
        padding: 10px; /* Reduce padding further */
    }
}
