/* Base Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #212529;
    --text-muted: #898686;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 10px;
}

/* Top Ad Banner */
.top-ad-banner {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    margin-top: 70px;
}

.ad-placeholder {
    background-color: #e9ecef;
    color: var(--text-muted);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}

.ad-placeholder.vertical-ad {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    background-color: white;
    position: sticky;
    top: 100px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Main Content Styles */
.main-container {
    margin-bottom: 20px;
}

.main-content {
    padding: 20px 0;
}

.tool-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%
    
}


.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-img {
  width: 100%;              /* Full width of parent container */
    aspect-ratio: 1 / 1;      /* Maintain a square shape */
    object-fit: cover;        /* Fill and crop image if needed */
    display: block;
    max-width: 300px;         /* Optional: prevent it from growing too large on desktops */
    margin: auto;  
}

.tool-caption {
    padding: 15px;
    text-align: center;
}

.tool-caption h5 {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Introduction Block */
.introduction-block .card {
    border: none;
}

.introduction-block .card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.introduction-block .card-text {
    margin-bottom: 1rem;
}

/* Tools List */
.tools-list .card {
    border: none;
}

.tools-list .card-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tool-name {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.tool-name:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .left-ad-column, .right-ad-column {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-ad-banner {
        margin-top: 56px;
    }
    
    .tool-card {
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 10px 0;
    }
    
    .footer-link {
        margin: 0 5px;
        font-size: 0.8rem;
    }
}