* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --secondary: #f5c518;
    --light: #f4f8fb;
    --dark: #333;
    --gray: #6c757d;
    --white: #ffffff;
    --border: #e0e6ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Disable all transitions and animations */
    transition: none !important;
    animation: none !important;
}



body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fdff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.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: 2px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* In your css/style (2).css file */
.btn.active {
    background-color: #0056b3 !important;
    color: white !important;
    border-color: #0056b3 !important;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 1rem; /* Changed from 0 1rem to 5px 1rem to increase height by 10px */
    font-size: 17px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: nowrap; /* Ensure navigation links stay on one line */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap; /* Prevent text in nav links from wrapping */
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-links .active {
    background: var(--secondary);
    color: var(--primary-dark);
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap; /* Ensure user action buttons stay on one line */
}

.btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* ADD THIS LINE TO PREVENT TEXT/ICON WRAPPING WITHIN THE BUTTON */
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
}

/* 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: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.alumni-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.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: 20px;
}

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

.alumni-details {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.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;
}

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.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%;
}

.news-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

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

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

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

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

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

.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;
    }

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

/* added by kamal */

/* Button styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* ADDED THIS LINE */
}

.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;
}

/* Alumni card specific styles */
.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-info {
    padding: 15px;
}

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

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

.default-photo i {
    font-size: 2rem;
}

 

.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;
}

/* In your css/style.css file */

/* Ensure the main navigation bar is a flex container */
.navbar {
    display: flex;
    justify-content: space-between; /* Distributes space between logo, nav-links, and user-actions */
    align-items: center; /* Vertically aligns items */
    flex-wrap: nowrap; /* Prevent the main sections (logo, nav-links, user-actions) from wrapping */
    width: 100%; /* Ensure it takes full available width */
    padding: 15px 20px; /* Example padding, adjust as needed */
    box-sizing: border-box; /* Include padding in element's total width */
}

/* Ensure the navigation links list also stays on one line */
.navbar .nav-links {
    display: flex;
    flex-wrap: nowrap; /* Important: Prevents list items from wrapping */
    list-style: none; /* Remove default list bullets */
    padding: 0;
    margin: 0;
    align-items: center; /* Vertically align individual links */
}

/* Style individual navigation items */
.navbar .nav-links li {
    flex-shrink: 0; /* Prevents items from shrinking when space is tight */
    margin: 0 15px; /* Adjust spacing between nav items as needed */
    white-space: nowrap; /* Prevent text inside links from wrapping */
}

/* Adjust spacing for the user actions if needed */
.navbar .user-actions {
    display: flex;
    flex-wrap: nowrap; /* Keep buttons on one line */
    gap: 10px; /* Space between the login and join buttons */
    align-items: center;
    flex-shrink: 0; /* Prevent the action buttons from shrinking */
}

/* Optional: Adjust button sizes/padding if they are still too wide */
.navbar .user-actions .btn {
    padding: 8px 15px; /* Slightly reduce padding if needed */
    font-size: 14px; /* Slightly reduce font size if needed */
}

/* For smaller screens, consider making the navigation responsive,
   e.g., stacking elements or using a hamburger menu */
@media (max-width: 992px) { /* Adjust breakpoint as necessary */
    .navbar {
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        justify-content: center; /* Center items when wrapped */
    }
    .navbar .logo,
    .navbar .nav-links,
    .navbar .user-actions {
        width: 100%; /* Make each section take full width when wrapped */
        justify-content: center;
        margin-bottom: 10px; /* Add some space between stacked sections */
    }
    .navbar .nav-links {
        margin-top: 10px; /* Space after logo */
    }
    .navbar .nav-links li {
        margin: 0 8px; /* Reduce horizontal margin for smaller screens */
    }
}

.navbar-link {
    padding: 10px 15px !important; /* Force this padding */
}
/* Target your specific navbar list items */
.navbar-nav li {
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Updated yellow-themed navbar button */
.my-navbar-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700, #FFC300); /* Yellow gradient */
    color: black; /* Better contrast on yellow */
}

.my-navbar-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.my-navbar-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(204, 153, 0, 0.4); /* Warm golden shadow */
}

.my-navbar-button:hover:before {
    left: 100%;
}

