@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bs-primary: #3D3BF3 !important; /* Updated primary color */
    --bs-success: #28a745;
    --bs-purple: #9A5FBF; /* Adjusted lighter purple */
    --bs-purple-bg: rgba(154, 95, 191, 0.1); /* Lighter purple background */
    --subtitle-color: #6c757d;
}

/* Global Font and Link Settings */
body {
    font-family: 'Poppins', sans-serif; /* Updated body font */
    color: #333;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Updated header font */
    font-weight: bolder;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    padding: 2% 5%;
}

/* Navigation and Header */
nav {
    position: fixed; /* Fixes the nav to the top of the viewport */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.navbar-brand {
    font-weight: bold;
}

.navbar-toggler {
    border: none;
    color: #fff !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.banner-text {
    align-content: center;
}

.banner-img img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2E2CE5 !important;
    border-color: #2E2CE5 !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
}

/* Card Styles */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card .card-title {
    font-weight: bold;
}

.card .card-text {
    font-size: 0.9rem;
}

.card-text {
    display: -webkit-box !important; /* Enable the flexbox-based structure */
    -webkit-line-clamp: 3 !important; /* Number of lines to show */
    -webkit-box-orient: vertical !important; /* Vertical orientation for the text */
    overflow: hidden !important; /* Hide overflowing content */
    text-overflow: ellipsis; /* Add "..." for overflowing text */
    white-space: normal; /* Allow line breaks */
    max-height: calc(1.2em * 3); /* Approximate height for 3 lines of text */
    line-height: 1.2em; /* Set line height for consistent spacing */
}


/* Tag Styles */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: capitalize;
}

.tag-green {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--bs-success);
}

.tag-blue {
    background-color: rgba(61, 59, 243, 0.1); /* Match updated primary color */
    color: var(--bs-primary);
}

.tag-purple {
    background-color: var(--bs-purple-bg);
    color: var(--bs-purple);
}

/* Contact Form Styling */
.contact-section {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-section .form-control {
    background-color: inherit !important;
    color: inherit;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.contact-section .form-control:focus {
    box-shadow: 0 0 8px rgba(61, 59, 243, 0.4);
    outline: none;
}

.contact-section .form-label {
    font-weight: 600;
    color: inherit !important;
}

.contact-section .btn-dark {
    padding: 0.7rem 2rem !important;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Footer Styling */
.footer {
    background-color: var(--bs-primary);
    color: #fff;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.subscribers-form input {
    width: 100%;
    border: none;
    background: none;
    border-bottom: 2px solid #cac9c9;
    outline: none;
    transition: all .6s ease-in-out;
}

.subscribers-form input:focus {
    transform: translateY(10%);
    border-bottom: 2px solid #f8f9fa;
}

.subscribers-form input::placeholder {
    color: #cac9c9;
}

.subscribers-form input:focus::placeholder {
    color: #f8f9fa;
}

.subscribers-form button {
    border: 2px solid #f8f9fa;
    color: #f8f9fa;
}

.subscribers-form button:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #d1e7ff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 0.9rem;
    transition: transform 0.3s ease-in-out;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-banner button {
    margin: 10px;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

@media(max-width: 767px) {
    .cookie-banner {
        display: block;
    }
}

