/* --- DRIBBBLE STYLE HEADER --- */
.tp-site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.tp-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

/* Strictly Compact Logo */
.tp-logo { flex-shrink: 0; }
.site-logo { 
    max-height: 35px; /* Logo ka size drastically chota kar diya */
    width: auto; 
    display: block; 
}

/* Search Bar Layout */
.tp-search-container {
    display: flex;
    align-items: center;
    background-color: #f4f5f7;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    flex-grow: 1;
    max-width: 450px;
    transition: background 0.3s;
}
.tp-search-container:hover { background-color: #eceef1; }
.tp-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: #333;
}
.tp-exam-selector {
    border: none;
    background: transparent;
    outline: none;
    padding: 0 15px;
    color: #555;
    font-weight: 500;
    border-left: 1px solid #d1d5db;
    cursor: pointer;
    font-size: 0.9rem;
}
.tp-search-btn {
    background-color: #195e72; /* Aapke app ka Teal color */
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.3s;
}
.tp-search-btn:hover { background-color: #124352; }

/* Navigation & Buttons */
.tp-nav-menu ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.tp-nav-menu a { color: #4b5563; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.tp-nav-menu a:hover { color: #195e72; }

.tp-header-action { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.tp-btn-outline {
    border: 1px solid #e5e7eb;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tp-btn-outline:hover { border-color: #195e72; color: #195e72; }
.tp-profile-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    cursor: pointer; 
}

/* Mobile Responsive Fix */
@media (max-width: 900px) {
    .tp-header-flex { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .tp-search-container { order: 3; max-width: 100%; width: 100%; }
    .tp-nav-menu { display: none; } /* Mobile me link hide karke hamburger denge aage */
}

/* --- LOGO SIZE FIX --- */
.tp-logo { flex-shrink: 0; }

.site-logo {
    max-width: 220px; /* Logo ka size limit kiya */
    height: auto;
    display: block;
}

/* --- NAV MENU COLOR FIX --- */
.tp-nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.tp-nav-menu a {
    color: #333333; /* Dark text for white header */
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.tp-nav-menu a:hover { color: #195e72; }

/* --- FOOTER REDESIGN & LOGO --- */
.tp-site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-logo {
    max-width: 200px; /* Footer logo size limit */
    height: auto;
    margin-bottom: 20px;
    display: block;
}
.tp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.tp-footer-col h3 { color: #195e72; margin-top: 0; }
.tp-footer-col p, .tp-footer-col a { color: #555; text-decoration: none; line-height: 1.6; }
.tp-footer-col a:hover { color: #195e72; }
.tp-footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}

/* --- ALL DEVICE RESPONSIVE (MOBILE FIX) --- */
@media (max-width: 768px) {
    .tp-header-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .tp-nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .site-logo { max-width: 180px; }
    
    .tp-footer-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}