/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --- Global Styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F5F5F7; /* Page background color */
    margin: 0;
    padding: 0;
    color: #333;
}

/* --- Header Section (Dark Blue) --- */
.main-header {
    height: 60px;
    background-color: #3B485C;
    border-bottom: 4px solid #279FEA;
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.header-logo {
    height: 24px;
    width: auto;
    display: block;
}

/* --- Title Section (White Block, 90px) --- */
.page-title-section {
    background-color: #ffffff;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #CED3DB;
    box-sizing: border-box;
}

.page-title-section h1 {
    color: #3B485C;
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
}

/* --- Navigation Tabs (Grey Background) --- */
.tabs-nav-container {
    background-color: #F5F5F7;
    padding-top: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid #CED3DB;
    width: 100%; /* Ensures the line spans the full width */
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.tab-link {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 25px 15px 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3B485C;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Overlaps the container border */
    
    /* Inactive state styling */
    opacity: 0.5; 
    transition: opacity 0.2s, border-bottom 0.2s, color 0.2s;
}

.tab-link:hover {
    opacity: 1;
}

.tab-link.active {
    opacity: 1;
    color: #1D64BF;
    border-bottom: 3px solid #1D64BF;
}

/* Icons Styling */
.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: grayscale(100%); 
}

.tab-link.active .nav-icon {
    filter: grayscale(0%);
}

/* --- Content Layout --- */
.tab-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 500px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Grid System */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .browser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .browser-grid { grid-template-columns: 1fr; }
}

/* --- Browser Cards --- */
.browser-card {
    background: #fff;
    border: 1px solid #fff; /* White border as requested */
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(27, 33, 45, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #CED3DB;
    padding: 20px 0;
    margin-bottom: 0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}
.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 300;
}

.browser-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Version List */
.version-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.version-list li {
    padding: 8px 0;
    font-size: 0.9rem;
}

.version-list a {
    text-decoration: none;
    color: #1D64BF;
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-list a:hover {
    text-decoration: underline;
}

/* Logic: Hide items after the 10th item */
.version-list li:nth-child(n+11) {
    display: none;
}

/* Show all items when parent has 'expanded' class */
.tab-content.expanded .version-list li:nth-child(n+11) {
    display: block;
}

/* --- View All Link --- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.view-all-link {
    text-decoration: underline;
    color: #1D64BF;
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.view-all-link:hover {
    color: #154a8f;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px;
    color: #7A869A;
    font-size: 0.85rem;
    background-color: transparent;
    border-top: 1px solid #CED3DB;
    margin-top: 50px;
}