/* Enhanced styles for HBECS website */

/* Global Styles Enhancements */
:root {
    --primary-color: #2a4099; /* HBECS blue from logo */
    --secondary-color: #ffffff; /* White */
    --accent-color-1: #e63946; /* Red dots from logo */
    --accent-color-2: #2a9d8f; /* Teal dots from logo */
    --accent-color-3: #27ae60; /* Green dots from logo */
    --accent-color-4: #f8a5c2; /* Pink dots from logo */
}

body {
    background-color: #f8f9fa;
}

/* Enhanced Header */
header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dots-pattern.png');
    background-size: cover;
    opacity: 0.1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Scholarship Cards */
.scholarship-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

.scholarship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.scholarship-card-content {
    padding: 2rem;
}

.scholarship-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.scholarship-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scholarship-card .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.scholarship-card .country {
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 500;
}

.scholarship-card .country i {
    margin-right: 0.5rem;
    color: var(--accent-color-3);
}

.scholarship-card .deadline {
    color: var(--accent-color-1);
    font-weight: 600;
}

.scholarship-card .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.scholarship-card .btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.view-all-btn {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

.view-all-btn .btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Team Section */
.team-member {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.team-member h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color-1);
    border-radius: 3px;
}

.team-member p {
    color: #555;
    line-height: 1.6;
}

.team-member p strong {
    color: #333;
}

/* Enhanced About Section */
.about-section {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
}

.about-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color-1);
    border-radius: 3px;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    padding-top: 4rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color-2);
    border-radius: 3px;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: white;
}

.social-icons a:hover i.fa-linkedin {
    color: #0077b5;
}

.social-icons a:hover i.fa-facebook {
    color: #1877f2;
}

.social-icons a:hover i.fa-instagram {
    color: #e1306c;
}

.social-icons a:hover i.fa-telegram {
    color: #0088cc;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scholarship Detail Page Enhancements */
.scholarship-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.scholarship-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dots-pattern.png');
    background-size: cover;
    opacity: 0.1;
}

.scholarship-content {
    padding: 3rem 0;
}

.scholarship-section {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.scholarship-section h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.scholarship-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color-1);
    border-radius: 3px;
}

.scholarship-section p, .scholarship-section li {
    color: #555;
    line-height: 1.8;
}

.scholarship-section a {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.scholarship-section a:hover {
    color: var(--accent-color-1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--primary-color);
}

.back-link:hover {
    background-color: white;
    color: var(--primary-color);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scholarship-card, .team-member, .scholarship-section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .scholarship-card-content, .team-member, .scholarship-section {
        padding: 1.5rem;
    }
}

/* Dots pattern for background */
.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-color-1) 1px, transparent 1px),
                      radial-gradient(var(--accent-color-2) 1px, transparent 1px),
                      radial-gradient(var(--accent-color-3) 1px, transparent 1px),
                      radial-gradient(var(--accent-color-4) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px, 5px 5px, 15px 15px;
    opacity: 0.1;
    z-index: -1;
}


/* ======================================== */
/* Scholarship Detail Page Enhancements V2 */
/* ======================================== */

.scholarship-detail-page .container {
    max-width: 1100px; /* Wider container for detail pages */
}

.scholarship-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.scholarship-detail-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.scholarship-detail-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.scholarship-detail-content {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Add a two-column layout for wider screens */
@media (min-width: 992px) {
    .scholarship-detail-content {
        grid-template-columns: 2fr 1fr; /* Main content | Sidebar */
    }
    .scholarship-detail-sidebar {
        grid-column: 2 / 3; /* Position sidebar in the second column */
        grid-row: 1 / 2; /* Span the first row */
    }
    .scholarship-detail-main {
         grid-column: 1 / 2; /* Position main content in the first column */
         grid-row: 1 / 2; /* Span the first row */
    }
}


.scholarship-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem; /* Reduced padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem; /* Reduced margin */
    border-left: 5px solid var(--primary-color); /* Accent border */
}

.scholarship-section h3 {
    font-size: 1.4rem; /* Slightly smaller heading */
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee; /* Underline effect */
}

.scholarship-section h3::after {
    content: none; /* Remove the previous accent line */
}

.scholarship-section ul, .scholarship-section ol {
    padding-left: 20px;
    margin-top: 1rem;
}

.scholarship-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #444; /* Darker text */
}

.scholarship-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444; /* Darker text */
}

.scholarship-section strong {
    color: #333;
    font-weight: 600;
}

.scholarship-section .btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--accent-color-2); /* Use teal for action buttons */
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: none;
}

.scholarship-section .btn:hover {
    background-color: #21867a; /* Darker teal */
    color: white;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Sidebar specific styles */
.scholarship-detail-sidebar .scholarship-section {
     border-left-color: var(--accent-color-3); /* Green accent for sidebar */
}

.scholarship-detail-sidebar .scholarship-section h3 {
    color: var(--accent-color-3);
}

/* Back link styling */
.back-link-container {
    margin-top: 3rem;
    text-align: center; /* Center the back link */
}

.back-link {
    display: inline-flex;
    align-items: center;
    background-color: #6c757d; /* Grey color */
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    border: none;
    text-decoration: none; /* Remove underline */
}

.back-link:hover {
    background-color: #5a6268;
    color: white;
}

.back-link i {
    margin-right: 0.5rem;
}

/* Add icons to list items (example) */
.scholarship-section ul li i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 1.2em; /* Ensure alignment */
    text-align: center;
}

/* Example: Icon for age limit */
.eligibility-criteria li:contains("Age Limits") i::before {
    content: '\f1fd'; /* fa-birthday-cake */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Example: Icon for language */
.eligibility-criteria li:contains("Language Proficiency") i::before {
    content: '\f0ac'; /* fa-globe */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Example: Icon for benefits */
.scholarship-benefits li i::before {
    content: '\f00c'; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color-3); /* Green check */
}



/* ======================================== */
/* Global Attractiveness Enhancements     */
/* ======================================== */

/* Ensure consistent fonts globally */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7; /* Improved readability */
    color: #333; /* Slightly darker base text color */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Slightly bolder headings */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* General container adjustments */
.container {
    max-width: 1200px; /* Slightly wider main container */
    padding-left: 20px;
    padding-right: 20px;
}

/* Header Enhancements */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo h1 {
    font-size: 1.8rem; /* Slightly larger logo text */
    color: var(--primary-color);
    margin-left: 10px;
}

nav ul li a {
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px; /* Space for underline effect */
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Footer Enhancements */
footer {
    padding-top: 3rem; /* Reduced padding */
    color: rgba(255, 255, 255, 0.9);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem; /* Slightly smaller footer headings */
    margin-bottom: 1rem;
}

.footer-section h4::after {
    height: 2px; /* Thinner accent line */
    width: 30px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Subtle animation for links */
a {
    transition: color 0.3s ease;
}

/* General Button Style Refinement (apply to .btn class) */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(42, 64, 153, 0.2);
}

.btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(42, 64, 153, 0.3);
}

/* Apply general card styling improvements if needed */
.card-base-style { /* Example class to apply common card styles */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
}

.card-base-style:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}


