@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;700&family=Merriweather:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

/* Global Styles */
body {
    font-family: 'Geist', sans-serif;
    background-color: white;
    color: #444;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Navigation Bar */
.nav-bar {
    background-color: #1F2937;
    padding: 15px 10%;
    text-align: left;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav-bar a:hover, 
.nav-bar a.active {
    color: #facc15;
}


/* Main Headings */
h1 {
    font-size: 36px;
    font-weight: 600;
    margin-top: 40px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

/* Italicized Text for Home Page */
.italic-text {
    font-style: italic;
    font-size: 16px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Button Style for "Read Ticks" */
.read-ticks-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    background-color: black;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.read-ticks-btn:hover {
    background-color: #333;
}

/* Featured Posts */
.featured-posts {
    max-width: 70%;
    margin: auto;
    padding: 20px 0 10px 0;
    position: relative;
}

.featured-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #444;
}

.featured-posts-container {
    position: relative;
    margin-bottom: 20px;
    padding: 0 40px;
}

.featured-posts-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px;
    padding: 10px 0;
}

.featured-posts-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #444;
    z-index: 1;
    transition: all 0.2s ease-in-out;
}

.scroll-arrow:hover {
    background-color: #f5f5f5;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.featured-posts-separator {
    max-width: 70%;
    margin: 0 auto 10px auto;
    border-top: 1px solid #ddd;
}

.featured-post-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    flex: 0 0 300px; /* Fixed width for each item */
    max-width: 300px;
}

.featured-post-item:hover {
    transform: translateY(-5px);
}

.featured-post-image {
    width: 100%;
    height: 150px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-info {
    padding: 15px;
}

.featured-post-info h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.featured-post-info a {
    color: #444;
    text-decoration: none;
}

.featured-post-info a:hover {
    color: #007bff;
}

/* Blog List */
.post-list {
    max-width: 70%;
    margin: auto;
    padding: 40px 0;
}

.post-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.post-info {
    flex: 1;
    padding-right: 40px;
    text-align: left;
}

.post-info h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px;
}

.post-info .post-summary {
    font-size: 16px;
    color: #555;
}

.post-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.post-image {
    width: 180px;
    height: 180px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Post Navigation (Previous & Next) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 40px auto;
}

.post-navigation a {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.post-navigation a:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    margin-top: 50px;
    font-size: 14px;
    color: #555;
    text-align: center;
}
/* Subscription Section Adjustments */
.subscribe-container {
    text-align: center;
    margin-top: 40px;
}

.subscribe-container h3 {
    font-size: 18px;  /* Made slightly smaller */
    font-weight: normal; /* Removed bold */
    margin-bottom: 10px;
}

#subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Remove space between input and button */
}

#subscribe-form input {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #333; /* Bolder border */
    border-right: none; /* Removes border between input & button */
    border-radius: 5px 0 0 5px; /* Rounded on left only */
    width: 200px; /* Reduced width */
}

#subscribe-form button {
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    background-color: black;
    border: 2px solid black; /* Match input border */
    border-radius: 0 5px 5px 0; /* Rounded on right only */
    cursor: pointer;
}

#subscribe-form button:hover {
    background-color: #333;
}

.subscribe-form-inline {
    display: flex;
    align-items: center;
    gap: 0;
}

.subscribe-form-inline input {
    padding: 8px 10px;
    font-size: 13px;
    border: 1.5px solid #333;
    border-right: none;
    border-radius: 4px 0 0 4px;
    width: 160px;
}

.subscribe-form-inline button {
    padding: 8px 14px;
    font-size: 13px;
    color: white;
    background-color: black;
    border: 1.5px solid black;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.subscribe-form-inline button:hover {
    background-color: #333;
}
