/* ===================================
   About Us - IJCPI Theme
   Professional Linear Gradient Design
   =================================== */

/* Base Styles */
.head h2 a {
    color: #fff;
}

.head h2 img {
    width: auto !important;
    max-width: 100%;
    height: auto;
}

/* Main Content Styling */
.middile-panel .head h1 {
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.middile-panel .head h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
    border-radius: 2px;
}

.about-content {
    padding: 20px 0;
}

/* Section Headings with Gradient */
.about-content h3 {
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    position: relative;
    padding-left: 15px;
}

.about-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(180deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
    border-radius: 3px;
}

.about-content h4 {
    background: linear-gradient(135deg, #7a21db 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Journal Particulars Table */
.about-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    font-size: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.about-content table tr {
    transition: all 0.3s ease;
}

.about-content table tr:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content table tr:nth-child(odd) {
    background: white;
}

.about-content table tr:hover {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    transform: scale(1.01);
}

.about-content table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.about-content table tr:last-child td {
    border-bottom: none;
}

.about-content table td:first-child {
    font-weight: 700;
    width: 30%;
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.about-content table td:first-child::after {
    content: ':';
    position: absolute;
    right: -5px;
    color: #7a21db;
}

/* Paragraphs */
.about-content p {
    text-align: justify;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
    position: relative;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%) 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Lists Styling */
.about-content ul {
    line-height: 2;
    font-size: 15px;
    margin-left: 0;
    margin-bottom: 30px;
    padding-left: 0;
    list-style: none;
}

.about-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #444;
    transition: all 0.3s ease;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(106, 17, 203, 0.3);
}

.about-content ul li:hover {
    padding-left: 40px;
    color: #6a11cb;
}

.about-content ul li:hover::before {
    background: linear-gradient(135deg, #7a21db 0%, #2575fc 100%);
    transform: scale(1.1);
}

/* Focus Areas Section */
.focus-areas-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.focus-areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #6a11cb 0%, 
        #7a21db 25%, 
        #2575fc 50%, 
        #7a21db 75%, 
        #6a11cb 100%);
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Science Category Cards */
.science-category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.science-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.science-category-card.pharma {
    border-color: rgba(106, 17, 203, 0.2);
}

.science-category-card.pharma:hover {
    border-color: #6a11cb;
}

.science-category-card.medical {
    border-color: rgba(33, 150, 243, 0.2);
}

.science-category-card.medical:hover {
    border-color: #2196f3;
}

.science-category-card.biological {
    border-color: rgba(76, 175, 80, 0.2);
}

.science-category-card.biological:hover {
    border-color: #4caf50;
}

/* Category Header */
.category-header {
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.science-category-card.pharma .category-header {
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 50%, #303f9f 100%);
}

.science-category-card.medical .category-header {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
}

.science-category-card.biological .category-header {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 50%, #66bb6a 100%);
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.science-category-card:hover .category-icon {
    transform: scale(1.1) rotate(360deg);
}

.category-header h4 {
    color: white;
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    flex: 1;
    background: none;
    -webkit-text-fill-color: white;
    position: relative;
    z-index: 1;
}

/* Category Content */
.category-content {
    padding: 40px;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.topic-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-item:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.science-category-card.pharma .topic-item:hover {
    border-color: #6a11cb;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

.science-category-card.medical .topic-item:hover {
    border-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.science-category-card.biological .topic-item:hover {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
}

.topic-item i {
    flex-shrink: 0;
    font-size: 16px;
}

.science-category-card.pharma .topic-item i {
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.science-category-card.medical .topic-item i {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.science-category-card.biological .topic-item i {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topic-item:hover i {
    transform: scale(1.2);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.2);
}

.stat-card .stat-number {
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vision & Mission Cards */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.vm-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
}

.vm-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.05) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(106, 17, 203, 0.25);
    border-color: #7a21db;
}

.vm-card:hover::after {
    top: -25%;
    right: -25%;
}

.vm-card h3 {
    margin-top: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 20px;
    font-size: 26px;
}

.vm-card h3::before {
    display: none;
}

.vm-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 50%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.vm-card:hover .icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(106, 17, 203, 0.5);
}

.vm-card p {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.vm-card ul {
    margin-bottom: 0;
}

.vm-card ul li {
    font-size: 15px;
    line-height: 1.8;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 50%, #9fa8da 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #6a11cb 0%, #7a21db 100%) 1;
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-banner i {
    font-size: 32px;
    background: linear-gradient(135deg, #6a11cb 0%, #7a21db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-banner p {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Devices (Portrait Phones) - Less than 576px */
@media (max-width: 575.98px) {
    .middile-panel .head h1 {
        font-size: 24px !important;
        margin-bottom: 15px;
    }
    
    .middile-panel .head h1::after {
        width: 60px;
        height: 3px;
    }
    
    .about-content {
        padding: 15px 0;
    }
    
    .about-content h3 {
        font-size: 18px !important;
        margin-top: 20px;
        margin-bottom: 12px;
        padding-left: 12px;
    }
    
    .about-content h4 {
        font-size: 15px !important;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .about-content p {
        font-size: 14px !important;
        padding: 12px 15px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .about-content table {
        font-size: 12px !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .about-content table thead {
        display: none;
    }
    
    .about-content table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .about-content table td {
        padding: 10px 12px !important;
        display: block;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    .about-content table td:first-child {
        width: 100% !important;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 8px;
        font-weight: 700;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    .about-content table td:first-child::after {
        content: '';
    }
    
    .about-content table td:last-child {
        padding-top: 8px;
        border-bottom: none;
    }
    
    .about-content ul {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .about-content ul li {
        padding-left: 30px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .about-content ul li::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin: 30px 0 40px;
    }
    
    .vm-card {
        padding: 20px !important;
    }
    
    .vm-card h3 {
        font-size: 20px !important;
        margin-bottom: 15px;
    }
    
    .vm-card .icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
        margin-bottom: 20px;
    }
    
    .vm-card p {
        font-size: 14px !important;
        line-height: 1.7;
    }
    
    .focus-areas-section {
        padding: 20px 15px !important;
        margin-top: 30px;
        border-radius: 15px;
    }
    
    .focus-areas-section h3 {
        font-size: 20px !important;
        margin-bottom: 20px;
    }
    
    .category-header {
        padding: 20px 15px !important;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
    }
    
    .category-header h4 {
        font-size: 20px !important;
        margin: 0;
    }
    
    .category-content {
        padding: 20px 15px !important;
    }
    
    .topics-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .topic-item {
        font-size: 13px !important;
        padding: 12px 15px !important;
        gap: 10px;
    }
    
    .topic-item i {
        font-size: 14px;
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px !important;
        gap: 15px;
    }
    
    .info-banner i {
        font-size: 24px !important;
    }
    
    .info-banner p {
        font-size: 14px;
    }
}

/* Small Devices (Landscape Phones) - 576px to 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .middile-panel .head h1 {
        font-size: 26px;
    }
    
    .about-content h3 {
        font-size: 19px;
    }
    
    .about-content h4 {
        font-size: 16px;
    }
    
    .about-content p {
        font-size: 14px;
        padding: 14px 18px;
    }
    
    .about-content table {
        font-size: 13px;
    }
    
    .about-content table td {
        padding: 12px 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vm-card {
        padding: 28px;
    }
    
    .vm-card .icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }
    
    .focus-areas-section {
        padding: 30px 25px;
    }
    
    .category-header {
        padding: 25px 20px;
        flex-direction: row;
    }
    
    .category-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .category-header h4 {
        font-size: 24px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        font-size: 13px;
        padding: 13px 18px;
    }
    
    .info-banner {
        flex-direction: row;
        padding: 22px 25px;
    }
}

/* Medium Devices (Tablets) - 768px to 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .middile-panel .head h1 {
        font-size: 30px;
    }
    
    .about-content h3 {
        font-size: 22px;
    }
    
    .about-content h4 {
        font-size: 17px;
    }
    
    .about-content table {
        font-size: 14px;
    }
    
    .about-content table td {
        padding: 13px 18px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vision-mission-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .vm-card {
        padding: 30px;
    }
    
    .focus-areas-section {
        padding: 35px 30px;
    }
    
    .category-header {
        padding: 28px 25px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .category-header h4 {
        font-size: 26px;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .topic-item {
        font-size: 14px;
        padding: 14px 18px;
    }
}

/* Large Devices (Desktops) - 992px to 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .middile-panel .head h1 {
        font-size: 34px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Original 768px breakpoint */
@media (max-width: 768px) {
    .middile-panel .head h1 {
        font-size: 28px;
    }
    
    .about-content h3 {
        font-size: 20px;
    }
    
    .about-content h4 {
        font-size: 16px;
    }
    
    .about-content table {
        font-size: 14px;
    }
    
    .about-content table td {
        padding: 12px 15px;
        display: block;
        width: 100%;
    }
    
    .about-content table td:first-child {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 8px;
    }
    
    .about-content table td:first-child::after {
        content: '';
    }
    
    .about-content table td:last-child {
        padding-top: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    
    .vm-card {
        padding: 25px;
    }
    
    .vm-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .focus-areas-section {
        padding: 25px 20px;
    }
    
    .focus-areas-section h3 {
        font-size: 24px !important;
    }
    
    .category-header {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .category-header h4 {
        font-size: 22px;
    }
    
    .category-content {
        padding: 25px 20px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .info-banner i {
        font-size: 28px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .focus-areas-section {
        padding: 20px 15px;
    }
    
    .category-header {
        padding: 20px 15px;
    }
    
    .vm-card {
        padding: 20px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .topic-item,
    .stat-card,
    .vm-card,
    .science-category-card {
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .about-content h3,
    .about-content h4,
    .stat-card .stat-number {
        -webkit-text-fill-color: #6a11cb !important;
        color: #6a11cb !important;
    }
    
    .about-content table tr:hover {
        background: white !important;
        transform: none !important;
    }
}
