/* GLOBAL */

body {
    margin: 0;
    padding: 0;
    background: #f4f9ff;
    font-family: Arial, sans-serif;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo {
    height: 40px;
}

/* HEADER */

header {
    width: 100%;
    padding: 18px 40px;          /* added horizontal padding */
    background: white;
    box-shadow: 0 2px 18px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}


.logo-box {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;            /* this sets real header height */
    object-fit: contain;
    transform: scale(1.8);   /* visually increases logo size */
    transform-origin: left center;
}



/* PAGE LAYOUT */

.container {
    width: 92%;
    max-width: 1300px;
    margin: 40px auto;
    display: flex;
    gap: 30px;
}

/* HERO SLIDER LEFT */

.hero {
    width: 70%;
    height: 430px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide-text {
    position: absolute;
    bottom: 20px; left: 20px;
    width: 80%;
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 34px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* SLIDER BUTTONS */

.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.slider-buttons button {
    border: none;
    background: rgba(255, 255, 255, 0.75);
    font-size: 30px;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 50%;
}

/* RIGHT SIDEBAR */

.sidebar {
    width: 30%;
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.items {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 5px;
}

.item {
    display: block;
    background: white;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.sidebar .item-title {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

.sidebar .item-title:hover {
    color: #355dff;
}


.item-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.section-block {
    width: 90%;
    max-width: 1300px;
    margin: 60px auto 40px;   /* spacing above & below sections */
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;     /* space between heading and cards */
    margin-top: 10px;        /* space above heading so it doesn't touch previous box */
}

.grid {
    margin-top: 10px;
}

.hero * {
    pointer-events: auto;
}


.slide {
    cursor: pointer;
}
.hero {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* make it clickable */
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2; /* text above slide */
}

.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 3; /* buttons above everything */
}



/* 3-column card grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 10px;
}

.card h3 {
    margin: 10px 0;
}

/* LISTINGS */

.list-card {
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.list-card img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

/* FOOTER */

footer {
    width: 100%;
    background: #10151d;
    color: white;
    padding: 50px 0 20px;
    margin-top: 40px;
}


.footer-container {
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;          /* CENTER the footer content */
    padding: 0 40px;         /* add horizontal padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ensures tops align properly */
}

.footer-col h4 {
    margin-bottom: 10px;
}

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

.footer-col a {
    color: #d4e0ff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;  /* center copyright text */
    margin-top: 25px;
    font-size: 13px;
    opacity: 0.7;
}


.card a {
    display: block;
}


.back-home {
    display: inline-block;
    margin-top: 40px;
    color: #3357ff;
    font-weight: bold;
    text-decoration: none;
}

/* LISTING PAGE HEADINGS */

.listing-hero {
    background: #f4f9ff;
    padding: 40px 0 40px;
    margin-bottom: 20px;
}

.listing-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}
  
.listing-subtitle {
    font-size: 18px;
    max-width: 600px;
    color: #444;
}

.listing-container {
    margin-bottom: 80px;
}
  
  /* TOOL LISTING CARDS */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
  
.tool-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
}
  
.tool-rank {
    font-size: 32px;
    font-weight: bold;
    color: #4a5cff;
}
  
.tool-main {
    display: flex;
    gap: 20px;
    flex: 1;
}
  
.tool-logo {
    width: 60px;
    height: 60px;
    background: #eef1ff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    color: #3a4aff;
}
  
.tool-info h3 {
    margin: 0;
}
  
.tool-rating {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}
  
.rating-score {
    font-weight: bold;
}
  
.rating-tag {
    background: #eef1ff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #3a4aff;
}
  
.tool-desc {
    font-size: 15px;
    margin-bottom: 10px;
}
  
.tool-link {
    background: #355dff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.tool-link:hover {
    background: #2d3ad6;
}

.tool-details {
    font-size: 14px;
    color: #355dff;
    text-decoration: none;
}
  
.tool-details:hover {
    text-decoration: underline;
}

.tool-cta {
    display: flex;
    flex-direction: column;   /* Stack vertically */
    align-items: center;    /* Align to right side */
    justify-content: center;  /* Vertically centered within card */
    gap: 8px;                 /* Space between button + text */
    min-width: 180px;         /* Prevent layout squeeze */
}

/* FINAL SLIDER FIX — OVERRIDE EVERYTHING ABOVE */

.hero {
    position: relative;
}

#slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;          /* above slides */
    display: block;
}

/* Slides should NOT block clicks */
.slide {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Text also must not block clicks */
.slide-text {
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Buttons stay on top and clickable */
.slider-buttons {
    z-index: 10 !important;
}

html, body {
    overflow-x: hidden;
}

.list-card,
.card,
.hero,
.slide,
.sidebar,
.container,
.grid {
    max-width: 100%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* COMMENTS SECTION */
.comments-box {
    background: white;
    padding: 35px;
    margin-top: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

.comments-box h3 {
    margin-bottom: 20px;
    font-size: 26px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.comment-form button {
    width: fit-content;
    padding: 10px 18px;
    background: #355dff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
}
.comment-form button:hover {
    background: #2d3ad6;
}

.comment-item {
    background: #f8faff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 12px;
}

.comment-item strong {
    color: #111;
}

.comment-delete {
    cursor: pointer;
    color: red;
    font-size: 13px;
    float: right;
}

/* -------------------------
   MODERN BLOG PAGE STYLING
--------------------------*/

.blog-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
}

.blog-header {
    margin-bottom: 25px;
}

.blog-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #0d1a26;
}

.blog-date {
    color: #697386;
    font-size: 15px;
    margin-bottom: 25px;
}

.blog-cover {
    width: 100%;
    height: 230px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6785ff, #3a1aff);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-content {
    background: white;
    padding: 40px;
    border-radius: 18px;
    font-size: 18px;
    line-height: 1.7;
    color: #0d1a26;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
}

.blog-content h2 {
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
}

.blog-content h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 22px;
}

.blog-content ul {
    padding-left: 25px;
    margin-top: 10px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* Highlight boxes inside blogs */
.blog-highlight {
    background: #f1f4ff;
    padding: 18px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #355dff;
    font-size: 17px;
}

/* Links inside blog */
.blog-content a {
    color: #355dff;
    font-weight: bold;
    text-decoration: none;
}
.blog-content a:hover {
    text-decoration: underline;
}
.blog-cover {
    background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786");
    background-size: cover;
    background-position: center;
}
