

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 1px 0; /* Reduced vertical padding slightly from 2px */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap from 10px for a tighter look */
}

.logo-img {
    height: 35px; /* Reduced height from 40px */
    width: 35px;  /* Reduced width from 40px */
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.1rem; /* Reduced font size from 1.2rem */
    font-weight: 700;
}/* Smaller Header */
.main-header {
  padding: 10px 15px; /* Reduced vertical padding */
  background-color: #f8f9fa;
}

.main-header .logo {
  height: 45px; /* Reduced logo height */
}

.main-header .nav-link {
  font-size: 16px; /* Reduced font size */
}
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

.btn-primary {
    background-color: #003366;
    color: white;
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 6px 12px;
}

.btn i {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(105deg, var(--primary-dark) 55%, var(--primary) 45%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(0, 34, 68, 0.7)" points="0,0 100,100 0,100"/></svg>');
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
     border: none;
}

.hero-img {
    width: 100%;
     max-width: 640px;
    border-radius: 6px;
    box-shadow: 5px 5px 5px 5px rgba(135, 206, 250, 0.5); /* Existing shadow */
    transform: none;
}

/* Dashboard Layout */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: none, box-shadow 0.3s;
}

.card:hover {
    transform: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 5px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.card-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.card-body {
    padding: 25px;
}

/* Featured Alumni Grid */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.alumni-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: none;
}

.alumni-card:hover {
    transform: none;
}

.alumni-photo {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.alumni-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.alumni-card:hover .alumni-photo img {
    transform: none;
}

.alumni-info {
    padding: 15px;
}

.alumni-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.alumni-details {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.alumni-details strong {
    color: var(--dark);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.alumni-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.alumni-table th {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.alumni-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

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

.alumni-table tr:hover {
    background: rgba(0, 51, 102, 0.03);
}

.country-flag {
    width: 24px;
    height: 16px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    background: linear-gradient(45deg, #006a4e, #f42a41);
    border-radius: 2px;
}

/* Alumni News Section - Renamed to avoid conflicts */
.alumni-news-section {
    margin-bottom: 40px;
}

.alumni-news-grid {
    display: grid;
    /* Adjusted to allow cards to be around 400px wide, but still responsive */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.alumni-news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Added max-width to make cards approximately 400px wide */
    max-width: 400px;
    /* Ensure cards center within their grid cell if narrower than 1fr */
    justify-self: center;
}

.alumni-news-image {
    /* Changed height to 300px as requested */
    height: 300px;
    overflow: hidden;
    position: relative; /* Ensure this is set for absolute positioning of img */
}

.alumni-news-image img {
    /* Ensure the image absolutely fills its parent container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will make the image cover the area, cropping if necessary */
    transition: none;
}

.alumni-news-card:hover .alumni-news-image img {
    transform: none;
}

.alumni-news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.alumni-news-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.alumni-news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.alumni-news-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.alumni-news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alumni-news-link:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-icons a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 12px;
    min-width: 20px;
    color: var(--secondary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.heart {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .alumni-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive Design for Alumni News Grid */
    @media (max-width: 768px) {
        .alumni-news-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* added by kamal */

/* Profile Page Styles */
.profile {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Updated: .profile-title inside profile-card */
.profile-title {
    background: #ffffff;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 25px;
    margin: 20px 0 25px 0;
    display: block;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    box-sizing: border-box;
    position: static;
    border: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.profile-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid #f0f0f0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-photo-lg {
    background: linear-gradient(135deg, #1e5799, #207cca);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #003366;
}

/* REMOVED OLD LINE UNDER TITLE */
/* .profile-title::after { ... } — removed completely */

.profile-contact,
.profile-social {
    text-align: left;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.profile-contact h3,
.profile-social h3 {
    margin-bottom: 15px;
    color: #003366;
    font-size: 1.2rem;
}

.profile-contact p {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
}

.profile-contact i,
.profile-social i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    color: #003366;
}


.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #003366;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #003366;
    color: white;
    transform: translateY(-3px);
}

.profile-details {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    position: relative;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #003366;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item h4 {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-item p {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
}

.country-flag {
  display: inline-flex; /* or inline-block */
  align-items: center;
  gap: 5px; /* Space between flag and text */
}
.flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    /* Add subtle shadow for better visibility */
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.country-cell {
    /* Prevent text wrapping */
    white-space: nowrap;
    /* Add padding for better spacing */
    padding: 8px 12px;
}

 /* FINAL FIX: Forcefully override profile title box under photo */

.profile-card .profile-title {
    background: #ffffff !important;
    color: #333 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    padding: 20px 25px !important;
    margin: 20px 0 25px 0 !important;
     width: 100% !important;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: static !important;
    border: none !important;
}

/* Remove any underline from previous ::after or ::before pseudo-elements */
.profile-card .profile-title::after,
.profile-card .profile-title::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}
